oi-metrology/Archive/wwwroot/igniteui/js/modules/infragistics.dv_datasource.js
2022-07-26 09:34:09 -07:00

21 lines
109 KiB
JavaScript

/*!@license
* Infragistics.Web.ClientUI infragistics.dv_datasource.js 19.1.20191.172
*
* Copyright (c) 2011-2019 Infragistics Inc.
*
* http://www.infragistics.com/
*
* Depends:
* jquery-1.4.4.js
* jquery.ui.core.js
* jquery.ui.widget.js
* infragistics.util.js
* infragistics.ext_core.js
* infragistics.ext_collections.js
* infragistics.dv_core.js
* infragistics.ext_ui.js
*/
(function(factory){if(typeof define==="function"&&define.amd){define(["./infragistics.util","./infragistics.ext_core","./infragistics.ext_collections","./infragistics.dv_core","./infragistics.ext_ui"],factory)}else{factory(igRoot)}})(function($){$.ig=$.ig||{};var $$t={};$.ig.globalDefs=$.ig.globalDefs||{};$.ig.globalDefs.$$y=$$t;$$0=$.ig.globalDefs.$$0;$$4=$.ig.globalDefs.$$4;$$1=$.ig.globalDefs.$$1;$$w=$.ig.globalDefs.$$w;$$6=$.ig.globalDefs.$$6;$$a=$.ig.globalDefs.$$a;$.ig.$currDefinitions=$$t;$.ig.util.bulkDefine(["FilterFactory:c","DataSourceFilterBuilderBuildCallback:d","IFilterExpression:e","IOperationFilterExpression:f","IFunctionFilterExpression:g","ILiteralFilterExpression:h","IPropertyReferenceFilterExpression:i","FilterExpression:j","OperationFilterExpression:k","FunctionFilterExpression:l","PropertyReferenceFilterExpression:m","LiteralFilterExpression:n","FilterExpressionCollection:q","IDataSource:s","IDataSourceSupportsCount:u","IDataSourceSupportsIndexedAccess:v","ISupportsDataChangeNotifications:w","DataSourceSchemaChangedHandler:x","IDataSourceDataProvider:z","IDataSourceDataProviderUpdateNotifier:aa","DataSourceDataProviderSchemaChangedHandler:ab","IDataSourceExecutionContext:ad","DataSourceExecutionContextExecuteCallback:ae","IDataSourceLocalDataProvider:af","IDataSourcePage:ag","IDataSourceSchema:ah","IDataSourceUpdateNotifier:ak","IDataSourceVirtualDataProvider:al","DataSourcePageLoadedCallback:an","IExternalDataSource:ao","IExternalLocalDataSource:ap","IExternalVirtualDataSource:aq","ISectionInformation:ar","ODataLiteralEmitter:at","BaseDataSource:az","DefaultDataSourceDataProviderUpdateNotifier:a1","LocalDataSource:a3","LocalDataSourceViewUpdateNotifier:a5","IPageCandidatesSink:ba","RearrangedListViewFilter:be"]);var $a=$.ig.intDivide,$b=$.ig.util.cast,$c=$.ig.util.defType,$d=$.ig.util.defEnum,$e=$.ig.util.getBoxIfEnum,$f=$.ig.util.getDefaultValue,$g=$.ig.util.getEnumValue,$h=$.ig.util.getValue,$i=$.ig.util.intSToU,$j=$.ig.util.nullableEquals,$k=$.ig.util.nullableIsNull,$l=$.ig.util.nullableNotEquals,$m=$.ig.util.toNullable,$n=$.ig.util.toString$1,$o=$.ig.util.u32BitwiseAnd,$p=$.ig.util.u32BitwiseOr,$q=$.ig.util.u32BitwiseXor,$r=$.ig.util.u32LS,$s=$.ig.util.unwrapNullable,$t=$.ig.util.wrapNullable,$u=String.fromCharCode,$v=$.ig.util.castObjTo$t,$w=$.ig.util.equalsSimple,$x=$.ig.util.compareSimple,$y=$.ig.util.numberToString,$z=$.ig.util.tryParseInt32_1,$0=$.ig.util.tryParseInt32_2,$1=$.ig.util.intToString1,$2=$.ig.util.parseInt32_1,$3=$.ig.util.parseInt32_2,$4=$.ig.util.parseBool,$5=$.ig.util.tryParseBool,$6=$.ig.util.tryParseNumber,$7=$.ig.util.tryParseNumber1,$8=$.ig.util.numberToString1,$9=$.ig.util.parseNumber,$aa=$.ig.util.compare,$ab=$.ig.util.replace,$ac=$.ig.util.stringFormat,$ad=$.ig.util.stringFormat1,$ae=$.ig.util.stringFormat2,$af=$.ig.util.stringCompare1,$ag=$.ig.util.stringCompare2,$ah=$.ig.util.stringCompare3;$d("DataSourcePageRequestPriority:am",false,false,{Low:0,Normal:1,High:2});$d("DataSourceSchemaPropertyType:ai",false,false,{StringValue:0,IntValue:1,BooleanValue:2,LongValue:3,ShortValue:4,DoubleValue:5,DecimalValue:6,SingleValue:7,DateTimeValue:8,DateTimeOffsetValue:9,ByteValue:10,ObjectValue:11});$d("DataSourceRowType:t",false,false,{Normal:0,SectionHeader:1,SectionFooter:2,ShiftedRow:3,Custom:4});$d("FilterExpressionOperatorType:p",false,false,{None:0,Equal:1,NotEqual:2,GreaterThan:3,GreaterThanOrEqual:4,LessThan:5,LessThanOrEqual:6,And:7,Or:8,Not:9,Add:10,Subtract:11,Multiply:12,Divide:13,Modulo:14,Grouping:15});$d("FilterExpressionFunctionType:o",false,false,{Contains:0,EndsWith:1,StartsWith:2,Length:3,IndexOf:4,Replace:5,Substring:6,ToLower:7,ToUpper:8,Trim:9,Concat:10,Day:11,Hour:12,Minute:13,Month:14,Second:15,Year:16,Round:17,Floor:18,Ceiling:19,Date:20,Time:21,Now:22,IsOf:23,Cast:24});$c("AsyncVirtualDataTask:bj","Object",{init:function(){$.ig.$op.init.call(this)},_hasErrors:false,hasErrors:function(a){if(arguments.length===1){this._hasErrors=a;return a}else{return this._hasErrors}},_isRunning:false,isRunning:function(a){if(arguments.length===1){this._isRunning=a;return a}else{return this._isRunning}},_isCancelled:false,isCancelled:function(a){if(arguments.length===1){this._isCancelled=a;return a}else{return this._isCancelled}},_isCompleted:false,isCompleted:function(a){if(arguments.length===1){this._isCompleted=a;return a}else{return this._isCompleted}},_result:null,result:function(a){if(arguments.length===1){this._result=a;return a}else{return this._result}},_run:null,run:function(a){if(arguments.length===1){this._run=a;return a}else{return this._run}},$type:new $.ig.Type("AsyncVirtualDataTask",$.ig.$ot)},true);$c("AsyncVirtualDataSourceDataProviderWorkerSettings:bk","Object",{init:function(){$.ig.$op.init.call(this)},_pageSizeRequested:0,pageSizeRequested:function(a){if(arguments.length===1){this._pageSizeRequested=a;return a}else{return this._pageSizeRequested}},_timeoutMilliseconds:0,timeoutMilliseconds:function(a){if(arguments.length===1){this._timeoutMilliseconds=a;return a}else{return this._timeoutMilliseconds}},_pageLoaded:null,pageLoaded:function(a){if(arguments.length===1){this._pageLoaded=a;return a}else{return this._pageLoaded}},_executionContext:null,executionContext:function(a){if(arguments.length===1){this._executionContext=a;return a}else{return this._executionContext}},$type:new $.ig.Type("AsyncVirtualDataSourceDataProviderWorkerSettings",$.ig.$ot)},true);$c("AsyncVirtualDataSourceProviderTaskDataHolder:bl","Object",{init:function(){$.ig.$op.init.call(this)},$type:new $.ig.Type("AsyncVirtualDataSourceProviderTaskDataHolder",$.ig.$ot)},true);$c("AsyncDataSourcePageTaskHolder:bm","Object",{init:function(){$.ig.$op.init.call(this)},_task:null,task:function(a){if(arguments.length===1){this._task=a;return a}else{return this._task}},$type:new $.ig.Type("AsyncDataSourcePageTaskHolder",$.ig.$ot)},true);$c("AsyncDataSourcePageRequest:bn","Object",{e:0,f:0,a:null,c:false,init:function(a,b){this.c=false;$.ig.$op.init.call(this);this.e=a;this.f=b},index:function(a){if(arguments.length===1){this.e=a;return a}else{return this.e}},retryDelay:function(a){if(arguments.length===1){this.f=a;return a}else{return this.f}},taskHolder:function(a){if(arguments.length===1){this.a=a;return a}else{return this.a}},isDone:function(a){if(arguments.length===1){this.c=a;return a}else{return this.c}},$type:new $.ig.Type("AsyncDataSourcePageRequest",$.ig.$ot)},true);$c("AsyncVirtualDataSourceProviderWorker:bo","Object",{init:function(a){this.q=new $$4.v($$t.$bn.$type);this.o=new $$4.x($$t.$bn.$type,0);this.ab={};this.h=true;this.c=null;this.r=-1;this.g=false;this.f=false;$.ig.$op.init.call(this);this.h=true;this.t=a.pageSizeRequested();this.s=this.t;this.u=a.timeoutMilliseconds();this.ap=new $$6.z(a.pageLoaded());this.ao=new $$6.z(a.executionContext())},q:null,o:null,ab:null,h:false,t:0,s:0,u:0,c:null,r:0,ap:null,ao:null,g:false,tasks:function(){return this.o},pageLoaded:function(){if(this.ap==null){return null}return this.ap.c()},executionContext:function(){if(this.ao==null){return null}return this.ao.c()},actualPageSize:function(a){if(arguments.length===1){this.s=a;return a}else{return this.s}},actualCount:function(a){if(arguments.length===1){this.r=a;return a}else{return this.r}},actualSchema:function(a){if(arguments.length===1){this.c=a;return a}else{return this.c}},populatedActualPageSize:function(a){if(arguments.length===1){this.g=a;return a}else{return this.g}},isRunning:function(a){if(arguments.length===1){this.h=a;return a}else{return this.h}},addPageRequest:function(a,b){return this.addPageRequestWithRetry(a,b,200)},addPageRequestWithRetry:function(a,b,c){if(this.isShutdown()){return false}if(b==2){this.q.e(new $$t.bn(a,c))}else{this.q.f(new $$t.bn(a,c))}return true},removePageRequest:function(a){var b=null;var c=this.q.c();while(c!=null){var d=c._c;if(d.index()==a){b=c;break}c=c.a}if(b!=null){this.q.h(b)}},_isShutdown:false,isShutdown:function(a){if(arguments.length===1){this._isShutdown=a;return a}else{return this._isShutdown}},removeAllPageRequests:function(){this.q.g()},shutdown:function(){this.ap=null;this.ao=null;this.isShutdown(true);this.h=false},initialize:function(){},getTaskDataHolder:function(){return null},getTasksData:function(a){},removeCompletedTaskData:function(a,b){},getCompletedTaskData:function(a,b){},runATask:function(){for(var a=0;a<this.o.count();a++){if(!this.o.item(a).taskHolder().task().isRunning()&&!this.o.item(a).isDone()&&!this.o.item(a).taskHolder().task().isCompleted()&&!this.o.item(a).taskHolder().task().isCancelled()){this.o.item(a).taskHolder().task().isRunning(true);this.o.item(a).taskHolder().task().run()();break}}},checkAndPotentiallyWaitOnTasks:function(a){this.runATask();for(var b=0;b<a.length;b++){if(a[b].isDone()||a[b].taskHolder().task().isCompleted()||a[b].taskHolder().task().isCancelled()){return b}}return-1},f:false,doWork:function(){if(!this.f){this.f=true;this.initialize()}{var a=null;var b=null;var c=this.o.count();if(this.q.c()!=null&&c<2){var d=this.q.c();this.q.i();this.makeTaskForRequest(d._c,d._c.retryDelay());c=this.o.count()}if(c>0){a=new Array(c);for(var e=0;e<c;e++){a[e]=this.o.item(e)}b=this.getTaskDataHolder();this.getTasksData(b)}if(a!=null&&a.length>0){var f=this.checkAndPotentiallyWaitOnTasks(a);if(!this.h){return}if(f>=0){var g=a[f];this.getCompletedTaskData(b,f);this.o.remove(g);this.removeCompletedTaskData(b,f);this.processCompletedTask(g.taskHolder(),g.retryDelay(),g.index(),b)}}else{}if(!this.h){return}if(this.h){window.setTimeout(this.doWork.runOn(this),100)}}},makeTaskForRequest:function(a,b){},processCompletedTask:function(a,b,c,d){},retryIndex:function(a,b){var $self=this;var c=b*2;if(b>2e4){this.removePageRequest(a)}if(this.ao==null){this.shutdown();return}var d=$b($$t.$ad.$type,this.ao.c());if(d==null){this.shutdown();return}d.executeDelayed(function(){$self.addPageRequestWithRetry(a,0,c)},b)},isLastPage:function(a){if(this.r<0){return false}if(this.r-a*this.s<this.s){return true}return false},$type:new $.ig.Type("AsyncVirtualDataSourceProviderWorker",$.ig.$ot)},true);$c("ISupportsDataChangeNotifications:w","Object",{$type:new $.ig.Type("ISupportsDataChangeNotifications",null)},true);$c("IDataSourceSupportsCount:u","Object",{$type:new $.ig.Type("IDataSourceSupportsCount",null)},true);$c("IDataSourceDataProvider:z","Object",{$type:new $.ig.Type("IDataSourceDataProvider",null,[$$t.$w.$type,$$t.$u.$type])},true);$c("IDataSourceSupportsIndexedAccess:v","Object",{$type:new $.ig.Type("IDataSourceSupportsIndexedAccess",null,[$$t.$u.$type])},true);$c("IDataSourceLocalDataProvider:af","Object",{$type:new $.ig.Type("IDataSourceLocalDataProvider",null,[$$t.$z.$type,$$t.$v.$type])},true);$c("DataSourceLocalDataProvider:a","Object",{init:function(){this.o=new $$4.h(String,$.ig.FastReflectionHelper.prototype.$type,0);this.g=null;this.m=false;this.l=false;this.k=false;$.ig.$op.init.call(this);this.j=new $$t.ay;this.j._addListener(this.af.runOn(this))},af:function(a,b){this.queueAutoRefresh()},j:null,i:null,d:null,t:null,dataSource:function(a){if(arguments.length===1){var b=this.t;this.t=a;if(b!=this.t){this.ab("ItemsSource",b,this.t)}return a}else{return this.t}},schemaChanged:null,getItemAtIndex:function(a){if(this.r==null){return null}if(this.m){}return this.r.item(a)},o:null,getItemValue:function(a,b){this.y();var c;var d=this.o.tryGetValue(b,c);c=d.p1;if(c==null){return null}var val_=c.d(a);if(val_===undefined){return null}return val_},y:function(){if(this.g==null){this.g=this.actualSchema();if(this.schemaChanged!=null){this.schemaChanged(this,new $$t.ac(this.g,this.actualCount()))}}},actualCount:function(){if(this.r==null){return 0}if(this.m){}return this.r.count()},g:null,actualSchema:function(){if(this.g==null){if(this.r==null){this.g=new $$t.aj([],[],null,null)}else{this.g=this.h()}}return this.g},h:function(){var a=this.u();if(a==null){return new $$t.aj([],[],null,null)}this.o.clear();var b=new $$4.x(String,0);var c=new $$4.q(String,0);var d=new $$4.x($$t.$ai.$type,0);var e=new $$4.x($$4.$x.$type.specialize(String),0);var f=this.p(a);for(var g=0;g<f.count();g++){var h=f.__inner[g];if(h.startsWith("_")){continue}if(h=="$hashCode"){continue}if(c.contains(h)){continue}else{b.add(h);c.add(h);this.o.add(h,new $.ig.FastReflectionHelper(false,h));d.add(this.b(a,h));e.add(this.q(a,h))}}var i=new Array(e.count());for(var j=0;j<e.count();j++){i[j]=e.__inner[j].toArray()}return new $$t.aj(b.toArray(),d.toArray(),null,i)},resolveSchemaPropertyType:function(a){var b=a.split(".");if(b.length==1){for(var c=0;c<this.actualSchema().propertyNames().length;c++){if(this.actualSchema().propertyNames()[c]==b[0]){return this.actualSchema().propertyTypes()[c]}}return 11}else{var d=this.u();var e=this.getItemValue(d,a);if(e==null){return 11}else{return $$t.$a.c(e)}}},p:function(schemaItem_){var propertyKey_=null;var ret_=new $$4.x(String,0);var exclusions_={};for(propertyKey_ in schemaItem_){if(!isNaN(propertyKey_)){continue}if(!exclusions_.hasOwnProperty(propertyKey_)){ret_.add(propertyKey_)}}return ret_},aa:function(a,item_,propertyName_,b){if(item_.__dataIntents!==undefined){if(item_.__dataIntents[propertyName_]!==undefined){this.z(a,item_,propertyName_)}var selfName_="self."+propertyName_;if(!b&&item_.__dataIntents[selfName_]!==undefined){this.z(a,item_,selfName_)}var selfName2_="self_"+propertyName_;if(!b&&item_.__dataIntents[selfName2_]!==undefined){this.z(a,item_,selfName2_)}}},z:function(a,item_,propertyName_){var b=item_.__dataIntents[propertyName_];if($b(Array,b)!==null){var c=b;for(var d=0;d<c.length;d++){if(c[d]!=null){a.add(c[d].toString())}}}},q:function(item_,propertyName_){var a=new $$4.x(String,0);var list_=this.r;var dataIntents_=null;this.aa(a,item_,propertyName_,false);this.aa(a,list_,propertyName_,true);return a},b:function(item_,propertyName_){if(item_==null){return 11}if(item_[propertyName_]==undefined){return 11}var value_=item_[propertyName_];return $$t.$a.c(value_)},c:function(value_){if(value_==null){return 11}if(typeof value_=="number"){return 5}if(typeof value_=="boolean"){return 2}if(typeof value_=="string"){return 0}if(typeof value_=="object"){if(value_ instanceof Date){return 8}}return 11},u:function(){var a=0;if(this.m){a=this.r.count()}else{a=this.r.count()}for(var b=0;b<a;b++){var c;if(this.m){c=this.r.item(b)}else{c=this.r.item(b)}if(c!=null){return c}}return null},ab:function(a,b,c){this.ac(a,b,c)},r:null,s:function(){return this.r},m:false,ac:function(a,b,c){switch(a){case"ItemsSource":this.g=null;if(this.dataSource()!=null){this.m=false;if($b(Array,this.dataSource())!==null){this.m=true;this.r=this.dataSource()}else if($b($$0.$bm.$type,this.dataSource())!==null){this.r=this.dataSource()}}else{this.r=null}this.y();break;case"DeferAutoRefresh":if(!c){this.queueAutoRefresh()}break}},f:null,executionContext:function(a){if(arguments.length===1){this.f=a;return a}else{return this.f}},n:function(){return false},notifySetItem:function(a,b,c){if(this.n()){if(this.m){this.r.item(a,c)}else{this.r.item(a,c)}}if(this.updateNotifier()!=null){this.updateNotifier().notifySetItem(a,b,c)}},notifyClearItems:function(){if(this.n()){if(this.m){}else{this.r.clear()}}if(this.updateNotifier()!=null){this.updateNotifier().notifyClearItems()}},notifyInsertItem:function(a,b){if(this.n()){if(this.m){}else{this.r.insert(a,b)}}var c=0;if(this.m){}else{c=this.r.count()}if(this.r!=null&&c==1&&(this.actualSchema()==null||this.actualSchema().propertyNames().length==0)){this.g=null;this.y()}if(this.updateNotifier()!=null){this.updateNotifier().notifyInsertItem(a,b)}},notifyRemoveItem:function(a,b){if(this.n()){if(this.m){}else{this.r.remove(a)}}if(this.updateNotifier()!=null){this.updateNotifier().notifyRemoveItem(a,b)}},e:null,updateNotifier:function(a){if(arguments.length===1){this.e=a;return a}else{return this.e}},l:false,deferAutoRefresh:function(a){if(arguments.length===1){var b=this.l;this.l=a;if(this.l!=b){this.ab("DeferAutoRefresh",b,this.l)}return a}else{return this.l}},isSortingSupported:function(){return false},isFilteringSupported:function(){return false},sortDescriptions:function(){return this.j},filterExpressions:function(){return this.d},notifyUsingSourceIndexes:function(){return true},a:null,propertiesRequested:function(a){if(arguments.length===1){this.a=a;return a}else{return this.a}},isItemIndexLookupSupported:function(){return true},isKeyIndexLookupSupported:function(){return false},isGroupingSupported:function(){return false},groupDescriptions:function(){return this.i},k:false,queueAutoRefresh:function(){if(this.deferAutoRefresh()){return}if(this.k){return}if(this.executionContext()!=null){this.k=true;this.executionContext().enqueueAction(this.x.runOn(this))}},x:function(){if(this.deferAutoRefresh()){this.k=false;return}if(!this.k){return}this.k=false;this.ad()},ad:function(){this.ae()},ae:function(){},flushAutoRefresh:function(){this.x()},refresh:function(){this.ad()},indexOfItem:function(a){if(this.r==null){return-1}return this.r.indexOf(a)},indexOfKey:function(a){return-1},$type:new $.ig.Type("DataSourceLocalDataProvider",$.ig.$ot,[$$t.$af.$type])},true);$c("IDataSourceExecutionContext:ad","Object",{$type:new $.ig.Type("IDataSourceExecutionContext",null)},true);$c("DataSourceExecutionContext:b","Object",{_requestAnimationFrame:null,requestAnimationFrame:function(a){if(arguments.length===1){this._requestAnimationFrame=a;return a}else{return this._requestAnimationFrame}},init:function(){$.ig.$op.init.call(this);this.requestAnimationFrame(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){window.setTimeout(callback,1e3/60)})},enqueueAction:function(a){window.setTimeout(function(){a()},0)},execute:function(a){window.setTimeout(function(){a()},0)},executeDelayed:function(a,b){window.setTimeout(function(){a()},b)},$type:new $.ig.Type("DataSourceExecutionContext",$.ig.$ot,[$$t.$ad.$type])},true);$c("FilterFactory:c","Object",{init:function(){$.ig.$op.init.call(this)},instance:function(){if($$t.$c.as==null){$$t.$c.as=new $$t.c}return $$t.$c.as},build:function(a){var b=$$t.$c.instance();return a(b)},property:function(a){return $$t.$j.property(a)},literal:function(a){return $$t.$j.literal(a)},group:function(a){return $$t.$j.operation(a,15,null)},and:function(a,b){return $$t.$j.operation(a,7,b)},or:function(a,b){return $$t.$j.operation(a,8,b)},not:function(a){return $$t.$j.operation(a,9,null)},add:function(a,b){return $$t.$j.operation(a,10,b)},divide:function(a,b){return $$t.$j.operation(a,13,b)},equal:function(a,b){return $$t.$j.operation(a,1,b)},greaterThan:function(a,b){return $$t.$j.operation(a,3,b)},greaterThanOrEqual:function(a,b){return $$t.$j.operation(a,4,b)},lessThan:function(a,b){return $$t.$j.operation(a,5,b)},lessThanOrEqual:function(a,b){return $$t.$j.operation(a,6,b)},modulus:function(a,b){return $$t.$j.operation(a,14,b)},multiply:function(a,b){return $$t.$j.operation(a,12,b)},notEqual:function(a,b){return $$t.$j.operation(a,2,b)},subtract:function(a,b){return $$t.$j.operation(a,11,b)},ceiling:function(a){return $$t.$j.func(19,[a])},concat:function(a,b){return $$t.$j.func(10,[a,b])},concat1:function(a,b){return $$t.$j.func(10,[a,$$t.$j.literal(b)])},contains:function(a,b){if(typeof b==="string"){b=$$t.$j.literal(b)}return $$t.$j.func(0,[a,b])},day:function(a){return $$t.$j.func(11,[a])},endsWith:function(a,b){if(typeof b==="string"){b=$$t.$j.literal(b)}return $$t.$j.func(1,[a,b])},floor:function(a){return $$t.$j.func(18,[a])},hour:function(a){return $$t.$j.func(12,[a])},indexOf:function(a,b){if(typeof b==="string"){b=$$t.$j.literal(b)}return $$t.$j.func(4,[a,b])},length:function(a){return $$t.$j.func(3,[a])},minute:function(a){return $$t.$j.func(13,[a])},month:function(a){return $$t.$j.func(14,[a])},replace:function(a,b,c){if(typeof b==="string"){b=$$t.$j.literal(b)}if(typeof c==="string"){c=$$t.$j.literal(c)}return $$t.$j.func(5,[a,b,c])},round:function(a){return $$t.$j.func(17,[a])},second:function(a){return $$t.$j.func(15,[a])},startsWith:function(a,b){if(typeof b==="string"){b=$$t.$j.literal(b)}return $$t.$j.func(2,[a,b])},substring:function(a,b,c){if(typeof b==="number"){b=$$t.$j.literal(b)}if(c!=null&&typeof c==="number"){c=$$t.$j.literal(c)}if(c!=null){return $$t.$j.func(6,[a,b,c])}else{return $$t.$j.func(6,[a,b])}},toLower:function(a){return $$t.$j.func(7,[a])},toUpper:function(a){return $$t.$j.func(8,[a])},trim:function(a){return $$t.$j.func(9,[a])},year:function(a){return $$t.$j.func(16,[a])},date:function(a){return $$t.$j.func(20,[a])},time:function(a){return $$t.$j.func(21,[a])},now:function(){return $$t.$j.func(16,[])},isOf:function(a,b){return $$t.$j.func(16,[a])},cast:function(a,b){return $$t.$j.func(24,[a])},$type:new $.ig.Type("FilterFactory",$.ig.$ot)},true);$c("IFilterExpression:e","Object",{$type:new $.ig.Type("IFilterExpression",null)},true);$c("IOperationFilterExpression:f","Object",{$type:new $.ig.Type("IOperationFilterExpression",null,[$$t.$e.$type])},true);$c("IFunctionFilterExpression:g","Object",{$type:new $.ig.Type("IFunctionFilterExpression",null,[$$t.$e.$type])},true);$c("ILiteralFilterExpression:h","Object",{$type:new $.ig.Type("ILiteralFilterExpression",null,[$$t.$e.$type])},true);$c("IPropertyReferenceFilterExpression:i","Object",{$type:new $.ig.Type("IPropertyReferenceFilterExpression",null,[$$t.$e.$type])},true);$c("FilterExpression:j","Object",{init:function(){this.ay=false;this.az=false;$.ig.$op.init.call(this)},ay:false,precedence:function(){},az:false,markAutoGenerated:function(){this.az=true},isAutoGenerated:function(){return this.az},isFilterExpression:function(a){return $b($$t.$e.$type,a)!==null},operation:function(a,b,c){if($$t.$j.isFilterExpression(a)){var d=a;if($$t.$j.isFilterExpression(c)){var e=c;return new $$t.k(d,b,e)}else{return new $$t.k(d,b,c)}}else{var f=a;if($$t.$j.isFilterExpression(c)){var g=c;return new $$t.k(f,b,g)}else{return new $$t.k(f,b,c)}}},func:function(a,b){return new $$t.l(a,b)},a4:function(){this.ay=this.a2()},a2:function(){},property:function(a){if(a==null){return null}var b=new $$t.m(null);b.propertyReference(a);return b},nullLiteral:function(){var a=new $$t.n(null,false);return a},literal:function(a){var b=new $$t.n(a,false);return b},unquotedLiteral:function(a){var b=new $$t.n(a,true);return b},match:function(a,b,c){var d=this.evaluate(a,b,c);return this.a3(d,b,c)},a3:function(a,b,c){if(!this.ay){return this.a0(a,b,c)}return a},a0:function(a,b,c){return $$6.$g.toBoolean(a)},evaluate:function(a,b,c){},isPropertyReference:function(){return false},isOperation:function(){return false},isFunction:function(){return false},isLiteral:function(){return false},isNull:function(){return false},group:function(){return $$t.$j.operation(this,15,null)},and:function(a){return $$t.$j.operation(this,7,a)},or:function(a){return $$t.$j.operation(this,8,a)},not:function(){return $$t.$j.operation(this,9,null)},add:function(a){if($$t.$j.isFilterExpression(a)){var b=a;return $$t.$j.operation(this,10,b)}else{return $$t.$j.operation(this,10,a)}},plus:function(a){if($$t.$j.isFilterExpression(a)){var b=a;return $$t.$j.operation(this,10,b)}else{return $$t.$j.operation(this,10,a)}},divide:function(a){if($$t.$j.isFilterExpression(a)){var b=a;return $$t.$j.operation(this,13,b)}else{return $$t.$j.operation(this,13,a)}},divideBy:function(a){if($$t.$j.isFilterExpression(a)){var b=a;return $$t.$j.operation(this,13,b)}else{return $$t.$j.operation(this,13,a)}},isEqualTo:function(a){if($$t.$j.isFilterExpression(a)){var b=a;return $$t.$j.operation(this,1,b)}else{return $$t.$j.operation(this,1,a)}},isGreaterThan:function(a){if($$t.$j.isFilterExpression(a)){var b=a;return $$t.$j.operation(this,3,b)}else{return $$t.$j.operation(this,3,a)}},isGreaterThanOrEqualTo:function(a){if($$t.$j.isFilterExpression(a)){var b=a;return $$t.$j.operation(this,4,b)}else{return $$t.$j.operation(this,4,a)}},isLessThan:function(a){if($$t.$j.isFilterExpression(a)){var b=a;return $$t.$j.operation(this,5,b)}else{return $$t.$j.operation(this,5,a)}},isLessThanOrEqualTo:function(a){if($$t.$j.isFilterExpression(a)){var b=a;return $$t.$j.operation(this,6,b)}else{return $$t.$j.operation(this,6,a)}},modulo:function(a){if($$t.$j.isFilterExpression(a)){var b=a;return $$t.$j.operation(this,14,b)}else{return $$t.$j.operation(this,14,a)}},multiply:function(a){if($$t.$j.isFilterExpression(a)){var b=a;return $$t.$j.operation(this,12,b)}else{return $$t.$j.operation(this,12,a)}},times:function(a){if($$t.$j.isFilterExpression(a)){var b=a;return $$t.$j.operation(this,12,b)}else{return $$t.$j.operation(this,12,a)}},isNotEqualTo:function(a){if($$t.$j.isFilterExpression(a)){var b=a;return $$t.$j.operation(this,2,b)}else{return $$t.$j.operation(this,2,a)}},subtract:function(a){if($$t.$j.isFilterExpression(a)){var b=a;return $$t.$j.operation(this,11,b)}else{return $$t.$j.operation(this,11,a)}},minus:function(a){if($$t.$j.isFilterExpression(a)){var b=a;return $$t.$j.operation(this,11,b)}else{return $$t.$j.operation(this,11,a)}},ceiling:function(){return $$t.$j.func(19,[this])},concat:function(a){if($$t.$j.isFilterExpression(a)){var b=a;return $$t.$j.func(10,[this,b])}else{var c=a;return $$t.$j.func(10,[this,$$t.$j.literal(c)])}},contains:function(a){if($$t.$j.isFilterExpression(a)){var b=a;return $$t.$j.func(0,[this,b])}else{var c=a;return $$t.$j.func(0,[this,$$t.$j.literal(c)])}},day:function(){return $$t.$j.func(11,[this])},endsWith:function(a){if($$t.$j.isFilterExpression(a)){var b=a;return $$t.$j.func(1,[this,b])}else{var c=a;return $$t.$j.func(1,[this,$$t.$j.literal(c)])}},floor:function(){return $$t.$j.func(18,[this])},hour:function(){return $$t.$j.func(12,[this])},indexOf:function(a){if($$t.$j.isFilterExpression(a)){var b=a;return $$t.$j.func(4,[this,b])}else{var c=a;return $$t.$j.func(4,[this,$$t.$j.literal(c)])}},length:function(){return $$t.$j.func(3,[this])},minute:function(){return $$t.$j.func(13,[this])},month:function(){return $$t.$j.func(14,[this])},replace:function(a,b){if($$t.$j.isFilterExpression(a)){var c=a;if($$t.$j.isFilterExpression(b)){var d=b;return $$t.$j.func(5,[this,c,d])}else{var e=b;return $$t.$j.func(5,[this,c,$$t.$j.literal(e)])}}else{var f=a;if($$t.$j.isFilterExpression(b)){var g=b;return $$t.$j.func(5,[this,$$t.$j.literal(f),g])}else{var h=b;return $$t.$j.func(5,[this,$$t.$j.literal(f),$$t.$j.literal(h)])}}},round:function(){return $$t.$j.func(17,[this])},second:function(){return $$t.$j.func(15,[this])},startsWith:function(a){if($$t.$j.isFilterExpression(a)){var b=a;return $$t.$j.func(2,[this,b])}else{var c=a;return $$t.$j.func(2,[this,$$t.$j.literal(c)])}},substring:function(a,b){if($$t.$j.isFilterExpression(a)){var c=a;if(b==null){return $$t.$j.func(6,[this,c])}else{if($$t.$j.isFilterExpression(b)){var d=b;return $$t.$j.func(6,[this,c,d])}else{var e=$h(b);return $$t.$j.func(6,[this,c,$$t.$j.literal(e)])}}}else{var f=$h(a);if(b==null){return $$t.$j.func(6,[this,$$t.$j.literal(f)])}else{if($$t.$j.isFilterExpression(b)){var g=b;return $$t.$j.func(6,[this,$$t.$j.literal(f),g])}else{var h=$h(b);return $$t.$j.func(6,[this,$$t.$j.literal(f),$$t.$j.literal(h)])}}}},toLower:function(){return $$t.$j.func(7,[this])},toUpper:function(){return $$t.$j.func(8,[this])},trim:function(){return $$t.$j.func(9,[this])},year:function(){return $$t.$j.func(16,[this])},date:function(){return $$t.$j.func(20,[this])},time:function(){return $$t.$j.func(21,[this])},now:function(){return $$t.$j.func(22,[])},isOf:function(a){if($$t.$j.isFilterExpression(a)){var b=a;return $$t.$j.func(23,[this,b])}else{var c=a;return $$t.$j.func(23,[this,$$t.$j.literal(a)])}},cast:function(a){if($$t.$j.isFilterExpression(a)){var b=a;return $$t.$j.func(24,[this,b])}else{var c=a;return $$t.$j.func(24,[this,$$t.$j.literal(c)])}},$type:new $.ig.Type("FilterExpression",$.ig.$ot,[$$t.$e.$type])},true);$c("OperationFilterExpression:k","FilterExpression",{init:function(a,b,c){this.a6=null;this.a8=false;this.a7=null;this.a9=false;this.a5=0;$$t.$j.init.call(this);if(a!=null){if($$t.$j.isFilterExpression(a)){this.a6=a}else{this.propertyName(a)}}if(c!=null){if($$t.$j.isFilterExpression(c)){this.a7=c}else{this.value(c)}}this.a5=b},a6:null,a8:false,a7:null,a9:false,a5:0,isOperation:function(){return true},a2:function(){return this.bf()},isComparisonOperation:function(){var a=this.operator();switch(a){case 0:case 1:case 2:case 3:case 5:case 6:case 4:return true}return false},propertyName:function(a){if(arguments.length===1){this.left($$t.$j.property(a));return a}else{if(this.a6==null||!this.a6.isPropertyReference()){return null}return this.a6.propertyReference()}},hasPropertyName:function(){return this.a6!=null&&this.a6.isPropertyReference()},value:function(a){if(arguments.length===1){if(a==null){this.right($$t.$j.nullLiteral());return}this.right($$t.$j.literal(a));return a}else{if(this.a7==null){return null}if(this.a7.isNull()){return null}if(!this.a7.isLiteral()){return null}return this.a7.literalValue()}},hasValue:function(){return this.a7!=null},left:function(a){if(arguments.length===1){this.a6=a;this.a8=true;this.a4();return a}else{return this.a6}},hasLeft:function(){return this.a8},right:function(a){if(arguments.length===1){this.a7=a;this.a9=true;this.a4();return a}else{return this.a7}},hasRight:function(){return this.a9},operator:function(a){if(arguments.length===1){this.a5=a;this.a4();return a}else{return this.a5}},hasOperator:function(){return this.a5!=0},bf:function(){switch(this.operator()){case 7:case 1:case 3:case 4:case 5:case 6:case 9:case 2:case 8:return true}return false},precedence:function(){switch(this.operator()){case 15:return 0;case 9:return 4;case 12:return 6;case 13:return 7;case 14:return 8;case 10:return 9;case 11:return 10;case 5:return 11;case 3:return 12;case 6:return 13;case 4:return 14;case 1:return 16;case 2:return 17;case 7:return 18;case 8:return 19;case 0:return 99}return 99},evaluate:function(a,b,c){switch(this.operator()){case 10:case 13:case 14:case 12:case 11:return this.bh(a,b,c);case 0:case 1:case 3:case 4:case 5:case 6:case 2:return this.bi(a,b,c);case 7:case 9:case 8:return this.bj(a,b,c);case 15:if(this.left()!=null){return this.left().evaluate(a,b,c)}else{if(this.right()==null){return null}return this.right().evaluate(a,b,c)}}throw new $$6.q(0)},bi:function(a,b,c){var d=null;var e=null;var f=-1;if(this.left()!=null){d=this.left().evaluate(a,b,c)}if(this.right()!=null){e=this.right().evaluate(a,b,c)}if(d==null&&e==null){f=0}var g=null;var h=null;if($b($$0.$ah.$type,d)!==null){g=d}if($b($$0.$ah.$type,e)!==null){h=e}if(typeof d==="number"&&isNaN(d)||typeof e==="number"&&isNaN(e)||typeof d==="number"&&$.ig.util.isNaN(d)||typeof e==="number"&&$.ig.util.isNaN(e)){return false}if(g!=null){if(e==null){f=g.compareTo(0);if(f==0){f=-1}}else{f=g.compareTo(e)}}else if(h!=null){if(d==null){var i=h.compareTo(0);if(i==0){f=1}else{f=1;if(i==0){f=0}if(i>0){f=-1}}}else{var j=h.compareTo(d);f=1;if(j==0){f=0}if(j>0){f=-1}}}else{var k=null;var l=null;if(d!=null){k=d.toString()}if(e!=null){l=e.toString()}if(k!=null){if(l==null){f=1}else{f=k.compareTo(l)}}else if(l!=null){if(k==null){f=-1}else{var m=l.compareTo(k);f=1;if(m==0){f=0}if(m>0){f=-1}}}else{f=0}}switch(this.operator()){case 0:case 1:return f==0;case 3:return f>0;case 4:return f>=0;case 5:return f<0;case 6:return f<=0;case 2:return f!=0}throw new $$6.p(0)},bj:function(a,b,c){var d=null;var e=null;if(this.left()!=null){d=this.left().evaluate(a,b,c)}if(this.right()!=null){e=this.right().evaluate(a,b,c)}if(e==null&&d==null){return false}if(e==null){e=false}if(d==null){d=false}switch(this.operator()){case 7:return d&&e;case 9:if(this.left()==null){return!e}else{return!d}case 8:return d||e}return false},bh:function(a,b,c){var d=null;var e=null;if(this.left()!=null){d=this.left().evaluate(a,b,c)}if(this.right()!=null){e=this.right().evaluate(a,b,c)}if(d==null){return e}if(e==null){return d}if(d==null&&e==null){return 0}if(typeof d==="number"||typeof e==="number"){switch(this.operator()){case 10:return d+e;case 13:
return d/e;case 14:return d%e;case 12:return d*e;case 11:return d-e}}if(typeof d==="number"||typeof e==="number"){switch(this.operator()){case 10:return d+e;case 13:return d/e;case 14:return d%e;case 12:return d*e;case 11:return d-e}}if(typeof d==="number"||typeof e==="number"){switch(this.operator()){case 10:return d+e;case 13:return d/e;case 14:return d%e;case 12:return d*e;case 11:return d-e}}if(typeof d==="number"||typeof e==="number"){switch(this.operator()){case 10:return $h(d)+$h(e);case 13:return $a($h(d),$h(e));case 14:return $h(d)%$h(e);case 12:return $h(d)*$h(e);case 11:return $h(d)-$h(e)}}if(typeof d==="number"||typeof e==="number"){switch(this.operator()){case 10:return $h(d)+$h(e);case 13:return $a($h(d),$h(e));case 14:return $h(d)%$h(e);case 12:return $h(d)*$h(e);case 11:return $h(d)-$h(e)}}if(typeof d==="number"||typeof e==="number"){switch(this.operator()){case 10:return $h(d)+$h(e);case 13:return $a($h(d),$h(e));case 14:return $h(d)%$h(e);case 12:return $h(d)*$h(e);case 11:return $h(d)-$h(e)}}if(typeof d==="number"||typeof e==="number"){switch(this.operator()){case 10:return $h(d)+$h(e);case 13:return $a($h(d),$h(e));case 14:return $h(d)%$h(e);case 12:return $h(d)*$h(e);case 11:return $h(d)-$h(e)}}throw new $$6.q(0)},$type:new $.ig.Type("OperationFilterExpression",$$t.$j.$type,[$$t.$f.$type])},true);$c("FunctionFilterExpression:l","FilterExpression",{init:function(a,b){this.a6=19;this.a5=new $$t.q;$$t.$j.init.call(this);this.a6=a;for(var c=0;c<b.length;c++){this.a5.add(b[c])}},a6:0,a5:null,isFunction:function(){return true},a2:function(){return this.a7()},functionType:function(a){if(arguments.length===1){this.a6=a;this.a4();return a}else{return this.a6}},a7:function(){switch(this.functionType()){case 1:case 2:case 0:return true}return false},functionArguments:function(){return this.a5},hasFunctionArguments:function(){return this.a5.j().count()>0},evaluate:function(a,b,c){var d=null;var e=null;var f=null;var g=null;var h=this.functionArguments().j();if(h.count()>0){for(var i=0;i<h.count();i++){var j=null;if(h.item(i)!=null){j=h.item(i).evaluate(a,b,c)}switch(i){case 0:d=j;break;case 1:e=j;break;case 2:f=j;break;case 3:g=j;break}if(i>3){break}}}switch(this.functionType()){case 19:if(d==null){d=0}return Math.ceil(d);case 18:if(d==null){d=0}return Math.floor(d);case 17:if(d==null){d=0}if(typeof d==="number"){return Math.round(d)}return Math.round(d);case 11:if(d==null){return 0}return d.getDate();case 12:if(d==null){return 0}return d.getHours();case 13:if(d==null){return 0}return d.getMinutes();case 14:if(d==null){return 0}return $.ig.Date.prototype.getMonth(d);case 16:if(d==null){return 0}return d.getFullYear();case 15:if(d==null){return 0}return d.getSeconds();case 20:if(d==null){return 0}return $.ig.Date.prototype.getDate(d);case 21:if(d==null){return 0}return d;case 22:return $$0.$s.now();case 23:var k=this.ba(e,f);var l=d;if(l==null){return true}if(k==null){return false}if(k.isAssignableFrom(l.getType())){return true}return false;case 24:var m=this.ba(e,f);var n=d;if(n==null){return true}if(m==null){return false}if(!m.isAssignableFrom(n.getType())){return null}return this.a8(n,m);case 10:if(d==null){d=""}if(e==null){e=""}return String.concat(d,e);case 1:if(d==null){d=""}if(e==null){e=""}return d.endsWith(e);case 4:if(d==null){d=""}if(e==null){e=""}return d.indexOf(e);case 3:if(d==null){d=""}return d.length;case 5:if(d==null){d=""}if(e==null){e=""}if(f==null){f=""}return $ab(d,e,f);case 2:if(d==null){d=""}if(e==null){e=""}return d.startsWith(e);case 6:if(d==null){d=""}if(e==null){e=0}if(f!=null){return d.substr($h(e),$h(f))}else{return d.substr($h(e))}case 0:if(d==null){d=""}if(e==null){e=""}return d.contains(e);case 7:if(d==null){d=""}return d.toLowerCase();case 8:if(d==null){d=""}return d.toUpperCase();case 9:if(d==null){d=""}return d.trim()}throw new $$6.q(0)},precedence:function(){switch(this.functionType()){case 23:return 15;case 24:return 5}return 2},a8:function(a,b){if(b==String){if(a==null){return""}return a.toString()}else if(b==$$0.$aw.$type||b==$$0.$av.$type||b==$$0.$aw.$type){return $$6.$g.toInt321(a)}else if(b==$$0.$aq.$type){return $$6.$g.toBoolean(a)}else if(b==$$0.$ar.$type){return $$6.$g.toByte1(a)}else if(b==$$0.$s.$type){return $$6.$g.toDateTime(a)}else if(b==$$0.$ax.$type||b==$$0.$ax.$type){return $$6.$g.toInt64(a)}else if(b==$$0.$v.$type){return $$6.$g.toDecimal2(a)}else{return a}},ba:function(a,b){if($b($$t.$ai.$type,a)!==null||typeof a==="number"){var c=$h(a);switch(c){case 2:return $$0.$aq.$type;case 10:return $$0.$ar.$type;case 9:return $$0.$s.$type;case 8:return $$0.$s.$type;case 6:return $$0.$v.$type;case 5:return Number;case 1:return $$0.$aw.$type;case 3:return $$0.$ax.$type;case 11:if(b!=null&&typeof b==="string"){return this.a9(b)}return $.ig.$op.$type;case 4:return $$0.$av.$type;case 7:return $$0.$a8.$type;case 0:return String}}if(typeof a==="string"){return this.a9(b)}return $.ig.$op.$type},a9:function(a){switch(a){case"Edm.Boolean":case"Boolean":case"bool":case"boolean":return $$0.$aq.$type;case"Edm.Byte":case"Byte":case"byte":case"Edm.SByte":case"SByte":return $$0.$ar.$type;case"Edm.DateTimeOffset":case"DateTimeOffset":return $$0.$s.$type;case"Edm.DateTime":case"DateTime":case"Calendar":case"datetime":case"calendar":case"Edm.Time":case"Time":case"time":return $$0.$s.$type;case"Edm.Decimal":case"Decimal":case"decimal":return $$0.$v.$type;case"Edm.Double":case"Double":case"double":return Number;case"Edm.Float":case"Float":case"float":case"Edm.Single":case"Single":case"single":return $$0.$a8.$type;case"Edm.Int16":case"Int16":case"Short":case"short":return $$0.$av.$type;case"Edm.Int32":case"Int32":case"int":case"Integer":return $$0.$aw.$type;case"Edm.Int64":case"Int64":case"long":case"Long":return $$0.$ax.$type;case"Edm.String":case"String":case"string":return String}return $.ig.$op.$type},$type:new $.ig.Type("FunctionFilterExpression",$$t.$j.$type,[$$t.$g.$type])},true);$c("PropertyReferenceFilterExpression:m","FilterExpression",{init:function(a){this.a5=null;$$t.$j.init.call(this);this.a5=a},isPropertyReference:function(){return true},precedence:function(){return 99},a2:function(){return false},a5:null,propertyReference:function(a){if(arguments.length===1){this.a5=a;return a}else{return this.a5}},evaluate:function(a,b,c){var d=b.getItemValue(a,this.propertyReference());return d},$type:new $.ig.Type("PropertyReferenceFilterExpression",$$t.$j.$type,[$$t.$i.$type])},true);$c("LiteralFilterExpression:n","FilterExpression",{init:function(a,b){this.a6=null;this.a5=false;$$t.$j.init.call(this);this.a6=a},precedence:function(){return 99},a6:null,a5:false,isLiteral:function(){return true},isNull:function(){return this.literalValue()==null},literalValue:function(a){if(arguments.length===1){this.a6=a;return a}else{return this.a6}},leaveUnquoted:function(a){if(arguments.length===1){this.a5=a;return a}else{return this.a5}},a2:function(){return $b($$0.$aq.$type,this.literalValue())!==null},evaluate:function(a,b,c){return this.literalValue()},$type:new $.ig.Type("LiteralFilterExpression",$$t.$j.$type,[$$t.$h.$type])},true);$c("FilterExpressionCollection:q","Object",{a:null,syncTarget:function(a){if(arguments.length===1){if(a==null){this.f.syncTarget(null);this.a=null;return}this.a=a;this.f.syncTarget(this.a.f);return a}else{return this.a}},f:null,init:function(){$.ig.$op.init.call(this);this.f=new $.ig.SyncableObservableCollection$1($$t.$e.$type)},add:function(a){return this.f.add(a)},insert:function(a,b){this.f.add1(a,b)},clear:function(){this.f.clear()},get:function(a){return this.f.get(a)},indexOf:function(a){return this.f.indexOf(a)},remove:function(a){return this.f.remove1(a)},removeAt:function(a){return this.f.remove(a)},set:function(a,b){return this.f.set(a,b)},size:function(){return this.f.size()},_onChanged:function(a){if(arguments.length===1){this.f._onChanged(a);return a}else{return this.f._onChanged()}},_addListener:function(a){this.f.addListener(a)},_removeListener:function(a){this.f.removeListener(a)},j:function(){return this.f.all()},$type:new $.ig.Type("FilterExpressionCollection",$.ig.$ot)},true);$c("FilterExpressionVisitor:r","Object",{init:function(){$.ig.$op.init.call(this)},visit:function(a){if(a==null){throw new $$6.p(1,"Expected an expression but found none")}if(a.isOperation()){this.visitOperationExpression(a)}else if(a.isFunction()){this.visitFunctionExpression(a)}else if(a.isLiteral()){this.visitLiteralExpression(a)}else if(a.isPropertyReference()){this.visitPropertyReferenceExpression(a)}},visitOperationExpression:function(a){if(a.left()!=null){this.visit(a.left())}if(a.right()!=null){this.visit(a.right())}},visitFunctionExpression:function(a){for(var b=0;b<a.functionArguments().j().count();b++){this.visit(a.functionArguments().j().item(b))}},visitLiteralExpression:function(a){},visitPropertyReferenceExpression:function(a){},$type:new $.ig.Type("FilterExpressionVisitor",$.ig.$ot)},true);$c("IDataSource:s","Object",{$type:new $.ig.Type("IDataSource",null,[$$t.$w.$type,$$t.$v.$type])},true);$c("DataSourceSchemaChangedEventArgs:y","EventArgs",{d:0,b:null,init:function(a,b){$$0.$w.init.call(this);this.b=a;this.d=b},schema:function(){return this.b},count:function(){return this.d},$type:new $.ig.Type("DataSourceSchemaChangedEventArgs",$$0.$w.$type)},true);$c("IDataSourceDataProviderUpdateNotifier:aa","Object",{$type:new $.ig.Type("IDataSourceDataProviderUpdateNotifier",null,[$$t.$w.$type])},true);$c("DataSourceDataProviderSchemaChangedEventArgs:ac","EventArgs",{d:0,b:null,init:function(a,b){$$0.$w.init.call(this);this.b=a;this.d=b},schema:function(){return this.b},count:function(){return this.d},$type:new $.ig.Type("DataSourceDataProviderSchemaChangedEventArgs",$$0.$w.$type)},true);$c("IDataSourcePage:ag","Object",{$type:new $.ig.Type("IDataSourcePage",null)},true);$c("IDataSourceSchema:ah","Object",{$type:new $.ig.Type("IDataSourceSchema",null)},true);$c("DefaultDataSourceSchema:aj","Object",{c:null,d:null,a:null,b:null,init:function(a,b,c,d){$.ig.$op.init.call(this);this.c=a;this.d=b;this.a=c;this.b=d},primaryKey:function(){return this.a},propertyNames:function(){return this.c},propertyTypes:function(){return this.d},propertyDataIntents:function(){return this.b},$type:new $.ig.Type("DefaultDataSourceSchema",$.ig.$ot,[$$t.$ah.$type])},true);$c("IDataSourceUpdateNotifier:ak","Object",{$type:new $.ig.Type("IDataSourceUpdateNotifier",null)},true);$c("IDataSourceVirtualDataProvider:al","Object",{$type:new $.ig.Type("IDataSourceVirtualDataProvider",null,[$$t.$z.$type])},true);$c("IExternalDataSource:ao","Object",{$type:new $.ig.Type("IExternalDataSource",null)},true);$c("IExternalLocalDataSource:ap","Object",{$type:new $.ig.Type("IExternalLocalDataSource",null)},true);$c("IExternalVirtualDataSource:aq","Object",{$type:new $.ig.Type("IExternalVirtualDataSource",null)},true);$c("ISectionInformation:ar","Object",{$type:new $.ig.Type("ISectionInformation",null)},true);$c("DefaultSectionInformation:as","Object",{init:function(a,b,c,d){$.ig.$op.init.call(this);this.d=a;this.c=b;this.a=c;this.b=d},d:0,startIndex:function(){return this.d},c:0,a:null,b:null,endIndex:function(){return this.c},groupKeyValues:function(){return this.b},groupKeyProperties:function(){return this.a},$type:new $.ig.Type("DefaultSectionInformation",$.ig.$ot,[$$t.$ar.$type])},true);$c("ODataLiteralEmitter:at","Object",{$type:new $.ig.Type("ODataLiteralEmitter",null)},true);$c("DefaultODataLiteralEmitter:au","Object",{init:function(){$.ig.$op.init.call(this)},emitLiteral:function(a,b){if(a==null){return"null"}if($b($$0.$aq.$type,a)!==null){return a?"true":"false"}else if($b($$0.$s.$type,a)!==null){return this.a(a)}else if(typeof a==="string"){var c=a.toString();if(!b){c="'"+c+"'"}return c}else{return a.toString()}},b:function(a){var b=false;if($.ig.util.timeSpanTotalMilliseconds(a)<0){b=true;a=$.ig.util.timeSpanNegate(a)}var c=new $$6.aj(0);c.l("duration'");if(b){c.l("-")}c.l("P");if($.ig.util.timeSpanDays(a)>0){c.l($.ig.util.timeSpanDays(a).toString());c.l("D")}c.l("T");if($.ig.util.timeSpanHours(a)>0){c.j($.ig.util.timeSpanHours(a));c.l("H")}if($.ig.util.timeSpanMinutes(a)>0||$.ig.util.timeSpanHours(a)>0){c.j($.ig.util.timeSpanMinutes(a));c.l("M")}if($.ig.util.timeSpanSeconds(a)>0||$.ig.util.timeSpanMilliseconds(a)>0||$.ig.util.timeSpanHours(a)>0||$.ig.util.timeSpanMinutes(a)>0){c.j($.ig.util.timeSpanSeconds(a));if($.ig.util.timeSpanMilliseconds(a)>0){c.l(".");c.l(($.ig.util.timeSpanMilliseconds(a)/1e3).toString())}c.l("S")}c.l("'");return c.toString()},a:function(a){var b;if(a.getSeconds()==0&&a.getMilliseconds()==0){b=$.ig.Date.prototype.toStringFormat(a,"yyyy-MM-ddTHH:mm",null)}else if(a.getMilliseconds()==0){b=$.ig.Date.prototype.toStringFormat(a,"yyyy-MM-ddTHH:mm:ss",null)}else{b=$.ig.Date.prototype.toStringFormat(a,"yyyy-MM-ddTHH:mm:ss.fffffff",null)}return"datetime'"+b+"'"},$type:new $.ig.Type("DefaultODataLiteralEmitter",$.ig.$ot,[$$t.$at.$type])},true);$c("ODataDataSourceFilterExpressionVisitor:av","FilterExpressionVisitor",{h:null,f:null,init:function(a){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$r.init.call(this);this.f=new $$t.au;this.h=new $$6.aj(0)},init1:function(a,b){$$t.$av.init.call(this,0);this.f=b},toString:function(){return this.h.toString()},visitOperationExpression:function(a){var b=true;var c="";switch(a.operator()){case 10:c="add";break;case 7:c="and";break;case 13:c="div";break;case 0:case 1:c="eq";break;case 3:c="gt";break;case 4:c="ge";break;case 15:b=false;break;case 5:c="lt";break;case 6:c="le";break;case 14:c="mod";break;case 12:c="mul";break;case 9:c="not";b=false;break;case 2:c="ne";break;case 8:c="or";break;case 11:c="sub";break;default:c="eq";break}if(b){if(this.g(a,a.left())){this.h.l("(")}this.visit(a.left());if(this.g(a,a.left())){this.h.l(")")}this.h.l(" ");this.h.l(c);this.h.l(" ");if(this.g(a,a.right())){this.h.l("(")}this.visit(a.right());if(this.g(a,a.right())){this.h.l(")")}}else{if(a.operator()==15){this.h.l("(")}else{this.h.u(c+" ")}if(a.left()!=null){this.visit(a.left())}else{this.visit(a.right())}if(a.operator()==15){this.h.l(")")}}},g:function(a,b){var c=a.precedence();var d=b!=null?b.precedence():0;if(b!=null&&b.isOperation()&&b.operator()==15){return false}return d<c},visitFunctionExpression:function(a){var b="";switch(a.functionType()){case 19:b="ceiling";break;case 10:b="concat";break;case 0:b="contains";break;case 11:b="day";break;case 1:b="endswith";break;case 18:b="floor";break;case 12:b="hour";break;case 4:b="indexof";break;case 3:b="length";break;case 13:b="minute";break;case 14:b="month";break;case 5:b="replace";break;case 17:b="round";break;case 15:b="second";break;case 2:b="startswith";break;case 6:b="substring";break;case 7:b="tolower";break;case 8:b="toupper";break;case 9:b="trim";break;case 16:b="year";break}this.h.l(b);this.h.l("(");var c=true;for(var d=0;d<a.functionArguments().j().count();d++){if(c){c=false}else{this.h.l(", ")}this.visit(a.functionArguments().j().item(d))}this.h.l(")")},visitLiteralExpression:function(a){this.i(a,a.literalValue())},i:function(a,b){var c=this.f.emitLiteral(b,a.leaveUnquoted());this.h.l(c)},visitPropertyReferenceExpression:function(a){this.j(a.propertyReference())},j:function(a){this.h.l(a)},$type:new $.ig.Type("ODataDataSourceFilterExpressionVisitor",$$t.$r.$type)},true);$c("ODataDataSourceSchema:aw","Object",{a:null,c:null,d:null,b:null,init:function(a,b,c){this.a=null;$.ig.$op.init.call(this);this.c=a;this.d=b;this.a=c},propertyNames:function(){return this.c},primaryKey:function(){return this.a},propertyTypes:function(){return this.d},propertyDataIntents:function(){return this.b},$type:new $.ig.Type("ODataDataSourceSchema",$.ig.$ot,[$$t.$ah.$type])},true);$c("SortDescription:ax","Object",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$.ig.$op.init.call(this);this.propertyName(b)},a:false,init1:function(a,b,c){$.ig.$op.init.call(this);this.propertyName(b);this.direction(c)},f:null,propertyName:function(a){if(arguments.length===1){this.f=a;return a}else{return this.f}},c:0,direction:function(a){if(arguments.length===1){this.c=a;return a}else{return this.c}},equals:function(a){var b=a;if(b==null){return $.ig.$op.equals.call(this,a)}return b.propertyName()==this.propertyName()&&b.direction()==this.direction()},getHashCode:function(){return this.propertyName().getHashCode()*17+this.direction()},h:function(){this.a=true},$type:new $.ig.Type("SortDescription",$.ig.$ot)},true);$c("SortDescriptionCollection:ay","Object",{_getInner:function(){return this.f},d:null,syncTarget:function(a){if(arguments.length===1){if(a==null){this.f.syncTarget(null);this.d=null;return}this.d=a;this.f.syncTarget(this.d.f);return a}else{return this.d}},f:null,init:function(){$.ig.$op.init.call(this);this.f=new $.ig.SyncableObservableCollection$1($$t.$ax.$type)},add:function(a){return this.f.add(a)},insert:function(a,b){this.f.add1(a,b)},clear:function(){this.f.clear()},get:function(a){return this.f.get(a)},indexOf:function(a){return this.f.indexOf(a)},remove:function(a){return this.f.remove1(a)},removeAt:function(a){return this.f.remove(a)},set:function(a,b){return this.f.set(a,b)},size:function(){return this.f.size()},_addListener:function(a){this.f.addListener(a)},_removeListener:function(a){this.f.removeListener(a)},_onChanged:function(a){if(arguments.length===1){this.f._onChanged(a);return a}else{return this.f._onChanged()}},k:function(){return this.f.all()},$type:new $.ig.Type("SortDescriptionCollection",$.ig.$ot)},true);$c("BaseDataSource:az","Object",{init:function(){this.k=null;this.ad=0;this.ae=0;this.af=0;this.s=false;this.r=false;this.b=null;this.a=null;this.c=null;this.t=false;this.u=false;this.p=false;this.w=true;this.v=false;this.x=true;$.ig.$op.init.call(this);this.h=new $$t.a1(this);this.o=new $$t.ay;this.n=new $$t.ay;this.o._addListener(this.bt.runOn(this));this.n._addListener(this.a3.runOn(this));this.e=new $$t.q;this.e._addListener(this.a1.runOn(this))},bt:function(a,b){this.onSortDescriptionsChanged(b)},a3:function(a,b){this.onGroupDescriptionsChanged(b)},a1:function(a,b){this.onFilterExpressionsChanged(b)},onSortDescriptionsChanged:function(a){this.queueAutoRefresh()},onGroupDescriptionsChanged:function(a){if(this.isGroupingSupported()){if(this.groupDescriptions()!=null&&this.groupDescriptions().k().count()>0){this._aa=true}else{this._aa=false}this.queueAutoRefresh()}},_aa:false,onFilterExpressionsChanged:function(a){this.queueAutoRefresh()},isPlaceholderItem:function(a){return false},_ah:null,_m:null,o:null,n:null,e:null,f:null,actualBaseDataProvider:function(){},k:null,actualSchema:function(a){if(arguments.length===1){var b=this.k;this.k=a;if(b!=this.k){this.onPropertyUpdated("ActualSchema",b,this.k)}return a}else{return this.k}},ad:0,actualCount:function(a){if(arguments.length===1){var b=this.ad;this.ad=a;if(b!=this.ad){this.onPropertyUpdated("ActualCount",b,this.ad)}return a}else{return this.ad}},ae:0,firstVisibleIndexRequested:function(a){if(arguments.length===1){var b=this.ae;this.ae=a;if(b!=this.ae){this.onPropertyUpdated("FirstVisibleIndexRequested",b,this.ae)}return a}else{return this.ae}},af:0,lastVisibleIndexRequested:function(a){if(arguments.length===1){var b=this.af;this.af=a;if(b!=this.af){this.onPropertyUpdated("LastVisibleIndexRequested",b,this.af)}return a}else{return this.af}},l:null,updateNotifier:function(a){if(arguments.length===1){var b=this.l;this.l=a;if(b!=this.l){this.onPropertyUpdated("UpdateNotifier",b,this.l)}return a}else{return this.l}},getItemAtIndex:function(a){return null},getItemProperty:function(a,b){if(this.actualBaseDataProvider()!=null){var item_=a;if(item_!=null&&item_.$$isSpecialRow!==undefined){return this.getSpecialRowItemValue(a,b)}return this.actualBaseDataProvider().getItemValue(a,b)}return null},getSpecialRowItemValue:function(a,b){if(a.rowType()==3){return this.getItemProperty(a.targetRow(),b)}return a.getValue(b)},getItemPropertyAtIndex:function(a,b){return null},fullSectionInformationWillForceLoad:function(){return false},propertyChanged:null,onPropertyUpdated:function(a,b,c){if(this.propertyChanged!=null){this.propertyChanged(this,new $$0.b7(a))}this.propertyUpdatedOverride(a,b,c)},propertyUpdatedOverride:function(a,b,c){switch(a){case"PrimaryKey":this.actualPrimaryKey(this.primaryKey());break;case"ActualPrimaryKey":this.onActualPrimaryKeyChanged(b,c);break;case"ExecutionContext":if(this.actualBaseDataProvider()!=null){this.actualBaseDataProvider().executionContext(this.executionContext())}this.queueAutoRefresh();break;case"LastVisibleIndexRequested":case"FirstVisibleIndexRequested":this.onRequestedVisibleRangeChanged();break;case"ActualDataProvider":this.onActualDataProviderChanged(b,c);break;case"DeferAutoRefresh":if(this.actualBaseDataProvider()!=null){this.actualBaseDataProvider().deferAutoRefresh(this.deferAutoRefresh())}if(!c){this.queueAutoRefresh()}break;case"PropertiesRequested":if(this.actualBaseDataProvider()!=null){this.actualBaseDataProvider().propertiesRequested(this.propertiesRequested())}break;case"ShouldEmitSectionFooters":case"ShouldEmitSectionHeaders":case"ShouldEmitShiftedRows":this.queueAutoRefresh();break}},onActualPrimaryKeyChanged:function(a,b){this.onActualPrimaryKeyChangedOverrride(a,b)},onActualPrimaryKeyChangedOverrride:function(a,b){},isVirtual:function(){return false},h:null,dataProviderUpdateNotifier:function(){return this.h},onActualDataProviderChanged:function(a,b){var c=a;var d=b;if(c!=null){c.updateNotifier(null)}if(d!=null){d.updateNotifier(this.h)}if(c!=null){c.schemaChanged=$.ig.Delegate.prototype.remove(c.schemaChanged,this.ay.runOn(this))}if(d!=null){d.schemaChanged=$.ig.Delegate.prototype.combine(d.schemaChanged,this.ay.runOn(this));d.executionContext(this.executionContext());this.notifyUsingSourceIndexes(this.actualBaseDataProvider().notifyUsingSourceIndexes())}else{this.notifyUsingSourceIndexes(false)}if(c!=null){this.sortDescriptions().syncTarget(null);this.groupDescriptions().syncTarget(null);this.filterExpressions().syncTarget(null)}if(d!=null){this.sortDescriptions().syncTarget(d.sortDescriptions());this.groupDescriptions().syncTarget(d.groupDescriptions());this.filterExpressions().syncTarget(d.filterExpressions());if(this.propertiesRequested()!=null){d.propertiesRequested(this.propertiesRequested())}}this.queueAutoRefresh()},onRequestedVisibleRangeChanged:function(){},j:null,executionContext:function(a){if(arguments.length===1){var b=this.j;this.j=a;if(this.j!=b){this.onPropertyUpdated("ExecutionContext",b,this.j)}return a}else{return this.j}},schemaChanged:null,canInitialize:function(){if(this.j!=null&&this.actualBaseDataProvider()!=null){return true}return false},s:false,isInitializing:function(){return this.s},isSortingSupported:function(){return false},isFilteringSupported:function(){return false},sortDescriptions:function(){return this.o},groupDescriptions:function(){return this.n},filterExpressions:function(){return this.e},r:false,deferAutoRefresh:function(a){if(arguments.length===1){var b=this.r;this.r=a;if(this.r!=b){this.onPropertyUpdated("DeferAutoRefresh",b,this.r)}return a}else{return this.r}},b:null,primaryKey:function(a){if(arguments.length===1){var b=this.b;this.b=a;if(this.b!=b){this.onPropertyUpdated("PrimaryKey",b,this.b)}return a}else{return this.b}},a:null,actualPrimaryKey:function(a){if(arguments.length===1){var b=this.a;this.a=a;if(this.a!=b){this.onPropertyUpdated("ActualPrimaryKey",b,this.a)}return a}else{return this.a}},c:null,propertiesRequested:function(a){if(arguments.length===1){var b=this.c;this.c=a;if(this.c!=b){this.onPropertyUpdated("PropertiesRequested",b,this.c)}return a}else{return this.c}},t:false,notifyUsingSourceIndexes:function(a){if(arguments.length===1){var b=this.t;this.t=a;if(this.t!=b){this.onPropertyUpdated("NotifyUsingSourceIndexes",b,this.t)}return a}else{return this.t}},isItemIndexLookupSupported:function(){return false},isKeyIndexLookupSupported:function(){return false},initializeOverride:function(){},u:false,resolveFullCount:function(a){return a},ay:function(a,b){var $self=this;var c=this.executionContext();c.execute(function(){$self.u=true;$self.q=true;$self.queueAutoRefresh();if($self.deferAutoRefresh()){$self.actualSchema(b.schema());$self.actualCount($self.resolveFullCount(b.count()));$self.a5()}})},a5:function(){if(this.schemaChanged!=null){this.schemaChanged(this,new $$t.y(this.actualSchema(),this.actualCount()))}},onSetItem:function(a,b,c){this.onSetItemOverride(a,b,c)},onBroadcastSetItem:function(a,b,c){if(this.updateNotifier()!=null){this.updateNotifier().notifySetItem(a,b,c)}},onSetItemOverride:function(a,b,c){if(this.actualBaseDataProvider()!=null){this.actualCount(this.resolveFullCount(this.actualBaseDataProvider().actualCount()))}this.onBroadcastSetItem(a,b,c)},onClearItems:function(){this.onClearItemsOverride()},onBroadcastClearItems:function(){if(this.updateNotifier()!=null){this.updateNotifier().notifyClearItems()}},onClearItemsOverride:function(){if(this.actualBaseDataProvider()!=null){this.actualCount(this.resolveFullCount(this.actualBaseDataProvider().actualCount()))}this.onBroadcastClearItems()},onInsertItem:function(a,b){this.onInsertItemOverride(a,b)},onBroadcastInsertItem:function(a,b){if(this.updateNotifier()!=null){this.updateNotifier().notifyInsertItem(a,b)}},onInsertItemOverride:function(a,b){if(this.actualBaseDataProvider()!=null){this.actualCount(this.resolveFullCount(this.actualBaseDataProvider().actualCount()))}this.onBroadcastInsertItem(a,b)},onRemoveItem:function(a,b){this.onRemoveItemOverride(a,b)},onBroadcastRemoveItem:function(a,b){if(this.updateNotifier()!=null){this.updateNotifier().notifyRemoveItem(a,b)}},onRemoveItemOverride:function(a,b){if(this.actualBaseDataProvider()!=null){this.actualCount(this.resolveFullCount(this.actualBaseDataProvider().actualCount()))}this.onBroadcastRemoveItem(a,b)},notifySetItem:function(a,b,c){if(this.actualBaseDataProvider()!=null){this.actualBaseDataProvider().notifySetItem(a,b,c)}},notifyClearItems:function(){if(this.actualBaseDataProvider()!=null){this.actualBaseDataProvider().notifyClearItems()}},notifyInsertItem:function(a,b){if(this.actualBaseDataProvider()!=null){this.actualBaseDataProvider().notifyInsertItem(a,b)}},notifyRemoveItem:function(a,b){if(this.actualBaseDataProvider()!=null){this.actualBaseDataProvider().notifyRemoveItem(a,b)}},p:false,queueAutoRefresh:function(){if(this.deferAutoRefresh()){return}if(this.actualBaseDataProvider()!=null){this.actualBaseDataProvider().queueAutoRefresh()}if(this.p){return}if(this.executionContext()!=null){this.p=true;this.executionContext().enqueueAction(this.az.runOn(this))}},az:function(){if(this.deferAutoRefresh()){this.p=false;return}if(this.actualBaseDataProvider()!=null){this.actualBaseDataProvider().flushAutoRefresh()}if(!this.p){return}this.p=false;this.br()},br:function(){if(this.actualBaseDataProvider()!=null){this.actualSchema(this.actualBaseDataProvider().actualSchema());this.actualCount(this.resolveFullCount(this.actualBaseDataProvider().actualCount()))}if(this.actualSchema()!=null&&this.primaryKey()==null){this.actualPrimaryKey(this.actualSchema().primaryKey())}this.refreshInternalOverride();if(this.u){this.u=false;this.a5()}},refreshInternalOverride:function(){},flushAutoRefresh:function(){this.az()},refresh:function(){if(this.actualBaseDataProvider()!=null){this.actualBaseDataProvider().refresh()}this.br()},indexOfItem:function(a){return-1},indexOfKey:function(a){return-1},getPrimaryKeyValue:function(a,b){var c=this.actualPrimaryKey();if(c==null||c.length<1||this.actualBaseDataProvider()==null){return}for(var d=0;d<c.length;d++){b[d]=this.actualBaseDataProvider().getItemValue(a,c[d])}},getRowType:function(a){return 0},getMainValuePath:function(a){return"SectionInformation"},getStickyRows:function(){return null},isRowSpanning:function(a){return a==1||a==2},getStickyRowPriority:function(a){return-1},isExclusivelySticky:function(a){return false},pinRow:function(a){},unpinRow:function(a){},clearPinnedRows:function(){},isRowPinned:function(a){return false},isGroupingSupported:function(){return false},w:false,shouldEmitSectionHeaders:function(a){if(arguments.length===1){var b=this.w;this.w=a;if(this.w!=b){this.onPropertyUpdated("ShouldEmitSectionHeaders",b,this.w)}return a}else{return this.w}},v:false,shouldEmitSectionFooters:function(a){if(arguments.length===1){var b=this.v;this.v=a;if(this.v!=b){this.onPropertyUpdated("ShouldEmitSectionFooters",b,this.v)}return a}else{return this.v}},x:false,shouldEmitShiftedRows:function(a){if(arguments.length===1){var b=this.x;this.x=a;if(this.x!=b){this.onPropertyUpdated("ShouldEmitShiftedRows",b,this.x)}return a}else{return this.x}},q:false,d:null,ensureComparables:function(a){if(this.q&&this.actualCount()>0){this.d=new Array(a.propertyNames().length);this.q=false}},resolveSchemaPropertyType:function(a){return this.actualBaseDataProvider().resolveSchemaPropertyType(a)},$type:new $.ig.Type("BaseDataSource",$.ig.$ot,[$$t.$s.$type])},true);$c("SectionData:a0","Object",{init:function(){$.ig.$op.init.call(this)},_f:0,_g:0,_e:0,_a:null,_b:null,_d:0,_c:0,$type:new $.ig.Type("SectionData",$.ig.$ot)},true);$c("DefaultDataSourceDataProviderUpdateNotifier:a1","Object",{a:null,init:function(a){$.ig.$op.init.call(this);this.a=a},notifySetItem:function(a,b,c){this.a.onSetItem(a,b,c)},notifyClearItems:function(){this.a.onClearItems()},notifyInsertItem:function(a,b){this.a.onInsertItem(a,b)},notifyRemoveItem:function(a,b){this.a.onRemoveItem(a,b)},$type:new $.ig.Type("DefaultDataSourceDataProviderUpdateNotifier",$.ig.$ot,[$$t.$aa.$type])},true);$c("DataSourceSpecialRow:a2","Object",{init:function(){this.$$isSpecialRow=true;this.e=new $$4.h(String,$.ig.$op.$type,0);this.d=new $$4.h(String,$.ig.$op.$type,0);$.ig.$op.init.call(this)},$$isSpecialRow:false,e:null,d:null,_rowType:0,rowType:function(a){if(arguments.length===1){this._rowType=a;return a}else{return this._rowType}},_targetRow:null,targetRow:function(a){if(arguments.length===1){this._targetRow=a;return a}else{return this._targetRow}},getValue:function(a){var $self=this;if(a=="SectionInformation"){return this.d}var b;if(function(){var c=$self.e.tryGetValue(a,b);b=c.p1;return c.ret}()){return b}return null},getSectionValue:function(a){var $self=this;var b;if(function(){var c=$self.d.tryGetValue(a,b);b=c.p1;return c.ret}()){return b}return null},setValue:function(a,b){this.e.item(a,b)},setSectionValue:function(a,b){this.d.item(a,b)},getSectionKeys:function(){var a=new Array(this.d.keys().count());var b=0;var d=this.d.keys().getEnumerator();while(d.moveNext()){var c=d.current();a[b]=c;b++}return a},$type:new $.ig.Type("DataSourceSpecialRow",$.ig.$ot)},true);$c("LocalDataSource:a3","BaseDataSource",{actualBaseDataProvider:function(){return this.actualDataProvider()},bw:null,dataProvider:function(a){if(arguments.length===1){var b=this.bw;this.bw=a;if(b!=this.bw){this.onPropertyUpdated("DataProvider",b,this.bw)}return a}else{return this.bw}},bv:null,actualDataProvider:function(a){if(arguments.length===1){var b=this.bv;this.bv=a;if(b!=this.bv){this.onPropertyUpdated("ActualDataProvider",b,this.bv)}return a}else{if(this.bv==null){this.actualDataProvider(this.resolveDataProvider())}return this.bv}},ch:null,itemsSource:function(a){if(arguments.length===1){var b=this.ch;this.ch=a;if(b!=this.ch){this.onPropertyUpdated("ItemsSource",b,this.ch)}return a}else{return this.ch}},canInitialize:function(){var a=$$t.$az.canInitialize.call(this);if(!a){return false}return this.itemsSource()!=null},b1:null,b2:function(a){if(arguments.length===1){this.b1=a;this.actualDataProvider(this.resolveDataProvider());return a}else{return this.b1}},init:function(){this.b5=null;this.b3=null;this.cg=new $$4.x(Array,0);this.b8=false;this.bu=null;this.cl=-1;this.cj=-1;this.cm=-1;this.ck=-1;$$t.$az.init.call(this);this.executionContext(new $$t.b)},resolveDataProvider:function(){var provider_=new $$t.a;provider_.executionContext(new $$t.b);return provider_},propertyUpdatedOverride:function(a,b,c){
$$t.$az.propertyUpdatedOverride.call(this,a,b,c);switch(a){case"DataProvider":this.actualDataProvider(this.dataProvider());break;case"ActualDataProvider":if(this.actualDataProvider()!=null){this.actualDataProvider().dataSource(this.itemsSource());this.actualSchema(this.actualDataProvider().actualSchema());this.actualCount(this.resolveFullCount(this.actualDataProvider().actualCount()))}this.queueAutoRefresh();break;case"ItemsSource":if(this.actualDataProvider()!=null){this.actualDataProvider().dataSource(this.itemsSource());this.actualSchema(this.actualDataProvider().actualSchema());this.actualCount(this.resolveFullCount(this.actualDataProvider().actualCount()))}this.queueAutoRefresh();break}},getItemAtIndex:function(a){if(this.b5!=null&&this.b5.view()!=null){return this.b5.view().item(a)}else{return this.actualDataProvider().getItemAtIndex(a)}},getItemPropertyAtIndex:function(a,b){var c;if(this.b5!=null){c=this.b5.view().item(a)}else{c=this.actualDataProvider().getItemAtIndex(a)}var item_=c;if(item_!=null&&item_.$$isSpecialRow!==undefined){return this.getSpecialRowItemValue(c,b)}return this.actualDataProvider().getItemValue(c,b)},b5:null,b7:null,b0:function(){return this.actualDataProvider()},ca:function(){return this.cg!=null&&this.cg.count()>0},refreshInternalOverride:function(){$$t.$az.refreshInternalOverride.call(this);if(this.actualDataProvider()!=null){if(this.cb()||this.cc()||this.cd()||this.ca()){if(this.b5==null){if(this.b7==null){this.b7=new $$t.a5(this)}this.b5=new $$t.bd(this.actualDataProvider());this.b5.updateNotifier(this.b7)}this.ensureComparables(this.actualDataProvider().actualSchema());this.b5.shouldEmitSectionHeaders(this.shouldEmitSectionHeaders()&&this._aa);this.b5.shouldEmitSectionFooters(this.shouldEmitSectionFooters()&&this._aa);this.b5.shouldEmitShiftedRows(this.shouldEmitShiftedRows());this.b5.setPinnedKeys(this.cg);this.b5.sortComparer(this.cf());this.b5.groupComparer(this.ce());this.b5.primaryKeyComparer(this.b4());this.b5.groupDescriptions(this.groupDescriptions());this.b5.sortDescriptions(this.sortDescriptions());this.b5.dataSource(this);this.b5.isGrouping(this.groupDescriptions()!=null&&this.groupDescriptions().k().count()>0);this.b5.filter(this.b6());this.b5.refresh();this.actualSchema(this.actualDataProvider().actualSchema());this.actualCount(this.b5.view().count())}else{var a=this.b0();this.actualSchema(this.actualDataProvider().actualSchema());if(a!=null){this.actualCount(a.actualCount())}else{this.actualCount(0)}if(this.b5!=null){this.b5.updateNotifier(null);this.b5=null;this.onBroadcastClearItems()}}}else{this.actualCount(0);this.actualSchema(null)}},isItemIndexLookupSupported:function(){return true},isKeyIndexLookupSupported:function(){return true},indexOfItem:function(a){if(this.b5!=null){return this.b5.view().indexOf(a)}if(this.actualDataProvider()!=null&&this.actualDataProvider().isItemIndexLookupSupported()){return this.actualDataProvider().indexOfItem(a)}if(this.actualDataProvider()!=null){var b=this.actualDataProvider().actualCount();var c;for(var d=0;d<b;d++){c=this.actualDataProvider().getItemAtIndex(d);if(this.b9(c,a)){return d}}}return-1},b9:function(a,b){if(a==null&&b==null){return true}if(a==null||b==null){return false}return a.equals(b)},indexOfKey:function(a){var b=this.actualPrimaryKey();if(b==null||b.length<1||this.actualBaseDataProvider()==null){return this.indexOfItem(a[0])}var c=this.b4();var d;if(this.b5!=null){var e=this.b5.view().count();for(var f=0;f<e;f++){d=this.b5.view().item(f);if(!($b($$t.$a2.$type,d)!==null)&&c.compareToKey(d,a)==0){return f}}}if(this.actualDataProvider()!=null&&this.actualDataProvider().isKeyIndexLookupSupported()){return this.actualDataProvider().indexOfKey(a)}if(this.actualDataProvider()!=null){var g=this.actualDataProvider().actualCount();for(var h=0;h<g;h++){d=this.actualDataProvider().getItemAtIndex(h);if(c.compareToKey(d,a)==0){return h}}}return-1},onActualPrimaryKeyChangedOverrride:function(a,b){$$t.$az.onActualPrimaryKeyChangedOverrride.call(this,a,b);this.b3=null},b3:null,b4:function(){if(this.b3!=null){return this.b3}if(this.actualPrimaryKey()==null){this.b3=new $$t.a4(null,null,null,this);return this.b3}var a=new Array(this.actualPrimaryKey().length);for(var b=0;b<a.length;b++){a[b]=0}this.b3=new $$t.a4(this.actualPrimaryKey(),a,this.d,this);return this.b3},b6:function(){if(this.filterExpressions().j().count()==0){return null}var a=this.actualDataProvider();var b=this.actualDataProvider().actualSchema();var c=this.filterExpressions().j();var d=function(e){for(var f=0;f<c.count();f++){if(!c.item(f).match(e,a,b)){return false}}return true};return d},cf:function(){var a=0;if(this.sortDescriptions().k().count()==0&&(this.groupDescriptions()==null||this.groupDescriptions().k().count()==0)){return null}a=this.sortDescriptions().k().count();if(this.groupDescriptions()!=null){a+=this.groupDescriptions().k().count()}var b=new Array(a);var c=new Array(a);var d=0;if(this.groupDescriptions()!=null){for(var e=0;e<this.groupDescriptions().k().count();e++){b[e]=this.groupDescriptions().k().item(e).propertyName();c[e]=this.groupDescriptions().k().item(e).direction();d++}}for(var f=0;f<this.sortDescriptions().k().count();f++){b[f+d]=this.sortDescriptions().k().item(f).propertyName();c[f+d]=this.sortDescriptions().k().item(f).direction()}return new $$t.a4(b,c,this.d,this)},ce:function(){if(this.groupDescriptions()==null||this.groupDescriptions().k().count()<1){return null}var a=0;a=this.groupDescriptions().k().count();var b=new Array(a);var c=new Array(a);if(this.groupDescriptions()!=null){for(var d=0;d<this.groupDescriptions().k().count();d++){b[d]=this.groupDescriptions().k().item(d).propertyName();c[d]=this.groupDescriptions().k().item(d).direction()}}return new $$t.a4(b,c,this.d,this)},cc:function(){if(this.groupDescriptions()==null||this.groupDescriptions().k().count()<1){return false}if(this.actualDataProvider()==null){return false}if(this.actualDataProvider().isGroupingSupported()){return false}return true},cd:function(){if(this.sortDescriptions()==null||this.sortDescriptions().k().count()<1){return false}if(this.actualDataProvider()==null){return false}if(this.actualDataProvider().isSortingSupported()){return false}return true},cb:function(){return this.filterExpressions()!=null&&this.filterExpressions().j().count()>0},onClearItemsOverride:function(){if(this.b5!=null){this.b5.notifyClearItems()}else{$$t.$az.onClearItemsOverride.call(this)}},onSetItemOverride:function(a,b,c){if(this.b5!=null){this.b5.notifySetItem(a,b,c)}else{$$t.$az.onSetItemOverride.call(this,a,b,c)}},onInsertItemOverride:function(a,b){if(this.b5!=null){this.b5.notifyInsertItem(a,b)}else{$$t.$az.onInsertItemOverride.call(this,a,b)}},onRemoveItemOverride:function(a,b){if(this.b5!=null){this.b5.notifyRemoveItem(a,b)}else{$$t.$az.onRemoveItemOverride.call(this,a,b)}},cq:function(){this.actualCount(this.b5.view().count());this.onBroadcastClearItems()},ct:function(a,b,c){this.actualCount(this.b5.view().count());this.onBroadcastSetItem(a,b,c)},cr:function(a,b){this.actualCount(this.b5.view().count());this.onBroadcastInsertItem(a,b)},cs:function(a,b){this.actualCount(this.b5.view().count());this.onBroadcastRemoveItem(a,b)},cg:null,pinRow:function(a){$$t.$az.pinRow.call(this,a);this.cl=-1;this.cj=-1;if(this.b5!=null){this.cg.add(a);this.b5.pinRow(a)}else{this.cg.add(a);this.queueAutoRefresh()}},unpinRow:function(a){$$t.$az.unpinRow.call(this,a);var b=this.b4();if(this.b5!=null){for(var c=this.cg.count()-1;c>=0;c--){var d=this.cg.__inner[c];if(d.length!=a.length){continue}if(b.compareKeys(d,a)==0){this.cg.removeAt(c);this.b5.unpinRow(d)}}}else{for(var e=this.cg.count()-1;e>=0;e--){var f=this.cg.__inner[e];if(f.length!=a.length){continue}if(b.compareKeys(f,a)==0){this.cg.removeAt(e)}}this.queueAutoRefresh()}this.cl=-1;this.cj=-1},isRowPinned:function(a){if(this.b5==null){return false}var b=this.getItemAtIndex(a);if(b==null){return false}var item_=b;if(item_!=null&&item_.$$isSpecialRow!==undefined){if(item_.rowType()==3){return true}}var c=this.b4();var d;if(this.actualPrimaryKey()==null){d=new Array(1);d[0]=b}else{var e=this.actualPrimaryKey();var f=e.length;d=new Array(f);for(var g=0;g<f;g++){d[g]=this.getItemProperty(b,e[g])}}for(var h=0;h<this.cg.count();h++){if(c.compareKeys(this.cg.__inner[h],d)==0){return true}}return false},b8:false,isSortingSupported:function(){if(this._m!=null&&!this.b8){this.b8=true;var a=this._m.isSortingSupportedOverride();this.b8=false;return a}return true},isFilteringSupported:function(){if(this._m!=null&&!this.b8){this.b8=true;var a=this._m.isFilteringSupportedOverride();this.b8=false;return a}return true},isGroupingSupported:function(){if(this._m!=null&&!this.b8){this.b8=true;var a=this._m.isGroupingSupportedOverride();this.b8=false;return a}return true},getStickyRowPriority:function(a){if(this.getRowType(a)==1||this.getRowType(a)==2){return 3}else if(this.getRowType(a)==3){return 2}return 1},bu:null,cl:0,cj:0,cm:0,ck:0,getStickyRows:function(){if(this.b5==null||(this.groupDescriptions()==null||this.groupDescriptions().k().count()==0)&&!this.ca()){return null}var a=null;var b=null;if(this.b5.sections().count()==1){a=this.b5.sections().__inner[0];b=this.b5.sections().__inner[0]}else{a=this.b5.getSection(this.firstVisibleIndexRequested());b=this.b5.getSection(this.lastVisibleIndexRequested())}if(a==null||b==null){return null}if(a._f==this.cl&&a._d==this.cm&&b._f==this.cj&&b._d==this.ck){return this.bu}this.cl=a._f;this.cj=b._f;this.cm=a._d;this.ck=b._d;if(this.b5.sections().count()==1){this.cj=b._e}var c=0;if(this.shouldEmitSectionHeaders()&&this._aa){c=1}var d=new $$4.x($$0.$aw.$type,0);for(var e=a._f;e<=b._f;e++){if(this.shouldEmitSectionHeaders()&&this._aa){d.add(this.b5.sections().__inner[e]._g)}if(this.shouldEmitShiftedRows()){for(var f=0;f<this.b5.sections().__inner[e]._d;f++){d.add(this.b5.sections().__inner[e]._g+f+c)}}if(this.shouldEmitSectionFooters()&&this._aa){d.add(this.b5.sections().__inner[e]._e)}}this.bu=d.toArray();return this.bu},isExclusivelySticky:function(a){return this.getRowType(a)==1||this.getRowType(a)==2},getRowType:function(a){if(a<0){return 0}var b=this.getItemAtIndex(a);var item_=b;if(item_!=null&&item_.$$isSpecialRow!==undefined){return b.rowType()}return 0},$type:new $.ig.Type("LocalDataSource",$$t.$az.$type)},true);$c("DataSourcePropertiesComparer:a4","Object",{e:null,b:null,a:null,g:0,f:null,d:null,c:null,init:function(a,b,c,d){$.ig.$op.init.call(this);this.b=a;if(this.b!=null){this.g=this.b.length}this.a=b;this.e=d;this.f=d.actualSchema();if(this.b!=null){this.d=new Array(this.g)}this.c=c;if(this.c==null){this.c=new Array(this.g)}var e=new $$4.h(String,$$t.$ai.$type,0);for(var f=0;f<this.f.propertyNames().length;f++){e.item(this.f.propertyNames()[f],this.f.propertyTypes()[f])}if(this.b!=null){for(var g=0;g<this.b.length;g++){if(e.containsKey(this.b[g])){this.d[g]=e.item(this.b[g])}else{this.d[g]=d.resolveSchemaPropertyType(this.b[g])}}}},compare:function(a,b){if(this.b==null){if(a==b){return 0}return-1}var c=null;var d=null;var e=null;var f=null;var x_=a;if(x_!=null&&x_.$$isSpecialRow!==undefined){e=x_}var y_=b;if(y_!=null&&y_.$$isSpecialRow!==undefined){f=y_}var g=null;var h=false;var i=this.g;for(var j=0;j<i;j++){g=this.b[j];h=this.a[j]==1;if(e!=null){c=e.getValue(g)}else{c=this.e.getItemProperty(a,g)}if(f!=null){d=f.getValue(g)}else{d=this.e.getItemProperty(b,g)}var k=this.j(c,d,h,this.d[j],this.c[j]);if(k!=0){return k}}return 0},compareKeys:function(a,b){if(this.b==null){for(var c=0;c<a.length;c++){if(a[c]!=b[c]){return-1}}return 0}var d=null;var e=null;var f=false;var g=this.g;for(var h=0;h<g;h++){f=this.a[h]==1;d=a[h];e=b[h];var i=this.j(d,e,f,this.d[h],this.c[h]);if(i!=0){return i}}return 0},compareToKey:function(a,b){if(this.b==null){if(b.length==1){if(a==b[0]){return 0}}return-1}var c=null;var d=null;var e=null;var f=false;var g=this.g;for(var h=0;h<g;h++){e=this.b[h];f=this.a[h]==1;c=this.e.getItemProperty(a,e);d=b[h];var i=this.j(c,d,f,this.d[h],this.c[h]);if(i!=0){return i}}return 0},j:function(a,b,c,d,e){if(c){var f=a;a=b;b=f}var g=0;switch(d){case 2:a=a==null?false:a;b=b==null?false:b;g=$.ig.util.boolCompare(a,b);break;case 8:a=a==null?$$0.$s.minValue():a;b=b==null?$$0.$s.minValue():b;var xVal_=a;var yVal_=b;xVal_=+xVal_;yVal_=+yVal_;var h=$h(xVal_);var i=$h(yVal_);g=$x(h,i);break;case 5:a=a==null?-1.7976931348623157e308:a;b=b==null?-1.7976931348623157e308:b;g=$x(a,b);break;case 10:a=a==null?0:a;b=b==null?0:b;g=$x(a,b);break;case 6:a=a==null?-7.922816251426434e28:a;b=b==null?-7.922816251426434e28:b;g=$x(a,b);break;case 7:a=a==null?-3.4028230607370965e38:a;b=b==null?-3.4028230607370965e38:b;g=$x(b,b);break;case 1:a=a==null?-2147483648:a;b=b==null?-2147483648:b;g=$x($h(a),$h(b));break;case 3:a=a==null?-0x8000000000000000:a;b=b==null?-0x8000000000000000:b;g=$x($h(a),$h(b));break;case 11:if(e){var j=a;var k=b;if(j!=null){g=j.compareTo(k)}else if(k!=null){g=-1}else{g=0}}else{a=a==null?"":a;b=b==null?"":b;g=$aa(a.toString(),b.toString())}break;case 4:a=a==null?-32768:a;b=b==null?-32768:b;g=$x($h(a),$h(b));break;case 0:a=a==null?"":a;b=b==null?"":b;g=$aa(a,b);break}return g},$type:new $.ig.Type("DataSourcePropertiesComparer",$.ig.$ot,[$$6.$ad.$type.specialize($.ig.$op.$type)])},true);$c("LocalDataSourceViewUpdateNotifier:a5","Object",{a:null,notifyClearItems:function(){this.a.cq()},notifyInsertItem:function(a,b){this.a.cr(a,b)},notifyRemoveItem:function(a,b){this.a.cs(a,b)},notifySetItem:function(a,b,c){this.a.ct(a,b,c)},init:function(a){$.ig.$op.init.call(this);this.a=a},$type:new $.ig.Type("LocalDataSourceViewUpdateNotifier",$.ig.$ot,[$$t.$w.$type])},true);$c("PagePredictionEngine:a6","Object",{init:function(){this.s=0;this.u=0;this.x=-1;this.t=-1;this.y=500;this.r=1e3;this.v=8;this.d=null;this.i=false;this.h=false;this.g=new $.ig.FastIterationDictionary$2($.ig.$op.$type,$$0.$aw.$type,0);this.p=new $$4.x($$0.$aw.$type,0);this.o=new $$4.x($$0.$aw.$type,0);this.c=new $$t.a9;$.ig.$op.init.call(this)},a:null,executionContext:function(a){if(arguments.length===1){var b=this.a;this.a=a;if(b!=this.a){this.ay("ExecutionContext",b,this.a)}return a}else{return this.a}},s:0,firstVisibleIndexRequested:function(a){if(arguments.length===1){var b=this.s;this.s=a;if(b!=this.s){this.ay("FirstVisibleIndexRequested",b,this.s)}return a}else{return this.s}},u:0,lastVisibleIndexRequested:function(a){if(arguments.length===1){var b=this.u;this.u=a;if(b!=this.u){this.ay("LastVisibleIndexRequested",b,this.u)}return a}else{return this.u}},x:0,pageSize:function(a){if(arguments.length===1){var b=this.x;this.x=a;if(b!=this.x){this.ay("PageSize",b,this.x)}return a}else{return this.x}},t:0,fullCount:function(a){if(arguments.length===1){var b=this.t;this.t=a;if(b!=this.t){this.ay("FullCount",b,this.t)}return a}else{return this.t}},y:0,pageVisibilityDisplayThresholdMilliseconds:function(a){if(arguments.length===1){var b=this.y;this.y=a;if(b!=this.y){this.ay($$t.$a6.aq,b,this.y)}return a}else{return this.y}},r:0,fetchAheadMilliseconds:function(a){if(arguments.length===1){var b=this.r;this.r=a;if(b!=this.r){this.ay("FetchAheadMilliseconds",b,this.r)}return a}else{return this.r}},v:0,maximumPageCandidates:function(a){if(arguments.length===1){var b=this.v;this.v=a;if(b!=this.v){this.ay("MaximumPageCandidates",b,this.v)}return a}else{return this.v}},d:null,pageCandidatesSink:function(a){if(arguments.length===1){var b=this.d;this.d=a;if(b!=this.d){this.ay("PageCandidatesSink",b,this.d)}return a}else{return this.d}},_sectionMap:null,sectionMap:function(a){if(arguments.length===1){this._sectionMap=a;return a}else{return this._sectionMap}},w:0,ay:function(a,b,c){if(this.propertyChanged!=null){this.propertyChanged(this,new $$0.b7(a))}this.az(a,b,c)},propertyChanged:null,az:function(a,b,c){switch(a){case"FirstVisibleIndexRequested":case"LastVisibleIndexRequested":this.aw();break;case"ExecutionContext":this.ax();break;case"FullCount":this.a2();break;case"PageSize":this.a2();break}},a2:function(){this.c.h();this.q=0;var a=new $$4.x($$0.$aw.$type,0);for(var b=0;b<this.g._q.count();b++){if(this.g._p.__inner[b]){continue}a.add(this.g._q.__inner[b])}for(var c=0;c<a.count();c++){this.removeCandidate(a.__inner[c])}if(this.fullCount()>0&&this.pageSize()>0){this.w=$.ig.truncate(Math.ceil(this.fullCount()/this.pageSize()))}},ax:function(){this.enqueueUpdate()},i:false,enqueueUpdate:function(){if(this.i){return}if(this.executionContext()!=null){this.i=true;this.executionContext().enqueueAction(this.av.runOn(this))}},av:function(){this.i=false;this.a4()},a4:function(){if(this.t==-1||this.x==-1){return}this.at();this.a5();this.a6();if(this.q!=0){this.as()}},a3:function(){this.h=false;this.a4()},h:false,as:function(){if(this.h){return}if(this.executionContext()!=null){this.h=true;this.executionContext().executeDelayed(this.a3.runOn(this),0)}},g:null,p:null,a6:function(){var a=this.ac();var b=this.ad();var c=true;var d;for(var e=a;e<=b;e++){d=e;c=this.j(d,2)}if(this.q>0){d=b;while(c){d++;c=this.j(d,1)}}else if(this.q<0){d=a;while(c){d--;c=this.j(d,1)}}this.a0()},o:null,a0:function(){this.o.clear();var a=this.g._o;var b=this.g._o.count();var c=this.g._p;for(var d=0;d<b;d++){if(c.__inner[d]){continue}var e=$h(a.__inner[d]);this.o.add(e)}for(var f=0;f<this.o.count();f++){this.j(this.o.__inner[f],1)}},j:function(a,b){if(a<0||a>this.w){return false}if(this.l(a)){this.removeCandidate(a);return false}if(this.m(a,this.fetchAheadMilliseconds())){this.removeCandidate(a);return false}if(this.n()){this.removeCandidate(a);return false}this.ar(a,b);return true},ar:function(a,b){if(!this.g.d(a)){if(this.d!=null){if(this.d.addCandidate(a,b)){this.g.s(a,a)}}}},removeCandidate:function(a){if(this.g.d(a)){this.g.f(a);if(this.d!=null){this.d.removeCandidate(a)}}},n:function(){return this.g.r()>=this.maximumPageCandidates()},m:function(a,b){var c=b/1e3;var d=c*this.q;if(this.k(a)){return false}if(d>0){var e=d+this.lastVisibleIndexRequested();if(e>=a*this.pageSize()){return false}}else{var f=this.firstVisibleIndexRequested()+d;if(f<=a*this.pageSize()+this.pageSize()){return false}}return true},k:function(a){var b=a*this.pageSize();var c=b+this.pageSize();if(this.lastVisibleIndexRequested()<b||this.firstVisibleIndexRequested()>c){return false}return true},l:function(a){var b=this.pageVisibilityDisplayThresholdMilliseconds()/1e3;var c=b*this.q;if(c>0){var d=c+this.firstVisibleIndexRequested();if(d>a*this.pageSize()+this.pageSize()){return true}}else{var e=this.lastVisibleIndexRequested()+c;if(e<a*this.pageSize()){return true}}return false},ac:function(){return $.ig.truncate(Math.floor(this.firstVisibleIndexRequested()/this.pageSize()))},ad:function(){return $.ig.truncate(Math.floor(this.lastVisibleIndexRequested()/this.pageSize()))},a5:function(){this.q=this.c.j().__y},c:null,q:0,at:function(){this.c.i({__x:0,__y:this.firstVisibleIndexRequested(),$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName})},aw:function(){if(this.executionContext()!=null){this.executionContext().enqueueAction(this.a4.runOn(this))}},$type:new $.ig.Type("PagePredictionEngine",$.ig.$ot,[$$0.$b6.$type])},true);$c("PredictionEnginePageCandidate:a7","Object",{init:function(){$.ig.$op.init.call(this)},$type:new $.ig.Type("PredictionEnginePageCandidate",$.ig.$ot)},true);$c("DataSourceVelocityReading:a8","Object",{init:function(a,b){$.ig.$op.init.call(this);this._b=a;this._a=b},_b:null,_a:0,$type:new $.ig.Type("DataSourceVelocityReading",$.ig.$ot)},true);$c("DataSourceVelocityTracker:a9","Object",{f:0,d:0,init:function(){this.d=6;this.b=0;$.ig.$op.init.call(this);this.f=this.g();this.c=0;this._a=new Array(this.d)},_a:null,b:0,i:function(a){var b=this.e();this._a[this.b]=new $$t.a8(a,b);this.b++;if(this.b>this.d-1){this.b=0}},h:function(){for(var a=0;a<this.d;a++){this._a[a]=null}},j:function(){var a=2147483647;var b=-2147483648;var c=0;var d=0;var e=0;var f=0;var g=this.e();for(var h=0;h<this.d;h++){if(this._a[h]==null){continue}if(g-this._a[h]._a>300){continue}if(this._a[h]._a<a){a=this._a[h]._a;c=this._a[h]._b.__x;d=this._a[h]._b.__y}if(this._a[h]._a>b){b=this._a[h]._a;e=this._a[h]._b.__x;f=this._a[h]._b.__y}}var i=b-a;i=Math.max(i,16);var j=i/1e3;if(j==0){return{__x:c,__y:d,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}}return{__x:(e-c)/j,__y:(f-d)/j,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}},c:0,g:function(){var a=$$0.$s.now();return a.getTime()},e:function(){var a=this.g()-this.f;if(a==this.c){a+=1}this.c=a;return a},$type:new $.ig.Type("DataSourceVelocityTracker",$.ig.$ot)},true);$c("IPageCandidatesSink:ba","Object",{$type:new $.ig.Type("IPageCandidatesSink",null)},true);$c("SectionMap:bb","Object",{init:function(){this.a=new $$t.a0;this.g=new $$t.bf;this.h=new $$t.bg;this.m=new $$4.x($$t.$a0.$type,0);this.j=new $$t.bc;this.i=new $$t.bc;$.ig.$op.init.call(this)},a:null,g:null,h:null,m:null,n:function(){return this.m},o:function(){return this.m.__inner[this.m.count()-1]._e},l:function(){return this.n().count()>0},k:function(a,b,c){if(a>=0&&a<this.m.count()){var d=this.m.__inner[a];if(b>=d._g&&b<=d._e){c._c++;if(c._c>=c._a.length){c._c=0}c._b[c._c]=a;c._a[c._c]=d;return true}}return false},j:null,d:function(a){return this.e(a,this.g,this.j)},e:function(a,b,c){if(c._a==null){c._a=new Array(5);c._b=new Array(5);for(var d=0;d<c._a.length;d++){c._a[d]=null;c._b[d]=-1}}if(c._a[c._c]!=null){if(a>=c._a[c._c]._g&&a<=c._a[c._c]._e){return c._a[c._c]}for(var e=0;e<c._a.length;e++){if(c._a[e]!=null){if(a>=c._a[e]._g&&a<=c._a[e]._e){c._c=e;return c._a[c._c]}}}var f=c._b[c._c]+1;if(this.k(f,a,c)){return c._a[c._c]}f=c._b[c._c]-1;if(this.k(f,a,c)){return c._a[c._c]}}this.a._g=a;var g=this.m.binarySearch1(this.a,b);if(g<0){g=~g;g--}if(this.k(g,a,c)){return c._a[c._c]}if(this.k(g+1,a,c)){return c._a[c._c]}if(this.k(g-1,a,c)){return c._a[c._c]}return null},p:function(){this.m.clear();this.j._a=null;this.i._a=null},v:function(a,b,c){for(var d=a._f+1;d<this.m.count();d++){var e=this.m.__inner[d];e._c+=c;e._g+=b;e._e+=b}},u:function(a,b,c){for(var d=a._f;d<this.m.count();d++){var e=this.m.__inner[d];e._c+=c;e._g+=b;e._e+=b;e._f=d}},r:function(a){if(this.m.count()==0){return}var b=this.m.__inner[this.m.count()-1];b._e=a},y:function(a,b,c,d){var e=new $$t.a0;e._g=a;e._a=d;e._f=this.m.count();if(this.m.count()>0){e._c=this.m.__inner[this.m.count()-1]._c}var f=new Array(d.length);for(var g=0;g<f.length;g++){f[g]=b.getItemProperty(c,d[g])}e._b=f;this.m.add(e)},w:function(a,b,c){for(var d=a._f+1;d<this.m.count();d++){this.m.__inner[d]._f=d;this.m.__inner[d]._c+=c;this.m.__inner[d]._g+=b;this.m.__inner[d]._e+=b}},t:function(a,b){this.m.insert(a,b)},x:function(a){if(this.j!=null){var b=this.j;$$t.$bb.q(a,b)}if(this.i!=null){var c=this.i;$$t.$bb.q(a,c)}this.m.removeAt(a)},q:function(a,b){if(b._a!=null){for(var c=0;c<b._a.length;c++){if(b._a[c]!=null){if(b._a[c]._f==a){b._a[c]=null}}}}},c:function(){return this.m.__inner[this.m.count()-1]},b:function(){return this.m.__inner[0]},s:function(){this.m.__inner[this.m.count()-1]._c++},i:null,f:function(a){return this.e(a,this.h,this.i)},$type:new $.ig.Type("SectionMap",$.ig.$ot)},true);$c("SectionSearchData:bc","Object",{init:function(){$.ig.$op.init.call(this)},_a:null,_c:0,_b:null,$type:new $.ig.Type("SectionSearchData",$.ig.$ot)},true);$c("RearrangedListView:bd","Object",{e:null,ae:null,l:null,view:function(){return this.ae},init:function(a){this.l=new $$t.bb;this.ad=new $$4.x(Array,0);$.ig.$op.init.call(this);this.e=a},getSection:function(a){return this.l.d(a)},f:null,primaryKeyComparer:function(a){if(arguments.length===1){this.f=a;return a}else{return this.f}},aa:null,sortComparer:function(a){if(arguments.length===1){this.aa=a;return a}else{return this.aa}},z:null,groupComparer:function(a){if(arguments.length===1){this.z=a;return a}else{return this.z}},h:null,filter:function(a){if(arguments.length===1){this.h=a;return a}else{return this.h}},m:null,updateNotifier:function(a){if(arguments.length===1){this.m=a;return a}else{return this.m}},_dataSource:null,dataSource:function(a){if(arguments.length===1){this._dataSource=a;return a}else{return this._dataSource}},_groupDescriptions:null,groupDescriptions:function(a){if(arguments.length===1){this._groupDescriptions=a;return a}else{return this._groupDescriptions}},_sortDescriptions:null,sortDescriptions:function(a){if(arguments.length===1){this._sortDescriptions=a;return a}else{return this._sortDescriptions}},_isGrouping:false,isGrouping:function(a){if(arguments.length===1){this._isGrouping=a;return a}else{return this._isGrouping}},refresh:function(){var $self=this;if(this.ae==this.e||this.ae==null){this.ae=new $$4.x($.ig.$op.$type,0)}this.ae.clear();if(this.e==null){return}var a=this.e.actualCount();if(this.h==null){for(var b=0;b<a;b++){this.ae.add1(this.e.getItemAtIndex(b))}}else{for(var c=0;c<a;c++){var d=this.e.getItemAtIndex(c);if(this.h(d)){this.ae.add1(d)}}}if(this.aa!=null){this.ae.sort1(this.aa)}this.q=false;this.l.p();if(this.groupDescriptions()!=null&&this.groupDescriptions().k().count()>0){this.q=true;this.at()}else{this.l.n().add(function(){var $ret=new $$t.a0;$ret._f=0;$ret._a=null;$ret._b=null;$ret._g=0;$ret._e=$self.ae.count();return $ret}())}var e=this.primaryKeyComparer();var f=new $$4.x($.ig.$op.$type,0);if(this.ad.count()>0&&this.shouldEmitShiftedRows()){if(!this.q){var g=this.l.n().__inner[0];for(var h=0;h<this.ad.count();h++){var i=this.dataSource().indexOfKey(this.ad.__inner[h]);if(i!=-1){this.am(g,this.ae.__inner[i],h)}}}else{for(var j=0;j<this.ad.count();j++){var k=this.dataSource().indexOfKey(this.ad.__inner[j]);if(k!=-1){var l=this.l.d(k);this.am(l,this.ae.__inner[k],j)}}}}if(this.updateNotifier()!=null){this.updateNotifier().notifyClearItems()}},ai:function(a,b,c){var d=a._g+a._d;this.ak(d,b);a._d++;a._e++;a._c++;if(c){this.l.v(a,1,1)}return d},aj:function(a,b,c){this.ak(b,c);a._d++;a._e++;a._c++;this.l.v(a,1,1);return b},ak:function(a,b){var c=new $$t.a2;c.rowType(3);c.targetRow(b);var d=a;if(this.shouldEmitSectionHeaders()){d++}this.ae.insert1(d,c);return a+1},al:function(a,b){var c=-1;for(var d=0;d<this.ad.count();d++){if(this.primaryKeyComparer().compareToKey(b,this.ad.__inner[d])==0){c=d;break}}return this.am(a,b,c)},am:function(a,b,c){var d=-1;if(c!=-1){var e=a._g;var f=e+a._d;var g=false;for(var h=e;h<f;h++){var i=this.shouldEmitSectionHeaders()?h+1:h;var j=$b($$t.$a2.$type,this.ae.__inner[i]);if(this.aa!=null){var k=this.aa.compare(b,j.targetRow());if(k==0||k<0){d=this.aj(a,h,b);g=true;break}}else{var l=-1;for(var m=0;m<this.ad.count();m++){if(this.primaryKeyComparer().compareToKey(j.targetRow(),this.ad.__inner[m])==0){l=m;break}}if(l>c){d=this.aj(a,h,b);g=true;break}}}if(!g){d=this.ai(a,b,true);g=true}}return d},sections:function(){return this.l.n()},_shouldEmitSectionHeaders:false,shouldEmitSectionHeaders:function(a){if(arguments.length===1){this._shouldEmitSectionHeaders=a;return a}else{return this._shouldEmitSectionHeaders}},_shouldEmitSectionFooters:false,shouldEmitSectionFooters:function(a){if(arguments.length===1){this._shouldEmitSectionFooters=a;return a}else{return this._shouldEmitSectionFooters}},_shouldEmitShiftedRows:false,shouldEmitShiftedRows:function(a){if(arguments.length===1){this._shouldEmitShiftedRows=a;return a}else{return this._shouldEmitShiftedRows}},q:false,at:function(){if(this.ae.count()==0){return}var a=null;var b=this.a();var c=this.b();var d=true;var e=this.groupComparer();var f=0;for(f=0;f<this.ae.count();f++){var g=this.ae.__inner[f];if(g==null){continue}if(d){a=g;this.a2(f,a,c);this.ar(f,a,b,c);this.l.s();f++;d=false}else{if(e.compare(a,g)!=0){if(this.shouldEmitSectionFooters()){this.aq(f,a,b,c);f++}this.ap(f-1,a,c);a=g;this.a2(f,a,b);if(this.shouldEmitSectionFooters()){this.l.s()}if(this.shouldEmitSectionHeaders()){this.ar(f,a,b,c);this.l.s()}f++}a=g}}this.ap(f-1,a,c)},a:function(){var a=new Array(this.groupDescriptions().k().count()+this.sortDescriptions().k().count());var b=0;for(var c=0;c<this.groupDescriptions().k().count();c++){a[b]=this.groupDescriptions().k().item(c).propertyName();b++}for(var d=0;d<this.sortDescriptions().k().count();d++){a[b]=this.sortDescriptions().k().item(d).propertyName();b++}return a},b:function(){var a=new Array(this.groupDescriptions().k().count());var b=0;for(var c=0;c<this.groupDescriptions().k().count();c++){a[b]=this.groupDescriptions().k().item(c).propertyName();b++}return a},ap:function(a,b,c){this.l.r(a)},setPinnedKeys:function(a){this.ad=new $$4.x(Array,0);for(var b=0;b<a.count();b++){this.ad.add(a.__inner[b])}},a2:function(a,b,c){this.l.y(a,this.dataSource(),b,c)},aq:function(a,b,c,d){var e=new $$t.a2;for(var f=0;f<c.length;f++){e.setValue(c[f],this.dataSource().getItemProperty(b,c[f]));if(f<d.length){e.setSectionValue(d[f],this.dataSource().getItemProperty(b,d[f]))}}e.rowType(2);this.ae.insert1(a,e)},ar:function(a,b,c,d){var e=new $$t.a2;for(var f=0;f<c.length;f++){e.setValue(c[f],this.dataSource().getItemProperty(b,c[f]));if(f<d.length){e.setSectionValue(d[f],this.dataSource().getItemProperty(b,d[f]))}}e.rowType(1);this.ae.insert1(a,e)},au:function(){this.ae.clear();if(this.updateNotifier()!=null){this.updateNotifier().notifyClearItems()}},notifySetItem:function(a,b,c){if(this.aa!=null){this.az(b);this.an(c)}else{this.a0(a,b);this.ao(a,c)}},ao:function(a,b){if(!this.y(b)){return}var c=this.ah(a);this.av(c,b)},av:function(a,b){this.as(a,b);this.a4(a,b)},as:function(a,b){if(this.q){var c=this.l.d(a);if(c==null){c=this.l.c()}if(c._g==a){if(!this.r(c,b,this.ae.__inner[a])){c=this.l.d(a-1);if(c==null){c=this.l.b();c._g++}}else{var d=this.shouldEmitSectionHeaders()?1:0;a+=d+c._d}}c._e++;this.l.v(c,1,0)}this.ae.insert1(a,b);if(this.updateNotifier()!=null){this.updateNotifier().notifyInsertItem(a,b)}},a4:function(a,b){var c=null;if(this.q){c=this.l.d(a)}else{c=this.l.n().__inner[0]}if(c==null){if(this.q&&a==0){c=this.l.b()}else{c=this.l.c()}}if(this.r(c,b,this.ae.__inner[c._g])){if(this.shouldEmitShiftedRows()){var d=this.al(c,b);if(d!=-1&&this.updateNotifier()!=null){this.updateNotifier().notifyInsertItem(d,this.ae.__inner[d])}}}else{var e=false;if(a<=c._g){e=true}var f=0;var g=null;var h=null;var i=this.a();var j=this.b();if(this.shouldEmitSectionHeaders()){f++;this.ar(a,b,i,j);g=this.ae.__inner[a];c._e--}var k=new $$t.a0;k._g=a;k._e=a+1;if(this.shouldEmitShiftedRows()){for(var l=0;l<this.ad.count();l++){if(this.primaryKeyComparer().compareToKey(b,this.ad.__inner[l])==0){this.ai(k,b,false);f++;break}}}k._a=j;var m=this.c(j,b);k._b=m;var n=c._f+1;if(e){n=c._f}if(this.shouldEmitSectionFooters()){f++;this.aq(a+(f-1),b,i,j);h=this.ae.__inner[a+(f-1)]}k._f=n;this.l.t(n,k);this.l.w(k,f,f);if(this.updateNotifier()!=null){if(g!=null){this.updateNotifier().notifyInsertItem(a,g)}if(h!=null){this.updateNotifier().notifyInsertItem(a+(f-1),h)}}}},r:function(a,b,c){if(this.groupDescriptions().k().count()==0){return true}if(this.groupComparer().compare(b,c)==0){return true}return false},c:function(a,b){var c=new Array(a.length);for(var d=0;d<c.length;d++){c[d]=this.dataSource().getItemProperty(b,a[d])}return c},u:function(a,b){if(a==null&&b==null){return true}if(a==null&&b!=null){return false}if(a!=null&&b==null){return false}return a.equals(b)},ah:function(a){if(this.groupDescriptions().k().count()==0&&this.ad.count()==0&&this.h==null&&this.e.actualCount()==this.ae.count()){return a}var b=0;var c=0;var d=this.ae.count();while(b<a&&c<d){while(c<d){var e=this.ae.__inner[c];var f=false;var viewItem_=e;if(viewItem_.$$isSpecialRow!==undefined){f=true}if(!f){break}c++}var g=this.e.getItemAtIndex(b);if(this.u(g,this.ae.__inner[c])){c++;b++}else{b++}}return c},a0:function(a,b){var c=this.ah(a);if(c<this.ae.count()){if(this.u(b,this.ae.__inner[c])){this.aw(c,b)}}},aw:function(a,b){this.ae.removeAt(a);if(this.updateNotifier()!=null){this.updateNotifier().notifyRemoveItem(a,b)}this.a5(a,b)},a5:function(a,b){var c=null;if(this.q){c=this.l.d(a)}else{
c=this.l.n().__inner[0]}if(c!=null){c._e--;this.l.v(c,-1,0);if(this.shouldEmitShiftedRows()){for(var d=0;d<c._d;d++){var e=0;if(this.shouldEmitSectionHeaders()){e=1}var f=this.ae.__inner[c._g+d+e];var g=null;var item_=f;if(item_!=null&&item_.$$isSpecialRow!==undefined){g=f}if(g!=null){if(g.targetRow()==b){this.ae.removeAt(c._g+d+e);c._e--;c._d--;c._c--;this.l.v(c,-1,-1);if(this.updateNotifier()!=null){this.updateNotifier().notifyRemoveItem(c._g+d+e,g)}}}}}if(this.q&&this.s(c)){var h=0;var i=null;var j=null;if(this.shouldEmitSectionHeaders()){i=this.ae.__inner[c._g];this.ae.removeAt(c._g);h++}if(this.shouldEmitSectionFooters()){j=this.ae.__inner[c._e];this.ae.removeAt(c._e);h++}this.l.x(c._f);this.l.u(c,-h,-h);if(this.updateNotifier()!=null){if(i!=null){this.updateNotifier().notifyRemoveItem(c._g,i)}if(j!=null){this.updateNotifier().notifyRemoveItem(c._e,j)}}}}},s:function(a){var b=a._e-a._g+1;if(b>2){return false}for(var c=a._g;c<=a._e;c++){if(this.dataSource().getRowType(c)==0){return false}}return true},an:function(a){if(this.y(a)){var b=this.ae.binarySearch1(a,this.aa);if(b<0){b=~b}this.av(b,a)}},ad:null,pinRow:function(a){this.ad.add(a);var b=this.dataSource().indexOfKey(a);var c=this.dataSource().getItemAtIndex(b);if(b==-1){return}if(this.shouldEmitShiftedRows()){var d=this.l.d(b);var e=this.al(d,this.ae.__inner[b]);if(this.updateNotifier()!=null){this.updateNotifier().notifyInsertItem(e,this.ae.__inner[e])}}},unpinRow:function(a){if(this.ad.remove(a)){var b=this.dataSource().indexOfKey(a);var c=this.dataSource().getItemAtIndex(b);if(b==-1){return}var d=this.l.d(b);var e=d._g;if(this.shouldEmitSectionHeaders()){e+=1}if(this.shouldEmitShiftedRows()){var f=this.j(e,this.ae.__inner[b],d._d,this.a());if(f!=null){d._e--;d._d--;d._c--;this.l.v(d,-1,-1);if(this.updateNotifier()!=null){this.updateNotifier().notifyRemoveItem(f._a,f.item())}}}}},j:function(a,b,c,d){for(var e=a+(c-1);e>=a;e--){if($b($$t.$a2.$type,this.ae.__inner[e])!==null){var f=this.ae.__inner[e];if(f.rowType()==3){var g=f.targetRow();if(g==b){this.ae.removeAt(e);return function(){var $ret=new $$t.bh;$ret.item(f);$ret._a=e;return $ret}()}}}}return null},az:function(a){var b=this.ae.binarySearch1(a,this.aa);if(b>=0){var c=this.ae.count();var d=0;while(d<c){var e=b-d;var f=b+d;if(e<0&&f>c-1){break}if(e>=0){if(this.ae.__inner[e]!=null&&this.ae.__inner[e].equals(a)){b=e;break}}if(f<c){if(this.ae.__inner[f]!=null&&this.ae.__inner[f].equals(a)){b=f;break}}d++}if(b<0||b>c-1){return}var g=this.ae.__inner[b];if(g==null&&a==null){this.ae.removeAt(b);this.m.notifyRemoveItem(b,a);this.a5(b,a);return}if(g==null){return}if(g.equals(a)){this.ae.removeAt(b);this.m.notifyRemoveItem(b,a);this.a5(b,a)}}else{var h=this.ae.count();for(var i=0;i<h;i++){var j=this.ae.__inner[i];if(j==null&&a==null){this.ae.removeAt(i);break}if(j==null){continue}if(j.equals(a)){this.ae.removeAt(i);this.m.notifyRemoveItem(i,a);this.a5(i,a);break}}}},y:function(a){if(this.h==null){return true}return this.h(a)},notifyClearItems:function(){},notifyInsertItem:function(a,b){if(this.aa!=null){this.an(b)}else{this.ao(a,b)}},notifyRemoveItem:function(a,b){if(this.aa!=null){this.az(b)}else{this.a0(a,b)}},$type:new $.ig.Type("RearrangedListView",$.ig.$ot,[$$t.$w.$type])},true);$c("SectionDataStartIndexComparer:bf","Object",{init:function(){$.ig.$op.init.call(this)},compare:function(a,b){return $x(a._g,b._g)},$type:new $.ig.Type("SectionDataStartIndexComparer",$.ig.$ot,[$$6.$ad.$type.specialize($$t.$a0.$type)])},true);$c("SectionDataUndisplacedStartIndexComparer:bg","Object",{init:function(){$.ig.$op.init.call(this)},compare:function(a,b){return $x(a._g-a._c,b._g-a._c)},$type:new $.ig.Type("SectionDataUndisplacedStartIndexComparer",$.ig.$ot,[$$6.$ad.$type.specialize($$t.$a0.$type)])},true);$c("RemovedShiftedRowInfo:bh","Object",{init:function(){$.ig.$op.init.call(this)},_a:0,_item:null,item:function(a){if(arguments.length===1){this._item=a;return a}else{return this._item}},$type:new $.ig.Type("RemovedShiftedRowInfo",$.ig.$ot)},true);$c("VirtualDataSource:bi","BaseDataSource",{init:function(){this.cj=50;this.ci=200;this._actualPageSizePopulated=false;this.cf=50;this.ca=false;this.b9=new $.ig.LRUCache$2($.ig.$op.$type,$$t.$ag.$type,0,200);this.ce=new $$4.h($.ig.$op.$type,$$0.$aw.$type,0);this.b8=new $$t.bb;this.bv=null;this.ch=-1;this.cg=-1;$$t.$az.init.call(this);this._b6=new $$t.a6;this._b6.pageCandidatesSink(this);this._b6.pageSize(this.actualPageSize());this._b6.sectionMap(this.b8);this.executionContext(new $$t.b);this._b6.executionContext(this.executionContext())},bw:null,_b6:null,actualBaseDataProvider:function(){return this.actualDataProvider()},bz:null,dataProvider:function(a){if(arguments.length===1){var b=this.bz;this.bz=a;if(b!=this.bz){this.onPropertyUpdated("DataProvider",b,this.bz)}return a}else{return this.bz}},by:null,actualDataProvider:function(a){if(arguments.length===1){var b=this.by;this.by=a;if(b!=this.by){this.onPropertyUpdated("ActualDataProvider",b,this.by)}return a}else{if(this.by==null){this.actualDataProvider(this.resolveDataProvider())}return this.by}},cj:0,pageSizeRequested:function(a){if(arguments.length===1){var b=this.cj;this.cj=a;if(b!=this.cj){this.onPropertyUpdated("PageSizeRequested",b,this.cj)}return a}else{return this.cj}},resetCache:function(){if(this.b4()!=null){this.b4().resetCache()}this.resetCacheOverride()},resetCacheOverride:function(){this.b9.i()},ci:0,maxCachedPages:function(a){if(arguments.length===1){var b=this.ci;this.ci=a;if(b!=this.ci){this.onPropertyUpdated("MaxCachedPages",b,this.ci)}return a}else{return this.ci}},_actualPageSizePopulated:false,cf:0,actualPageSize:function(a){if(arguments.length===1){var b=this.cf;this.cf=a;if(b!=this.cf){this.onPropertyUpdated("ActualPageSize",b,this.cf)}return a}else{return this.cf}},ca:false,isSortingSupported:function(){if(this._m!=null&&!this.ca){this.ca=true;var a=this._m.isSortingSupportedOverride();this.ca=false;return a}return false},isFilteringSupported:function(){if(this._m!=null&&!this.ca){this.ca=true;var a=this._m.isFilteringSupportedOverride();this.ca=false;return a}return false},isGroupingSupported:function(){if(this._m!=null&&!this.ca){this.ca=true;var a=this._m.isGroupingSupportedOverride();this.ca=false;return a}return false},b3:null,b4:function(a){if(arguments.length===1){this.b3=a;this.actualDataProvider(this.resolveDataProvider());return a}else{return this.b3}},resolveDataProvider:function(){if(this.b4()==null){return null}return this.b4().resolveDataProvider()},propertyUpdatedOverride:function(a,b,c){$$t.$az.propertyUpdatedOverride.call(this,a,b,c);switch(a){case"DataProvider":this.actualDataProvider(this.dataProvider());this.queueAutoRefresh();break;case"ExecutionContext":this._b6.executionContext(this.executionContext());break;case"ActualDataProvider":this.actualDataProvider().pageSizeRequested(this.pageSizeRequested());this.actualDataProvider().pageLoaded(this.cx.runOn(this));this.queueAutoRefresh();break;case"PageSizeRequested":this.actualPageSize(this.pageSizeRequested());if(this.actualDataProvider()!=null){this.actualDataProvider().pageSizeRequested(this.pageSizeRequested())}this.queueAutoRefresh();break;case"ActualPageSize":this._b6.pageSize(this.actualPageSize());this.queueAutoRefresh();break;case"FirstVisibleIndexRequested":this._b6.firstVisibleIndexRequested(this.cm(this.firstVisibleIndexRequested()));break;case"LastVisibleIndexRequested":this._b6.lastVisibleIndexRequested(this.cm(this.lastVisibleIndexRequested()));break;case"ActualCount":if(this.actualDataProvider()!=null){this._b6.fullCount(this.actualDataProvider().actualCount())}else{this._b6.fullCount(this.actualCount())}this.queueAutoRefresh();break;case"MaxCachedPages":this.b9.h(this.maxCachedPages());break}},cm:function(a){if(this._aa&&this.b8.l()){var b=this.b7(a);if(b==null){b=this.b8.c()}return a-b._c}return a},cx:function(a,b,c){var $self=this;var d=this.executionContext();if(d!=null){d.execute(function(){$self.c1(a,b,c)})}else{this.c1(a,b,c)}},c1:function(a,b,c){if(a==null){b=this.resolveFullCount(b);if(this.actualCount()!=b){this.actualCount(b)}return}if(c!=this.actualPageSize()&&!this._actualPageSizePopulated){this.actualPageSize(c)}this._actualPageSizePopulated=true;var d=a.pageIndex();this._b6.removeCandidate(d);if(this.ce.containsKey(d)){this.ce.remove(d)}this.b9.item(d,a);var e=a.schema();if(e!=null){this.actualSchema(e)}var f=a.getGroupInformation();if(this.bu==null&&f!=null){this.bu=f;this.c0()}b=this.resolveFullCount(b);if(this.actualCount()!=b){this.actualCount(b)}this.cz(a)},resolveFullCount:function(a){if(this.bu!=null){return this.b8.o()}return a},c0:function(){var a=0;var b=0;var c=0;if(this.shouldEmitSectionHeaders()){c++}if(this.shouldEmitSectionFooters()){c++}var d=this.shouldEmitSectionHeaders();var e=this.shouldEmitSectionFooters();for(var f=0;f<this.bu.length;f++){var g=new $$t.a0;if(d){b++}g._g=a;g._f=f;g._e=a+(this.bu[f].endIndex()-this.bu[f].startIndex());g._e+=c;g._c=b;g._a=this.bu[f].groupKeyProperties();g._b=this.bu[f].groupKeyValues();if(e){b++}a=g._e+1;this.b8.n().add(g)}},cz:function(a){if(this.updateNotifier()!=null){var b=a.pageIndex()*this.actualPageSize();if(this.actualDataProvider()!=null){if(b>this.actualDataProvider().actualCount()){return}}b=this.cl(b);var c=b+a.count()-1;c=this.cl(c);if(b>0&&this.getRowType(b-1)==1){b--}if(this.actualCount()==0&&a.count()==0){this.onClearItems()}else{this.updateNotifier().rangeActualized(b,c)}}},cl:function(a){if(this._aa&&this.b8.l()){var b=this.b8.f(a);return a+b._c}return a},cy:function(a){a()},isVirtual:function(){return true},b9:null,ce:null,cb:false,bu:null,isPlaceholderItem:function(a){var b=this.bx(a);var c=b[0];if(!this.b9.d(c)){return true}return false},getItemAtIndex:function(a){var b=this.bx(a);var c=b[0];if(!this.b9.d(c)){if(b[1]==-1){return this.cq(a)}return null}var d=this.b9.item(c);var e=b[1];if(e==-1){return this.cq(a)}return d.getItemAtIndex(e)},cq:function(a){var b=this.b7(a);if(a==b._g){var c=new $$t.a2;c.rowType(1);for(var d=0;d<this.groupDescriptions().k().count();d++){c.setSectionValue(this.groupDescriptions().k().item(d).propertyName(),b._b[d])}return c}if(a==b._e){var e=new $$t.a2;e.rowType(2);for(var f=0;f<this.groupDescriptions().k().count();f++){e.setSectionValue(this.groupDescriptions().k().item(f).propertyName(),b._b[f])}return e}return null},bx:function(a){if(this._aa&&this.b8.l()){var b=this.b7(a);var c=b._g;var d=false;if(a==c&&this.shouldEmitSectionHeaders()){d=true}if(a-c<=b._d){d=true}var e=a-b._c;var f=$.ig.truncate(Math.floor(e/this.actualPageSize()));var g=e%this.actualPageSize();if(d){g=-1}var h=new Array(2);h[0]=f;h[1]=g;return h}else{var i=$.ig.truncate(Math.floor(a/this.actualPageSize()));var j=a%this.actualPageSize();var k=new Array(2);k[0]=i;k[1]=j;return k}},b8:null,b7:function(a){return this.b8.d(a)},getItemPropertyAtIndex:function(a,b){var c=this.bx(a);var d=c[0];if(!this.b9.d(d)){if(c[1]==-1){return this.cr(a,b)}return null}var e=this.b9.item(d);var f=c[1];if(f==-1){return this.cr(a,b)}return e.getItemValueAtIndex(f,b)},cr:function(a,b){var c=this.cq(a);if($b($$t.$a2.$type,c)!==null){return c.getValue(b)}return null},addCandidate:function(a,b){if(!this.ce.containsKey(a)&&!this.b9.d(a)){this.ce.add(a,a);if(this.actualDataProvider()!=null){this.actualDataProvider().addPageRequest(a,b)}return true}return false},removeCandidate:function(a){if(this.ce.containsKey(a)){this.ce.remove(a);if(this.actualDataProvider()!=null){this.actualDataProvider().removePageRequest(a)}}},getUnrealizedCount:function(){var a=this.b9.g()*this.actualPageSize();var b=this.actualCount()-a;return b},onSetItemOverride:function(a,b,c){$$t.$az.onSetItemOverride.call(this,a,b,c);var d=this.bx(a);var e=d[0];if(this.b9.d(e)){this.b9.j(e)}},refreshInternalOverride:function(){$$t.$az.refreshInternalOverride.call(this);this._actualPageSizePopulated=false;var a=this.actualCount()!=0;this.resetCache();this.cb=true;if(a){this.onClearItems()}this.bu=null;this.b8.p();this.c2();this._b6.enqueueUpdate();this.cb=false},c2:function(){if(this.actualDataProvider()!=null){var b=this.ce.values().getEnumerator();while(b.moveNext()){var a=b.current();this.actualDataProvider().addPageRequest(a,1)}}},onClearItemsOverride:function(){$$t.$az.onClearItemsOverride.call(this);if(!this.cb){this.queueAutoRefresh()}},onInsertItemOverride:function(a,b){$$t.$az.onInsertItemOverride.call(this,a,b);this.queueAutoRefresh()},onRemoveItemOverride:function(a,b){$$t.$az.onRemoveItemOverride.call(this,a,b);this.queueAutoRefresh()},isItemIndexLookupSupported:function(){return true},isKeyIndexLookupSupported:function(){return true},indexOfItem:function(a){var b=this.b9.b();var c=b._o;var d=b._q;var e=d.count();var f=b._p;for(var g=0;g<e;g++){if(f.__inner[g]){continue}var h=d.__inner[g]._b;var i=h.count();for(var j=0;j<i;j++){if(this.cd(h.getItemAtIndex(j),a)){var k=$h(c.__inner[g]);var l=k*this.actualPageSize();return l+j}}}if(this.actualDataProvider()!=null&&this.actualDataProvider().isItemIndexLookupSupported()){return this.actualDataProvider().indexOfItem(a)}return-1},cd:function(a,b){if(a==null&&b==null){return true}if(a==null||b==null){return false}return a.equals(b)},indexOfKey:function(a){var b=this.actualPrimaryKey();if(b==null||b.length<1||this.actualBaseDataProvider()==null){return-1}this.ensureComparables(this.actualSchema());var c=this.b5();var d=this.b9.b();var e=d._o;var f=d._q;var g=f.count();var h=d._p;for(var i=0;i<g;i++){if(h.__inner[i]){continue}var j=f.__inner[i]._b;var k=j.count();for(var l=0;l<k;l++){if(c.compareToKey(j.getItemAtIndex(l),a)==0){var m=$h(e.__inner[i]);var n=m*this.actualPageSize();return n+l}}}if(this.actualDataProvider()!=null&&this.actualDataProvider().isKeyIndexLookupSupported()){return this.actualDataProvider().indexOfKey(a)}return-1},b5:function(){var a=new Array(this.actualPrimaryKey().length);for(var b=0;b<a.length;b++){a[b]=0}return new $$t.a4(this.actualPrimaryKey(),a,this.bw,this)},getStickyRowPriority:function(a){if(this.getRowType(a)==1||this.getRowType(a)==2){return 3}else if(this.getRowType(a)==3){return 2}return 1},unpinRow:function(a){$$t.$az.unpinRow.call(this,a)},pinRow:function(a){$$t.$az.pinRow.call(this,a)},isRowPinned:function(a){return $$t.$az.isRowPinned.call(this,a)},bv:null,ch:0,cg:0,getStickyRows:function(){if(this.groupDescriptions()==null||this.groupDescriptions().k().count()==0){return null}var a=this.b7(this.firstVisibleIndexRequested());var b=this.b7(this.lastVisibleIndexRequested());if(a==null||b==null){return null}if(a._f==this.ch&&b._f==this.cg){return this.bv}this.cg=b._f;this.ch=a._f;var c=new $$4.x($$0.$aw.$type,0);for(var d=a._f;d<=b._f;d++){if(this.shouldEmitSectionHeaders()){c.add(this.b8.n().__inner[d]._g)}if(this.shouldEmitShiftedRows()){for(var e=0;e<this.b8.n().__inner[d]._d;e++){c.add(this.b8.n().__inner[d]._g+e+1)}}if(this.shouldEmitSectionFooters()){c.add(this.b8.n().__inner[d]._e)}}this.bv=c.toArray();return this.bv},isExclusivelySticky:function(a){return this.getRowType(a)==1||this.getRowType(a)==2},getRowType:function(a){if(a<0){return 0}var b=this.getItemAtIndex(a);var item_=b;if(item_!=null&&item_.$$isSpecialRow!==undefined){return b.rowType()}return 0},$type:new $.ig.Type("VirtualDataSource",$$t.$az.$type,[$$t.$ba.$type])},true);$$t.$bo.maxSimultaneousExecutingTasks=2;$$t.$bo.maxRetryDelay=2e4;$$t.$bo.initialRetryDelay=200;$$t.$c.as=null;$$t.$a6.aq="PageVisibilityDisplayThresholdMilliseconds"});