@devexpress/analytics-core 19.1.13 → 19.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/css/dx-analytics.carmine.compact.css +209 -0
  2. package/dist/css/dx-analytics.carmine.css +85 -80
  3. package/dist/css/dx-analytics.common.css +75 -69
  4. package/dist/css/dx-analytics.contrast.compact.css +290 -0
  5. package/dist/css/dx-analytics.contrast.css +85 -80
  6. package/dist/css/dx-analytics.dark.compact.css +85 -80
  7. package/dist/css/dx-analytics.dark.css +85 -80
  8. package/dist/css/dx-analytics.darkmoon.compact.css +209 -0
  9. package/dist/css/dx-analytics.darkmoon.css +85 -80
  10. package/dist/css/dx-analytics.darkviolet.compact.css +209 -0
  11. package/dist/css/dx-analytics.darkviolet.css +85 -80
  12. package/dist/css/dx-analytics.greenmist.compact.css +209 -0
  13. package/dist/css/dx-analytics.greenmist.css +85 -80
  14. package/dist/css/dx-analytics.light.compact.css +85 -80
  15. package/dist/css/dx-analytics.light.css +85 -80
  16. package/dist/css/dx-analytics.softblue.compact.css +209 -0
  17. package/dist/css/dx-analytics.softblue.css +85 -80
  18. package/dist/css/dx-querybuilder.css +166 -10
  19. package/dist/html/templates.html +549 -403
  20. package/dist/js/dx-analytics-core.js +15408 -14877
  21. package/dist/js/dx-analytics-core.min.js +4 -4
  22. package/dist/js/dx-querybuilder.js +12082 -11332
  23. package/dist/js/dx-querybuilder.min.js +4 -4
  24. package/dx-analytics-core.d.ts +4069 -3930
  25. package/dx-analytics-core.js +15408 -14877
  26. package/dx-querybuilder.d.ts +3334 -3121
  27. package/dx-querybuilder.js +12082 -11332
  28. package/less/colors/carmine-colors.less +31 -0
  29. package/less/colors/contrast-colors.less +31 -0
  30. package/less/colors/dark-colors.less +31 -0
  31. package/less/colors/darkmoon-colors.less +31 -0
  32. package/less/colors/darkviolet-colors.less +31 -0
  33. package/less/colors/greenmist-colors.less +31 -0
  34. package/less/colors/light-colors.less +31 -0
  35. package/less/colors/softblue-colors.less +31 -0
  36. package/less/common.less +78 -0
  37. package/less/dx-carmine-style.less +2 -0
  38. package/less/dx-contrast-style.less +82 -0
  39. package/less/dx-dark-style.less +2 -0
  40. package/less/dx-darkmoon-style.less +2 -0
  41. package/less/dx-darkviolet-style.less +2 -0
  42. package/less/dx-greenmist-style.less +2 -0
  43. package/less/dx-light-style.less +2 -0
  44. package/less/dx-softblue-style.less +2 -0
  45. package/less/dx-variable-style.less +364 -0
  46. package/package.json +2 -2
  47. package/utils/theme-builder.js +49 -0
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * DevExpress HTML/JS Analytics Core (dx-analytics-core.min.js)
3
- * Version: 19.1.13
4
- * Build date: 2021-04-23
5
- * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
3
+ * Version: 19.2.3
4
+ * Build date: 2019-10-23
5
+ * Copyright (c) 2012 - 2019 Developer Express Inc. ALL RIGHTS RESERVED
6
6
  * License: https://www.devexpress.com/Support/EULAs/NetComponents.xml
7
7
  */
8
8
 
9
- var __extends=this&&this.__extends||function(){var a=function(b,c){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])})(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c),b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),DevExpress;!function(a){!function(a){var b;!function(a){function b(a,b,c,d){delete a[c],d=d||c,Object.defineProperty(a,c,{get:function(){return b[d]},set:function(a){b[d]=a},configurable:!0})}function c(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];for(var d=function(b,c){void 0===c&&(c=!0);for(var d=b.split("."),e=a,f=0;f<d.length-1;f++)!e[d[f]]&&c&&(e[d[f]]={}),e=e[d[f]];return{object:e,propertyName:d[d.length-1]}},e=b[b.length-1],f=d(b[b.length-1]),g=0;g<b.length-1;g++)!function(a,b){Object.defineProperty(b.object,b.propertyName,{get:function(){return console.warn("DevExpress."+a+" is now deprecated and will be removed in future versions. Use DevExpress."+e+" instead."),f.object[f.propertyName]},set:function(b){console.warn("DevExpress."+a+" is now deprecated and will be removed in future versions. Use DevExpress."+e+" instead."),f.object[f.propertyName]=b},configurable:!0})}(b[g],d(b[g]))}function d(a,b){var c=function(){ko.utils.domNodeDisposal.removeDisposeCallback(a,c),b&&b(),c=null,b=null};ko.utils.domNodeDisposal.addDisposeCallback(a,c)}a._defineProperty=b,a._definePropertyByString=c,a.addDisposeCallback=d}(b=a.Internal||(a.Internal={}));!function(a){function c(a,c){var d=[];return b.getPropertyValues(a).forEach(function(a){var b=c(a);d.push(b)}),ko.observableArray(d)}function d(a,b){return(a||[]).map(function(a){var b=void 0!==a&&null!==a?a.toString():"00";return 1===b.length&&(b="0"+b),b}).join(b)}function e(a){var b=[a.getMonth()+1,a.getDate(),a.getFullYear()],c=d([a.getHours(),a.getMinutes(),a.getSeconds()],":");return"00:00:00"===c?d([b[2],b[0],b[1]],"-"):d(b,"/")+" "+c}function f(a){var b=a.split(" "),c=b[0].split("-"),d=[0,0,0];return b.length>1&&(c=b[0].split("/"),c.splice(0,0,c.splice(2,1)[0]),d=b[1].split(":").map(function(a){return parseInt(a)}),3!==d.length)?null:3!==c.length?null:(c=c.map(function(a){return parseInt(a)}),new Date(c[0],c[1]-1,c[2],d[0],d[1],d[2]))}var g=function(){function a(){this._disposables=[],this.isDisposing=!1}return a.prototype.disposeObservableArray=function(a){a&&a().forEach(function(a){a.dispose&&a.dispose()})},a.prototype.resetObservableArray=function(a){a&&a([])},a.prototype.disposeArray=function(a){a&&(a.forEach(function(a){a.dispose&&a.dispose()}),a.splice(0,a.length))},a.prototype.dispose=function(){this.isDisposing||(this.isDisposing=!0,(this._disposables||[]).reverse().forEach(function(a){return a&&a.dispose&&a.dispose()}),this._disposables=[])},a.prototype.removeProperties=function(){var a=this;Object.keys(this).forEach(function(b){delete a[b]})},a}();a.Disposable=g,a.deserializeArray=c,a.serializeDate=e,a.deserializeDate=f}(a.Utils||(a.Utils={})),function(a){function b(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];var d=ko.observableArray(a),e=d.notifySubscribers;return d.notifySubscribers=function(a,c){if(b)for(var f=0,g=b.length;f<g;f++)b[f](a,c);return e.call(d,a,c)},d}function c(a){return null!=a&&a===a.window}function d(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?j[j.toString.call(a)]||"object":typeof a}function e(a){return"object"===d(a)&&!a.nodeType&&!c(a)&&!(a.constructor&&!k.call(a.constructor.prototype,"isPrototypeOf"))}function f(a){if("string"==typeof a)return!1;for(var b in a)return!1;return!0}function g(a){return"function"===d(a)}function h(a,b){for(var c=[],d=2;d<arguments.length;d++)c[d-2]=arguments[d];var f,i,j,k,l,m,a=arguments[0]||{},n=1,o=arguments.length,p=!1;for("boolean"==typeof a&&(p=a,a=arguments[n]||{},n++),"object"==typeof a||g(a)||(a={}),n===o&&(a=this,n--);n<o;n++)if(null!=(f=arguments[n]))for(i in f)j=a[i],k=f[i],a!==k&&(p&&k&&(e(k)||(l=Array.isArray(k)))?(l?(l=!1,m=j&&Array.isArray(j)?j:[]):m=j&&e(j)?j:{},a[i]=h(p,m,k)):void 0!==k&&(a[i]=k));return a}function i(a){void 0===a&&(a={});var b=[];for(var c in a)b.push(a[c]);return b}a.knockoutArrayWrapper=b;var j={},k=j.hasOwnProperty;["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error"].forEach(function(a){return j["[object "+a+"]"]=a.toLowerCase()}),a.isPlainObject=e,a.isEmptyObject=f,a.extend=h,a.getPropertyValues=i}(b=a.Internal||(a.Internal={})),function(a){var c=function(){function c(c){this._refTable={},this._linkTable={},this._options=b.extend({useRefs:!0,serializeDate:a.serializeDate},c)}return c.prototype.linkObjects=function(){for(var a in this._linkTable){var b=this._refTable[a];if(b){this._linkTable[a].forEach(function(a){return a(b)})}}},c.prototype.deserializeProperty=function(a,c){var d=this,e=a.defaultVal,f=(a.propertyName,a.modelName);if(f){if(void 0!==c[f]&&(e=c[f]),"string"==typeof a)return ko.observable(e);if(a.link){var g=ko.observable(null);if(e){var h=e&&e.slice("#Ref-".length);this._linkTable[h]=this._linkTable[h]||[],this._linkTable[h].push(g)}return g}if(!a.array){if(a.from)return a.from(e,this);if(a.type){var i=new a.type(e,this,a.info);return i._model||this.deserialize(i,e||{},a.info),i}if(a.info){var j={getInfo:function(){return a.info}};return this.deserialize(j,e||{}),j}if(a.modelName)return ko.observable(e);throw new Error("Invalid info '"+JSON.stringify(a)+"'")}if(a.from)return a.from(e,this);if(a.info){var k=[];return b.getPropertyValues(e).forEach(function(b){var c={getInfo:function(){return a.info}};d.deserialize(c,b||{}),k.push(c)}),ko.observableArray(k)}}},c.prototype.deserialize=function(a,c,d){var e=this;if(void 0===d&&(d=null),c){a._model=b.extend({},c);var d=a.getInfo?a.getInfo():d,f=c["@Ref"];f&&(this._refTable[f]=a),d.forEach(function(b){var d=b.propertyName,f=b.modelName;void 0!==c[f]&&delete a._model[f];var g=e.deserializeProperty(b,c);void 0!==g&&(a[d]=g)}),this.linkObjects()}},c.prototype.serialize=function(a,b,c){return void 0===c&&(c=null),b||c?this._serialize(a,b,c):this._serialize(a,null,null)},c.prototype._isSerializableValue=function(a){return b.isPlainObject(a)&&!b.isEmptyObject(a)||Array.isArray(a)&&a.length>0||!Array.isArray(a)&&!b.isPlainObject(a)},c.prototype._serialize=function(a,c,d){var e=this,f=b.extend({},a._model),g=null===d;return d=d||{linkObjTable:[],objects:[]},c=a.getInfo?a.getInfo():c,delete f["@Ref"],a.isEmpty&&a.isEmpty()?{}:(c.forEach(function(g){var h=g.propertyName,i=ko.unwrap(a["_"+h]||a[h]),j=g.defaultVal;g.beforeSerialize&&(i=g.beforeSerialize(i)),g.from&&(j=ko.unwrap(g.from(j,e)));var k={};if(g.modelName&&(g.alwaysSerialize||void 0!==i&&null!==i&&(b.isPlainObject(i)||!b.isEmptyObject(i)||Array.isArray(i)&&i.length>0||!Array.isArray(i)&&!b.isPlainObject(i))&&i!==j)){if(g.link)d.linkObjTable.push({obj:i,setRef:function(a){a<0?delete f[g.modelName]:f[g.modelName]="#Ref-"+a}}),k=void 0;else if(g.array){k={};var l=1;i.forEach(function(a){var b=g.info||null,c=e._serialize(a,b,d);e._isSerializableValue(c)&&(k["Item"+l]=c,e._options.useRefs&&(c["@Ref"]=(d.objects.push(a)-1).toString()),l++)})}else if(g.from)k=i.isEmpty&&i.isEmpty()?{}:g.toJsonObject?g.toJsonObject(i,e,d):i.toString();else if(g.info||i.getInfo)k=e._serialize(i,g.info,d);else{if(!g.modelName)throw new Error("Invalid info '"+c.stringify()+"'");k=i instanceof Date?e._options.serializeDate(i):i}(g.alwaysSerialize||e._isSerializableValue(k))&&(f[g.modelName]=k)}}),g&&d.linkObjTable.forEach(function(a){var b=d.objects.indexOf(a.obj);a.setRef(b)}),f)},c}();a.ModelSerializer=c;var d=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;return b._handlers=[],b}return __extends(b,a),b.prototype.dispose=function(){this._handlers=[]},b.prototype.call=function(a,b){this._handlers.filter(function(b){return b.type===a}).forEach(function(a){return a.value(b)})},b.prototype.addHandler=function(a,b){this._handlers.push({type:a,value:b})},b.prototype.removeHandler=function(a,b){var c=this._handlers.filter(function(c){return c.type===a&&c.value===b})[0],d=this._handlers.indexOf(c);-1!==d&&this._handlers.splice(d,1)},b}(a.Disposable);a.EventManager=d}(a.Utils||(a.Utils={}))}(a.Analytics||(a.Analytics={}))}(DevExpress||(DevExpress={})),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.deserializeArray","Analytics.Utils.deserializeArray"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.ModelSerializer","Analytics.Utils.ModelSerializer"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.serializeDate","Analytics.Utils.serializeDate"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.extend","Analytics.Utils.extend","Analytics.Internal.extend"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.isPlainObject","Analytics.Utils.isPlainObject","Analytics.Internal.isPlainObject"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.isEmptyObject","Analytics.Utils.isEmptyObject","Analytics.Internal.isEmptyObject"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.getPropertyValues","Analytics.Utils.getPropertyValues","Analytics.Internal.getPropertyValues"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.knockoutArrayWrapper","Analytics.Utils.knockoutArrayWrapper","Analytics.Internal.knockoutArrayWrapper");var __extends=this&&this.__extends||function(){var a=function(b,c){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])})(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c),b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),DevExpress;!function(a){!function(b){var c;!function(c){function f(){return b.Utils.getLocalization("Select...","AnalyticsCoreStringId.PropertyGrid_Editor_EmptyText")}function g(){return b.Utils.getLocalization("No data to display","AnalyticsCoreStringId.DataPreview_Empty")}function h(a,b){var c=$.Deferred();return a.length>0?$.when.apply($,a).done(function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];a.forEach(function(a){return e.loadMessages(a[0])})}).always(function(){return c.resolve(b())}):c.resolve(b()),c}function i(b){if(b){var d=a.localization.message.getMessagesByLocales(),e=d[b]||{},f=d[b.split("-")[0]]||{};if(!e["dxList-selectAll"]&&!f["dxList-selectAll"]){var g=c.messages["AnalyticsCoreStringId.SelectAll"];g&&(e["dxList-selectAll"]=g)}var h={};h[b]=e,a.localization.loadMessages(h)}}function j(a){return!!c.custom_localization_values[a]}function k(a){return c.messages[a]}function l(b){return a.localization.formatDate(b,"shortDate")}function m(b,c,e){return void 0===c&&(c=!0),c?b?b instanceof Date?b:d.deserializeDate(b):null:e?a.localization.parseDate(b,e):a.localization.parseDate(b)}c.removeWinSymbols=!0,c.Globalize=a.Analytics.Internal.Globalize||window.Globalize,c.messages={},c.custom_localization_values={},c.selectPlaceholder=f,c.noDataText=g,c.resolveFromPromises=h,c.applyLocalizationToDevExtreme=i,c.isCustomizedWithUpdateLocalizationMethod=j,c.localize=k,c.formatDate=l,c.parseDate=m}(c=b.Internal||(b.Internal={}));var d;!function(a){function d(a,b){void 0===b&&(b=c.removeWinSymbols);var d=c.localize(a);if(d&&b&&(-1!==d.indexOf("&")||-1!==d.indexOf("<u>")||-1!==d.indexOf("</u>"))){var f={};return f[a]=d.replace("&","").replace("<u>","").replace("</u>",""),e.loadMessages(f),f[a]}}function f(a){return b.Internal.localize(a)||a}function g(a){$.extend(c.messages,a.messages)}function h(a,b){return-1!==a.indexOf(b,this.length-b.length)}function i(a,e,g){void 0===e&&(e=null),void 0===g&&(g=c.removeWinSymbols);var h=e&&b.Internal.localize(e)||f(a);return h=e&&d(e,g)||h,c.isCustomizedWithUpdateLocalizationMethod(h)&&(a=h),c.isCustomizedWithUpdateLocalizationMethod(a)?f(a):h}function j(a){$.extend(c.custom_localization_values,a);var b={};for(var d in a)b[d]=a[d];g({messages:b})}a.addCultureInfo=g,a._stringEndsWith=h,a.getLocalization=i,a.updateLocalization=j}(d=b.Utils||(b.Utils={}));var e;!function(a){function b(a){$.extend(c.messages,a)}a.loadMessages=b}(e=b.Localization||(b.Localization={})),function(a){function b(a,b){return"text"!==b?a.replace(/(^data:[^,]+,)|(^data:)/,""):a}function c(a,c,d){try{for(var e=a.files,f=0;f<e.length;f++){var g=e[f];if("img"===d.type){var h=/image.*/;if(!g.type.match(h))continue}var i=new FileReader;i.onload=function(){try{c.resolve({format:g.name.split(".").pop(),content:b(i.result,d.readMode)})}catch(a){c.reject()}},"text"!==d.readMode?i.readAsDataURL(g):i.readAsText(g)}}catch(a){c.reject()}}function d(){var a=document.createElement("input");return a.type="file",a.id=j,a.style.width="0px",a.style.height="0px",a.style.display="none",document.body.appendChild(a),a}function e(a){var b=$.Deferred(),e=document.getElementById(j);return e||(e=d()),e.accept=a.accept,e.onchange=function(){return c(e,b,a)},e.click(),b.promise()}function f(a,b){return!!a&&!!b&&a.header===b.header&&a.content===b.content&&a.editorType===b.editorType}function g(a,b){var c=h(b);return!!a&&a.match(new RegExp(c,"gi"))}function h(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function i(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];var d=a.toString();if(b.length){var e,f=typeof b[0],g="string"===f||"number"===f?Array.prototype.slice.call(b):b[0];for(e in g)d=d.replace(new RegExp("\\{"+e+"\\}","gi"),g[e])}return d}a.StringId={MasterDetailRelationsEditor:"DataAccessUIStringId.MasterDetailEditorForm_Title",DataAccessBtnOK:"DataAccessUIStringId.Button_OK",DataAccessBtnCancel:"DataAccessUIStringId.Button_Cancel",DataSourceWizardTitle:"DataAccessUIStringId.WizardTitleDatasource",WizardPageConfigureQuery:"DataAccessUIStringId.WizardPageConfigureQuery"},a._getFileContent=b;var j="dxd-fileuploader-input";a.uploadFile=e,a.compareEditorInfo=f,a.findMatchesInString=g,a.escapeToRegExp=h,a.formatUnicorn=i}(c=b.Internal||(b.Internal={}));!function(c){c.editorTemplates={bool:{header:"dx-boolean"},boolSelect:{header:"dx-boolean-select"},numeric:{header:"dx-numeric"},modificators:{custom:"dx-modificators"},combobox:{header:"dx-combobox"},comboboxEditable:{header:"dx-combobox-editable"},text:{header:"dx-text"},image:{header:"dx-image"},file:{header:"dx-file"},commonCollection:{custom:"dx-commonCollection"},stringArray:{header:"dx-emptyHeader",content:"dx-string-array"}};var e;!function(a){a.propertiesGridEditorsPaddingLeft=19}(e=c.Internal||(c.Internal={}));var f=function(d){function f(c,f,g,i){void 0===g&&(g=ko.observable(!1)),void 0===i&&(i=void 0);var j=d.call(this)||this;j._model=ko.observable(),j.isVisibleByContent=ko.observable(!0),j.isSearchedProperty=ko.observable(!0),j.isParentSearched=ko.observable(!1),j.rtl=a.config().rtlEnabled,j._validator=new h(j),j._cachedValue=void 0,j.isEditorSelected=ko.observable(!1),j.isPropertyModified=ko.computed(function(){return j._model()&&j._model().isPropertyModified&&j._model().isPropertyModified(j.name)}),j.collapsed=ko.observable(!0),j.info=ko.observable(c),j._disposables.push(j.displayName=ko.computed(function(){var b=j.info();return b&&a.Analytics.Utils.getLocalization(b.displayName,b.localizationId)})),i&&(j.textToSearch=i,j._disposables.push(j.isSearchedProperty=ko.computed(function(){return j.isParentSearched()||!!b.Internal.findMatchesInString(j.displayName(),i())}))),j.padding=j._setPadding(j.rtl?"right":"left",f*e.propertiesGridEditorsPaddingLeft);var k=ko.observable(null),l=c.propertyName;j.editorOptions=c.editorOptions,j.validatorOptions=c.validatorOptions,void 0!==c.defaultVal&&(k=ko.observable(c.defaultVal)),c.from&&(k=c.from(c.defaultVal)),c.array&&(k=ko.observableArray()),j._disposables.push(j.values=ko.computed(function(){var a=j.info().valueStore||j.info().valuesArray;return a||(a=ko.unwrap(j.info().values),a?$.map(a,function(a,b){return{value:b,displayValue:a}}):void 0)})),j.level=f,j._init(c.editor,k,l);var m=function(a,b,c){return ko.isObservable(b)?b():"function"==typeof b?b(a):void 0!==b?b:c};return j._disposables.push(j.disabled=ko.computed(function(){var a=j._model(),b=g()||a&&a.isPropertyDisabled&&a.isPropertyDisabled(j.name);return b||(b=m(a,j.info().disabled,!1)),b})),j._disposables.push(j.visible=ko.computed(function(){var a=j._model(),b=j.isSearchedProperty()&&(a&&a.isPropertyVisible?a.isPropertyVisible(j.name):j.isVisibleByContent());return b&&(b=m(a,j.info().visible,!0)),b})),j._disposables.push(j.isPropertyModified),j}return __extends(f,d),f.prototype._setPadding=function(a,b){var c={};return c["padding-"+a]=b,c},f.prototype.dispose=function(){this._validator&&this._validator.dispose(),this._validator=null,d.prototype.dispose.call(this),this._cachedValue=null,this._model(null)},f.prototype._assignValue=function(a,b,c,d){ko.isObservable(a)?a(c):b[d]=c},f.prototype._init=function(a,b,d){var e=this;a=a||c.editorTemplates.text,this.templateName=a.header,this.contentTemplateName=a.content,this.defaultValue=a===c.editorTemplates.color?"transparent":null,this._cachedValue=void 0,this._disposables.push(this.value=ko.computed({read:function(){var a=e._model();if(!a&&e._cachedValue)return e._cachedValue;var c=a&&void 0!==a[d]?a[d]:b;if(ko.isObservable(c)&&!c.push){var f=void 0!==c()&&null!==c();return e._cachedValue=f?c():e.defaultValue,e._cachedValue}return e._cachedValue=c,e._cachedValue},write:function(a){var b=e._model();if(b){var c=b[d];e._validator.assignWithValidation(a,function(){e._assignValue(c,b,a,d)})}}})),this.name=d,this.editorTemplate=a&&a.custom||"dx-property-editor"},f.prototype.findInfo=function(a){var b=this;if(!a)return null;var c=a.getInfo&&a.getInfo();return c?c.filter(function(a){return a.propertyName===b.name})[0]:null},f.prototype.updateInfo=function(a){return a&&b.Internal.compareEditorInfo(a.editor,this.info().editor)?(this.info()!==a&&this.info(a),!0):!a},f.prototype.update=function(a){if(a){var b=this.findInfo(a);this.isVisibleByContent(this.name in a&&this.updateInfo(b)),this._model(this.isVisibleByContent()?a:null)}else this.isVisibleByContent(!1),this._model(null)},f.prototype.getOptions=function(a){var b=this.info.peek().editor.extendedOptions;return $.extend({},a,this.editorOptions,b)},f.prototype.getValidatorOptions=function(a){return this._validator&&this._validator.getValidatorOptions(a)},f.prototype._getEditorValidationRules=function(){var a=ko.unwrap(this.info);if(a){var b=a.validationRules;return b||(null===b?null:[])}},f.prototype.getValidationRules=function(){return this._validator&&this._validator.getValidationRules()},Object.defineProperty(f.prototype,"validationRules",{get:function(){return this.getValidationRules()},enumerable:!0,configurable:!0}),f.prototype.getPopupServiceActions=function(){return this._model()&&this._model().actions},Object.defineProperty(f.prototype,"isComplexEditor",{get:function(){return!!this.contentTemplateName},enumerable:!0,configurable:!0}),f}(d.Disposable);c.Editor=f;var g=function(a){function c(c,d,e,f){var g=a.call(this,c,d,e,f)||this;g.editorCreated=ko.observable(!1),g.viewmodel=g.createObjectProperties(),g._disposables.push(g.viewmodel);var h=g.collapsed.subscribe(function(a){a||(h.dispose(),g.editorCreated(!0))});return g._disposables.push(h),f&&(g._disposables.push(g.visibleByName=ko.computed(function(){var a=!!b.Internal.findMatchesInString(g.displayName(),f());return $.isEmptyObject(g.viewmodel)||g.viewmodel._editors().forEach(function(b){return b.isParentSearched(a)}),a})),g.isSearchedProperty.dispose&&g.isSearchedProperty.dispose(),g._disposables.push(g.isSearchedProperty=ko.computed(function(){if(g.visibleByName())return!0;var a=g.viewmodel.visible();return a&&g.collapsed(!1),a}))),g}return __extends(c,a),c.prototype.createObjectProperties=function(){var a=this;return new i(this.value,{editors:ko.computed(function(){return a.info().info})},this.level+1,this.disabled,void 0,this.textToSearch)},c}(f);c.PropertyGridEditor=g,function(){c.editorTemplates.objecteditor={header:"dx-emptyHeader",content:"dx-objectEditorContent",editorType:g}}();var h=function(b){function c(a){var c=b.call(this)||this;return c._editor=a,c._lastValidatorOptions=null,c._lastModelOverridableRules=null,c._onValidatedHandler=void 0,c}return __extends(c,b),c.prototype.dispose=function(){this.onValidatedHandler=null,this.validatorInstance&&this.validatorInstance.dispose(),this.validatorInstance=null,b.prototype.dispose.call(this)},c.prototype._isValid=function(b,c){var d=this;return this.onValidatedHandler=void 0,this.validatorInstance?((b||[]).forEach(function(a){return a&&(a.validator=d.validatorInstance)}),this.validatorInstance.validate()):a.validationEngine.validate(c,b,this._editor.displayName())},Object.defineProperty(c.prototype,"validatorInstance",{get:function(){return this._validatorInstance},set:function(a){this._validatorInstance&&this.onValidatedHandler&&this._validatorInstance.off("validated",this._onValidatedHandler),this._validatorInstance=a},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"onValidatedHandler",{get:function(){return this._onValidatedHandler},set:function(a){this._onValidatedHandler&&this.validatorInstance&&(this.validatorInstance.off("validated",this._onValidatedHandler),this._onValidatedHandler=a,a&&this.validatorInstance.on("validated",this._onValidatedHandler))},enumerable:!0,configurable:!0}),c.prototype.getValidationRules=function(){var a=this.getValidatorOptions(),b=(a||{}).validationRules;return b||(null===b?null:[])},c.prototype.getValidatorOptions=function(a){void 0===a&&(a={});var b=this._editor.info.peek();if(b){var c=this._lastValidatorOptions,d=this._editor._getEditorValidationRules();if(c&&!this.areRulesChanged(d))return c;this._lastModelOverridableRules=d;var e=this._concatValidationRules(b.validatorOptions,d),f=b.editor.extendedOptions&&b.editor.extendedOptions.validatorOptions,c=$.extend({},a,b.validatorOptions,{validationRules:e},f);return this._wrapValidatorEvents(c),this._lastValidatorOptions=c,c}},c.prototype.areRulesChanged=function(a){var b=this;return this._lastModelOverridableRules&&this._lastModelOverridableRules.length?!a||!a.length||!a.every(function(a){return b._lastModelOverridableRules.some(function(b){return a.message===b.message&&a.validationCallback===b.validationCallback&&a.type===b.type})}):a&&a.length},c.prototype.wrapOnValidatorInitialized=function(a){var b=a.onInitialized,c=this;a.onInitialized=function(a){c._onValidatorInitialized(a),b&&b.apply(this,arguments)}},c.prototype._onValidatorInitialized=function(a){this.validatorInstance=a&&a.component},c.prototype._concatValidationRules=function(a,b){return a&&a.validationRules||b?((a||{}).validationRules||[]).concat(b||[]):null},c.prototype._wrapValidatorEvents=function(a){if(a&&a.validationRules&&a.validationRules.length)return this.wrapOnValidatorInitialized(a),a},c.prototype.assignWithValidation=function(a,b){var c=this,d=this.getValidationRules(),e=!d||d.some(function(a){return a.assignValueFirst});e&&b();var f=this._isValid(d,a);if(!f.isValid)return void(f.brokenRule&&f.brokenRule.isDeferred&&(this.onValidatedHandler=function(a){c.onValidatedHandler=void 0,a.isValid&&b()}));e||b()},c}(d.Disposable);c.EditorValidator=h;var i=function(c){function d(b,d,e,f,g,h){void 0===e&&(e=0),void 0===f&&(f=ko.observable(!1)),void 0===g&&(g=!1);var i=c.call(this)||this;return i._targetSubscription=null,i._infoSubscription=null,i._getInfoComputed=null,i.level=0,i.rtl=a.config().rtlEnabled,i._editors=ko.observableArray([]).extend({deferred:!0}),i.level=e,i._parentDisabled=f,i._textToSearch=h,i._disposables.push(i.visible=ko.computed(function(){return i._editors().some(function(a){return a.visible()})})),i._targetSubscription=b.subscribe(function(a){i._infoSubscription&&i._infoSubscription.dispose(),i._getInfoComputed&&i._getInfoComputed.dispose(),i._update(a,d,g)}),i._update(b(),d,g),i}return __extends(d,c),d.prototype.update=function(a){a&&this._editors().forEach(function(b){b.update(a)})},d.prototype._cleanEditorsSubscriptions=function(){this._editors().forEach(function(a){a.dispose();for(var b in a)ko.isComputed(a[b])&&a[b].dispose()})},d.prototype.dispose=function(){c.prototype.dispose.call(this),this.disposeObservableArray(this._editors),this.resetObservableArray(this._editors),this.cleanSubscriptions()},d.prototype.cleanSubscriptions=function(){this._infoSubscription&&this._infoSubscription.dispose(),this._getInfoComputed&&this._getInfoComputed.dispose(),this._targetSubscription&&this._targetSubscription.dispose(),this._cleanEditorsSubscriptions()},d.prototype.cleanEditors=function(){this._cleanEditorsSubscriptions(),this._editors([])},d.prototype.findEditorByInfo=function(a){return this._editors().filter(function(c){return c.name===a.propertyName&&b.Internal.compareEditorInfo(c.info().editor,a.editor)})[0]},d.prototype.createEditor=function(a){return new(a.editor&&a.editor.editorType||f)(a,this.level,this._parentDisabled,this._textToSearch)},d.prototype.createEditors=function(a){var b=this;return(a||[]).filter(function(a){return!!a.editor&&!b.findEditorByInfo(a)}).map(function(a){return b.createEditor(a)})},d.prototype._createEditors=function(a){var b=this;if(!a||0===a.length)return!1;var c=this.createEditors(a);if(c.length){var d=[].concat([],this._editors().map(function(a){return a.name}),c.map(function(a){return a.name})).sort(function(a,b){return a[0]-b[0]});c.forEach(function(a){return b._editors.splice(d.indexOf(a.name),0,a)})}},d.prototype._update=function(a,b,c){var d=this;c&&(this._cleanEditorsSubscriptions(),this.resetObservableArray(this._editors));this._getInfoComputed=ko.computed(function(){return b&&b.editors&&ko.unwrap(b.editors)||a&&a.getInfo&&a.getInfo()}),this._infoSubscription=this._getInfoComputed.subscribe(function(b){c&&(d._cleanEditorsSubscriptions(),d.resetObservableArray(d._editors)),d._createEditors(b),d.update(a)}),this._createEditors(this._getInfoComputed()),this.update(a)},d.prototype.getEditors=function(){return this._editors()},d}(d.Disposable);c.ObjectProperties=i}(b.Widgets||(b.Widgets={})),function(a){var b=function(){function a(){this._queue=[],this._done=[]}return a.prototype.done=function(a){this._done.push(a)},a.prototype.execute=function(a,b){void 0===b&&(b=0);var c=$.Deferred();if(b){var d=this;this._queue.push(function(){setTimeout(function(){if(c.resolve(a()),d._queue.splice(0,1),0!==d._queue.length)d._queue[0]();else for(var b=0;b<d._done.length;b++)d._done[b]()},b)}),1===this._queue.length&&this._queue[0]()}else c.resolve(a());return c.promise()},a}();a.CodeResolver=b,a.globalResolver=new b}(c=b.Internal||(b.Internal={})),function(c){ko.bindingHandlers.dxPropertyGrid={init:function(d,e,f,g,h){$(d).children().remove();var i=a.Analytics.Widgets.Internal.getTemplate("dx-propertieseditor"),j=$(d).append(i),k=e(),l=new c.ObjectProperties(k.target,k.editorsInfo,k.level,k.parentDisabled,k.recreateEditors,k.textToSearch);return ko.applyBindings(h.createChildContext(l),j.children()[0]),b.Internal.addDisposeCallback(d,function(){l.dispose()}),{controlsDescendantBindings:!0}}},ko.virtualElements.allowedBindings.lazy=!0,ko.bindingHandlers.lazy={init:function(a,c,d,e,f){var g=b.Internal.globalResolver,h=c();h.innerBindings&&(g=h.resolver,h=h.innerBindings);var i=!1;return $.each(h,function(b,c){var h=ko.bindingHandlers[b];g.execute(function(){if(!i){var b=!1;ko.computed({read:function(){!b&&h.init&&(h.init(a,function(){return c},d,e,f),b=!0),h.update&&h.update(a,function(){return c},d,e,f)},disposeWhenNodeIsRemoved:a})}},1)}),b.Internal.addDisposeCallback(a,function(){i=!0}),{controlsDescendantBindings:!0}}},ko.bindingHandlers.dxdAccordion={init:function(c,d){var e=d(),f=$(c),g=f.find(".dx-accordion-content").first(),h=function(){var b=f.parents(".dx-scrollview");if(b.length>0){var c=a.ui.dxScrollView.getInstance(b.get(0));c&&c.update()}},i=f.find(".dx-accordion-header,.dx-accordion-button").get(0);a.events.off(i,"dxclick"),a.events.on(i,"dxclick",function(){e.collapsed((!e.alwaysShow||!e.alwaysShow())&&!e.collapsed())}),e.collapsed()?g.hide():g.show();var j=e.collapsed.subscribe(function(a){g.slideToggle(e.timeout,function(){return h()})});b.Internal.addDisposeCallback(c,function(){return j.dispose()})}},ko.bindingHandlers.dxdAccordionExt={init:function(b,c,d,e,f){var g=c(),h=$(b),i=function(){var b=h.parents(".dx-scrollview");if(b.length>0){var c=a.ui.dxScrollView.getInstance(b.get(0));c&&c.update()}},j=h.find(".dx-accordion-content").first(),k=null;g.collapsed()&&!0===g.lazyContentRendering&&(k=j.html(),j.empty()),g.collapsed.subscribe(function(a){a?j.slideUp(g.timeout,function(){i()}):(k&&(j.html(k),ko.applyBindingsToDescendants(f,j.get(0)),k=null),j.slideDown(g.timeout,function(){i()}))}),g.collapsed()?j.hide():j.show()}},ko.bindingHandlers.dxLocalizedSelectBox={init:function(c,d,e,f,g){var h=d(),i=h.displayExpr;h.placeholder=h.placeholder||b.Internal.selectPlaceholder(),h.noDataText=h.noDataText||b.Internal.noDataText(),h.displayExpr=function(a){return a?i?b.Utils.getLocalization($.isFunction(i)?i(a):a[i],a.localizationId):b.Utils.getLocalization(a,a.localizationId):a},h.itemTemplate=function(b,c,d){var e=g.createChildContext({display:h.displayExpr(b)});$(d).children().remove();var f=a.Analytics.Widgets.Internal.getTemplate("item-with-title"),i=$(d).append(f);return ko.applyBindingsToDescendants(e,i[0]),d};var j=f.getOptions?f.getOptions(h):h;return ko.bindingHandlers.dxSelectBox.init(c,function(){return j},e,f,g),{controlsDescendantBindings:!0}}},ko.bindingHandlers.styleunit={update:function(a,b){var c=ko.utils.unwrapObservable(b()||{});$.each(c,function(b,c){c=ko.utils.unwrapObservable(c)||0,a.style[b]=c+"px"})}},ko.bindingHandlers.service={init:function(a,b,c,d,e){var f=ko.unwrap(b()||{}),g=function(a){var b=e.$parents.filter(function(b){return void 0!==b[a]})[0];return b?b[a]:null},h=g(f.name);if(h){var i=h(d),j=e.createChildContext(i.data);ko.renderTemplate(i.templateName,j,{},a,"replaceNode")}}}}(b.Widgets||(b.Widgets={})),function(a){var b=function(){function a(){this.data=ko.observable(),this.title=ko.observable(),this.visible=ko.observable(!1),this.actions=ko.observableArray([]),this.target=ko.observable()}return a}();a.PopupService=b;var c=function(a){function b(b,c){var d=a.call(this)||this;return d.showPopup=function(a,b){d._popupService.title(d._editor.displayName()),d._updateActions(d._editor.getPopupServiceActions()),d._popupService.target(b),d._popupService.visible(!0)},d.templateName="dx-editor-addons",d._editor=b,d._popupService=c,d._disposables.push(d.visible=ko.pureComputed(function(){if(b.disabled())return!1;var a=b.getPopupServiceActions();return a&&a.length>0&&a.some(function(a){return a.visible(b.name)})})),d._disposables.push(d.editorMenuButtonCss=ko.pureComputed(function(){return b._model()&&b._model().getActionClassName&&b._model().getActionClassName(b.name)||""})),d}return __extends(b,a),b.prototype._updateActions=function(a){var b=this;this._popupService.actions([]),a&&a.forEach(function(a){a.visible(b._editor.name)&&b._popupService.actions.push({action:function(){a.action(b._editor.name),b._popupService.visible(!1)},title:a.title,visible:function(){return!0}})})},b}(d.Disposable);a.EditorAddOn=c}(c=b.Internal||(b.Internal={})),function(c){var e=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return __extends(b,a),b.prototype._getEditorValidationRules=function(){return(a.prototype._getEditorValidationRules.call(this)||[]).concat(f.guidValidationRules).concat(this.editorOptions&&this.editorOptions.isNullable?[]:f.guidRequiredValidationRules)},b}(c.Editor);c.GuidEditor=e;var f;!function(b){function c(a){return/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(a)||/^\{[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\}$/.test(a)||/^\([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\)$/.test(a)||/^[0-9a-fA-F]{32}$/.test(a)}function d(a){return a&&c(a)}function e(a){return!a||c(a)}b.validateGuid=d,b.validateNullableGuid=e;var f=function(){return a.Analytics.Utils.getLocalization("Guid is required and should have a valid format.","AnalyticsCoreStringId.GuidIsRequired_Error")};b.guidValidationRules=[{type:"custom",validationCallback:function(a){return e(a.value)},get message(){return f()}}],b.guidRequiredValidationRules=[{type:"required",get message(){return f()}}];var g={type:"required",get message(){return a.Analytics.Utils.getLocalization("The value cannot be empty","AnalyticsCoreStringId.ParametersPanel_DateTimeValueValidationError")}};b.requiredValidationRules=[g]}(f=c.Internal||(c.Internal={})),function(c){var e=function(){function a(a,b,c,d){void 0===d&&(d="");var e=this;this.collapsed=ko.observable(!0),this.selected=ko.observable(!1),this.value=ko.computed({read:function(){return b.peek()[c()]},write:function(a){b.peek()[c()]=a}}),this.editor=a,this.index=c,this.name=ko.computed(function(){return d&&e.value()&&e.value()[d]?ko.unwrap(e.value()[d]):c()})}return a}();c.CollectionItemWrapper=e;var f=function(){function b(b,d){void 0===d&&(d=ko.observable(!1));var e=this;this.buttonMap={delete:{text:"Delete",localizationId:"AnalyticsCoreStringId.Cmd_Delete"},add:{text:"Add",localizationId:"DataAccessUIStringId.Button_Add"},down:{text:"Move Down",localizationId:"AnalyticsCoreStringId.Cmd_MoveDown"},up:{text:"Move Up",localizationId:"AnalyticsCoreStringId.Cmd_MoveUp"}},this.selectedIndex=ko.observable(null),this.alwaysShow=ko.observable(!1),this.collapsed=ko.observable(!1!==b.collapsed);var f=b.addHandler||b.info&&b.info()&&b.info().addHandler,g=b.hideButtons||b.info&&b.info()&&b.info().hideButtons;this._textEmptyArray=b.textEmptyArray||{text:"To create an item click the Add button.",localizationId:"AnalyticsCoreStringId.SqlDSWizard_PageConfigureParametersEmpty"},this.displayPropertyName=b.info&&b.info()&&b.info().displayPropertyName||b.displayName,this.showButtons=ko.computed(function(){return!ko.unwrap(g)&&!e.collapsed()});var h=function(a,c){return b.isDisabledButton?b.isDisabledButton(a,c):"delete"===c?null===a:"add"!==c&&("up"===c?null===a||0===a:"down"===c?null===a||a===e.values().length-1:void 0)};this.isDisabledButton=function(a){return d()||h(e.selectedIndex(),a)},this.isVisibleButton=function(a){return!!e.showButtons()&&(!b.isVisibleButton||b.isVisibleButton(e.selectedIndex(),a))},this.padding=void 0!==b.level?b.level*c.propertiesGridEditorsPaddingLeft:0,this.displayName=b.info&&b.info()?a.Analytics.Utils.getLocalization(b.info().displayName,b.info().localizationId):b.displayName,this.options=b,b.displayName||(this.collapsed(!1),this.alwaysShow(!0)),this.values=ko.computed(function(){return ko.unwrap(b.values())}),this.add=function(a){b.undoEngine&&b.undoEngine().start(),b.values().push(f()),b.undoEngine&&b.undoEngine().end(),a.event.stopPropagation()},this.up=function(a){e._move(b.values(),-1),a.event.stopPropagation()},this.down=function(a){e._move(b.values(),1),a.event.stopPropagation()},this.remove=function(a){e.selectedIndex()>=0&&(b.values().splice(e.selectedIndex(),1),e.selectedIndex(null)),a.event.stopPropagation()},this.select=function(a){e.selectedIndex(a.index())},this.disabled=d}return b.prototype._move=function(a,b){if(this.selectedIndex()>=0){var c=this.selectedIndex(),d=c+b;if(d>=a().length||d<0)return;a.splice(d,0,a.splice(c,1)[0]),this.selectedIndex(d)}},b.prototype.getDisplayTextButton=function(b){return a.Analytics.Utils.getLocalization(this.buttonMap[b].text,this.buttonMap[b].localizationId)},b.prototype.getDisplayTextEmptyArray=function(){return a.Analytics.Utils.getLocalization(this._textEmptyArray.text,this._textEmptyArray.localizationId)},b.prototype.createCollectionItemWrapper=function(a,b){return new e(a,this.values,b,this.displayPropertyName)},b}();c.CollectionEditorViewModel=f,ko.bindingHandlers.dxCollectionEditor={init:function(b,c,d,e,g){var h=c(),i=new f(h,e.disabled),j=a.Analytics.Widgets.Internal.getTemplate(h.editorTemplate||"#dx-collectioneditor"),k=$(j),l=h.info&&h.info()&&h.info().template||h.template;if(l){var m=a.Analytics.Widgets.Internal.getTemplate(l);k.find(".dx-collection-item").append($(m))}else k.find(".dx-collection-item").append($(b).children());var n=$(b).append(k),o=g.createChildContext(i);return ko.applyBindings(o,n.children()[0]),{controlsDescendantBindings:!0}}};var g="dx-ellipsiseditor",h=g+" dx-dropdowneditor",i=g+"-button dx-widget dx-button-normal dx-dropdowneditor-button dx-ellipsis-button",j=g+"-icon dx-ellipsis-image dx-dropdowneditor-icon",k="dxrd-svg-ellipsis",l=function(a){function c(b,c){return a.call(this,b,c)||this}return __extends(c,a),c.prototype._init=function(){a.prototype._init.call(this);var b=$(this.element());b.addClass(h),this._koContext=ko.contextFor(b.get(0))},c.prototype._render=function(){a.prototype._render.call(this),this._renderButton()},c.prototype._renderButton=function(){this._$button=$("<div />").addClass(i),this._attachButtonEvents(),this._$buttonIcon=$("<div />").addClass(j).height("100%").append(b.Widgets.Internal.SvgTemplatesEngine.templates[k]).appendTo(this._$button),ko.applyBindingsToDescendants(this._koContext,this._$buttonIcon[0]);var c=a.prototype._buttonsContainer.call(this);this._$button.prependTo(c)},c.prototype._updateButtonSize=function(){this._$buttonIcon.height($(this.element()).height())},c.prototype._attachButtonEvents=function(){var a=this;this._$button.off("click"),this.option("disabled")||this._$button.on("click",function(b){a.option("buttonAction")&&(a.option("buttonAction")(),b.stopPropagation())})},c.prototype._optionChanged=function(b,c){switch(b.name||b){case"disabled":this._attachButtonEvents()}a.prototype._optionChanged.apply(this,arguments)},c}(a.ui.dxTextBox);c.dxEllipsisEditor=l,a.registerComponent("dxEllipsisEditor",l);var g="dx-fileimage",m=g+"-input-wrapper",n=function(a){function b(b,c){var e={Image:"AnalyticsCoreStringId.ImagePicker_Placeholder",File:"AnalyticsCoreStringId.FilePicker_Placeholder","(none)":"DxDesignerStringId.None"},f=c.placeholderId||"(none)",g=e[f];return c.placeholder=c.placeholder||d.getLocalization(f,g),a.call(this,b,c)||this}return __extends(b,a),b.prototype._handleFiles=function(a){for(var b=this,c=a.files,d=0;d<c.length;d++){var e=c[d];if("img"===this.option("type")){var f=/image.*/;if(!e.type.match(f))continue}var g=new FileReader;"text"!==this.option("readMode")?(g.onload=function(a){b.option("useFormat")&&b.option("format",b._filesinput[0].files[0].name.split(".").pop());var c=g.result.replace(/^data:[^,]+,/,"");b.option("value",c),b._filesinput.val("")},g.readAsDataURL(e)):(g.onload=function(a){b.option("value",g.result),b._filesinput.val("")},g.readAsText(e))}},b.prototype._$getInput=function(){var a=this.option("accept")?"accept = '"+this.option("accept")+"'":"";return $("<input type='file' "+a+" style='display:none' />")},b.prototype._render=function(){a.prototype._render.call(this);var b=this;this._filesinput=this._$getInput().on("change",function(a){b._handleFiles(b._filesinput.get(0))}).appendTo(this.element())},b.prototype._renderInput=function(b){var c=b&&$(b)||$("<div />");c.addClass(m),this._inputContainer=c.get(0),$(this.element()).append(this._inputContainer),a.prototype._renderInput.call(this,b)},b.prototype._attachButtonEvents=function(){var a=this;this._$button.off("click"),this.option("disabled")||this._$button.on("click",function(b){a.option("value")||a._filesinput.val(""),a._filesinput.click()})},b.prototype._renderValue=function(){this.option("placeHolder")?this.option("text",this.option("value")&&this.option("placeHolder")):this.option("text",this.option("value")),a.prototype._renderValue.call(this)},b}(l);c.dxFileImagePicker=n,a.registerComponent("dxFileImagePicker",n),c.availableUnits=[{value:"pt",displayValue:"Point",localizationId:"DevExpress.ReportDesigner_FontOptions_Unit_Point"},{value:"world",displayValue:"World",localizationId:"AnalyticsCoreStringId.FontOptions_Unit_World"},{value:"px",displayValue:"Pixel",localizationId:"AnalyticsCoreStringId.FontOptions_Unit_Pixel"},{value:"in",displayValue:"Inch",localizationId:"AnalyticsCoreStringId.Wizard_Inch"},{value:"doc",displayValue:"Document",localizationId:"PreviewStringId.ReportDesigner_FontOptions_Unit_Document"},{value:"mm",displayValue:"Millimetr",localizationId:"AnalyticsCoreStringId.Wizard_Millimeter"}];var o=function(a){function b(b){var c=a.call(this)||this;return c.family=ko.observable("Times New Roman"),c.unit=ko.observable("pt"),c.isUpdateModel=!1,c.size=ko.observable(9),c.modificators={bold:ko.observable(!1),italic:ko.observable(!1),strikeout:ko.observable(!1),underline:ko.observable(!1)},c.updateModel(b()),c._disposables.push(b.subscribe(function(a){c.isUpdateModel=!0,c.updateModel(a),c.isUpdateModel=!1})),c._disposables.push(c.modificators.bold.subscribe(function(a){return c.updateValue(b)})),c._disposables.push(c.modificators.italic.subscribe(function(a){return c.updateValue(b)})),c._disposables.push(c.modificators.strikeout.subscribe(function(a){return c.updateValue(b)})),c._disposables.push(c.modificators.underline.subscribe(function(a){return c.updateValue(b)})),c._disposables.push(c.family.subscribe(function(a){return c.updateValue(b)})),c._disposables.push(c.size.subscribe(function(a){return c.updateValue(b)})),c._disposables.push(c.unit.subscribe(function(a){return c.updateValue(b)})),c}return __extends(b,a),b.prototype.updateModel=function(a){if(a){var b=a.split(",");this.family(b[0]);var d=this;c.availableUnits.forEach(function(a){-1!=b[1].indexOf(a.value)&&(d.size(parseFloat(b[1].split(a.value)[0])),d.unit(a.value))}),this.modificators.bold(-1!==a.indexOf("Bold")),this.modificators.italic(-1!==a.indexOf("Italic")),this.modificators.underline(-1!==a.indexOf("Underline")),this.modificators.strikeout(-1!==a.indexOf("Strikeout"))}},b.prototype.updateValue=function(a){if(!this.isUpdateModel){var b=[this.family(),this.size()+this.unit()].join(", "),c=[];this.modificators.bold()&&c.push("Bold"),this.modificators.italic()&&c.push("Italic"),this.modificators.underline()&&c.push("Underline"),this.modificators.strikeout()&&c.push("Strikeout");var d=c.join(", ");a(d?[b,d].join(", style="):b)}},b}(d.Disposable);c.FontModel=o,c.availableFonts=ko.observable({"Times New Roman":"Times New Roman",Arial:"Arial","Arial Black":"Arial Black","Comic Sans MS":"Comic Sans MS","Courier New":"Courier New",Georgia:"Georgia",Impact:"Impact","Lucida Console":"Lucida Console","Lucida Sans Unicode":"Lucida Sans Unicode",Tahoma:"Tahoma","Trebuchet MS":"Trebuchet MS",Verdana:"Verdana","MS Sans Serif":"MS Sans Serif","MS Serif":"MS Serif",Symbol:"Symbol",Webdings:"Webdings",Wingdings:"Wingdings"})}(f=c.Internal||(c.Internal={}));var g=function(a){function b(b,c,d,e){return a.call(this,b,c,d,e)||this}return __extends(b,a),b.prototype.createObjectProperties=function(){var a=new f.FontModel(this.value);return this._disposables.push(a),new c.ObjectProperties(ko.observable(a),{editors:h.fontInfo},this.level+1,this.disabled,void 0,this.textToSearch)},b}(c.PropertyGridEditor);c.FontEditor=g;var h;!function(a){a.fontInfo=[{propertyName:"family",displayName:"Font Name",localizationId:"AnalyticsCoreStringId.FormatFontName",editor:c.editorTemplates.combobox,values:f.availableFonts},{propertyName:"size",displayName:"Size",localizationId:"AnalyticsCoreStringId.Font.Size",editor:c.editorTemplates.numeric},{propertyName:"unit",displayName:"Unit",localizationId:"AnalyticsCoreStringId.Font.Unit",editor:c.editorTemplates.combobox,valuesArray:f.availableUnits},{propertyName:"modificators",editor:c.editorTemplates.modificators}]}(h=c.Metadata||(c.Metadata={})),c.editorTemplates.font={header:"dx-emptyHeader",content:"dx-objectEditorContent",editorType:g},function(b){function d(b){var b="#"===b[0]?b.substr(1):b;return $("#"+b).text()||a.Analytics.Widgets.Internal.SvgTemplatesEngine.templates[b]}b.extendedTemplates=function(a){return void 0===a&&(a=c.Internal.SvgTemplatesEngine.templates),{"dxrd-svg-fieldlist-list":a["dxrd-svg-fieldlist-table"],"dxrd-svg-fieldlist-default":a["dxrd-svg-fieldlist-column"]}},b.availableTemplates={"dxrd-svg-collapsed":'<svg data-bind="svgAttrs" viewBox="0 0 9 9"><path class="dxd-icon-fill" d="M2 2l5 3-5 3z"/></svg>',"dxrd-svg-ellipsis":'<svg data-bind="svgAttrs" viewBox="-467 277 16 16"><path class="dxd-icon-fill" d="M-464 284h2v2h-2zM-460 284h2v2h-2zM-456 284h2v2h-2z"/></svg>',"dxrd-svg-expressioneditor-addition":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M20 10h-6V4h-4v6H4v4h6v6h4v-6h6z"/></svg>',"dxrd-svg-expressioneditor-and":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M15 4c-1.1 0-2.1.2-3 .7-.9-.5-1.9-.7-3-.7-3.9 0-7 3.1-7 7s3.1 7 7 7c1.1 0 2.1-.2 3-.7.9.4 1.9.7 3 .7 3.9 0 7-3.1 7-7s-3.1-7-7-7zm-1 7c0 1.6-.8 3.1-2 4-1.2-.9-2-2.3-2-4s.8-3.1 2-4c1.2.9 2 2.4 2 4zM4 11c0-2.8 2.2-5 5-5 .3 0 .7 0 1 .1-1.2 1.3-2 3-2 4.9s.8 3.6 2 4.9c-.3.1-.7.1-1 .1-2.8 0-5-2.2-5-5zm11 5c-.3 0-.7 0-1-.1 1.2-1.3 2-3 2-4.9s-.8-3.6-2-4.9c.3-.1.7-.1 1-.1 2.8 0 5 2.2 5 5s-2.2 5-5 5z"/><path class="dxd-icon-fill dxd-opacity-60" d="M14 11c0 1.6-.8 3.1-2 4-1.2-.9-2-2.3-2-4s.8-3.1 2-4c1.2.9 2 2.4 2 4z"/></svg>',"dxrd-svg-expressioneditor-division":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M2 10h20v4H2z"/><circle class="dxd-icon-fill" cx="12" cy="6" r="2"/><circle class="dxd-icon-fill" cx="12" cy="18" r="2"/></svg>',"dxrd-svg-expressioneditor-edit":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M18 8l-6 6-6-6z"/></svg>',"dxrd-svg-expressioneditor-equal":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M4 6h16v4H4zM4 12h16v4H4z"/></svg>',"dxrd-svg-expressioneditor-greater":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M4 4v2l10 6-10 6v2l14-8z"/></svg>',"dxrd-svg-expressioneditor-greater_or_equal":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M4 2v2l10 6-10 6v2l14-8zM4 22l14-8v-2L4 20z"/></svg>',"dxrd-svg-expressioneditor-less":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M18 4v2L8 12l10 6v2L4 12z"/></svg>',"dxrd-svg-expressioneditor-less_or_equal":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M18 2v2L8 10l10 6v2L4 10zM18 22L4 14v-2l14 8z"/></svg>',"dxrd-svg-expressioneditor-modulus":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M16 4L2 20h4L20 4zM16 12c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM6 12c2.2 0 4-1.8 4-4S8.2 4 6 4 2 5.8 2 8s1.8 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2z"/></svg>',"dxrd-svg-expressioneditor-multiplication":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M18 6l-2-2-5 5-5-5-2 2 5 5-5 5 2 2 5-5 5 5 2-2-5-5z"/></svg>',"dxrd-svg-expressioneditor-not":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M15 4c-1.1 0-2.1.2-3 .7-.9-.5-1.9-.7-3-.7-3.9 0-7 3.1-7 7s3.1 7 7 7c1.1 0 2.1-.2 3-.7.9.4 1.9.7 3 .7 3.9 0 7-3.1 7-7s-3.1-7-7-7zm-1 7c0 1.6-.8 3.1-2 4-1.2-.9-2-2.3-2-4s.8-3.1 2-4c1.2.9 2 2.4 2 4zM4 11c0-2.8 2.2-5 5-5 .3 0 .7 0 1 .1-1.2 1.3-2 3-2 4.9s.8 3.6 2 4.9c-.3.1-.7.1-1 .1-2.8 0-5-2.2-5-5zm11 5c-.3 0-.7 0-1-.1 1.2-1.3 2-3 2-4.9s-.8-3.6-2-4.9c.3-.1.7-.1 1-.1 2.8 0 5 2.2 5 5s-2.2 5-5 5z"/><path class="dxd-icon-fill dxd-opacity-60" d="M4 11c0-2.8 2.2-5 5-5 .3 0 .7 0 1 .1-1.2 1.3-2 3-2 4.9s.8 3.6 2 4.9c-.3.1-.7.1-1 .1-2.8 0-5-2.2-5-5z"/></svg>',"dxrd-svg-expressioneditor-not_equal":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M20 0h-2l-3.8 6H4v4h7.6l-1.2 2H4v4h3.8L4 22h2l3.8-6H20v-4h-7.6l1.2-2H20V6h-3.8z"/></svg>',"dxrd-svg-expressioneditor-or":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-60" d="M14 11c0 1.6-.8 3.1-2 4-1.2-.9-2-2.3-2-4s.8-3.1 2-4c1.2.9 2 2.4 2 4z"/><path class="dxd-icon-fill" d="M15 4c-1.1 0-2.1.2-3 .7-.9-.5-1.9-.7-3-.7-3.9 0-7 3.1-7 7s3.1 7 7 7c1.1 0 2.1-.2 3-.7.9.4 1.9.7 3 .7 3.9 0 7-3.1 7-7s-3.1-7-7-7zm-1 7c0 1.6-.8 3.1-2 4-1.2-.9-2-2.3-2-4s.8-3.1 2-4c1.2.9 2 2.4 2 4zM4 11c0-2.8 2.2-5 5-5 .3 0 .7 0 1 .1-1.2 1.3-2 3-2 4.9s.8 3.6 2 4.9c-.3.1-.7.1-1 .1-2.8 0-5-2.2-5-5zm11 5c-.3 0-.7 0-1-.1 1.2-1.3 2-3 2-4.9s-.8-3.6-2-4.9c.3-.1.7-.1 1-.1 2.8 0 5 2.2 5 5s-2.2 5-5 5z"/><path class="dxd-icon-fill dxd-opacity-60" d="M4 11c0-2.8 2.2-5 5-5 .3 0 .7 0 1 .1-1.2 1.3-2 3-2 4.9s.8 3.6 2 4.9c-.3.1-.7.1-1 .1-2.8 0-5-2.2-5-5zM15 16c-.3 0-.7 0-1-.1 1.2-1.3 2-3 2-4.9s-.8-3.6-2-4.9c.3-.1.7-.1 1-.1 2.8 0 5 2.2 5 5s-2.2 5-5 5z"/></svg>',"dxrd-svg-expressioneditor-parenthesis":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M2 11c0 3.8 1.8 7.1 4 9h2c-2.2-1.9-4-5.2-4-9s1.8-7.1 4-9H6c-2.2 1.9-4 5.2-4 9zM16 2h-2c2.2 1.8 4 5.2 4 9s-1.8 7.2-4 9h2c2.2-1.8 4-5.2 4-9s-1.8-7.2-4-9z"/><path class="dxd-icon-fill" d="M6 10h2v2H6zM10 10h2v2h-2zM14 10h2v2h-2z"/></svg>',"dxrd-svg-expressioneditor-subtraction":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M4 10h16v4H4z"/></svg>',"dxrd-svg-fieldlist-array":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M18 6v2h-2v2h2v8h2V6zM4 8H2v2h2v8h2V6H4zM8 18h6V6H8v12zm2-10h2v8h-2V8z"/></svg>',"dxrd-svg-fieldlist-bitearray":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M18 6v2h-2v2h2v8h2V6zM4 8H2v2h2v8h2V6H4zM8 18h6V6H8v12zm2-10h2v8h-2V8z"/></svg>',"dxrd-svg-fieldlist-bool":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M4 10v4l6 6 10-10V6L10 16z"/></svg>',"dxrd-svg-fieldlist-booleanfield":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M4 10v4l6 6 10-10V6L10 16z"/></svg>',"dxrd-svg-fieldlist-column":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M0 0h22v4H0zM6 6h4v16H6zM12 12h4v4h-4zM12 18h4v4h-4zM18 6h4v4h-4zM0 12h4v4H0zM18 18h4v4h-4zM12 6h4v4h-4zM0 18h4v4H0zM0 6h4v4H0zM18 12h4v4h-4z"/></svg>',"dxrd-svg-fieldlist-datasource":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><ellipse class="dxd-icon-fill dxd-opacity-80" cx="11" cy="4" rx="7" ry="2"/><path class="dxd-icon-fill dxd-opacity-80" d="M11 10c-3.9 0-7-.9-7-2v12c0 1.1 3.1 2 7 2s7-.9 7-2V8c0 1.1-3.1 2-7 2z"/></svg>',"dxrd-svg-fieldlist-date":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M11 0C4.9 0 0 4.9 0 11s4.9 11 11 11 11-4.9 11-11S17.1 0 11 0zm6 12h-6c-.5 0-1-.5-1-1V5c0-.5.5-1 1-1s1 .5 1 1v5h5c.5 0 1 .5 1 1s-.5 1-1 1z"/></svg>',"dxrd-svg-fieldlist-datetimefield":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M11 0C4.9 0 0 4.9 0 11s4.9 11 11 11 11-4.9 11-11S17.1 0 11 0zm6 12h-6c-.5 0-1-.5-1-1V5c0-.5.5-1 1-1s1 .5 1 1v5h5c.5 0 1 .5 1 1s-.5 1-1 1z"/></svg>',"dxrd-svg-fieldlist-doublefield":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M6 6H4v2h2v10h2V4H6zM10 16h2v2h-2zM20 12V4h-6v2h4v4h-4v8h6v-2h-4v-4z"/></svg>',"dxrd-svg-fieldlist-enum":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M13 12H1c-.5 0-1 .5-1 1v8c0 .5.5 1 1 1h12c.5 0 1-.5 1-1v-8c0-.5-.5-1-1-1zm-1 8H2v-2h10v2zm0-4H2v-2h10v2zM23 4H11c-.5 0-1 .5-1 1v5h12v2h-6v2h7c.5 0 1-.5 1-1V5c0-.5-.5-1-1-1zm-1 4H12V6h10v2z"/></svg>',"dxrd-svg-fieldlist-float":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M6 6H4v2h2v10h2V4H6zM10 16h2v2h-2zM20 12V4h-6v2h4v4h-4v8h6v-2h-4v-4z"/></svg>',"dxrd-svg-fieldlist-guid":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M10 10v10h8V2h-2v8h-6zm2 2h4v6h-4v-6zM6 10h2v10H6zM6 6h2v2H6z"/></svg>',"dxrd-svg-fieldlist-integer":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M4 8H2v2h2v8h2V6H4zM8 6v2h4v2H8v8h6v-2h-4v-4h4V6h-2zM16 6v2h4v2h-2v2h2v4h-4v2h6V6z"/></svg>',"dxrd-svg-fieldlist-integerfield":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M4 8H2v2h2v8h2V6H4zM8 6v2h4v2H8v8h6v-2h-4v-4h4V6h-2zM16 6v2h4v2h-2v2h2v4h-4v2h6V6z"/></svg>',"dxrd-svg-fieldlist-listsource":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><ellipse class="dxd-icon-fill dxd-opacity-80" cx="11" cy="4" rx="7" ry="2"/><path class="dxd-icon-fill dxd-opacity-80" d="M11 10c-3.9 0-7-.9-7-2v12c0 1.1 3.1 2 7 2s7-.9 7-2V8c0 1.1-3.1 2-7 2z"/></svg>',"dxrd-svg-fieldlist-none":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M0 0v22h22V0H0zm16 14l-2 2-3-3-3 3-2-2 3-3-3-3 2-2 3 3 3-3 2 2-3 3 3 3z"/></svg>',"dxrd-svg-fieldlist-parameters":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M12 4h4v8h-4zM8 18h4v4H8zM8 12h4v4H8zM8 0h4v4H8zM4 4h4v4H4z"/></svg>',"dxrd-svg-fieldlist-string":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M4 8h4v4H2v8h8V6H4v2zm4 10H4v-4h4v4zM14 10V2h-2v18h8V10h-6zm4 8h-4v-6h4v6z"/></svg>',"dxrd-svg-fieldlist-stringfield":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M4 8h4v4H2v8h8V6H4v2zm4 10H4v-4h4v4zM14 10V2h-2v18h8V10h-6zm4 8h-4v-6h4v6z"/></svg>',"dxrd-svg-fieldlist-table":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M0 0h22v4H0zM12 12h4v4h-4zM12 18h4v4h-4zM18 6h4v4h-4zM0 12h4v4H0zM18 18h4v4h-4zM12 6h4v4h-4zM6 12h4v4H6zM6 18h4v4H6zM6 6h4v4H6zM0 18h4v4H0zM0 6h4v4H0zM18 12h4v4h-4z"/></svg>',"dxrd-svg-fieldlist-view":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M0 6h4v4H0zM6 6h4v4H6zM12 6h4v4h-4zM18 6h4v4h-4zM0 12h4v4H0zM6 12h4v4H6zM0 18h4v4H0zM6 18h4v4H6zM0 0h22v4H0zM23.7 22.3l-2.5-2.5c.5-.8.8-1.8.8-2.8 0-2.8-2.2-5-5-5s-5 2.2-5 5 2.2 5 5 5c1 0 2-.3 2.8-.8l2.5 2.5c.4.4 1 .4 1.4 0 .4-.4.4-1 0-1.4zM17 20c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3z"/></svg>',"dxrd-svg-filtereditor-add":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-filter-editor-add-icon-fill-color" d="M20 10h-6V4h-4v6H4v4h6v6h4v-6h6z"/></svg>',"dxrd-svg-filtereditor-edit":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M18 8l-6 6-6-6z"/></svg>',"dxrd-svg-filtereditor-remove":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-filter-editor-remove-icon-fill-color" d="M18 6l-2-2-5 5-5-5-2 2 5 5-5 5 2 2 5-5 5 5 2-2-5-5z"/></svg>',"dxrd-svg-fontstyle-bold":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M14.4 10.8c1.1.3 1.9.7 2.5 1.3.8.8 1.1 1.8 1.1 3 0 .9-.2 1.8-.7 2.6-.5.8-1.2 1.4-2 1.8-.9.4-2.2.6-4 .6H4v-.5h.4c.7 0 1.1-.2 1.4-.7.2-.5.2-2 .2-3V6c0-1.1 0-2.6-.3-2.9-.3-.4-.7-.6-1.3-.6H4V2h6.6c1.3 0 2.3.1 3.1.3 1.2.3 2.1.9 2.7 1.7s.9 1.7.9 2.8c0 .9-.2 1.7-.7 2.4-.5.7-1.2 1.3-2.2 1.6zM8 10H10.6c1.1 0 2 0 2.6-.3.6-.3.9-.6 1.2-1.2.3-.6.5-1.2.5-1.9 0-1.1-.4-2-1.1-2.7S11.4 3 10 3H8v7zm0 8.9h3c1.4 0 2.5-.3 3.2-1s1.1-1.6 1.1-2.7c0-.7-.2-1.4-.5-2-.3-.6-.9-1.2-1.6-1.5-.8-.4-1.5-.7-2.7-.7H8v7.9z"/></svg>',"dxrd-svg-fontstyle-italic":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M14 21.5l-.2.5H6l.2-.5c.8 0 1.3-.1 1.6-.2.4-.2.7-.4.9-.7.3-.5.5-1.3.8-2.5l2.4-12c.3-1.3.3-1.8.3-2.3 0-.3-.1-.5-.2-.6s-.3-.3-.6-.4c-.3-.1-.7-.1-1.5-.1l.3-.7H18l-.2.5c-.6 0-1.4.1-1.7.2-.4.2-.8.5-1 .8-.1.5-.5 1-.8 2.5L12 18.1c-.2 1.3-.3 1.7-.3 2.1 0 .2.1.5.2.6.1.2.3.3.6.4s.7.2 1.5.3z"/></svg>',"dxrd-svg-fontstyle-strikeout":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M20 12h-5.3c-.7-.4-1.7-.9-2.9-1.5-2.4-1.2-3.9-2.1-4.6-2.8-.4-.5-.7-1-.7-1.6 0-.8.3-1.4 1-2.1.6-.4.8-.7 2.1-.9.9-.1 1.9.2 2.8.7.9.4 1.6 1 2.1 1.8s.8 1.4 1 2.4h.5V2h-.5c-.1.4-.2.7-.4.9-.2.1-.4.2-.7.2-.2 0-.6-.1-1.2-.4-1.3-.5-2.5-.7-3.6-.7-1.8 0-3 .8-3.9 1.5C4.5 4.4 4 5.7 4 7c0 .8.2 1.5.6 2.2s1 1.3 1.7 1.8c.4.3.9.6 1.6 1H2v2h9.7c.9.5 1.5.8 1.8 1 .6.4 1 .9 1.3 1.3s.4 1 .4 1.4c0 .8-.4 1.6-1.1 2.2-.8.6-1.8.9-3.1.9-1.1 0-2.1-.2-3.1-.7-.9-.5-1.8-1-2.3-1.7-.2-.2-.8-1.4-1-2.4H4v6h.6c.1-.4.2-.7.3-.9.2-.1.4-.2.6-.2.3 0 1.1.1 2.1.4s1.7.5 2 .5c.5.1 1.1.1 1.7.1 1.9 0 3.5-.5 4.8-1.6 1.2-1 1.9-2.3 1.9-3.7 0-.8-.2-1.5-.6-2.2-.1-.2-.2-.2-.3-.4H20v-2z"/></svg>',"dxrd-svg-fontstyle-underline":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M14 0v1h.9c.4 0 .7.1.8.2.3.4.3 1.2.3 2.3V12c0 .8 0 1.7-.1 2.6-.1 1-.5 1.8-1 2.3-1 .9-3 1.1-3.7 1.1-.7 0-2.9-.2-3.9-1.1-.7-.7-.9-1.3-1.1-2.2-.2-1.1-.2-2-.2-2.7V3.5c0-1.1 0-2 .3-2.2.2-.2.6-.3 1.1-.3H8V0H2v1h.9c.7 0 .9.1 1 .2.1.2.1 1.1.1 2.3v7.6c0 2.4.2 4 .5 4.8.5 1.2 1.3 2.3 2.4 3C8.7 20 9.9 20 11 20c1.4 0 2.6-.1 4.1-1.1 1.1-.8 1.9-1.7 2.3-3 .3-.9.4-2.5.4-4.8V3.5c0-1.2 0-1.9.3-2.2.3-.3.5-.3 1.3-.3h.6V0h-6zM2 22h18v2H2z"/></svg>',"dxrd-svg-menu-menu":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M2 2h20v4H2zM2 10h20v4H2zM2 18h20v4H2z"/></svg>',"dxrd-svg-menu-open":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M4 8L2 20h18l2-12z"/><path class="dxd-icon-fill" d="M20 6V4H6V2H0v18L2 6z"/></svg>',"dxrd-svg-menu-save":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M10 0h6v6h-6z"/><path class="dxd-icon-fill" d="M18 0v8H4V0H2L0 2v20h22V0h-4zm0 18H4v-6h14v6z"/></svg>',"dxrd-svg-operations-add":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M22 10h-8V2h-4v8H2v4h8v8h4v-8h8z"/></svg>',"dxrd-svg-operations-add_calcfield":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M18 8V0H0v16h10c0-4.4 3.6-8 8-8zM8 4H6v2h2v2H6v6H2v-2h2V8H2V6h2V2h4v2z"/><path class="dxd-icon-fill" d="M18 10c-3.3 0-6 2.7-6 6s2.7 6 6 6 6-2.7 6-6-2.7-6-6-6zm3 7h-2v2h-2v-2h-2v-2h2v-2h2v2h2v2z"/></svg>',"dxrd-svg-operations-add_datasource":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><ellipse class="dxd-icon-fill" cx="8" cy="2" rx="6" ry="2"/><path class="dxd-icon-fill" d="M16 10c-3.3 0-6 2.7-6 6s2.7 6 6 6 6-2.7 6-6-2.7-6-6-6zm3 7h-2v2h-2v-2h-2v-2h2v-2h2v2h2v2zM8 13c-3.1 0-6-.9-6-2v5c0 1.1 2.9 2 6 2h.3c-.2-.6-.3-1.3-.3-2 0-1.1.2-2.1.6-3H8zM14 8.3V4c0 1.1-2.9 2-6 2s-6-.9-6-2v5c0 1.1 2.9 2 6 2 .6 0 1.3 0 1.9-.1 1-1.3 2.5-2.2 4.1-2.6z"/></svg>',"dxrd-svg-operations-add_query":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M0 6h4v4H0zM6 6h4v4H6zM12 6h4v4h-4zM18 6h4v4h-4zM0 12h4v4H0zM6 12h4v4H6zM0 18h4v4H0zM6 18h4v4H6zM0 0h22v4H0zM18 12c-3.3 0-6 2.7-6 6s2.7 6 6 6 6-2.7 6-6-2.7-6-6-6zm3 7h-2v2h-2v-2h-2v-2h2v-2h2v2h2v2z"/></svg>',"dxrd-svg-operations-ascending":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M12 0L6 6h4v16h4V6h4z"/></svg>',"dxrd-svg-operations-descending":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M12 22l6-6h-4V0h-4v16H6z"/></svg>',"dxrd-svg-operations-edit":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M2 22h4l-4-4zM4 16l4 4 8-8-4-4zM16 4l-2 2 4 4 2-2z"/></svg>',"dxrd-svg-operations-movedown":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M6 10l6 6 6-6V6l-6 6-6-6z"/></svg>',"dxrd-svg-operations-moveleft":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M12 6l-6 6 6 6h4l-6-6 6-6z"/></svg>',"dxrd-svg-operations-moveleft_all":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M12 6H8l-6 6 6 6h4l-6-6z"/><path class="dxd-icon-fill" d="M20 6h-4l-6 6 6 6h4l-6-6z"/></svg>',"dxrd-svg-operations-moveright":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M10 18l6-6-6-6H6l6 6-6 6z"/></svg>',"dxrd-svg-operations-moveright_all":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M10 18h4l6-6-6-6h-4l6 6z"/><path class="dxd-icon-fill" d="M2 18h4l6-6-6-6H2l6 6z"/></svg>',"dxrd-svg-operations-moveup":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M18 12l-6-6-6 6v4l6-6 6 6z"/></svg>',"dxrd-svg-operations-recycle_bin":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M6 19c0 .5.5 1 1 1h10c.5 0 1-.5 1-1V8H6v11zM19 4h-5V3c0-.5-.5-1-1-1h-2c-.5 0-1 .5-1 1v1H5c-.6 0-1 .4-1 1v1h16V5c0-.6-.4-1-1-1z"/></svg>',"dxrd-svg-operations-remove":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M4 10h14v4H4z"/></svg>',"dxrd-svg-operations-unsorted":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M0 20l6-6V6H2l5-6 5 6H8v6l6-6V0h2v4l4-4 2 2-6 6v8h4l-5 6-5-6h4v-6l-6 6v6H6v-4l-4 4z"/></svg>',"dxrd-svg-properties-borders-all":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M0 0v22h22V0H0zm20 20H2V2h18v18z"/></svg>',"dxrd-svg-properties-borders-bottom":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M0 12h2v4H0zM12 0h4v2h-4zM0 6h2v4H0zM18 2h2v2h2V0h-4zM6 0h4v2H6zM20 18v2H2v-2H0v4h22v-4zM2 4V2h2V0H0v4zM20 6h2v4h-2zM20 12h2v4h-2z"/></svg>',"dxrd-svg-properties-borders-left":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M6 0h4v2H6zM20 12h2v4h-2zM12 0h4v2h-4zM20 18v2h-2v2h4v-4zM20 6h2v4h-2zM4 20H2V2h2V0H0v22h4zM18 2h2v2h2V0h-4zM12 20h4v2h-4zM6 20h4v2H6z"/></svg>',"dxrd-svg-properties-borders-none":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M6 0h4v2H6zM20 12h2v4h-2zM12 0h4v2h-4zM20 18v2h-2v2h4v-4zM20 6h2v4h-2zM18 2h2v2h2V0h-4zM12 20h4v2h-4zM6 20h4v2H6zM0 6h2v4H0zM2 4V2h2V0H0v4zM2 18H0v4h4v-2H2zM0 12h2v4H0z"/></svg>',"dxrd-svg-properties-borders-right":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M12 20h4v2h-4zM0 6h2v4H0zM6 20h4v2H6zM2 4V2h2V0H0v4zM0 12h2v4H0zM18 2h2v18h-2v2h4V0h-4zM4 20H2v-2H0v4h4zM6 0h4v2H6zM12 0h4v2h-4z"/></svg>',"dxrd-svg-properties-borders-top":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M20 6h2v4h-2zM6 20h4v2H6zM20 12h2v4h-2zM4 20H2v-2H0v4h4zM12 20h4v2h-4zM2 4V2h18v2h2V0H0v4zM20 18v2h-2v2h4v-4zM0 12h2v4H0zM0 6h2v4H0z"/></svg>',"dxrd-svg-properties-search":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M2.6 21.4c.8.8 2 .8 2.8 0l4.6-4.6c1.2.7 2.6 1.1 4.1 1.1 4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8c0 1.5.4 2.9 1.1 4.1l-4.6 4.6c-.8.8-.8 2 0 2.8zM10 10.1c0-2.2 1.8-4 4-4s4 1.8 4 4-1.8 4-4 4-4-1.9-4-4z"/></svg>',"dxrd-svg-properties-sortingbyalphabet":'<svg data-bind="svgAttrs" viewBox="0 0 16 16"><path class="dxd-icon-fill" d="M3.2 0L1 7h1.6L3 5.3h2L5.4 7H7L4.9 0H3.2zm0 4.2L3.8 2c0-.1.1-.4.2-.8v.1c0 .3.1.6.1.7l.5 2.2H3.2zM1 10h4l-4 5v1h6v-1H3l4-5V9H1zM13 12V0h-2v12H8l4 4 4-4z"/></svg>',"dxrd-svg-properties-sortingbygroups":'<svg data-bind="svgAttrs" viewBox="0 0 16 16"><path class="dxd-icon-fill" d="M1 7h7V0H1v7zm1-6h5v5H2V1zM9 1h6v1H9zM9 3h6v1H9zM9 5h6v1H9zM9 10h6v1H9zM9 12h6v1H9zM9 14h6v1H9z"/><path class="dxd-icon-fill" d="M5 2H4v1H3v1h1v1h1V4h1V3H5zM1 16h7V9H1v7zm1-6h5v5H2v-5z"/><path class="dxd-icon-fill" d="M5 11H4v1H3v1h1v1h1v-1h1v-1H5z"/></svg>',"dxrd-svg-queryBuilder-aggregate":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M21 0H3v4l8 8-8 8v4h18v-4H7l8-8-8-8h14z"/></svg>',"dxrd-svg-queryBuilder-data_preview":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M21.7 20.3l-2.5-2.5c.5-.8.8-1.8.8-2.8 0-2.8-2.2-5-5-5s-5 2.2-5 5 2.2 5 5 5c1 0 2-.3 2.8-.8l2.5 2.5c.4.4 1 .4 1.4 0 .4-.4.4-1 0-1.4zM15 18c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3z"/><ellipse class="dxd-icon-fill" cx="8" cy="2" rx="6" ry="2"/><path class="dxd-icon-fill" d="M8.7 13s-.1 0 0 0c-.1 0-.1 0 0 0H7.3C4.4 12.8 2 12 2 11v5c0 1 2.6 1.9 5.4 2H9c-.4-.9-.7-1.9-.7-2.9.1-.8.2-1.5.4-2.1zM14 8.2V4c0 1.1-2.9 2-6 2s-6-.9-6-2v5c0 1.1 2.9 2 6 2 .6 0 1.2 0 1.7-.1 1-1.4 2.5-2.4 4.3-2.7z"/></svg>',"dxrd-svg-queryBuilder-group_by":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M2 4h14v6H2zM8 14h14v6H8z"/></svg>',"dxrd-svg-queryBuilder-select_statment":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M18 4l-4-4v4zM21.7 22.3l-4.5-4.5c.5-.8.8-1.8.8-2.8 0-2.8-2.2-5-5-5s-5 2.2-5 5 2.2 5 5 5c1 0 2-.3 2.8-.8l4.5 4.5c.4.4 1 .4 1.4 0s.4-1 0-1.4zM13.1 18c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.4 3-3 3z"/><path class="dxd-icon-fill" d="M13 8c2 0 3.7.8 5 2.1V6h-6V0H0v20h8.1C6.8 18.7 6 17 6 15c0-3.9 3.1-7 7-7z"/></svg>',"dxrd-svg-queryBuilder-sorting_asc":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M8 0H4v14H2l4 8 4-8H8zM14 14h6l-6 6v2h8v-2h-6l6-6v-2h-8zM19.4 0L14 10h2l.9-2H20v2h2V0h-2.6zm.6 6h-1.9L20 2v4z"/></svg>',"dxrd-svg-queryBuilder-sorting_desc":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M8 0H4v14H2l4 8 4-8H8zM22 0h-8v2h6l-6 6v2h8V8h-6l6-6zM14 22h2l.9-2H20v2h2V12h-2.6L14 22zm6-4h-1.9l1.9-4v4z"/></svg>',"dxrd-svg-tabs-properties":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><circle class="dxd-icon-fill" cx="12" cy="12" r="2"/><path class="dxd-icon-fill" d="M20 10h-.3c-.2-.7-.5-1.4-.9-2.1l.2-.2c.8-.8.8-2.1 0-2.8-.8-.8-2.1-.8-2.8 0l-.2.2c-.6-.4-1.3-.7-2.1-.9V4c0-1.1-.9-2-2-2S10 2.9 10 4v.3c-.7.2-1.4.4-2.1.8l-.1-.2c-.8-.7-2.1-.7-2.9 0-.7.8-.7 2.1 0 2.9l.2.2c-.4.6-.6 1.3-.8 2H4c-1.1 0-2 .9-2 2s.9 2 2 2h.3c.2.7.5 1.4.9 2.1l-.2.2c-.8.8-.8 2.1 0 2.8.8.8 2.1.8 2.8 0l.2-.2c.6.4 1.3.7 2.1.9v.2c0 1.1.9 2 2 2s2-.9 2-2v-.3c.7-.2 1.4-.5 2.1-.9l.2.2c.8.8 2.1.8 2.8 0 .8-.8.8-2.1 0-2.8L19 16c.4-.6.7-1.3.9-2.1h.1c1.1 0 2-.9 2-2 0-1-.9-1.9-2-1.9zm-8 6c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"/></svg>',"dxrd-svg-toolbar-copy":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M10 10h4l-4-4z"/><path class="dxd-icon-fill" d="M8 6H0v18h14V12H8zM18 0v4h4z"/><path class="dxd-icon-fill" d="M16 0H8v4h2l6 6v8h6V6h-6z"/></svg>',"dxrd-svg-toolbar-cut":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M17.9 14c-.6 0-1.2.1-1.7.4L14 12l6-6V2l-8 8-8-8v4l6 6 2-2 2 2-2 2-2-2-2.3 2.4c-.6-.2-1.1-.4-1.7-.4-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4c0-.6-.1-1.1-.3-1.6L12 14l2.3 2.4c-.2.5-.3 1-.3 1.6 0 2.2 1.8 4 4 4s4-1.8 4-4c-.1-2.2-1.9-4-4.1-4zM6 20c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm11.9 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/></svg>',"dxrd-svg-toolbar-delete":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M20 4l-2-2-7 7-7-7-2 2 7 7-7 7 2 2 7-7 7 7 2-2-7-7z"/></svg>',"dxrd-svg-toolbar-paste":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M8 2V0H6v2H4v2h6V2zM16 16v-6h-6v14h12v-8z"/><path class="dxd-icon-fill" d="M22 14h-4v-4zM8 8h6V2h-2v4H2V2H0v16h8z"/></svg>',"dxrd-svg-toolbar-redo":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M24 9L14 2v4h-1.2C6 6 0 12.2 0 19v3c1.6-5.9 7-10 12.8-10H14v4.1L24 9z"/></svg>',"dxrd-svg-toolbar-undo":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M0 9l10-7v4h1.2C18 6 24 12.2 24 19v3c-1.6-5.9-7-10-12.8-10H10v4.1L0 9z"/></svg>',"dxrd-svg-toolbar-validate":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M22 6L8 20l-6-6v-4l6 6L22 2v4z"/></svg>',"dxrd-svg-toolbar-zoomin":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M22 10h-8V2h-4v8H2v4h8v8h4v-8h8z"/></svg>',"dxrd-svg-toolbar-zoomout":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M2 10h20v4H2z"/></svg>',"dxrd-svg-wizard-Download":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M7 12l5 5 5-5h-4V2h-2v10H7zm8-4v2h4v10H5V10h4V8H3v14h18V8h-6z"/></svg>',"dxrd-svg-wizard-JsonDataSource":'<svg data-bind="svgAttrs" viewBox="0 0 96 96"><style>.Black{fill:#727272;} .White{fill:#FFFFFF;} .Green{fill:#039C23;} .Blue{fill:#1177D7;} .Red{fill:#D11C1C;} .st0{opacity:0.75;} .st1{opacity:0.25;} .st2{opacity:0.5;}</style><g><path class="st2 Black" d="M63.6 72.5c-.1-.2-.2-.4-.3-.7-.5-1.4-.8-2.9-.9-4.4-.1-2.3.4-4.5 1.5-6.3.7-1.2 1.7-2.4 2.8-3.2.4-.3 1.1-.7 1.1-.7s.5-.3 1.2-.6c.1.1.2.1.3.2 1.7 1.2 3 2.8 3.9 4.6.3.7.6 1.5.8 2.3v2.8c0 2.4-4.1 4.6-10.4 6zm-20.4-2.2c-.3-2.6-.3-5.3.2-7.9.4-2.3 1.2-4.5 2.2-6.5C48.9 49.5 55 44.6 62 42.8c1.4-.4 4.2-.8 5.8-.8 1.4 0 4.4.6 6.2 1.4v-22c0 4.2-11.6 7.6-26 7.6s-26-3.4-26-7.6v45c0 3.8 9.5 6.9 21.9 7.5-.3-1.2-.5-2.4-.7-3.6z"/><ellipse class="st1 Black" cx="48" cy="19.5" rx="26" ry="7.5"/><path class="Blue" d="M91.8 70.1c-.3 2.4-1 4.8-2 7-1.2 2.5-2.9 4.9-4.9 6.9-2.2 2.1-4.8 4-7.6 5.2-2 .9-5.5 1.9-9.1 1.9-1 0-3.3-.6-4.7-1.1-2.4-1-4.6-2.5-6.3-4.5-1.1-1.3-2-2.8-2.7-4.3-1.1-2.5-1.7-5.3-1.9-8.1-.1-2-.1-4 .2-5.9.5-3.1 1.8-6.2 4.1-8.5.4-.4 1.9-1.6 2.7-2.1.8-.5 3.2-1.3 4.5-1.4 1-.1 2 0 2.9.2-.5.3-1 .6-1.4 1-1.4 1-2.5 2.3-3.3 3.8-1.3 2.2-1.8 4.8-1.7 7.3 0 1.7.4 3.5 1 5.1.5 1.3 1.2 2.5 2.1 3.5.7.8 1.6 1.6 2.5 2.2.5.3 1 .7 1.6.9.5.2 1 .4 1.5.5 3.1.7 6.4-.4 8.9-2.2 1.5-1.1 2.8-2.6 3.8-4.2 1.4-2.2 2.2-4.7 2.5-7.2.2-1.5.2-3 .1-4.5-.1-2-.4-4.1-1-6-.8-3-2.3-5.8-4.4-8.1-.9-1-2-1.9-3.1-2.7-.2-.2-.5-.3-.7-.4-.2-.1-.5-.3-.7-.4 1.5.4 3 1 4.4 1.7 3.9 2 7.3 4.9 9.6 8.6.7 1 1.2 2.1 1.7 3.2.8 1.8 1.3 3.7 1.6 5.6.1 2.3.1 4.7-.2 7zm-40.1 8.6c-.6-2-.9-4.2-1-6.5-.1-1.5-.1-2.9.1-4.3.3-2.8 1.1-5.4 2.4-7.5 1-1.7 2.3-3.2 3.8-4.4 1.1-.8 2.3-1.5 3.5-1.9 1.3-.5 2.6-.7 4-.7.5 0 1.1 0 1.6.1.7.1 1.4.3 2 .5.1.1.7.3.8.4.4.2.9.5 1.5.9 2 1.4 3.5 3.2 4.5 5.4.9 1.9 1.3 4 1.4 6.3 0 2.4-.4 4.7-1.4 6.7-.8 1.7-2 3.3-3.4 4.5 2.2-.2 4.5-1.2 6.4-3 .4-.3.7-.7 1-1.1.5-.6.9-1.1 1.2-1.5.4-.7.8-1.4 1.2-2.2.5-1.1.8-2.1 1-3.1.3-1.7.4-3.5.3-5.8-.3-4.3-1.5-8-3.5-10.9-.4-.6-.7-1-1-1.4-.6-.7-1.3-1.3-2-2-.8-.7-1.1-.9-2.5-1.7S69 44 67.8 44c-1.3 0-4 .3-5.4.6-6.5 1.7-12 6.2-15 12.2-.9 1.9-1.6 3.9-2 6-.5 2.4-.5 4.8-.2 7.2.2 2 .7 3.9 1.5 5.7.4 1 .9 2.1 1.6 3.1 1.8 2.9 4.2 5.3 7.2 7.2-1.7-1.9-3-4.5-3.8-7.3z"/></g></svg>',"dxrd-svg-wizard-NoDataSource":'<svg data-bind="svgAttrs" viewBox="0 0 96 96"><style>.Black{fill:#727272;} .White{fill:#FFFFFF;} .Green{fill:#039C23;} .Blue{fill:#1177D7;} .Red{fill:#D11C1C;} .st0{opacity:0.75;} .st1{opacity:0.25;} .st2{opacity:0.5;}</style><g><path class="st2 Black" d="M44 68c0-12.2 9.8-22 22-22 1.4 0 2.7.1 4 .4v-24c0 4.2-11.6 7.6-26 7.6s-26-3.4-26-7.6v45c0 4.2 11.6 7.6 26 7.6h1.1c-.7-2.2-1.1-4.6-1.1-7z"/><ellipse class="st1 Black" cx="44" cy="20.5" rx="26" ry="7.5"/><circle class="Red" cx="66" cy="68" r="20"/><path class="White" d="M53.4 77.8C51.3 75.1 50 71.7 50 68c0-8.8 7.2-16 16-16 3.7 0 7.1 1.3 9.8 3.4L53.4 77.8zm25.2-19.6L56.2 80.6c2.7 2.1 6.1 3.4 9.8 3.4 8.8 0 16-7.2 16-16 0-3.7-1.3-7.1-3.4-9.8z"/></g></svg>',"dxrd-svg-wizard-SqlDataSource":'<svg data-bind="svgAttrs" viewBox="0 0 96 96"><style>.Black{fill:#727272;} .White{fill:#FFFFFF;} .Green{fill:#039C23;} .Blue{fill:#1177D7;} .Red{fill:#D11C1C;} .st0{opacity:0.75;} .st1{opacity:0.25;} .st2{opacity:0.5;}</style><g><path class="st2 Black" d="M48 29c-14.4 0-26-3.4-26-7.6v45c0 4.2 11.6 7.6 26 7.6s26-3.4 26-7.6v-45c0 4.2-11.6 7.6-26 7.6z"/><ellipse class="st1 Black" cx="48" cy="19.5" rx="26" ry="7.5"/></g></svg>'};var e=function(){function a(a,b,c){this._data=b,this._templates=c,this.templateName=a}return a.prototype.data=function(a,b){if(this._data[this.templateName]=this._data[this.templateName]||{},1===arguments.length)return this._data[this.templateName][a];this._data[this.templateName][a]=b},a.prototype.text=function(a){if(0===arguments.length){var b=this._templates[this.templateName];if(!b)throw new Error("Cannot find template with ID "+this.templateName);return b}this._templates[this.templateName]=a},a}(),f=function(){function a(){var a=this;this._hasTemplate=function(b){return a._templates.hasOwnProperty(b)},this._data={},this._templates={}}return Object.defineProperty(a,"Instance",{get:function(){return this._instance||(this._instance=new this)},enumerable:!0,configurable:!0}),Object.defineProperty(a,"templates",{get:function(){return a.Instance._templates},enumerable:!0,configurable:!0}),a.addTemplates=function(b){ko.utils.extend(a.templates,b)},a.getExistingTemplate=function(b){return a.Instance._hasTemplate(b)?b:void 0},a}();b.SvgTemplatesEngine=f;var g=ko.templateEngine.prototype.makeTemplateSource;ko.templateEngine.prototype.makeTemplateSource=function(a,b){return"string"==typeof a&&f.getExistingTemplate(a)&&!document.getElementById(a)?new e(a,f._instance._data,f.templates):g.apply(this,[a,b])},b.getTemplate=d,f.addTemplates(c.Internal.availableTemplates),f.addTemplates(c.Internal.extendedTemplates())}(f=c.Internal||(c.Internal={}))}(b.Widgets||(b.Widgets={}))}(a.Analytics||(a.Analytics={}))}(DevExpress||(DevExpress={})),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.getLocalization","Analytics.getLocalization","Analytics.Utils.getLocalization"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.findMatchesInString","Analytics.Utils.findMatchesInString","Analytics.Internal.findMatchesInString"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.escapeToRegExp","Analytics.Utils.escapeToRegExp","Analytics.Internal.escapeToRegExp"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.formatUnicorn","Analytics.Utils.formatUnicorn","Analytics.Internal.formatUnicorn"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.PopupService","Analytics.Internal.PopupService"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.CollectionItemWrapper","Analytics.Widgets.CollectionItemWrapper","Analytics.Widgets.Internal.CollectionItemWrapper"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.CollectionEditorViewModel","Analytics.Widgets.CollectionEditorViewModel","Analytics.Widgets.Internal.CollectionEditorViewModel"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.dxEllipsisEditor","Analytics.Widgets.dxEllipsisEditor","Analytics.Widgets.Internal.dxEllipsisEditor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.dxFileImagePicker","Analytics.Widgets.dxFileImagePicker","Analytics.Widgets.Internal.dxFileImagePicker"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.FontEditor","Analytics.Widgets.FontEditor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.fontInfo","Analytics.Widgets.fontInfo","Analytics.Widgets.Metadata.fontInfo"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.availableFonts","Analytics.Widgets.availableFonts","Analytics.Widgets.Internal.availableFonts"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.availableUnits","Analytics.Widgets.availableUnits","Analytics.Widgets.Internal.availableUnits"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.FontModel","Analytics.Widgets.FontModel","Analytics.Widgets.Internal.FontModel"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.propertiesGridEditorsPaddingLeft","Analytics.Widgets.propertiesGridEditorsPaddingLeft","Analytics.Widgets.Internal.propertiesGridEditorsPaddingLeft"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.Editor","Analytics.Widgets.Editor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.editorTemplates","Analytics.Widgets.editorTemplates"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.validateGuid","Analytics.Widgets.validateGuid","Analytics.Widgets.Internal.validateGuid"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Widgets.validateGuid","Analytics.Widgets.Internal.validateNullableGuid"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.guidValidationRules","Analytics.Widgets.guidValidationRules","Analytics.Widgets.Internal.guidValidationRules"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Widgets.guidRequiredValidationRules","Analytics.Widgets.Internal.guidRequiredValidationRules"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Widgets.requiredValidationRules","Analytics.Widgets.Internal.requiredValidationRules"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.GuidEditor","Analytics.Widgets.GuidEditor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.PropertyGridEditor","Analytics.Widgets.PropertyGridEditor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.EditorAddOn","Analytics.Internal.EditorAddOn"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.ObjectProperties","Analytics.Widgets.ObjectProperties"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.compareEditorInfo","Analytics.Utils.compareEditorInfo","Analytics.Internal.compareEditorInfo"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Localization.Globalize","Analytics.Localization.Globalize","Analytics.Internal.Globalize"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Localization.messages","Analytics.Localization.messages","Analytics.Internal.messages"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Localization.addCultureInfo","Analytics.Localization.addCultureInfo","Analytics.Utils.addCultureInfo"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Localization.localize","Analytics.Localization.localize","Analytics.Internal.localize"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Localization.parseDate","Analytics.Localization.parseDate","Analytics.Internal.parseDate"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Localization.selectPlaceholder","Analytics.Localization.selectPlaceholder","Analytics.Internal.selectPlaceholder"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Localization.noDataText","Analytics.Localization.noDataText","Analytics.Internal.noDataText"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.CodeResolver","Analytics.Internal.CodeResolver"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.globalResolver","Analytics.Internal.globalResolver"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.isCustomizedWithUpdateLocalizationMethod","Analytics.isCustomizedWithUpdateLocalizationMethod","Analytics.Internal.isCustomizedWithUpdateLocalizationMethod"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getLocalization","Analytics.Utils.getLocalization"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.updateLocalization","Analytics.updateLocalization","Analytics.Utils.updateLocalization"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.StringId","Analytics.StringId","Analytics.Internal.StringId"),DevExpress.Analytics.Widgets.Internal.SvgTemplatesEngine.addTemplates({"dx-editor-addons":'\x3c!-- ko if: visible --\x3e <div class="dxrd-editormenu-box dxd-property-grid-menu-box-color dxd-back-contrast" data-bind="dxclick: showPopup, css: editorMenuButtonCss"> <div class="dxrd-editormenu-box-inside dxd-back-secondary"></div> </div> \x3c!-- /ko --\x3e',"dx-boolean":'<div class="propertygrid-editor-checkbox" data-bind="dxCheckBox: getOptions({ value: value, disabled: disabled }), dxValidator: { validationRules: validationRules || [] }"></div>',"dx-boolean-select":"<div data-bind=\"dxLocalizedSelectBox: { dataSource: [ { val: true, text: $root.getLocalization('Yes', 'AnalyticsCoreStringId.ParametersPanel_True') }, { val: false, text: $root.getLocalization('No', 'AnalyticsCoreStringId.ParametersPanel_False') }], valueExpr: 'val', displayExpr: 'text', value: value, disabled: disabled, dropDownOptions: { container: $root.getPopupContainer($element) } }, dxValidator: { validationRules: validationRules || [] }\"></div>","dx-commonCollection":'<div class="dx-editor" data-bind="visible: visible"> <div data-bind="dxCollectionEditor: { values: value, displayName: displayName, level: level, info: info }"> </div> </div>',"dx-commonCollectionItem":'<div data-bind="dxPropertyGrid: { target: value, level: editor.level + 1, parentDisabled: editor.disabled }"></div>',"item-with-title":'<div class="dx-listitem-with-title" data-bind="text: $data.display, attr: { title: $data.display }"></div>',"dx-combobox":"<div data-bind=\"dxLocalizedSelectBox: { dataSource: values, value: value, valueExpr: 'value', displayExpr: 'displayValue', displayCustomValue: true, disabled: disabled, dropDownOptions: { container: $root.getPopupContainer($element) } }, dxValidator: { validationRules: $data.validationRules || [] }\"> </div>","dx-combobox-editable":"<div data-bind=\"dxSelectBox: getOptions({ items: values, value: value, valueExpr: 'value', displayExpr: 'displayValue', disabled: disabled, placeholder: $root.dx.Analytics.Internal.selectPlaceholder(), acceptCustomValue: true, onCustomItemCreating: function(arg) { return { value: arg.text, displayValue: arg.text }; }, dropDownOptions: { container: $root.getPopupContainer($element) } })\"></div>","dx-combobox-undo":"<div data-bind=\"dxLocalizedSelectBox: { dataSource: values, value: generateValue($root.undoEngine), valueExpr: 'value', displayExpr: 'displayValue', displayCustomValue: true, disabled: disabled, dropDownOptions: { container: $root.getPopupContainer($element) } }, dxValidator: { validationRules: $data.validationRules || [] }\"> </div>","dx-property-editor":'<div class="dx-editor" data-bind="visible: visible"> <div class="dx-group" data-bind="dxdAccordion: { collapsed: collapsed }"> <div class="dx-editor-header"> <div class="dx-field"> <div class="dx-field-label dx-accordion-header dxd-text-primary" data-bind="styleunit: padding, css: { \'dx-accordion-empty\': templateName === \'dx-emptyHeader\' }"> \x3c!-- ko if: isComplexEditor --\x3e <div class="propertygrid-editor-collapsed dx-collapsing-image" data-bind="template: \'dxrd-svg-collapsed\', css: { \'dx-image-expanded\': !collapsed() }"></div> \x3c!-- ko if: !!$data.textToSearch --\x3e <div class="dx-group-header-font" data-bind="searchHighlighting: { text: displayName, textToSearch: textToSearch }, attr: { \'title\': displayName }"></div> \x3c!-- /ko --\x3e \x3c!-- ko ifnot: !!$data.textToSearch --\x3e <div class="dx-group-header-font" data-bind="text: displayName, attr: { \'title\': displayName }"></div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: !isComplexEditor --\x3e \x3c!-- ko if: !!$data.textToSearch --\x3e <div class="propertygrid-editor-displayName" data-bind="searchHighlighting: { text: displayName, textToSearch: textToSearch }, attr: { \'title\': displayName }, style: { fontWeight: isPropertyModified() ? \'Bold\' : \'\'}"></div> \x3c!-- /ko --\x3e \x3c!-- ko ifnot: !!$data.textToSearch --\x3e <div class="propertygrid-editor-displayName" data-bind="text: displayName, attr: { \'title\': displayName }, style: { fontWeight: isPropertyModified() ? \'Bold\' : \'\'}"></div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> <div class="dx-field-value"> <div data-bind="service: { name: \'createEditorAddOn\' }"></div> \x3c!-- ko if: templateName !== \'dx-emptyHeader\' --\x3e \x3c!-- ko lazy: { template: templateName } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div> </div> \x3c!-- ko if: isComplexEditor --\x3e <div class="dx-editor-content dx-accordion-content"> \x3c!-- ko if: (!$data.editorCreated || editorCreated) --\x3e \x3c!-- ko template: contentTemplateName --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e </div> </div>',"dx-emptyHeader":" ","dx-date":"<div class=\"dx-datebox-container\"> <div data-bind=\" dxDateBox: getOptions({ value: value, closeOnValueChange: true, type: 'datetime', disabled: disabled, dropDownOptions: { container: $root.getPopupContainer($element), position: { at: 'left bottom', collision: 'flipfit flip', my: 'left top', boundary: $root.getPopupContainer($element), of: $element } } }), dxValidator: { validationRules: validationRules || [] }\"></div> </div>","dx-file":"<div data-bind=\"dxFileImagePicker: { value: value, placeholderId: 'File', disabled: disabled }\"></div>","dx-modificators":'<div class="dx-font-content"> <div class="dx-field"> <div class="dx-field-label dxd-text-primary" data-bind="styleunit: { \'paddingLeft\': padding }"></div> \x3c!-- ko with: value --\x3e <div class="dx-field-value"> <div class="dx-font-styles-content"> <div class="dx-font-style-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dx-image-fontstyle-bold" data-bind="css: { \'dxd-state-active\': bold(), \'dx-disabled-button\': $parent.disabled }, click: function() { if(!$parent.disabled()) { bold(!bold()); } }">\x3c!-- ko template: \'dxrd-svg-fontstyle-bold\'--\x3e\x3c!-- /ko --\x3e</div> <div class="dx-font-style-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dx-image-fontstyle-italic" data-bind="css: { \'dxd-state-active\': italic(), \'dx-disabled-button\': $parent.disabled }, click: function() { if(!$parent.disabled()) { italic(!italic()); } }">\x3c!-- ko template: \'dxrd-svg-fontstyle-italic\'--\x3e\x3c!-- /ko --\x3e</div> <div class="dx-font-style-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dx-image-fontstyle-underline" data-bind="css: { \'dxd-state-active\': underline(), \'dx-disabled-button\': $parent.disabled }, click: function() { if(!$parent.disabled()) { underline(!underline()); } }">\x3c!-- ko template: \'dxrd-svg-fontstyle-underline\'--\x3e\x3c!-- /ko --\x3e</div> <div class="dx-font-style-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dx-image-fontstyle-strikeout" data-bind="css: { \'dxd-state-active\': strikeout(), \'dx-disabled-button\': $parent.disabled }, click: function() { if(!$parent.disabled()) { strikeout(!strikeout()); } }">\x3c!-- ko template: \'dxrd-svg-fontstyle-strikeout\'--\x3e\x3c!-- /ko --\x3e</div> </div> </div> \x3c!-- /ko --\x3e </div> </div>',"dx-image":"<div data-bind=\"dxFileImagePicker: { value: value, placeholderId: 'Image', accept: 'image/*', type: 'img', disabled: disabled }\"></div>","dx-numeric":'<div data-bind="dxNumberBox: getOptions({ value:value, showSpinButtons:true, disabled:disabled }), dxValidator: { validationRules: validationRules || [] }"></div>',"dx-number-editor":'<div data-bind="dxTextBox: getOptions({ value: value, disabled: disabled }), dxValidator: { validationRules: validationRules || [] }"></div>',"dx-text":'\x3c!-- ko if: $data.validationRules --\x3e <div data-bind="dxTextBox: getOptions({ value: value, disabled: disabled }), dxValidator: getValidatorOptions($data.validatorOptions || { validationRules: validationRules || [] })"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: !$data.validationRules --\x3e <div data-bind="dxTextBox: getOptions({ value: value, disabled: disabled })"></div> \x3c!-- /ko --\x3e',"dx-string-array":'<div class="dx-field"> <div class="dx-string-array-container dx-texteditor dx-editor-outlined dx-multiline"> <textarea class="dx-string-array-textarea dx-texteditor-input" data-bind="value: value, disable: disabled"></textarea> </div> </div>',"dx-propertieseditor":'<div data-bind="css: { \'dx-rtl\' : rtl }"> <div class="dx-editors"> <div class="dx-fieldset"> \x3c!-- ko foreach: getEditors() --\x3e \x3c!-- ko template: editorTemplate --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div> </div>',"dx-objectEditorContent":"\x3c!-- ko if: visible --\x3e <div data-bind=\"template: { name: 'dx-propertieseditor', data: viewmodel }\"></div> \x3c!-- /ko --\x3e","dx-collectioneditor":'<div class="dx-collectioneditor"> <div data-bind="dxdAccordion: { collapsed: collapsed, alwaysShow: alwaysShow }"> <div class="dx-collectioneditor-header dx-accordion-header"> <div class="dx-editor-header"> <div class="dx-field"> \x3c!-- ko if: showButtons--\x3e <div class="dx-collectioneditor-actions-wrapper"> \x3c!-- ko if: isVisibleButton(\'delete\') --\x3e <div class="dx-collectioneditor-action" data-bind="dxButtonWithTemplate: { onClick: remove, disabled: isDisabledButton(\'delete\'), icon: \'dxrd-svg-operations-remove\', iconClass: \'dx-image-remove\' }, attr: { title: getDisplayTextButton(\'delete\') }"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: isVisibleButton(\'add\') --\x3e <div class="dx-collectioneditor-action" data-bind="dxButtonWithTemplate: { onClick: add, disabled: isDisabledButton(\'add\'), icon: \'dxrd-svg-operations-add\', iconClass: \'dx-image-add\' }, attr: { title: getDisplayTextButton(\'add\') }"></div> \x3c!-- /ko --\x3e <div class="dx-collectioneditor-action-separator"></div> \x3c!-- ko if: isVisibleButton(\'down\') --\x3e <div class="dx-collectioneditor-action" data-bind="dxButtonWithTemplate: { onClick: down, disabled: isDisabledButton(\'down\'), icon: \'dxrd-svg-operations-movedown\', iconClass: \'dx-image-movedown\' }, attr: { title: getDisplayTextButton(\'down\') }"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: isVisibleButton(\'up\') --\x3e <div class="dx-collectioneditor-action" data-bind="dxButtonWithTemplate: { onClick: up, disabled: isDisabledButton(\'up\'), icon: \'dxrd-svg-operations-moveup\', iconClass: \'dx-image-moveup\' }, attr: { title: getDisplayTextButton(\'up\') }"></div> \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e \x3c!-- ko if: displayName --\x3e <div class="dx-collectioneditor-header-text dxd-text-primary" data-bind="styleunit: { \'paddingLeft\': padding }"> <div class="propertygrid-editor-collapsed dx-collapsing-image" data-bind="template: \'dxrd-svg-collapsed\', css: { \'dx-image-expanded\': !collapsed() }"></div> <div class="dx-group-header-font dxd-text-primary" data-bind="text: displayName, attr: { title: displayName }"></div> </div> \x3c!-- /ko --\x3e </div> </div> </div> <div class="dx-accordion-content"> \x3c!-- ko if: values().length === 0 && showButtons --\x3e <div class="dx-collectioneditor-empty dxd-empty-area-placeholder-text-color dxd-text-info"> <span class="dx-collectioneditor-empty-text" data-bind="text: getDisplayTextEmptyArray()"></span> </div> \x3c!-- /ko --\x3e \x3c!-- ko if: values().length !== 0 --\x3e <div class="dx-collectioneditor-items" data-bind="foreach: values"> <div data-bind="with: $parent.createCollectionItemWrapper($parents[1], $index)"> <div class="dx-collectioneditor-item-container dxd-button-back-color dxd-state-normal dxd-back-highlighted" data-bind="dxclick: $parents[1].select, css: { \'dxd-state-selected\' : $parents[1].selectedIndex() === $index() }"> <div class="dx-collection-item"></div> </div> </div> </div> \x3c!-- /ko --\x3e </div> </div> </div>',"dx-expressioneditor-main":'<div class="dx-expression-tree"> \x3c!-- ko if: !aceAvailable --\x3e <div class="dx-expressioneditor-textarea dxd-border-secondary dxd-back-primary2" data-bind="dxTextArea: { value: textAreaValue, isValid: isValid, spellcheck: false, onKeyUp: function() { isValid(true); } }"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: aceAvailable --\x3e <div class="dx-expressioneditor-textarea dxd-border-secondary dxd-back-primary2" data-bind="dxAceEditor: { value: textAreaValue, editorContainer: editorContainer, theme: theme, options: aceOptions, additionalOptions: additionalOptions, callbacks: callbacks }"></div> \x3c!-- /ko --\x3e <div class="dx-expressioneditor-tools"> \x3c!-- ko with: tools--\x3e <div class="dx-expressioneditor-tools-tabs"> \x3c!-- ko foreach: toolBox--\x3e <div class="dx-expressioneditor-tools-tab dxd-back-primary2" data-bind="style: { width: width }, visible: visible"> \x3c!-- ko if: $data.templateName --\x3e \x3c!-- ko template: { name: $data.templateName }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko--\x3e </div> \x3c!-- /ko--\x3e </div> </div>',"dx-expressioneditor":'<div> <div class="no-margin-right" data-bind="dxEllipsisEditor: { value: displayValue, buttonAction: function() { popupVisible(true); }, disabled: disabled, isValid: modelValueValid }"></div> <div class="dx-expressioneditor dx-popup-general" data-bind="dxPopup: { showTitle: true, title: title(), visible: popupVisible, toolbarItems: buttonItems, showCloseButton: true, fullScreen: false, height: \'600px\', width: \'645px\', container: getPopupContainer($element), position: { of: getPopupContainer($element)}, onShown: onShown }"> \x3c!-- ko if: popupVisible --\x3e \x3c!-- ko template: "dx-expressioneditor-main" --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div>',"dx-expressioneditor-categories":'<div class="dx-expressioneditor-tools-tab-content-wrapper dxd-border-secondary " data-bind="dxScrollView: { showScrollbar: \'onHover\' }"> \x3c!-- ko foreach: content --\x3e \x3c!-- ko if: $data.templateName --\x3e \x3c!-- ko template: $data.templateName--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko ifnot: $data.templateName --\x3e <div class="dx-expressioneditor-tools-tab-category dxd-list-item-back-color dxd-back-highlighted" data-bind="css: {\'dxd-state-selected\': content.isSelected }, text: displayName, dxclick: function() { $parent.click($data.content) }"> </div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>',"dx-expressioneditor-category-accordion":'<div class="dx-fieldset" style="margin: 0;"> <div data-bind="dxdAccordion: { collapsed: collapsed }"> <div class="dx-accordion-header dx-expressioneditor-tools-tab-accordion-header dxd-list-item-back-color dxd-back-highlighted" data-bind="css: {\'dxd-state-selected\': $data.isSelected }, dxclick: function() { $data.updateContent($data.allItems(), $data.isSelected); $parent.click($data.content) }"> <div class=" dx-collapsing-image" data-bind="template: \'dxrd-svg-collapsed\', css: { \'dx-image-expanded\': !collapsed() }" style="display:inline-block;"></div> <span class="dx-expressioneditor-tools-tab-header" data-bind="text: displayName"></span> </div> <div class="dx-accordion-content"> \x3c!-- ko foreach: items--\x3e <div class="dx-expressioneditor-tools-tab-item dxd-text-primary dxd-list-item-back-color dxd-back-highlighted" data-bind="css: {\'dxd-state-selected\': isSelected }, text: $data.display, dxclick: function() { $parent.updateContent($data.data, $data.isSelected); $parents[1].click($parent.content); }"></div> \x3c!-- /ko --\x3e </div> </div> </div>',"dx-expressioneditor-description":'<div class="dx-expressioneditor-tools-tab-content-wrapper dxd-border-secondary " data-bind="dxScrollView: { showScrollbar: \'onHover\' }"> <div class="dx-expressioneditor-description dxd-text-primary" data-bind="text: content"></div> </div>',"dx-expressioneditor-fields":'<div class="dx-expressioneditor-tools-tab-content-wrapper dxd-border-secondary " data-bind="dxScrollView: { showScrollbar: \'onHover\' }"> \x3c!-- ko if: fields --\x3e <div class="dx-treelist-wrapper" data-bind="treelist: fields"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: $data.parameters --\x3e <div class="dx-treelist-wrapper" data-bind="treelist: parameters"></div> \x3c!-- /ko --\x3e </div>',"dx-ee-treelist-item":'<div class="dx-treelist-item dxd-list-item-back-color dxd-back-highlighted" data-bind="visible: visible, event: { dblclick: function() { actions[0].clickAction($element); }}, styleunit: padding, css: { \'dx-treelist-item-selected dxd-state-selected\': isSelected }"> <div class="dx-treelist-item-images"> \x3c!-- ko if: hasItems --\x3e <div class="dx-treelist-collapsedbutton" data-bind="css: nodeImageClass, template: \'dxrd-svg-collapsed\', click: toggleCollapsed"></div> \x3c!-- /ko --\x3e \x3c!-- ko ifnot: hasItems --\x3e <div class="dx-treelist-collapsedbutton"></div> \x3c!-- /ko --\x3e <div class="dx-treelist-image" data-bind="css: $data.imageClassName, template: {name: $data.imageTemplateName, if: !!ko.unwrap($data.imageTemplateName)}, attr: { title: text }"> </div> </div> <div class="dx-treelist-caption"> <div class="dx-treelist-selectedcontent" data-bind="click: toggleSelected"> <div class="dx-treelist-text-wrapper"> <div class="dx-treelist-text" data-bind="text: text, attr: { title: text }"></div> </div> </div> </div> </div>',"dx-expressioneditor-selectedcontent":"\x3c!-- ko with: content --\x3e \x3c!-- ko template: $data--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e","dx-expressioneditor-collection":'<div class="dx-expressioneditor-tools-tab-content-wrapper dxd-border-secondary" data-bind="dxScrollView: { showScrollbar: \'onHover\' }"> \x3c!-- ko foreach: items --\x3e <div class="dx-expressioneditor-tools-tab-item dxd-list-item-back-color dxd-text-primary dxd-back-highlighted" data-bind="text: $data.displayName || $data.text, css: { \'dx-expressioneditor-state-selected dxd-state-selected\': $parent.selectedItem() === $data }, dxclick: function() { $parent.selectedItem($data); $parents[2].click($data); }, event: { dblclick: function() { $parents[2].dblclick($data, $element); } }"></div> \x3c!-- /ko --\x3e </div>',"dx-expressioneditor-collection-function":'<div class="dx-expressioneditor-collection-function"> <div class="dx-expressioneditor-collection-function-search"> <div data-bind="dxTextBox: { value: textToSearch, showClearButton: true, valueChangeEvent: \'keyup\', placeholder: $parents[2].searchPlaceholder() }"></div> </div> <div class="dx-expressioneditor-collection-function-items dxd-border-secondary" data-bind="dxScrollView: { showScrollbar: \'onHover\' }"> \x3c!-- ko foreach: availableItems --\x3e <div class="dx-expressioneditor-tools-tab-item dxd-list-item-back-color dxd-text-primary dxd-back-highlighted" data-bind="css: { \'dx-expressioneditor-state-selected dxd-state-selected\': $parent.selectedItem() === $data }, dxclick: function() { $parent.selectedItem($data); $parents[2].click($data); }, event: { dblclick: function() { $parents[2].dblclick($data, $element); } }, searchHighlighting: { text: $data.displayName || $data.text, textToSearch: $parent.textToSearch }"></div> \x3c!-- /ko --\x3e </div> </div>',"dx-filtereditor-content":"<div class=\"dx-filtereditor-tree-container\" data-bind=\"css: { 'advanced': advancedMode }\"> \x3c!-- ko template: 'dx-filtereditor-content-tree' --\x3e \x3c!-- /ko --\x3e </div> <div class=\"dx-filtereditor-text-container\" data-bind=\"css: { 'advanced': advancedMode }, visible: textVisible\"> \x3c!-- ko template: 'dx-filtereditor-content-text'--\x3e \x3c!-- /ko --\x3e </div>","dx-filtereditor-content-plain":'<div class="dx-filtereditor-plain-advanced" data-bind="dxCheckBox: { value: advancedMode, text: advancedModeText }"></div> <div class="dx-filtereditor-plain-content" data-bind="style: { height: plainContentHeightPerc }"> <div class="dx-filtereditor-text-container" data-bind="css: { \'advanced\': advancedMode }, style: { height: textContentHeightPerc }"> \x3c!-- ko template: \'dx-filtereditor-content-text\'--\x3e \x3c!-- /ko --\x3e </div> <div class="dx-filtereditor-tree-container" data-bind="css: { \'advanced\': advancedMode }, style: { height: treeContentHeightPerc }"> \x3c!-- ko template: \'dx-filtereditor-content-tree\' --\x3e \x3c!-- /ko --\x3e </div> </div>',"dx-filtereditor-content-text":'\x3c!-- ko if: !aceAvailable --\x3e <div class="dx-filtereditor-text" data-bind="dxTextArea: { value: displayValue, isValid: isValid, onInput: onInput, spellcheck: false }, cacheElement: { action: function(element) { cacheElement(element) } }"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: aceAvailable --\x3e <div class="dx-filtereditor-text dx-texteditor dx-textarea dx-editor-outlined" data-bind="css: {\'dx-invalid\': !$data.isValid(), \'dx-state-focused\': textFocused }"> <div class="dx-texteditor-container"> <div class="dx-filtereditor-ace dxd-back-primary2" data-bind="dxAceEditor: { value: $data.displayValue, theme: helper.aceTheme, editorContainer: editorContainer, options: aceOptions, additionalOptions: additionalOptions }"></div> <div class="dx-texteditor-buttons-container"></div> </div> </div> \x3c!-- /ko --\x3e',"dx-filtereditor-content-tree":'<div class="dx-filtereditor-tree dxd-border-secondary" data-bind="dxScrollView: { showScrollbar: \'onHover\', direction: \'both\' }"> \x3c!-- ko with: operandSurface --\x3e \x3c!-- ko template: { name: $data.templateName, data: $data}--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- ko ifnot: isSurfaceValid --\x3e <div class="dx-filtereditor-tree-lockscreen" data-bind="dxclick: function() { $data.advancedMode(true); }"> <div class="dx-filtereditor-tree-lockscreen-content"> <div class="dx-filtereditor-tree-lockscreen-content-text" data-bind="text: invalidMessage()"> </div> </div> </div> \x3c!-- /ko --\x3e',"dx-filtereditor":'<div> <div class="no-margin-right" data-bind="dxEllipsisEditor: { value: modelDisplayValue, isValid: modelValueIsValid, disabled: disabled, buttonAction: function() { popupVisible(true); } }"></div> \x3c!-- ko template: \'dx-filtereditor-popup\' --\x3e \x3c!-- /ko --\x3e </div>',"dx-filtereditor-advanced":"<div class=\"dx-filtereditor\" style=\"width: 100%; height: 100%;\" data-bind=\"style: { pointerEvents: $data.options().disabled() ? 'none' : '' }\"> \x3c!-- ko template: 'dx-filtereditor-content' --\x3e \x3c!-- /ko --\x3e \x3c!-- ko template: 'dx-filtereditor-content-popups' --\x3e \x3c!-- /ko --\x3e </div>","dx-filtereditor-plain":"<div class=\"dx-filtereditor\" style=\"width: 100%; height: 100%;\" data-bind=\"style: { pointerEvents: $data.options().disabled() ? 'none' : '' }\"> \x3c!-- ko template: 'dx-filtereditor-content-plain' --\x3e \x3c!-- /ko --\x3e \x3c!-- ko template: 'dx-filtereditor-content-popups' --\x3e \x3c!-- /ko --\x3e </div>","dx-filtereditor-aggregate-common":'\x3c!-- ko with: property--\x3e \x3c!-- ko template: { name: templateName, data: $data }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e <div data-bind="service: { name: \'createChangeType\' }"></div> \x3c!-- ko if: $data.aggregatedExpression() --\x3e <div class="criteria-operator-text dxd-filter-editor-text-color">(</div> \x3c!-- ko with: aggregatedExpression--\x3e \x3c!-- ko template: { name: templateName, data: $data }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e <div class="criteria-operator-text dxd-filter-editor-text-color">)</div> \x3c!-- /ko --\x3e',"dx-filtereditor-aggregate":'<div class="criteria-operator-group"> <div class="criteria-operator-group-item"> <div class="criteria-operator-action" data-bind="dxclick: function() { $data.remove && $data.remove(); }"> <div class="criteria-operator-action-image dx-image-filtereditor-remove" data-bind="visible: !!$data.canRemove">\x3c!-- ko template: \'dxrd-svg-filtereditor-remove\' --\x3e\x3c!-- /ko --\x3e</div> </div> \x3c!-- ko template: { name: \'dx-filtereditor-aggregate-common\' }--\x3e \x3c!-- /ko --\x3e </div> <div class="criteria-operator-content"> \x3c!-- ko with: condition--\x3e \x3c!-- ko template: { name: templateName, data: $data }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div>',"dx-filtereditor-between":'<div class="criteria-operator-group"> <div class="criteria-operator-group-item"> <div class="criteria-operator-action" data-bind="dxclick: function() { $data.remove && $data.remove(); }"> <div class="criteria-operator-action-image dx-image-filtereditor-remove" data-bind="visible: !!$data.canRemove">\x3c!-- ko template: \'dxrd-svg-filtereditor-remove\' --\x3e\x3c!-- /ko --\x3e</div> </div> \x3c!-- ko with: property--\x3e \x3c!-- ko template: { name: templateName, data: $data }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e <div data-bind="service: { name: \'createChangeType\' }"></div> \x3c!-- ko with: begin--\x3e \x3c!-- ko template: { name: templateName, data: $data }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e <div class="criteria-operator-text dxd-filter-editor-text-color">and</div> \x3c!-- ko with: end--\x3e \x3c!-- ko template: { name: templateName, data: $data }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div>',"dx-filtereditor-binary":'<div class="criteria-operator-group"> <div class="criteria-operator-group-item"> <div class="criteria-operator-action" data-bind="dxclick: function() { $data.remove && $data.remove(); }"> <div class="criteria-operator-action-image dx-image-filtereditor-remove" data-bind="visible: !!$data.canRemove">\x3c!-- ko template: \'dxrd-svg-filtereditor-remove\' --\x3e\x3c!-- /ko --\x3e</div> </div> \x3c!-- ko with: leftOperand--\x3e \x3c!-- ko template: { name: templateName, data: $data }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e <div data-bind="service: { name: \'createChangeType\' }"></div> \x3c!-- ko with: rightOperand--\x3e \x3c!-- ko template: { name: templateName, data: $data }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div>',"dx-filtereditor-common":'\x3c!-- ko template: contentTemplateName --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: $data.leftPart && $data.leftPart.condition --\x3e <div class="criteria-operator-content"> \x3c!-- ko with: leftPart--\x3e \x3c!-- ko with: condition--\x3e \x3c!-- ko template: { name: templateName, data: $data }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e',"dx-filtereditor-function-lightweight":'<div class="criteria-operator-text dxd-filter-editor-text-color" data-bind="css: css"> <div class="criteria-operator-text dxd-filter-editor-text-color" data-bind="text: displayType"></div> <div data-bind="service: { name: \'createChangeValueType\' }"></div> </div>',"dx-filtereditor-function":'<div class="criteria-operator-group"> <div class="criteria-operator-group-item"> <div class="criteria-operator-action" data-bind="dxclick: function() { $data.remove && $data.remove(); }"> <div class="criteria-operator-action-image dx-image-filtereditor-remove" data-bind="visible: !!$data.canRemove">\x3c!-- ko template: \'dxrd-svg-filtereditor-remove\' --\x3e\x3c!-- /ko --\x3e</div> </div> \x3c!-- ko template: { name: $data.leftPart.templateName, data: $data.leftPart }--\x3e \x3c!-- /ko --\x3e <div data-bind="service: { name: \'createChangeType\' }"></div> \x3c!-- ko foreach: rightPart --\x3e \x3c!-- ko template: { name: $data.templateName, data: $data }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div>',"dx-filtereditor-group":'<div class="criteria-operator-group"> <div class="criteria-operator-group-item"> <div class="criteria-operator-action" data-bind="dxclick: function() { $data.remove && $data.remove(); }"> <div class="criteria-operator-action-image dx-image-filtereditor-remove" data-bind="visible: !!$data.canRemove">\x3c!-- ko template: \'dxrd-svg-filtereditor-remove\' --\x3e\x3c!-- /ko --\x3e</div> </div> <div class="criteria-operator-item"> <div data-bind="service: { name: \'createChangeType\' }"></div> </div> <div data-bind="service: { name: \'createAddButton\' }"></div> </div> <div class="criteria-operator-content"> \x3c!-- ko foreach: operands --\x3e \x3c!-- ko template: { name: templateName, data: $data } --\x3e \x3c!-- /ko--\x3e \x3c!-- /ko --\x3e </div> </div>',"dx-filtereditor-in":'<div class="criteria-operator-group"> <div class="criteria-operator-group-item"> <div class="criteria-operator-action" data-bind="dxclick: function() { $data.remove && $data.remove(); }"> <div class="criteria-operator-action-image dx-image-filtereditor-remove" data-bind="visible: !!$data.canRemove">\x3c!-- ko template: \'dxrd-svg-filtereditor-remove\' --\x3e\x3c!-- /ko --\x3e</div> </div> \x3c!-- ko with: criteriaOperator--\x3e \x3c!-- ko template: { name: templateName, data: $data }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e <div data-bind="service: { name: \'createChangeType\' }"></div> \x3c!-- ko if: $data.operands().length > 1--\x3e <div class="criteria-operator-item criteria-operator-text dxd-filter-editor-text-color">(</div> <div class="criteria-operator-item"> \x3c!-- ko foreach: $data.operands() --\x3e \x3c!-- ko template: { name: $data.templateName, data: $data }--\x3e \x3c!-- /ko --\x3e <div class="criteria-operator-item criteria-operator-text dxd-filter-editor-text-color">,</div> \x3c!-- /ko --\x3e </div> <div class="criteria-operator-item criteria-operator-text dxd-filter-editor-text-color">)</div> \x3c!-- /ko --\x3e \x3c!-- ko if: $data.operands().length == 1--\x3e \x3c!-- ko template: { name: $data.operands()[0].templateName, data: $data.operands()[0] }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e <div class="criteria-operator-action" data-bind="dxclick: addValue"> <div class="criteria-operator-action-image dx-image-filtereditor-add">\x3c!-- ko template: \'dxrd-svg-filtereditor-add\' --\x3e\x3c!-- /ko --\x3e</div> </div> </div> </div>',"dx-filtereditor-parameter":'<div class="criteria-operator-text dxd-filter-editor-text-color" data-bind="css: css"> <div data-bind="service: { name: \'createChangeParameter\' }"></div> \x3c!-- ko if: $data.canChange --\x3e <div data-bind="service: { name: \'createChangeValueType\' }"></div> \x3c!-- /ko --\x3e </div>',"dx-filtereditor-property":'<div class="criteria-operator-text dxd-filter-editor-text-color" data-bind="css: css"> <div data-bind="service: { name: \'createChangeProperty\' }"></div> \x3c!-- ko if: $data.canChange --\x3e <div data-bind="service: { name: \'createChangeValueType\' }"></div> \x3c!-- /ko --\x3e </div>',"dx-filtereditor-unary":'\x3c!-- ko if: $data.operand().reverse --\x3e \x3c!-- ko template: {name: $data.operand().templateName, data: $data.operand() }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko ifnot: $data.operand().reverse --\x3e <div class="criteria-operator-group"> <div class="criteria-operator-group-item"> <div class="criteria-operator-action" data-bind="dxclick: function() { $data.remove && $data.remove(); }"> <div class="criteria-operator-action-image dx-image-filtereditor-remove" data-bind="visible: !!$data.canRemove">\x3c!-- ko template: \'dxrd-svg-filtereditor-remove\' --\x3e\x3c!-- /ko --\x3e</div> </div> \x3c!-- ko with: operand--\x3e <div class="criteria-operator-item"> \x3c!-- ko template: { name: templateName, data: $data }--\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e <div data-bind="service: { name: \'createChangeType\' }"></div> </div> </div> \x3c!-- /ko --\x3e',"dx-filtereditor-not":"\x3c!-- ko with: operand--\x3e \x3c!-- ko template: { name: templateName, data: $data }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e","dx-filtereditor-value":'<div class="criteria-operator-item" data-bind="visible: isEditable"> \x3c!-- ko if: $data.items.length === 0 --\x3e \x3c!-- ko if: $data.specifics() === "string" || $data.specifics() === "guid" --\x3e <div class="criteria-operator-item-editor" data-bind="dxTextBox: { value: _value, onFocusOut: function() { isEditable(false); } }, focus: { on: isEditable }"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: $data.specifics() === "bool" --\x3e <div class="criteria-operator-item-editor" data-bind="focus: isEditable, dxLocalizedSelectBox: { dataSource: [ { val: \'True\', text: \'Yes\', localizationId: \'AnalyticsCoreStringId.ParametersPanel_True\' }, { val: \'False\', text: \'No\', localizationId: \'AnalyticsCoreStringId.ParametersPanel_False\' }], valueExpr: \'val\', displayExpr: \'text\', value: _value, onFocusOut: function() { isEditable(false); }, dropDownOptions: { container: $root.getPopupContainer($element) } }"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: $data.specifics() === "date" --\x3e <div class="criteria-operator-item-editor" data-bind="focus: isEditable, dxDateBox: { value: _value, closeOnValueChange: true, type: \'date\', onFocusOut: function() { isEditable(false); }, dropDownOptions: { container: $root.getPopupContainer($element) } }"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: $data.specifics() !== "string" && $data.specifics() !== "bool" && $data.specifics() !== "date" && $data.specifics() !== "guid" --\x3e <div class="criteria-operator-item-editor" data-bind="dxTextBox: getNumberEditorOptions(), focus: { on: isEditable }"></div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: $data.items.length > 0 && typeof $data.items[0] === "object" --\x3e <div class="criteria-operator-item-editor" data-bind="focus: isEditable, dxSelectBox: { value: _value, dataSource: dataSource, valueExpr: \'value\', displayExpr: \'display\', searchEnabled: true, onFocusOut: function() { isEditable(false); }}, dropDownOptions: { container: $root.getPopupContainer($element) }"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: $data.items.length > 0 && typeof $data.items[0] !== "object" --\x3e <div class="criteria-operator-item-editor" data-bind="focus: isEditable, dxSelectBox: { value: _value, dataSource: dataSource, acceptCustomValue: true, searchEnabled: true, onFocusOut: function() { isEditable(false); }, dropDownOptions: { container: $root.getPopupContainer($element) }}"></div> \x3c!-- /ko --\x3e </div> <div class="criteria-operator-text dxd-filter-editor-text-color criteria-operator-item-value dxd-filter-editor-value-back-color" data-bind="visible: !isEditable()"> <div class="criteria-operator-text dxd-filter-editor-text-color clickable" data-bind="text: value, click: function() { isEditable(true); }, css: { \'default\': $data.isDefaultDisplay() } "></div> <div data-bind="service: { name: \'createChangeValueType\' }"></div> </div>',"dx-filtereditor-popup":"<div class=\"dx-filtereditor dx-popup-general\" data-bind=\"dxPopup: { showTitle: true, width: '95%', height: '95%', title: options() && options().title(), visible: popupVisible, onShown: function() { $data.focusText() }, toolbarItems: buttonItems, showCloseButton: true, container: getPopupContainer($element), position: { of: getPopupContainer($element) } }\"> \x3c!-- ko template: 'dx-filtereditor-content' --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- ko template: 'dx-filtereditor-content-popups' --\x3e \x3c!-- /ko --\x3e","dx-filtereditor-create":'<div class="criteria-operator-action" data-bind="dxclick: showPopup"> <div class="criteria-operator-action-image dx-image-filtereditor-add">\x3c!-- ko template: \'dxrd-svg-filtereditor-add\' --\x3e\x3c!-- /ko --\x3e</div> </div>',"dx-filtereditor-change":'<div class="criteria-operator-text dxd-filter-editor-text-color clickable" data-bind="text: target.displayType, dxclick: showPopup, css: target.css"></div>',"dx-filtereditor-changeParameter":'<div class="criteria-operator-text dxd-filter-editor-text-color clickable " data-bind="text: target.parameterName(), dxclick: showPopup, css: { \'dxd-state-selected\': target.isSelected }"></div>',"dx-filtereditor-changeProperty":'<div class="criteria-operator-text dxd-filter-editor-text-color clickable" data-bind="text: target.displayName, dxclick: showPopup, css: { \'dxd-state-selected\': target.isSelected }"></div>',"dx-filtereditor-changeValueType":'<div class="criteria-operator-action" data-bind="dxclick: showPopup"> <div class="criteria-operator-action-image-edit dx-image-filtereditor-edit">\x3c!-- ko template: \'dxrd-svg-filtereditor-edit\' --\x3e\x3c!-- /ko --\x3e</div> </div>',"dx-filtereditor-content-popups":"<div class=\"dx-selectbox-popup-wrapper dx-dropdownlist-popup-wrapper dx-filtereditor-criteriaoperator-popup dx-dropdowneditor-overlay\" data-bind=\"dxPopupWithAutoHeight: { minWidth:'170px', maxWidth:'500px', width: 'auto', height: '300px', focusStateEnabled: false, position: $data.rtl ? { my: 'right top', at: 'right bottom', of: popupService.target} : { my: 'left top', at: 'left bottom', of: popupService.target }, container: options().popupContainer, target: popupService.target, showTitle: false, showCloseButton: false, animation: {}, closeOnOutsideClick: true, shading: false, visible: popupService.visible }\"> \x3c!-- ko with: popupService--\x3e \x3c!-- ko with: data --\x3e \x3c!-- ko template: template--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>","dx-filtereditor-popup-common":'<div class="dx-widget" data-bind="dxScrollView: { showScrollbar: \'onHover\' }"> \x3c!-- ko foreach: data --\x3e \x3c!-- ko if: !$data.hidden --\x3e <div class="dx-filtereditor-popup-item dx-item dx-list-item dxd-list-item-back-color dxd-back-highlighted"> <span class="dx-item-content dx-list-item-content" data-bind="text: $data.displayText || $data.name, click: function() { $parent.click($data); } "></span> </div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>',"dx-filtereditor-popup-treelist":'<div class="dx-widget" data-bind="dxScrollView: { showScrollbar: \'onHover\' }"> <div class="dx-treelist-wrapper" data-bind="treelist: data"></div> </div>',"dx-format-string-list":'<div class="dx-format-string-list dxd-format-string-editor-border-color dxd-border-secondary"> <div data-bind="dxList: { items: $data.items, selectedItems: $data.selectedItems, onItemClick: $data.action, selectionMode: \'single\', activeStateEnabled: false }"> <div data-options="dxTemplate: { name: \'item\' }" class="dx-theme-border-color"> <div class="dx-image-filtereditor-remove" data-bind="click: $parent.removeItem, visible: $data.canRemove">\x3c!-- ko template: \'dxrd-svg-filtereditor-remove\' --\x3e\x3c!-- /ko --\x3e</div> <div class="dx-format-string-list-item" data-bind="text: $data.displayName"></div> </div> </div> </div>',"dx-format-string-edit-area":'<div class="dx-format-string-content-area-title dxd-text-primary" data-bind="text: getDisplayText(\'types\')"></div> <div class="dx-format-string-formats"> \x3c!-- ko template: { name: \'dx-format-string-list\', data: { items: patternList, action: setFormat, removeItem: removeCustomFormat, selectedItems: selectedFormats } } --\x3e \x3c!-- /ko --\x3e <div class="dx-format-string-customization"> <div class="dx-format-string-customization-add" data-bind="dxButton:{ onClick: addCustomFormat, text: getDisplayText(\'add\'), disabled: !canAddCustomFormat() }"></div> <div class="dx-format-string-customization-value dx-format-string-value dxd-back-primary" data-bind="dxTextBox: { value: formatResult, onInput: function(e) { updateInputText(\'formatResult\', e.component); } }"></div> </div> </div>',"dx-format-string-edit-area-general":'<div class="dx-format-string-content-area-title dxd-text-primary" data-bind="text: getDisplayText(\'prefix\')"></div> <div class="dx-format-string-customization-general-value dx-format-string-value" data-bind="dxTextBox: { value: formatPrefix, onInput: function(e) { updateInputText(\'formatPrefix\', e.component); } }"></div> <div class="dx-format-string-content-area-title dxd-text-primary" data-bind="text: getDisplayText(\'suffix\')"></div> <div class="dx-format-string-customization-general-value dx-format-string-value" data-bind="dxTextBox: { value: formatSuffix, onInput: function(e) { updateInputText(\'formatSuffix\', e.component); } }"></div>',"dx-format-string":'<div> <div class="no-margin-right" data-bind="dxEllipsisEditor: { value: value, disabled: disabled, buttonAction: function() { popupVisible(true); } }"></div> <div class="dx-format-string dx-popup-general" data-bind="dxPopup: { showTitle: true, width: \'95%\', height: \'95%\', minWidth: 650, title: getDisplayText(\'title\'), visible: popupVisible, toolbarItems: buttonItems, showCloseButton: true, container: getPopupContainer($element), position: { of: getPopupContainer($element) } }"> <div class="dx-format-string-content"> <div class="dx-format-string-content-area-left"> <div class="dx-format-string-content-area-title dxd-text-primary" data-bind="text: getDisplayText(\'category\')"></div> \x3c!-- ko template: { name: \'dx-format-string-list\', data: { items: types, action: setType, selectedItems: selectedTypes } } --\x3e \x3c!-- /ko --\x3e </div> <div class="dx-format-string-content-area-right"> \x3c!-- ko if: !isGeneralType --\x3e \x3c!-- ko template: \'dx-format-string-edit-area\' --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: isGeneralType --\x3e \x3c!-- ko template: \'dx-format-string-edit-area-general\' --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e <div class="dx-format-string-preview-area" data-bind="css: { \'dx-format-general\': isGeneralType }"> <div class="dx-format-string-preview-area-caption dxd-text-primary" data-bind="text: getDisplayText(\'preview\')"></div> <div class="dx-format-string-preview-value dxd-format-string-editor-border-color dxd-text-primary dxd-back-primary dxd-border-secondary"> <span class="dx-format-string-preview-value-inner" data-bind="text: previewString"></span> </div> </div> </div> </div> </div> </div>',"dx-treelist-item-actions":'\x3c!-- ko foreach: actions --\x3e \x3c!-- ko if: $data.templateName --\x3e \x3c!-- ko template: templateName --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: !$data.templateName --\x3e <div class="dx-treelist-action" data-bind="dxButtonWithTemplate: { onClick: function() { clickAction($parent); }, icon: ko.unwrap($data.imageTemplateName), iconClass: $data.imageClassName, visible: (ko.unwrap($data.visible) == undefined) || ko.unwrap($data.visible), disabled: $data.disabled && $data.disabled() }, attr: { title: $data.displayText && $data.displayText() || text }"></div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e',"dx-treelist-edit-action":"<div class=\"dx-treelist-action-edit dx-accordion-button\" data-bind=\"dxButtonWithTemplate: { icon: 'dxrd-svg-operations-edit', iconClass: 'dx-image-edit', onClick: function() { $parent.collapsed(!$parent.collapsed()); } }, visible: $parent.hasContent, attr: { title: $data.displayText() }\"></div>","dx-treelist-item-actions-with-edit":"\x3c!-- ko template: { name: 'dx-treelist-edit-action', data: treeListEditAction() } --\x3e \x3c!-- /ko --\x3e \x3c!-- ko template: 'dx-treelist-item-actions' --\x3e \x3c!-- /ko --\x3e","dx-treelist-item-ellipsis":'<div class="dx-treelist-item dxd-list-item-back-color dxd-back-highlighted" data-bind="styleunit: padding, click: renderNext"> <div class="dx-treelist-collapsedbutton"></div> <div class="dx-treelist-caption"> <div class="dx-treelist-selectedcontent"> <div class="dx-treelist-text-wrapper"> <div class="dx-treelist-ellipsis-text dxd-text-accented dxd-hyperlink-color" data-bind="text: $data.text()"></div> </div> </div> </div> </div>',"dx-treelist-item":'<div data-bind="visible: visible"> \x3c!-- ko if: hasContent --\x3e \x3c!-- ko template: "dx-treelist-accordion-item" --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko ifnot: hasContent --\x3e \x3c!-- ko template: "dx-treelist-header-item" --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>',"dx-treelist-accordion-item":'<div data-bind="dxdAccordionExt: { collapsed: collapsed, lazyContentRendering: true }"> \x3c!-- ko template: "dx-treelist-header-item" --\x3e \x3c!-- /ko --\x3e <div class="dx-fieldset dx-accordion-content dxd-back-primary"> \x3c!-- ko with: data --\x3e \x3c!-- ko template: { name: contenttemplate } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div>',"dx-treelist-header-item":'<div class="dx-treelist-item dxd-list-item-back-color dxd-back-highlighted" data-bind="event: { dblclick: function() { $data.dblClickHandler ? $data.dblClickHandler($data) : $data.toggleCollapsed() } }, styleunit: padding, css: { \'dx-treelist-item-selected dxd-state-selected\': isSelected() || isMultiSelected() }"> \x3c!-- ko if: $data.hasItems--\x3e <div class="dx-treelist-collapsedbutton" data-bind="css: nodeImageClass, template: \'dxrd-svg-collapsed\', click: toggleCollapsed"></div> \x3c!-- /ko --\x3e <div class="dx-treelist-caption" data-bind="style: { \'padding-left\': $data.hasItems ? \'0px\': \'18px\' }"> \x3c!-- ko if: actions && actions.length > 0 --\x3e <div class="dx-treelist-action-container" data-bind="visible: isSelected"> \x3c!-- ko template: actionsTemplate() --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e \x3c!-- ko if: isDraggable --\x3e <div class="dx-treelist-selectedcontent" data-bind="click: toggleSelected, draggable: dragDropHandler"> \x3c!-- ko template: { name: \'dx-treelist-header-item-caption-content\' } --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e \x3c!-- ko ifnot: isDraggable --\x3e <div class="dx-treelist-selectedcontent" data-bind="click: toggleSelected"> \x3c!-- ko template: { name: \'dx-treelist-header-item-caption-content\' } --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e </div> </div>',"dx-treelist-header-item-caption-content":'<div class="dx-treelist-image" data-bind="css: $data.imageClassName, template: {name: $data.imageTemplateName, if: !!ko.unwrap($data.imageTemplateName)}, attr: { title: text }"> </div> <div class="dx-treelist-text-wrapper"> <div class="dx-treelist-text" data-bind="text: text, attr: { title: text }"></div> </div>',"dx-treelist-item-with-hover":'<div data-bind="visible: visible"> \x3c!-- ko if: hasContent --\x3e \x3c!-- ko template: "dx-treelist-accordion-item-with-hover" --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko ifnot: hasContent --\x3e \x3c!-- ko template: "dx-treelist-header-item-with-hover" --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>',"dx-treelist-accordion-item-with-hover":'<div data-bind="dxdAccordionExt: { collapsed: collapsed, lazyContentRendering: true }"> \x3c!-- ko template: "dx-treelist-header-item-with-hover" --\x3e \x3c!-- /ko --\x3e <div class="dx-fieldset dx-accordion-content dxd-back-primary"> \x3c!-- ko with: data --\x3e \x3c!-- ko template: { name: contenttemplate } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div>',"dx-treelist-header-item-with-hover":'<div class="dx-background-inheritor dxd-back-highlighted dxd-state-selected"> <div class="dx-treelist-item dx-fontsize-reestablished dxd-list-item-back-color" data-bind="event: { dblclick: function() { $data.dblClickHandler ? $data.dblClickHandler($data) : $data.toggleCollapsed() }, mouseenter: mouseenter, mouseleave: mouseleave }, styleunit: padding, css: { \'dx-treelist-item-selected dxd-state-selected dxd-back-secondary\': isSelected() || isMultiSelected() }"> <div class="dx-treelist-collapsedbutton" data-bind="css: nodeImageClass, template: \'dxrd-svg-collapsed\', click: toggleCollapsed, style: { \'visibility\': hasItems ? \'visible\' : \'hidden\' }"></div> <div class="dx-treelist-caption"> \x3c!-- ko if: actions && actions.length > 0 --\x3e <div class="dx-treelist-action-container" data-bind="visible: $data.isSelected() || $data.isHovered()"> \x3c!-- ko template: actionsTemplate() --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e <div class="dx-treelist-selectedcontent" data-bind="click: toggleSelected, draggable: isDraggable ? dragDropHandler : null"> <div class="dx-treelist-image" data-bind="css: $data.imageClassName, template: {name: $data.imageTemplateName, if: !!ko.unwrap($data.imageTemplateName)}, attr: { title: text }"> </div> <div class="dx-treelist-text-wrapper"> <div class="dx-treelist-text" data-bind="text: text, attr: { title: text }"></div> </div> </div> </div> </div> </div>',"dx-treelist":"<div class=\"dx-treelist dxd-text-primary\"> \x3c!-- ko template: $data.visibleItems !== undefined ? 'dx-treelist-paginate' : 'dx-treelist-common' --\x3e \x3c!-- /ko --\x3e </div>","dx-treelist-common":"\x3c!-- ko foreach: items --\x3e \x3c!-- ko lazy: { resolver: resolver, innerBindings: { template: templateName } } --\x3e \x3c!-- /ko --\x3e <div data-bind=\"visible: !collapsed()\"> \x3c!-- ko template: { name: 'dx-treelist', data: $data } --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e","dx-treelist-paginate":"\x3c!-- ko foreach: visibleItems --\x3e \x3c!-- ko template: templateName --\x3e \x3c!-- /ko --\x3e <div data-bind=\"visible: !collapsed()\"> \x3c!-- ko template: { name: 'dx-treelist', data: $data } --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e","dxrd-borders":'<div class="dxrd-bordereditor" data-bind="dxBorderEditor: { value: value }"></div>',"dxrd-colorpicker":"<div data-bind=\"dxColorBox: { value: displayValue, editAlphaChannel: true, disabled: disabled, dropDownOptions: { container: $root.getPopupContainer($element), position: { at: 'left bottom', collision: 'flipfit flipfit', my: 'left top', boundary: $root.getPopupContainer($element), of: $element } } }\"></div>","dxrd-expressionstring":'\x3c!-- ko if: $data.value() --\x3e <div data-bind="dxExpressionEditor: getOptions({ options: value, fieldListProvider: $root.dataBindingsProvider, displayNameProvider: $root.displayNameProvider && $root.displayNameProvider() })"></div> \x3c!-- /ko --\x3e',"dxrd-field":'\x3c!-- ko displayNameExtender: { path: path, dataMember: value } --\x3e <div data-bind="dxFieldListPicker: { path: path, acceptCustomValue: true, value: value, displayValue: $displayName, itemsProvider: $root.dataBindingsProvider, treeListController: treeListController, disabled: disabled }"></div> \x3c!-- /ko --\x3e',"dxrd-filterstring":'\x3c!-- ko if: $data.value() --\x3e <div data-bind="dxFilterEditor: { options: value, fieldListProvider: $root.dataBindingsProvider, getDisplayNameByPath: $root.getDisplayNameByPath, displayNameProvider: $root.displayNameProvider && $root.displayNameProvider() }"></div> \x3c!-- /ko --\x3e',"dxrd-filterstringgroup":'\x3c!-- ko if: $data.value() --\x3e <div data-bind="dxFilterEditor: { options: value, fieldListProvider: $root.dataBindingsGroupProvider, getDisplayNameByPath: $root.getDisplayNameByPath, displayNameProvider: $root.displayNameProvider && $root.displayNameProvider() }"></div> \x3c!-- /ko --\x3e',"dxrd-formatstring":'<div data-bind="dxFormatEditor: { value: value, disabled: disabled }"></div>',"dxrd-guid":'<div data-bind="dxTextBox: getOptions({ value: value, disabled: disabled }), dxValidator: { validationRules: (validationRules || []) }"></div>',"dxrd-emptyHeader":" ","dxrd-objectEditorContent":"\x3c!-- ko if: $data.visible() && $data.editorCreated() --\x3e <div data-bind=\"template: { name: 'dx-propertieseditor', data: viewmodel }\"></div> \x3c!-- /ko --\x3e","dxrd-objectEditor":'<div data-bind="dxPropertyGrid: { target: ko.observable($data), level: $parent.level, textToSearch: $parent.textToSearch }"></div>',"dxrd-commonCollectionItem":'<div data-bind="dxPropertyGrid: { target: value, level: editor.level + 1, parentDisabled: editor.disabled }"></div>',"dxrd-objectVisitor":'\x3c!-- ko if: options --\x3e <div data-bind="treelist: options"></div> \x3c!-- /ko --\x3e',"dxd-snap-lines-holder":'<div class="dxd-snap-lines-holder"> <div class="dxd-snap-line dxd-snap-line-horizontal" data-bind="style: { transform: snapLineSurfaces[0].transform() }"></div> <div class="dxd-snap-line dxd-snap-line-horizontal" data-bind="style: { transform: snapLineSurfaces[1].transform() }"></div> <div class="dxd-snap-line dxd-snap-line-vertical" data-bind="style: { transform: snapLineSurfaces[2].transform() }"></div> <div class="dxd-snap-line dxd-snap-line-vertical" data-bind="style: { transform: snapLineSurfaces[3].transform() }"></div> </div>',"dxrd-surface-template-base":'\x3c!-- ko ifnot: isLoading --\x3e \x3c!-- ko with: surface --\x3e <div class="dxrd-surface-wrapper" data-bind="template: templateName, click: function(_, e) { $root.selection.clickHandler($data, e); e.stopPropagation(); }"> </div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: isLoading --\x3e <div class="dxrd-surface-wrapper"> <div style="text-align: center; padding-top: 25%;"> <div data-bind="dxLoadIndicator: { visible: isLoading() }"></div> </div> </div> \x3c!-- /ko --\x3e',"dxrd-designer":'<div data-bind="css: surfaceClass($element)"> <div class="dxrd-designer-wrapper dx-editors dxd-surface-back-color dxd-scrollbar-color" data-bind="visible: (!$data.designMode || designMode()), cssArray: [ $data.rootStyle , { \'dx-rtl\' : $data.rtl, \'dx-ltr\': !$data.rtl } ]"> \x3c!-- ko foreach: parts --\x3e \x3c!-- ko template: { name: templateName, data: model }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- ko if: ($data.addOns) --\x3e \x3c!-- ko foreach: addOns --\x3e \x3c!-- ko template: { name: templateName, data: model } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>',"dxrd-collectionactions-template":'<div class="dxrd-action-items-container"></div> <div class="dx-treelist-action" data-bind="dxButtonWithTemplate: { onClick: togglePopoverVisible, disabled: disabled, icon: ko.unwrap($data.imageTemplateName), iconClass: ko.unwrap($data.imageClassName) }, attr: { id: id, title: text }"></div> <div data-bind="dxPopup: { width: 235, height: \'auto\', position: { my: $root.rtl ? \'left top\': \'right top\', at: \'bottom\', of: (\'#\' + id) }, showTitle: false, showCloseButton: false, animation: {}, closeOnOutsideClick: true, container: ($data.getContainer || function(_e, selector) { return selector; })($element, \'.dxrd-action-items-container\'), shading: false, visible: popoverVisible }"> \x3c!-- ko foreach: actions --\x3e <div class="dxrd-action-item dxd-button-back-color dxd-state-normal dxd-back-highlighted" data-bind="dxclick: clickAction, css: { \'dxrd-disabled-button\': disabled }"> <div class="dxrd-action-item-image" data-bind="css: ko.unwrap($data.imageClassName), template: {name: ko.unwrap($data.imageTemplateName), if: !!ko.unwrap($data.imageTemplateName)}, attr: { title: $data.displayText && $data.displayText() || text }"> </div> </div> \x3c!-- /ko --\x3e </div>',"dxrd-menubutton-template-base":'<div class="dxrd-menu-container" style="position:relative; width:0; height:100%"></div> <div class="dxrd-menu-button dxd-toolbox-back-color dxd-border-primary dxd-back-primary2"> <div class="dxrd-menu-place" style="width:54px;"></div> <div class="dxrd-menu-button-image dxd-button-back-color dxd-state-normal dxd-back-highlighted" data-bind="dxclick: function(e) { if(stopPropagation) { stopPropagation = false; } else { toggleAppMenu() } }, template: \'dxrd-svg-menu-menu\', css: {\'dxd-state-active\': appMenuVisible }"></div> <div class="dxd-menu-back-color dxd-back-primary2" data-bind="dxPopup: { width: 250, height: \'100%\' , position: $data.rtl ? { my: \'right top\' , at: \'left top\' , offset: \'-10 0\' } : { my: \'left top\' , at: \'right top\' , offset: \'10 0\' }, showTitle: false, showCloseButton: false, container: getMenuPopupContainer($element), target: getMenuPopupTarget($element), animation: {}, closeOnOutsideClick: function(e) { var buttonClassName = \'dxrd-menu-button-image\'; var parentClassList = e.target.parentNode && e.target.parentNode.parentNode && e.target.parentNode.parentNode.classList; stopPropagation = (e.target.classList && e.target.classList.contains(buttonClassName)) || (parentClassList && parentClassList.contains(buttonClassName)); return true; }, shading: false, focusStateEnabled: false, visible: appMenuVisible }"> <div class="dxrd-menu-break dxd-popup-back-color dxd-back-primary2"></div> \x3c!-- ko foreach: actionLists.menuItems --\x3e <div class="dxrd-menu-item dxd-text-primary dxd-list-item-back-color dxd-back-highlighted" data-bind="dxclick: function(e) { if(disabled && !disabled() || !disabled) { $root.toggleAppMenu(); clickAction($root.model(), e); }}, css: { \'dxrd-disabled-button\': disabled }, visible: visible"> <div class="dxrd-menu-item-image" data-bind="css: ko.unwrap($data.imageClassName), template: {name: ko.unwrap($data.imageTemplateName), if: !!ko.unwrap($data.imageTemplateName)}, attr: { title: $data.displayText && $data.displayText() || text }"> </div> <div class="dxrd-menu-item-text" data-bind="text: $data.displayText && $data.displayText() || text, attr: { title: $data.displayText && $data.displayText() || text}"></div> <div class="dxrd-menu-item-separator" data-bind="visible: $data.hasSeparator"></div> </div> \x3c!-- /ko --\x3e </div> </div>',"dxrd-top-grid":'\x3c!-- ko if: popularVisible --\x3e <div class="dx-fieldset"> <div data-bind="dxdAccordion: { collapsed: collapsed }"> <div class="dxrd-group-header dx-accordion-header" data-bind="css: { \'dxrd-group-header-collapsed dxd-border-primary\': collapsed() }"> <div class="dx-collapsing-image" data-bind="template: \'dxrd-svg-collapsed\', css: { \'dx-image-expanded\': !collapsed() }" style="display:inline-block;"></div> <span class="dxrd-group-header-text" data-bind="text: $root.actionsGroupTitle()"></span> </div> <div class="dx-accordion-content dxd-back-primary"> \x3c!-- ko foreach: (contextActions || []) --\x3e \x3c!-- ko if: $data.templateName --\x3e \x3c!-- ko template: templateName --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: !$data.templateName --\x3e <div class="dxrd-properties-grid-action" data-bind="dxclick: function() { if($data.disabled && !$data.disabled() || !$data.disabled) { clickAction($root.editableObject()); } }, css: { \'dxrd-disabled-button\': $data.disabled && $data.disabled() }, visible: (ko.unwrap($data.visible) == undefined) || ko.unwrap($data.visible)"> <div class="dxrd-properties-grid-action-image dxd-button-back-color dxd-state-normal dxd-back-highlighted" data-bind="css: $data.imageClassName, template: {name: $data.imageTemplateName, if: !!ko.unwrap($data.imageTemplateName)}, attr: { title: $data.displayText && $data.displayText() || text }"> </div> </div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko with: popularProperties --\x3e <div style="position: relative" data-bind="template: { name: \'dx-propertieseditor\', data: $data }"></div> \x3c!-- /ko --\x3e </div> </div> </div> \x3c!-- /ko --\x3e',"dxrd-propertiestab":'<div class="dxrd-properties-wrapper" data-bind="visible: active() && visible()"> <div style="height:100%" class="dxd-text-primary"> <div class="dxrd-right-panel-header"> <span data-bind="text: text"></span> </div> \x3c!-- ko with: model --\x3e \x3c!-- ko if: $root.controlsStore.visible() --\x3e <div class="dx-property-grid-header"> <div class="dx-property-grid-header-content"> <div class="dx-property-grid-sorting-actions-group" data-bind="css: { \'dx-property-gread-search-collapsed\': isSearching }"> <div class="dxrd-properties-focused-item" data-bind="dxSelectBox: { dataSource: $root.controlsStore.dataSource, value: focusedItem, displayExpr: displayExpr, dropDownOptions: { container: $root.getPopupContainer($element) } }"></div> <div class="dx-property-grid-sorting-actions-container"> <div class="dx-property-grid-sorting-action dxd-button-back-color dxd-state-normal dxd-back-highlighted dxd-back-primary2" data-bind="css: { \'dxd-state-active dxd-state-no-hover\': !isSortingByGroups() }, dxButtonWithTemplate: { onClick: function() { $data.isSortingByGroups(false); }, icon: \'dxrd-svg-properties-sortingbyalphabet\', iconClass: \'image-sortingbyalphabet\' }"></div> <div class="dx-property-grid-sorting-action dxd-button-back-color dxd-state-normal dxd-back-highlighted dxd-back-primary2" data-bind="css: { \'dxd-state-active dxd-state-no-hover\': isSortingByGroups }, dxButtonWithTemplate: { onClick: function() { $data.isSortingByGroups(true); }, icon: \'dxrd-svg-properties-sortingbygroups\', iconClass: \'image-sortingbygroups\' }"></div> </div> </div> <div class="dx-property-grid-search-group dx-property-gread-search-collapsed" data-bind="css: { \'dx-property-gread-search-collapsed\': !isSearching() }"> <div class="dx-property-grid-sorting-action dxd-button-back-color dxd-state-normal dxd-back-highlighted dxd-back-primary2" data-bind="css: { \'dxd-state-active\': isSearching }, dxButtonWithTemplate: { onClick: switchSearchBox, icon: \'dxrd-svg-properties-search\', iconClass: \'image-search\' }"></div> <div class="dx-property-grid-search-box" data-bind="dxTextBox: { value: textToSearch, valueChangeEvent: \'keyup\', placeholder: searchPlaceholder(), showClearButton: true }, cacheElement: { action: function(element) { searchBox(element); } }"></div> </div> </div> </div> \x3c!-- /ko --\x3e <div class="dxrd-properties-grid dxd-border-primary" data-bind="dxScrollView: { showScrollbar: \'onHover\', useNative: false, scrollByThumb: true }, styleunit: { top: $root.controlsStore.visible() ? 80 : 40 }"> \x3c!-- ko template: { name: \'dxrd-top-grid\', data: { contextActions: $root.contextActions, popularProperties: $root.popularProperties, collapsed: ko.observable(false), popularVisible: $root.popularVisible() && isSortingByGroups(), actionsGroupTitle: $root.actionsGroupTitle } } --\x3e \x3c!-- /ko --\x3e <div data-bind="visible: isSortingByGroups"> \x3c!-- ko foreach: groups --\x3e <div class="dx-fieldset" data-bind="visible: visible"> <div data-bind="dxdAccordion: { collapsed: collapsed }"> <div class="dxrd-group-header dx-accordion-header" data-bind="css: { \'dxrd-group-header-collapsed dxd-border-primary\': collapsed() }"> <div class="dx-collapsing-image" data-bind="template: \'dxrd-svg-collapsed\', css: { \'dx-image-expanded\': !collapsed() }" style="display:inline-block;"></div> <span class="dxrd-group-header-text" data-bind="text: displayName()"></span> </div> <div class="dx-accordion-content dxd-back-primary"> \x3c!-- ko ifnot: editorsCreated --\x3e <div class="dx-accordion-content-loading-panel"> <div data-bind="dxLoadIndicator: { visible: !editorsCreated() }"></div> </div> \x3c!-- /ko --\x3e \x3c!-- ko if: $data.editorsRendered() --\x3e <div data-bind="visible: editorsCreated"> <div class="dx-editors"> \x3c!-- ko foreach: editors --\x3e \x3c!-- ko template: editorTemplate --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: ($index() === $parent.editors().length - 1 && $parent.editorsCreated(true)) --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div> \x3c!-- /ko --\x3e </div> </div> </div> \x3c!-- /ko --\x3e </div> <div class="dx-fieldset dxd-back-primary" data-bind="visible: !isSortingByGroups()"> <div data-bind="dxLoadIndicator: { visible: !allEditorsCreated() }"></div> \x3c!-- ko if: $data.editorsRendered() --\x3e <div data-bind="visible: allEditorsCreated"> <div class="dx-editors"> \x3c!-- ko foreach: $data.getEditors() --\x3e \x3c!-- ko template: editorTemplate --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: ($index() === $parent._editors().length - 1 && $parent.allEditorsCreated(true)) --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div> \x3c!-- /ko --\x3e </div> <div data-bind="dxPopup: { width: 148, height: \'auto\', position: $data.rtl ? { my: \'left top\', at: \'right top\', of: popupService.target } : { my: \'right top\', at: \'left top\', of: popupService.target }, container: \'.dx-designer-viewport\', target: popupService.target, showTitle: false, showCloseButton: false, animation: {}, closeOnOutsideClick: true, shading: false, visible: popupService.visible }"> <div data-options="dxTemplate: { name: \'content\' }"> \x3c!-- ko if: popupService.title --\x3e <div class="dxrd-editor-menu-caption dxd-text-primary" data-bind="text: popupService.title"></div> \x3c!-- /ko --\x3e \x3c!-- ko foreach: popupService.actions --\x3e \x3c!-- ko if: (!visible || visible()) --\x3e <div class="dxrd-editor-menu-item dxd-list-item-back-color dxd-back-highlighted dxd-state-normal" data-bind="dxclick: action"> <div class="dxrd-menuitem-box dxd-property-grid-menu-box-color dxd-back-contrast"> <div class="dxrd-menuitem-box-inside dxd-back-secondary"></div> </div> <span class="dxrd-editor-menu-title dxd-text-primary" data-bind="text: title"></span> </div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div> </div> \x3c!-- /ko --\x3e </div></div>',"dx-right-panel-lightweight":'<div class="dxrd-right-panel dx-shadow dxd-border-secondary dxd-property-grid-group-header-back-color dxd-back-primary2" data-bind="styleunit: { width: tabPanel.width }, css: tabPanel.cssClasses(), resizable: tabPanel.getResizableOptions($element, \'1px\', 325)"> \x3c!-- ko foreach: tabPanel.tabs --\x3e \x3c!-- ko lazy: { template: $data.template } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>',"dxrd-right-panel-template-base":'<div class="dx-shadow dxd-border-secondary" data-bind="styleunit: { width: tabPanel.headerWidth }, css: tabPanel.cssClasses({\'border\': !tabPanel.collapsed()})"> <div class="dxrd-right-panel-collapse dxd-back-primary dxd-button-back-color dxd-state-normal dxd-back-highlighted" data-bind="styleunit: { width: tabPanel.headerWidth }, css: tabPanel.cssClasses(), dxclick: function() { tabPanel.collapsed(!tabPanel.collapsed()); }, attr: { title: tabPanel.toggleCollapsedText }"> <div class="dxrd-right-panel-collapse-image" data-bind="css: tabPanel.toggleCollapsedImage().class, template: tabPanel.toggleCollapsedImage().template"></div> </div> <div class="dxrd-right-panel dxd-property-grid-group-header-back-color dxd-back-primary2" data-bind="styleunit: { width: tabPanel.width }, css: tabPanel.cssClasses(), resizable: tabPanel.getResizableOptions($element, \'50px\', 340)"> \x3c!-- ko foreach: tabPanel.tabs --\x3e \x3c!-- ko lazy: { template: $data.template } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> <div class="dxrd-right-tabs dxd-side-panel-tabs-back-color dxd-back-contrast" data-bind="css: tabPanel.cssClasses()"> \x3c!-- ko foreach: tabPanel.tabs --\x3e <div class="dxrd-tab-item dxd-side-panel-tab-back-color dxd-back-highlighted" data-bind="dxclick: function(s) { $parent.tabPanel.selectTab({ model: s }) }, css: { \'dxd-state-active dxd-state-no-hover\': active, \'dxrd-tab-item-disabled\': disabled }, attr: { title: text }, visible: visible"> <div class="dxrd-image-padding" data-bind="css: $data.imageClassName, template: {name: $data.imageTemplateName, if: !!ko.unwrap($data.imageTemplateName)}"> </div> </div> \x3c!-- /ko --\x3e </div> </div>',"dxrd-toolbar-template-base":'<div class="dxrd-toolbar-wrapper"> <div class="dxrd-toolbar" data-bind="template: {name: \'dxrd-toolbar-tmplt\', data: actionLists.toolbarItems }"></div> </div>',"dxrd-toolbar-tmplt":"\x3c!-- ko foreach: $data --\x3e \x3c!-- ko if: $data.templateName --\x3e \x3c!-- ko template: templateName --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: !$data.templateName --\x3e <div class=\"dxrd-toolbar-item\" data-bind=\"visible: visible\"> <div data-bind=\"template: {name: ko.unwrap($data.imageTemplateName), if: !!ko.unwrap($data.imageTemplateName)}, attr: { class: 'dxrd-toolbar-item-image dxd-button-back-color dxd-state-normal dxd-back-highlighted ' + (ko.unwrap($data.imageClassName) || ''), title: $data.displayText && $data.displayText() || text }, dxclick: function() { if((typeof $data.disabled === 'function') && !disabled() || !disabled) { clickAction($root.model && $root.model()); } }, css: {'dxrd-disabled-button': disabled, 'dxd-state-active': $data.selected }\"> </div> <div class=\"dxrd-toolbar-item-separator dxd-toolbar-separator-color dxd-border-secondary\" data-bind=\"visible: $data.hasSeparator\"></div> </div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e","dxrd-toolbox-template-base":'<div class="dxrd-toolbox-wrapper dxd-toolbox-back-color dxd-back-primary2" data-bind="dxScrollView: { showScrollbar: \'onHover\', scrollByContent: false, bounceEnabled: false, useNative: false, scrollByThumb: true }"> \x3c!-- ko foreach: toolboxItems --\x3e <div class="dxrd-toolbox-item" data-bind="attr: { title: displayName }"> <div class="dx-background-inheritor dxd-toolbox-item-back-color dxd-back-secondary"> <div class="dxrd-image-padding dx-fontsize-reestablished" data-bind="template: {name: $data.imageTemplateName, if: !!ko.unwrap($data.imageTemplateName)}, css: $data.imageClassName, draggable: $root.toolboxDragHandler"> </div> </div> </div> \x3c!-- /ko --\x3e </div>',"dxrd-zoom-select-template":'<div class="dxrd-toolbar-item-zoom" data-bind="visible: visible"> <div class="dxrd-toolbar-item-zoom-editor" data-bind="dxSelectBox: { items: zoomLevels, value: $data.zoom, displayExpr: function(val) { return Math.round((val || this.option(\'value\')) * 100) + \'%\'; }, displayCustomValue: true, acceptCustomValue: true, onCustomItemCreating: onCustomItemCreating, disabled: disabled, dropDownOptions: { container: $root.getPopupContainer($element) } }"></div> </div>',"dxrd-bordereditor":"<div class=\"bordereditor-content\"> \x3c!-- ko with: value--\x3e <div class=\"bordereditor-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dxrd-image-borders-none\" data-bind=\"template: 'dxrd-svg-properties-borders-none', css: { 'dxd-state-active': (!bottom() && !left() && !top() && !right()), 'dxrd-disabled-button': disabled }, click: function() { setNone() }\"></div> <div class=\"bordereditor-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dxrd-image-borders-all right-margin\" data-bind=\"template: 'dxrd-svg-properties-borders-all', css: { 'dxd-state-active': (bottom() && left() && top() && right()), 'dxrd-disabled-button': disabled }, click: function() { setAll() }\"></div> <div class=\"bordereditor-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dxrd-image-borders-left\" data-bind=\"template: 'dxrd-svg-properties-borders-left', css: { 'dxd-state-active': left(), 'dxrd-disabled-button': disabled }, click: function() { setValue('left') }\"></div> <div class=\"bordereditor-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dxrd-image-borders-top\" data-bind=\"template: 'dxrd-svg-properties-borders-top', css: { 'dxd-state-active': top(), 'dxrd-disabled-button': disabled }, click: function() { setValue('top') }\"></div> <div class=\"bordereditor-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dxrd-image-borders-right\" data-bind=\"template: 'dxrd-svg-properties-borders-right', css: { 'dxd-state-active': right(), 'dxrd-disabled-button': disabled }, click: function() { setValue('right') }\"></div> <div class=\"bordereditor-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dxrd-image-borders-bottom\" data-bind=\"template: 'dxrd-svg-properties-borders-bottom', css: { 'dxd-state-active': bottom(), 'dxrd-disabled-button': disabled }, click: function() { setValue('bottom') }\"></div> \x3c!-- /ko --\x3e</div>"});var __extends=this&&this.__extends||function(){var a=function(b,c){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])})(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c),b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),DevExpress;!function(a){!function(a){var b;!function(a){function b(a,c,d,e){if(void 0===d&&(d=[]),void 0===e&&(e=["surface"]),a&&void 0!==a){var f=[];for(var g in a)if(0!==g.indexOf("_")&&-1===e.indexOf(g)){var h=g;ko.isComputed(a[g])&&ko.isWriteableObservable(a["_"+g])&&(h="_"+h),-1!==d.indexOf(a[h])||ko.isComputed(a[h])||f.push(a[h])}c(f),d.push.apply(d,f),f.forEach(function(a){"object"==typeof(a=ko.unwrap(a))&&b(a,c,d,e)})}}function c(a){return!a.isModelReady||a.isModelReady()}a.propertiesVisitor=b,a.checkModelReady=c}(b=a.Internal||(a.Internal={}));!function(a){var c=function(a){function c(b,c,d){void 0===c&&(c=["surface"]);var e=a.call(this)||this;if(e._groupObservers=[],e._getInfoMethodName=null,e._groupPosition=-1,e._observers=[],e._subscriptions=[],e._visited=[],e._position=ko.observable(-1),e._lockedPosition=ko.observable(-1),e._inUndoRedo=!1,e.redoEnabled=ko.observable(!1),e.undoEnabled=ko.observable(!1),e.isIngroup=-1,e.isDirty=ko.computed({read:function(){return e._position()!==e._lockedPosition()},write:function(a){a?e._lockedPosition("forcibly marked as dirty"):e._lockedPosition(e._position())}}),e._model=ko.unwrap(b),e._getInfoMethodName=d,e._ignoredProperties=c,e._getInfoMethodName)ko.isSubscribable(b)?e._targetSubscription=e.subscribeProperty(b,!0):e._createDisposeFunction(b);else{var f=e.subscribe(e._model);if(ko.isSubscribable(b)){var g=b();e._targetSubscription=b.subscribe(function(a){e._removePropertiesSubscriptions(),e._inUndoRedo||(e.properyChanged({observable:b,propertyChanged:{oldVal:g,val:a}}),g=a),e._cleanSubscribtions(f),e._model=a,f=e.subscribe(e._model)})}}return e._disposables.push(e.isDirty),e}return __extends(c,a),c.tryGetUndoEngine=function(a){return a[c._disposeUndoEngineSubscriptionsName]&&a[c._disposeUndoEngineSubscriptionsName].instance},Object.defineProperty(c.prototype,"_modelReady",{get:function(){return b.checkModelReady(this._model)},enumerable:!0,configurable:!0}),c.prototype._disposeObserver=function(a){if(a.propertyChanged){var b=a.propertyChanged.val;b&&!b[c._disposeUndoEngineSubscriptionsName]&&b.dispose&&b.dispose()}else a.arrayChanges&&a.arrayChanges.forEach(function(a){if("added"===a.status){var b=a.value;b&&!b[c._disposeUndoEngineSubscriptionsName]&&b.dispose&&b.dispose()}})},c.prototype.properyChanged=function(a){var b=this;if(!this._inUndoRedo){var c=this._position()+1;if(c<this._observers.length){this._observers.splice(c,this._observers.length).forEach(function(a){Array.isArray(a)?a.reverse().forEach(function(a){return b._disposeObserver(a)}):b._disposeObserver(a)})}this._observers.push(a),this._position(c),this.undoEnabled(!0),this.redoEnabled(!1)}},c.prototype.visitProperties=function(a,b){var c=[];if(a&&b)for(var d=0;d<b.length;d++)if(b[d].modelName||b[d].editor||b[d].info){var e=this.validatePropertyName(a,b[d].propertyName);e&&(ko.isComputed(a[e])||(ko.isObservable(a[e])?c.push(this.subscribeProperty(a[e],!b[d].link)):c.push.apply([],this._createDisposeFunction(a[e],b[d].info))))}return c},c.prototype.undoChangeSet=function(a){if(a.propertyChanged)a.observable(a.propertyChanged.oldVal);else{for(var b=a.observable(),c=0;c<a.arrayChanges.length;c++)"added"===a.arrayChanges[c].status?b.splice(b.indexOf(a.arrayChanges[c].value),1):"deleted"===a.arrayChanges[c].status&&b.splice(a.arrayChanges[c].index,0,a.arrayChanges[c].value);ko.isObservable(a.observable)&&a.observable.valueHasMutated()}},c.prototype.redoChangeSet=function(a){if(a.propertyChanged)a.observable(a.propertyChanged.val);else{for(var b=a.observable(),c=0;c<a.arrayChanges.length;c++)"added"===a.arrayChanges[c].status?b.splice(a.arrayChanges[c].index,0,a.arrayChanges[c].value):"deleted"===a.arrayChanges[c].status&&b.splice(b.indexOf(a.arrayChanges[c].value),1);ko.isObservable(a.observable)&&a.observable.valueHasMutated()}},c.prototype._disposeChilds=function(a,b){if(a&&b)for(var c=0;c<b.length;c++)if(b[c].modelName||b[c].editor||b[c].info){var d=b[c].propertyName;if(0!==d.indexOf("_")){var e=d;if(ko.isWriteableObservable(a["_"+d])&&(e="_"+e),!ko.isComputed(a[e])){var f=ko.unwrap(a[e]);f&&"object"==typeof f&&(b[c].link||this._callDisposeFunction(f))}}}},c.prototype._createDisposeFunction=function(a,b){var d=this,e=[];if(a&&"object"==typeof a){var f=b||a[this._getInfoMethodName]&&a[this._getInfoMethodName]();f&&(a[c._disposeUndoEngineSubscriptionsName]?a[c._disposeUndoEngineSubscriptionsName].inc++:(a[c._disposeUndoEngineSubscriptionsName]={inc:1,instance:this},e=this.subscribe(a,f),a[c._disposeUndoEngineSubscriptionsName].func=function(){a[c._disposeUndoEngineSubscriptionsName].inc--,d._disposeChilds(a,f),0===a[c._disposeUndoEngineSubscriptionsName].inc&&(d._cleanSubscribtions(e),delete a[c._disposeUndoEngineSubscriptionsName])}))}return e},c.prototype._callDisposeFunction=function(a){if(a)if(Array.isArray(a))for(var b=0;b<a.length;b++)a[b][c._disposeUndoEngineSubscriptionsName]&&a[b][c._disposeUndoEngineSubscriptionsName].func();else a[c._disposeUndoEngineSubscriptionsName]&&a[c._disposeUndoEngineSubscriptionsName].func()},c.prototype._cleanSubscribtions=function(a){if(a)if(a.length)for(var b=0;b<a.length;b++)this._cleanSubscribtions(a[b]);else a.dispose&&a.dispose()},c.prototype.validatePropertyName=function(a,b){return(!this._ignoredProperties||this._ignoredProperties&&-1===this._ignoredProperties.indexOf(b))&&0!==b.indexOf("_")?ko.isWriteableObservable(a["_"+b])?"_"+b:b:null},c.prototype.subscribeProperty=function(a,b){var c=this;if(ko.isObservable(a)){var d=a();if(Array.isArray(d)){for(var e=0;e<a().length;e++)this._createDisposeFunction(a()[e]);return a.subscribe(function(b){if(c._modelReady){for(var d=b.filter(function(a){return"added"===a.status}),e=b.filter(function(a){return"deleted"===a.status}),f=0;f<e.length;f++)c._callDisposeFunction(e[f].value);for(var f=0;f<d.length;f++)c._createDisposeFunction(d[f].value);c.properyChanged({observable:a,arrayChanges:b})}},null,"arrayChange")}if(ko.isWriteableObservable(a))return b&&this._createDisposeFunction(a()),a.subscribe(function(e){c._modelReady&&(b&&c._callDisposeFunction(d),c.properyChanged({observable:a,propertyChanged:{oldVal:d,val:e}}),d=e,b&&c._createDisposeFunction(e))})}},c.prototype.subscribeProperties=function(a){var b=this;a.forEach(function(a){if(ko.isObservable(a)){var c=a();a.push?b._subscriptions.push(a.subscribe(function(c){b._modelReady&&(b._inUndoRedo||(b.properyChanged({observable:a,arrayChanges:c}),b.subscribe(c.map(function(a){return a.value}))))},null,"arrayChange")):ko.isWriteableObservable(a)&&b._subscriptions.push(a.subscribe(function(d){b._modelReady&&(b.properyChanged({observable:a,propertyChanged:{oldVal:c,val:d}}),c=a())}))}})},c.prototype.subscribe=function(a,c){var d=this;if(this._getInfoMethodName)return this.visitProperties(a,c||a&&a[this._getInfoMethodName]&&a[this._getInfoMethodName]());b.propertiesVisitor(a,function(a){d.subscribeProperties(a)},this._visited,this._ignoredProperties)},c.prototype._removePropertiesSubscriptions=function(){this._subscriptions.forEach(function(a){return a.dispose()}),this._subscriptions=[],this._visited=[]},c.prototype.dispose=function(){a.prototype.dispose.call(this),this.removeTargetSubscription()},c.prototype.removeTargetSubscription=function(){this._targetSubscription&&this._targetSubscription.dispose(),this.reset()},c.prototype.undoAll=function(){this.undoEnabled()&&(this.undo(),this.undoAll())},c.prototype.reset=function(){this._removePropertiesSubscriptions(),this.clearHistory()},c.prototype.clearHistory=function(){this._groupObservers=[],this._observers=[],this.redoEnabled(!1),this.undoEnabled(!1),this._inUndoRedo=!1,this._groupPosition=-1,this._position(-1),this._lockedPosition(this._position())},c.prototype.undo=function(){var a=this;try{if(this._inUndoRedo=!0,this.undoEnabled()){var b=this._observers[this._position()];b&&(Array.isArray(b)?b.reverse().forEach(function(b){return a.undoChangeSet(b)}):this.undoChangeSet(b),this._position(this._position()-1),this.undoEnabled(0!==this._observers.length&&this._position()>=0),this.redoEnabled(!0))}}finally{this._inUndoRedo=!1}},c.prototype.redo=function(){var a=this;try{if(this._inUndoRedo=!0,this.redoEnabled()){var b=this._observers[this._position()+1];b&&(Array.isArray(b)?b.reverse().forEach(function(b){return a.redoChangeSet(b)}):this.redoChangeSet(b),this._position(this._position()+1),this.undoEnabled(0!==this._observers.length&&this._position()>=0),this.redoEnabled(this._position()+1<this._observers.length))}}finally{this._inUndoRedo=!1}},c.prototype.start=function(){0===++this.isIngroup&&(this._groupObservers=this._observers,this._observers=[],this._groupPosition=this._position(),this._position(-1),this._lockedPosition(this._position()))},c.prototype.end=function(){var a=this;if(-1===--this.isIngroup){if(this._observers.length>0){this._position(this._groupPosition+1);this._groupObservers.splice(this._position(),this._groupObservers.length-this._position(),this._observers).forEach(function(b){Array.isArray(b)?b.reverse().forEach(function(b){return a._disposeObserver(b)}):a._disposeObserver(b)})}else this._position(this._groupPosition);this._observers=this._groupObservers}},c._disposeUndoEngineSubscriptionsName="___dispose___UndoEngine___Subscriptions___",c}(a.Disposable);a.UndoEngine=c}(a.Utils||(a.Utils={}))}(a.Analytics||(a.Analytics={}))}(DevExpress||(DevExpress={})),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.UndoEngine","Analytics.Utils.UndoEngine"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.propertiesVisitor","Analytics.Utils.propertiesVisitor","Analytics.Internal.propertiesVisitor");var __extends=this&&this.__extends||function(){var a=function(b,c){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])})(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c),b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),DevExpress;!function(a){!function(b){var c;!function(a){var b=function(){function a(a,b){if(void 0===b&&(b=[]),this.pathParts=b,this.path="",this.fullPath=a,a)if(-1!==a.indexOf(".")){var c=a.split(".");this.id=this.ref=c[0],c.splice(0,1),this.path=c.join(".")}else this.id=this.ref=a}return a}();a.PathRequest=b}(c=b.Utils||(b.Utils={}));var d;!function(a){!function(a){var b=function(){function a(){}return a._getCharFromKeyCode=function(a){var b=0;return-1===navigator.userAgent.toLowerCase().indexOf("firefox")?b=a.keyCode:!1===a.ctrlKey&&(b=a.charCode),b?String.fromCharCode(b):null},a._getCaretPosition=function(a){var b,c,d,e,f,g=-1,h=-1;try{"number"==typeof a.selectionStart&&"number"==typeof a.selectionEnd?(g=a.selectionStart,h=a.selectionEnd):document.selection&&(c=document.selection.createRange())&&c.parentElement()==a&&(e=a.value.length,b=a.value.replace(/\r\n/g,"\n"),d=a.createTextRange(),d.moveToBookmark(c.getBookmark()),f=a.createTextRange(),f.collapse(!1),d.compareEndPoints("StartToEnd",f)>-1?g=h=e:(g=-d.moveStart("character",-e),g+=b.slice(0,g).split("\n").length-1,d.compareEndPoints("EndToEnd",f)>-1?h=e:(h=-d.moveEnd("character",-e),h+=b.slice(0,h).split("\n").length-1)))}catch(a){}return{start:g,end:h}},a._validate=function(a,b,c){var d,e,f,g;if(!/^(0|(-?(([1-9]\d*)|(0\.\d+)|([1-9]\d*\.\d+)|(\d*\.\d+[eE][+\-]?\d+))))$/.test(a))return!1;if(!c)return!0;var h="-"===a[0],i=h?a.substring(1):a;if(h&&!b)return!1;var j,k,l,m,n=h?b.substring(1):c;d=i.toLowerCase().split("e"),j=d[0],k=d[1],e=n.toLowerCase().split("e"),l=e[0],m=e[1];var o,p,q,r;f=j.split("."),o=f[0],p=f[1],g=l.split("."),q=g[0],r=g[1],o=(o||"").replace(/^0+/,""),q=(q||"").replace(/^0+/,"");var s=o.length;k&&(s+=parseInt(k));var t=q.length;return m&&(t+=parseInt(m)),s<t||!(s>t)&&(p=p||"0",r=r||"0",!(o+p>q+r))},a.validateWidgetValue=function(a,b,c){b(a.component.option("value"))||a.component.option("value",c)},a.getNumberEditorOptions=function(b,c,d){void 0===d&&(d={});var e=a.editors[b]||a.editors[c];return e?a.getValueEditorOptions(e.regExpEditing,function(b){return a._validate(b,e.minValue,e.maxValue)},"",d):d},a.getValueEditorOptions=function(b,c,d,e){var f=this;void 0===e&&(e={});var g={onFocusIn:function(b){a.validateWidgetValue(b,c,d),a._invokeStandardHandler(e,"onFocusIn",b)},onKeyPress:function(c){var d=a._getCharFromKeyCode(c.event);if(d){var f=$(c.element).find("input").eq(0),g=a._getCaretPosition(f.get(0)),h=f.val();g.start<0&&(g=h?h.length:0);var i=[h.slice(0,g.start),d,h.slice(g.end)].join("");b.test(i)||c.event.preventDefault(),f=null,a._invokeStandardHandler(e,"onKeyPress",c)}},onPaste:function(c){var d=c.event.originalEvent.clipboardData||window.clipboardData||{},f=d.getData&&d.getData("Text");if("string"==typeof f){var g=$(c.element).find("input").eq(0),h=a._getCaretPosition(g.get(0)),i=g.val();h.start<0&&(h.end=h.start=i?i.length:0);var j=[i.slice(0,h.start),f,i.slice(h.end)].join("");b.test(j)||c.event.preventDefault(),g=null,a._invokeStandardHandler(e,"onPaste",c)}},onValueChanged:function(b){b.value!==d&&f.validateWidgetValue(b,c,b.previousValue),a._invokeStandardHandler(e,"onValueChanged",b)}};return $.extend({},e,g)},a.isValid=function(b,c,d){var e=a.editors[b]||a.editors[c];return e.regExpEditing.test(d)&&a._validate(d,e.minValue,e.maxValue)},a._invokeStandardHandler=function(a,b,c){$.isFunction(a[b])&&a[b](c)},a.editors={integer:{regExpEditing:/^-?\d*$/},float:{regExpEditing:/^-?(\d+\.?\d*)?([eE][+\-]?\d+)?$/},"System.Byte":{regExpEditing:/^\d*$/,minValue:null,maxValue:"255"},"System.SByte":{regExpEditing:/^-?\d*$/,minValue:"-128",maxValue:"127"},"System.Int16":{regExpEditing:/^-?\d*$/,minValue:"-32768",maxValue:"32767"},"System.UInt16":{regExpEditing:/^\d*$/,minValue:null,maxValue:"65535"},"System.Int32":{regExpEditing:/^-?\d*$/,minValue:"-2147483648",maxValue:"2147483647"},"System.UInt32":{regExpEditing:/^\d*$/,minValue:null,maxValue:"4294967295"},"System.Int64":{regExpEditing:/^-?\d*$/,minValue:"-9223372036854775808",maxValue:"9223372036854775807"},"System.UInt64":{regExpEditing:/^\d*$/,minValue:null,maxValue:"18446744073709551615"},"System.Single":{regExpEditing:/^-?(\d+\.?\d*)?([eE][+\-]?\d*)?$/,minValue:"-3.40282347e+38",maxValue:"3.40282347e+38"},"System.Double":{regExpEditing:/^-?(\d+\.?\d*)?([eE][+\-]?\d*)?$/,minValue:"-1.7976931348623157e+308",maxValue:"1.7976931348623157e+308"},"System.Decimal":{regExpEditing:/^-?(\d+\.?\d*)?([eE][+\-]?\d*)?$/,minValue:"-79228162514264337593543950335",maxValue:"79228162514264337593543950335"}},a}();a.ValueEditorHelper=b}(a.Internal||(a.Internal={}))}(d=b.Widgets||(b.Widgets={}));!function(b){function f(a,b){var c=""+a;return d.Internal.ValueEditorHelper.isValid(this.value,"integer",c)?c:b}function g(a){var b=$.Deferred();try{var d=[],f=function(b,e){var f=$.Deferred();a.fieldListProvider.getItemByPath(new c.PathRequest(b)).done(function(a){return f.resolve()}).fail(function(d){b===e?f.reject():a.fieldListProvider.getItemByPath(new c.PathRequest([b.split(".")[0],e].join("."))).done(function(a){return f.resolve()}).fail(function(a){return f.reject()})}),d.push(f)},g=e.CriteriaOperator.parse(a.expression);e.Utils.criteriaForEach(g,function(b,c){if(b instanceof e.OperandProperty){var d=0===b.propertyName.indexOf("^.")?b.propertyName.substring(2):b.propertyName,g=d;-1===(a.rootItems||[]).indexOf(d.split(".")[0])&&c&&(g=d?[c,d].join("."):c),f(g,d)}else if(b instanceof e.OperandParameter){var h=b.parameterName,i="Parameters."+h;f(i,h)}},a.path),$.when.apply($,d).done(function(a){return b.resolve()}).fail(function(a){return b.reject()})}catch(a){b.reject()}return b.promise()}function h(a,b){var c=""+a;return d.Internal.ValueEditorHelper.isValid(this.value,"float",c)?c:b}function i(){return a.ui.themes.current()}function j(a){return a=a||i(),-1!==$.inArray(a,p)||($.inArray(a,o),!1)}function k(a,b,c){if(a&&!(a<=0)){var d=b.getCursorPosition(),e=c.lastIndexOf("(");"'"===c.charAt(e+1)&&e++,b.gotoLine(d.row+1,d.column-(c.length-1-e))}}function l(a){return!0===a.isList||"List"===a.specifics||"ListSource"===a.specifics}function m(a,b){return void 0===b&&(b=".dx-designer-viewport"),$(a).closest(b)}function n(a){return null==a||""===a}b.integerValueConverter=f,b.validateExpression=g,b.floatValueConverter=h;var o=["generic.light","generic.carmine","generic.greenmist","generic.softblue","generic.light.compact"],p=["generic.dark","generic.contrast","generic.dark.compact","generic.darkmoon","generic.darkviolet"];b.isDarkTheme=j,b.setCursorInFunctionParameter=k,b.isList=l,b.getParentContainer=m,b.isNullOrEmptyString=n}(b.Internal||(b.Internal={})),function(c){!function(c){c.ace=a.Analytics.Widgets.Internal.ace||window.ace,c.aceAvailable=!!c.ace,ko.bindingHandlers.dxAceEditor={init:function(a,d,e,f,g){var h,i=d(),j=i.value,k=i.editorContainer,l=!0,m=function(a,b){l=!1,a.getSession().setValue(b&&b.toString()||""),a.clearSelection(),a.getSession().getUndoManager().reset(),l=!0};if(c.ace){var n=void 0==i.options.showGutter||i.options.showGutter,o=i.additionalOptions,p=c.ace.require("ace/ext/language_tools");h=c.ace.edit(a);var q=(ko.observable(null),i.theme);q||(q=b.Internal.isDarkTheme()?"ace/theme/ambiance":"ace/theme/dreamweaver"),h.setTheme(q),h.$blockScrolling=1/0;var r=f.languageHelper.getLanguageMode(),s=h.getSession();s.gutterRenderer={getWidth:function(a,b,c){return b.toString().length*c.characterWidth},getText:function(a,b){return b+1}},s.setMode(r);var t,u,v,w=function(){h.completer&&h.completer.popup&&h.completer.popup.hide()};if(o){if(o.onChange){var x=null;t=function(a){null!==x&&clearTimeout(x),l&&(x=setTimeout(function(){j()!==s.getValue()&&o.onChange(s)},o&&o.changeTimeout||1e3))},s.on("change",t)}o.overrideEditorFocus&&(h.focus=function(a,b){h.textInput.getElement().focus()}),o.onFocus&&(u=function(){o.onFocus(s)},h.on("focus",u)),o.onBlur&&(w=function(){return h.completer&&h.completer.popup&&h.completer.popup.hide(),o.onBlur(s)}),o.onChangeAnnotation&&(v=function(a,b){o.onChangeAnnotation(b)},s.on("changeAnnotation",v))}h.on("blur",w);var y=f.languageHelper.createCompleters(h,g,f);if(p.setCompleters(y),h.setOptions(i.options),o&&"setUseWrapMode"in o&&h.getSession().setUseWrapMode(o.setUseWrapMode),n||h.renderer.setShowGutter(n),h.renderer.$gutter){var z=h.renderer.$gutter.className+" dxd-border-primary dxd-text-primary dxd-back-primary";h.renderer.$gutter.className=z}var A=h._defaultHandlers.guttermousemove;if(h._defaultHandlers.guttermousemove=function(b){var c=a.getBoundingClientRect();b.x=b.x-c.left,b.y=b.y-c.top,A(b)},ko.isSubscribable(j))var B=j.subscribe(function(a){a!==s.getValue()&&m(h,a),o&&o.onValueChange&&o.onValueChange(h)});m(h,ko.unwrap(j)),i.callbacks&&(i.callbacks.focus=function(){setTimeout(function(){h.textInput.getElement().focus()},10)}),b.Internal.addDisposeCallback(a,function(){B.dispose(),i.callbacks&&(i.callbacks.focus=$.noop),y.forEach(function(a){return a.dispose&&a.dispose()}),w&&h.off("blur",w),u&&h.off("focus",u),t&&s.off("change",t),v&&s.off("changeAnnotation",v)})}ko.isObservable(k)&&k(h)}}}(c.Internal||(c.Internal={})),ko.bindingHandlers.focus={init:function(a,c){var d=c().on||c(),e=d.subscribe(function(b){b&&setTimeout(function(){$(a).find(":input").focus()},1)});b.Internal.addDisposeCallback(a,function(){e.dispose()})}},ko.bindingHandlers.svgAttrs={update:function(a,b,c,d){a.setAttribute("xmlns","http://www.w3.org/2000/svg"),a.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink")}},function(a){function b(b){return a.functionDisplay.map(function(a){var c=b[a.display];return c?{display:a.display,category:a.category,localizationId:a.localizationId,items:$.extend({},a.items,c)}:a})}a.operatorNames=[{text:"+",image:"addition",descriptionStringId:"ExpressionEditorStringId.Operator_Plus"},{text:"-",image:"subtraction",descriptionStringId:"ExpressionEditorStringId.Operator_Minus"},{text:"*",image:"multiplication",descriptionStringId:"ExpressionEditorStringId.Operator_Multiply"},{text:"/",image:"division",descriptionStringId:"ExpressionEditorStringId.Operator_Divide"},{text:"%",image:"modulus",hasSeparator:!0,descriptionStringId:"ExpressionEditorStringId.Operator_Modulo"},{text:"()",image:"parenthesis",hasSeparator:!0},{text:"|",descriptionStringId:"ExpressionEditorStringId.Operator_BitwiseOr"},{text:"&",descriptionStringId:"ExpressionEditorStringId.Operator_BitwiseAnd"},{text:"^",descriptionStringId:"ExpressionEditorStringId.Operator_BitwiseXor"},{text:"==",image:"equal",descriptionStringId:"ExpressionEditorStringId.Operator_Equal"},{text:"!=",image:"not_equal",descriptionStringId:"ExpressionEditorStringId.Operator_NotEqual"},{text:"<",image:"less",descriptionStringId:"ExpressionEditorStringId.Operator_Less"},{text:"<=",image:"less_or_equal",descriptionStringId:"ExpressionEditorStringId.Operator_LessOrEqual"},{text:">=",image:"greater_or_equal",descriptionStringId:"ExpressionEditorStringId.Operator_GreaterOrEqual"},{text:">",hasSeparator:!0,image:"greater",descriptionStringId:"ExpressionEditorStringId.Operator_Greater"},{text:"In",descriptionStringId:"ExpressionEditorStringId.Operator_In"},{text:"Like",descriptionStringId:"ExpressionEditorStringId.Operator_Like"},{text:"Between",descriptionStringId:"ExpressionEditorStringId.Operator_Between"},{text:"And",image:"and",descriptionStringId:"ExpressionEditorStringId.Operator_And"},{text:"Or",image:"or",descriptionStringId:"ExpressionEditorStringId.Operator_Or"},{text:"Not",image:"not",descriptionStringId:"ExpressionEditorStringId.Operator_Not"}],a.functionDisplay=[{display:"Aggregate",localizationId:"DataAccessStringId.ExpressionEditor_FunctionCategory_Aggregate",category:"Aggregate",items:{Avg:[{paramCount:1,text:"[].Avg()",displayName:"Avg()",descriptionStringId:"ExpressionEditorStringId.Function_AvgAggregate"}],Count:[{paramCount:1,text:"[].Count()",displayName:"Count()",descriptionStringId:"ExpressionEditorStringId.Function_CountAggregate"}],Exists:[{paramCount:1,text:"[].Exists()",displayName:"Exists()",descriptionStringId:"ExpressionEditorStringId.Function_ExistsAggregate"}],Max:[{paramCount:1,text:"[].Max()",displayName:"Max()",descriptionStringId:"ExpressionEditorStringId.Function_MaxAggregate"}],Min:[{paramCount:1,text:"[].Min()",displayName:"Min()",descriptionStringId:"ExpressionEditorStringId.Function_MinAggregate"}],Single:[{paramCount:1,text:"[].Single()",displayName:"Single()",descriptionStringId:"ExpressionEditorStringId.Function_SingleAggregate"}],Sum:[{paramCount:1,text:"[].Sum()",displayName:"Sum()",descriptionStringId:"ExpressionEditorStringId.Function_SumAggregate"}]}},{display:"Date-Time",localizationId:"DataAccessStringId.ExpressionEditor_FunctionCategory_DateTime",items:{LocalDateTimeThisYear:[{paramCount:0,text:"LocalDateTimeThisYear()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeThisYear"}],LocalDateTimeThisMonth:[{paramCount:0,text:"LocalDateTimeThisMonth()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeThisMonth"}],LocalDateTimeLastMonth:[{paramCount:0,text:"LocalDateTimeLastMonth()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeLastMonth"}],LocalDateTimeLastWeek:[{paramCount:0,text:"LocalDateTimeLastWeek()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeLastWeek"}],LocalDateTimeLastYear:[{paramCount:0,text:"LocalDateTimeLastYear()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeLastYear"}],LocalDateTimeThisWeek:[{paramCount:0,text:"LocalDateTimeThisWeek()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeThisWeek"}],LocalDateTimeYesterday:[{paramCount:0,text:"LocalDateTimeYesterday()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeYesterday"}],LocalDateTimeToday:[{paramCount:0,text:"LocalDateTimeToday()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeToday"}],LocalDateTimeNow:[{paramCount:0,text:"LocalDateTimeNow()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeNow"}],LocalDateTimeTomorrow:[{paramCount:0,text:"LocalDateTimeTomorrow()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeTomorrow"}],LocalDateTimeDayAfterTomorrow:[{paramCount:0,text:"LocalDateTimeDayAfterTomorrow()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeDayAfterTomorrow"}],LocalDateTimeNextWeek:[{paramCount:0,text:"LocalDateTimeNextWeek()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeNextWeek"}],LocalDateTimeTwoMonthsAway:[{paramCount:0,text:"LocalDateTimeTwoMonthsAway()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeTwoMonthsAway"}],LocalDateTimeTwoYearsAway:[{paramCount:0,text:"LocalDateTimeTwoYearsAway()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeTwoYearsAway"}],LocalDateTimeTwoWeeksAway:[{paramCount:0,text:"LocalDateTimeTwoWeeksAway()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeTwoWeeksAway"}],LocalDateTimeNextMonth:[{paramCount:0,text:"LocalDateTimeNextMonth()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeNextMonth"}],LocalDateTimeNextYear:[{paramCount:0,text:"LocalDateTimeNextYear()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeNextYear"}],LocalDateTimeYearBeforeToday:[{paramCount:0,text:"LocalDateTimeYearBeforeToday()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeYearBeforeToday"}],IsOutlookIntervalBeyondThisYear:null,IsOutlookIntervalLaterThisYear:null,IsOutlookIntervalLaterThisMonth:null,IsOutlookIntervalNextWeek:null,IsOutlookIntervalLaterThisWeek:null,IsOutlookIntervalTomorrow:null,IsOutlookIntervalToday:null,IsOutlookIntervalYesterday:null,IsOutlookIntervalEarlierThisWeek:null,IsOutlookIntervalLastWeek:null,IsOutlookIntervalEarlierThisMonth:null,IsOutlookIntervalEarlierThisYear:null,IsOutlookIntervalPriorThisYear:null,IsLastMonth:[{paramCount:1,text:"IsLastMonth()",descriptionStringId:"ExpressionEditorStringId.Function_IsLastMonth"}],IsLastYear:[{paramCount:1,text:"IsLastYear()",descriptionStringId:"ExpressionEditorStringId.Function_IsLastYear"}],IsNextMonth:[{paramCount:1,text:"IsNextMonth()",descriptionStringId:"ExpressionEditorStringId.Function_IsNextMonth"}],IsNextYear:[{paramCount:1,text:"IsNextYear()",descriptionStringId:"ExpressionEditorStringId.Function_IsNextYear"}],IsThisWeek:[{paramCount:1,text:"IsThisWeek()",descriptionStringId:"ExpressionEditorStringId.Function_IsThisWeek"}],IsThisMonth:[{paramCount:1,text:"IsThisMonth()",descriptionStringId:"ExpressionEditorStringId.Function_IsThisMonth"}],IsThisYear:[{paramCount:1,text:"IsThisYear()",descriptionStringId:"ExpressionEditorStringId.Function_IsThisYear"}],IsJanuary:[{paramCount:1,text:"IsJanuary()",descriptionStringId:"ExpressionEditorStringId.Function_IsJanuary"}],IsFebruary:[{paramCount:1,text:"IsFebruary()",descriptionStringId:"ExpressionEditorStringId.Function_IsFebruary"}],IsMarch:[{paramCount:1,text:"IsMarch()",descriptionStringId:"ExpressionEditorStringId.Function_IsMarch"}],IsApril:[{paramCount:1,text:"IsApril()",descriptionStringId:"ExpressionEditorStringId.Function_IsApril"}],IsMay:[{paramCount:1,text:"IsMay()",descriptionStringId:"ExpressionEditorStringId.Function_IsMay"}],IsJune:[{paramCount:1,text:"IsJune()",descriptionStringId:"ExpressionEditorStringId.Function_IsJune"}],IsJuly:[{paramCount:1,text:"IsJuly()",descriptionStringId:"ExpressionEditorStringId.Function_IsJuly"}],IsAugust:[{paramCount:1,text:"IsAugust()",descriptionStringId:"ExpressionEditorStringId.Function_IsAugust"}],IsSeptember:[{paramCount:1,text:"IsSeptember()",descriptionStringId:"ExpressionEditorStringId.Function_IsSeptember"}],IsOctober:[{paramCount:1,text:"IsOctober()",descriptionStringId:"ExpressionEditorStringId.Function_IsOctober"}],IsNovember:[{paramCount:1,text:"IsNovember()",descriptionStringId:"ExpressionEditorStringId.Function_IsNovember"}],IsDecember:[{paramCount:1,text:"IsDecember()",descriptionStringId:"ExpressionEditorStringId.Function_IsDecember"}],IsSameDay:[{paramCount:2,text:"IsSameDay(, )",descriptionStringId:"ExpressionEditorStringId.Function_IsSameDay"}],IsYearToDate:[{paramCount:1,text:"IsYearToDate()",descriptionStringId:"ExpressionEditorStringId.Function_IsYearToDate"}],DateDiffTick:[{paramCount:2,text:"DateDiffTick(, )",descriptionStringId:"ExpressionEditorStringId.Function_DateDiffTick"}],DateDiffSecond:[{paramCount:2,text:"DateDiffSecond(, )",descriptionStringId:"ExpressionEditorStringId.Function_DateDiffSecond"}],DateDiffMilliSecond:[{paramCount:2,text:"DateDiffMilliSecond(, )",descriptionStringId:"ExpressionEditorStringId.Function_DateDiffMilliSecond"}],DateDiffMinute:[{paramCount:2,text:"DateDiffMinute(, )",descriptionStringId:"ExpressionEditorStringId.Function_DateDiffMinute"}],DateDiffHour:[{paramCount:2,text:"DateDiffHour(, )",descriptionStringId:"ExpressionEditorStringId.Function_DateDiffHour"}],DateDiffDay:[{paramCount:2,text:"DateDiffDay(, )",descriptionStringId:"ExpressionEditorStringId.Function_DateDiffDay"}],DateDiffMonth:[{paramCount:2,text:"DateDiffMonth(, )",descriptionStringId:"ExpressionEditorStringId.Function_DateDiffMonth"}],DateDiffYear:[{paramCount:2,text:"DateDiffYear(, )",descriptionStringId:"ExpressionEditorStringId.Function_DateDiffYear"}],GetDate:[{paramCount:1,text:"GetDate()",descriptionStringId:"ExpressionEditorStringId.Function_GetDate"}],GetMilliSecond:[{paramCount:1,text:"GetMilliSecond()",descriptionStringId:"ExpressionEditorStringId.Function_GetMilliSecond"}],GetSecond:[{paramCount:1,text:"GetSecond()",descriptionStringId:"ExpressionEditorStringId.Function_GetSecond"}],GetMinute:[{paramCount:1,text:"GetMinute()",descriptionStringId:"ExpressionEditorStringId.Function_GetMinute"}],GetHour:[{paramCount:1,text:"GetHour()",descriptionStringId:"ExpressionEditorStringId.Function_GetHour"}],GetDay:[{paramCount:1,text:"GetDay()",descriptionStringId:"ExpressionEditorStringId.Function_GetDay"}],GetMonth:[{paramCount:1,text:"GetMonth()",descriptionStringId:"ExpressionEditorStringId.Function_GetMonth"}],GetYear:[{paramCount:1,text:"GetYear()",descriptionStringId:"ExpressionEditorStringId.Function_GetYear"}],GetDayOfWeek:[{paramCount:1,text:"GetDayOfWeek()",descriptionStringId:"ExpressionEditorStringId.Function_GetDayOfWeek"}],GetDayOfYear:[{paramCount:1,text:"GetDayOfYear()",descriptionStringId:"ExpressionEditorStringId.Function_GetDayOfYear"}],GetTimeOfDay:[{paramCount:1,text:"GetTimeOfDay()",descriptionStringId:"ExpressionEditorStringId.Function_GetTimeOfDay"}],Now:[{paramCount:0,text:"Now()",descriptionStringId:"ExpressionEditorStringId.Function_Now"}],UtcNow:[{paramCount:0,text:"UtcNow()",descriptionStringId:"ExpressionEditorStringId.Function_UtcNow"}],Today:[{paramCount:0,text:"Today()",descriptionStringId:"ExpressionEditorStringId.Function_Today"}],AddTimeSpan:[{paramCount:2,text:"AddTimeSpan(, )",descriptionStringId:"ExpressionEditorStringId.Function_AddTimeSpan"}],AddTicks:[{paramCount:2,text:"AddTicks(, )",descriptionStringId:"ExpressionEditorStringId.Function_AddTicks"}],AddMilliSeconds:[{paramCount:2,text:"AddMilliSeconds(, )",descriptionStringId:"ExpressionEditorStringId.Function_AddMilliSeconds"}],AddSeconds:[{paramCount:2,text:"AddSeconds(, )",descriptionStringId:"ExpressionEditorStringId.Function_AddSeconds"}],AddMinutes:[{paramCount:2,text:"AddMinutes(, )",descriptionStringId:"ExpressionEditorStringId.Function_AddMinutes"}],AddHours:[{paramCount:2,text:"AddHours(, )",descriptionStringId:"ExpressionEditorStringId.Function_AddHours"}],AddDays:[{paramCount:2,text:"AddDays(, )",descriptionStringId:"ExpressionEditorStringId.Function_AddDays"}],AddMonths:[{paramCount:2,text:"AddMonths(, )",descriptionStringId:"ExpressionEditorStringId.Function_AddMonths"}],AddYears:[{paramCount:2,text:"AddYears(, )",descriptionStringId:"ExpressionEditorStringId.Function_AddYears"}]}},{display:"Logical",localizationId:"DataAccessStringId.ExpressionEditor_FunctionCategory_Logical",items:{Iif:[{paramCount:3,text:"Iif(, , )",descriptionStringId:"ExpressionEditorStringId.Function_Iif"}],IsNull:[{paramCount:1,text:"IsNull()",descriptionStringId:"ExpressionEditorStringId.Function_IsNull"}],IsNullOrEmpty:[{paramCount:1,text:"IsNullOrEmpty()",descriptionStringId:"ExpressionEditorStringId.Function_IsNullOrEmpty"}]}},{display:"Math",localizationId:"DataAccessStringId.ExpressionEditor_FunctionCategory_Math",items:{Abs:[{paramCount:1,text:"Abs()",descriptionStringId:"ExpressionEditorStringId.Function_Abs"}],Sqr:[{paramCount:1,text:"Sqr()",descriptionStringId:"ExpressionEditorStringId.Function_Sqr"}],Cos:[{paramCount:1,text:"Cos()",descriptionStringId:"ExpressionEditorStringId.Function_Cos"}],Sin:[{paramCount:1,text:"Sin()",descriptionStringId:"ExpressionEditorStringId.Function_Sin"}],Atn:[{paramCount:1,text:"Atn()",descriptionStringId:"ExpressionEditorStringId.Function_Atn"}],Exp:[{paramCount:1,text:"Exp()",descriptionStringId:"ExpressionEditorStringId.Function_Exp"}],Log:[{paramCount:1,text:"Log()",descriptionStringId:"ExpressionEditorStringId.Function_Log"},{paramCount:2,text:"Log(, )",descriptionStringId:"ExpressionEditorStringId.Function_Log_2"}],Rnd:[{paramCount:0,text:"Rnd()",descriptionStringId:"ExpressionEditorStringId.Function_Rnd"}],Tan:[{paramCount:1,text:"Tan()",descriptionStringId:"ExpressionEditorStringId.Function_Tan"}],Power:[{paramCount:2,text:"Power(, )",descriptionStringId:"ExpressionEditorStringId.Function_Power"}],Sign:[{paramCount:1,text:"Sign()",descriptionStringId:"ExpressionEditorStringId.Function_Sign"}],Round:[{paramCount:1,text:"Round()",descriptionStringId:"ExpressionEditorStringId.Function_Round"},{paramCount:2,text:"Round(, )",descriptionStringId:"ExpressionEditorStringId.Function_Round_2"}],Ceiling:[{paramCount:1,text:"Ceiling()",descriptionStringId:"ExpressionEditorStringId.Function_Ceiling"}],Floor:[{paramCount:1,text:"Floor()",descriptionStringId:"ExpressionEditorStringId.Function_Floor"}],Max:[{paramCount:2,text:"Max(, )",descriptionStringId:"ExpressionEditorStringId.Function_Max"}],Min:[{paramCount:2,text:"Min(, )",descriptionStringId:"ExpressionEditorStringId.Function_Min"}],Acos:[{paramCount:1,text:"Acos()",descriptionStringId:"ExpressionEditorStringId.Function_Acos"}],Asin:[{paramCount:1,text:"Asin()",descriptionStringId:"ExpressionEditorStringId.Function_Asin"}],Atn2:[{paramCount:2,text:"Atn2(, )",descriptionStringId:"ExpressionEditorStringId.Function_Atn2"}],BigMul:[{paramCount:2,text:"BigMul(, )",descriptionStringId:"ExpressionEditorStringId.Function_BigMul"}],Cosh:[{paramCount:1,text:"Cosh()",descriptionStringId:"ExpressionEditorStringId.Function_Cosh"}],Log10:[{paramCount:1,text:"Log10()",descriptionStringId:"ExpressionEditorStringId.Function_Log10"}],Sinh:[{paramCount:1,text:"Sinh()",descriptionStringId:"ExpressionEditorStringId.Function_Sinh"}],Tanh:[{paramCount:1,text:"Tanh()",descriptionStringId:"ExpressionEditorStringId.Function_Tanh"}],ToInt:[{paramCount:1,text:"ToInt()",descriptionStringId:"ExpressionEditorStringId.Function_ToInt"}],ToLong:[{paramCount:1,text:"ToLong()",descriptionStringId:"ExpressionEditorStringId.Function_ToLong"}],ToFloat:[{paramCount:1,text:"ToFloat()",descriptionStringId:"ExpressionEditorStringId.Function_ToFloat"}],ToDouble:[{paramCount:1,text:"ToDouble()",descriptionStringId:"ExpressionEditorStringId.Function_ToDouble"}],ToDecimal:[{paramCount:1,text:"ToDecimal()",descriptionStringId:"ExpressionEditorStringId.Function_ToDecimal"}]}},{display:"String",localizationId:"DataAccessStringId.ExpressionEditor_FunctionCategory_Text",items:{Trim:[{paramCount:1,text:"Trim()",descriptionStringId:"ExpressionEditorStringId.Function_Trim"}],Len:[{paramCount:1,text:"Len()",descriptionStringId:"ExpressionEditorStringId.Function_Len"}],Substring:[{paramCount:3,text:"Substring('', , )",descriptionStringId:"ExpressionEditorStringId.Function_Substring_3"},{paramCount:2,text:"Substring('', )",descriptionStringId:"ExpressionEditorStringId.Function_Substring"}],Upper:[{paramCount:1,text:"Upper()",descriptionStringId:"ExpressionEditorStringId.Function_Upper"}],Lower:[{paramCount:1,text:"Lower()",descriptionStringId:"ExpressionEditorStringId.Function_Lower"}],Concat:[{paramCount:1/0,text:"Concat(, )",descriptionStringId:"ExpressionEditorStringId.Function_Concat"}],Ascii:[{paramCount:1,text:"Ascii('')",descriptionStringId:"ExpressionEditorStringId.Function_Ascii"}],Char:[{paramCount:1,text:"Char()",descriptionStringId:"ExpressionEditorStringId.Function_Char"}],ToStr:[{paramCount:1,text:"ToStr()",descriptionStringId:"ExpressionEditorStringId.Function_ToStr"}],Replace:[{paramCount:3,text:"Replace('','', '')",descriptionStringId:"ExpressionEditorStringId.Function_Replace"}],Reverse:[{paramCount:1,text:"Reverse('')",descriptionStringId:"ExpressionEditorStringId.Function_Reverse"}],Insert:[{paramCount:3,text:"Insert('', , '')",descriptionStringId:"ExpressionEditorStringId.Function_Insert"}],CharIndex:[{paramCount:2,text:"CharIndex('','')",descriptionStringId:"ExpressionEditorStringId.Function_CharIndex"},{paramCount:3,text:"CharIndex('','', )",descriptionStringId:"ExpressionEditorStringId.Function_CharIndex_3"}],Remove:[{paramCount:2,text:"Remove('', )",descriptionStringId:"ExpressionEditorStringId.Function_Remove"},{paramCount:3,text:"Remove('', , )",descriptionStringId:"ExpressionEditorStringId.Function_Remove_3"}],PadLeft:[{paramCount:2,text:"PadLeft(, )",descriptionStringId:"ExpressionEditorStringId.Function_PadLeft"},{paramCount:3,text:"PadLeft(, , '')",descriptionStringId:"ExpressionEditorStringId.Function_PadLeft_3"}],PadRight:[{paramCount:2,text:"PadRight(, )",descriptionStringId:"ExpressionEditorStringId.Function_PadRight"},{paramCount:3,text:"PadRight(, , '')",descriptionStringId:"ExpressionEditorStringId.Function_PadRight_3"}],StartsWith:[{paramCount:2,text:"StartsWith('', '')",descriptionStringId:"ExpressionEditorStringId.Function_StartsWith"}],EndsWith:[{paramCount:2,text:"EndsWith('', '')",descriptionStringId:"ExpressionEditorStringId.Function_EndsWith"}],Contains:[{paramCount:0,text:"Contains('', '')",descriptionStringId:"ExpressionEditorStringId.Function_Contains"}],Join:[{paramCount:1,text:"Join()",descriptionStringId:"ExpressionEditorStringId.Function_Join"},{paramCount:2,text:"Join(, '')",descriptionStringId:"ExpressionEditorStringId.Function_Join_2"}]}}],a.insertInFunctionDisplay=b}(c.Internal||(c.Internal={}))}(d=b.Widgets||(b.Widgets={}));var e;!function(a){function b(a){var b=[];for(var c in a)isNaN(c)&&b.push(c);return b}var c=function(){function c(){var b=this;this.type="Default",this.operands=null,this.changeValueType=function(a,c){var d=new a;return null!==c.index?b[c.name][c.index]=d:b[c.name]=d,d},this.changeValue=function(c,d,e){var f=d?new a.UnaryOperator(a.UnaryOperatorType.Minus,c):c;return null!==e.index?b[e.name][e.index]=f:b[e.name]=f,f},this.assignLeftPart=function(a){},this.assignRightPart=function(a){},this.assignType=function(a){b.operatorType=a},this.resetrightPart=function(a){}}return c.operators=function(a){return[].concat.apply([],a.map(function(a){return b(a).map(function(b){return{name:b,value:a[b],type:a}})}))},c.parse=function(b){return b&&""!==b?a.criteriaparser.parse(b):null},c.create=function(b){var c=null;switch(b.type){case a.BinaryOperatorType:c=new a.BinaryOperator(new a.OperandProperty,new a.OperandValue,b.value);break;case a.GroupOperatorType:c=new a.GroupOperator(b.value,[]);break;case a.FunctionOperatorType:c=new a.FunctionOperator(b.value,[new a.OperandProperty]);break;case a.BetweenOperator:c=new a.BetweenOperator(new a.OperandProperty,new a.OperandValue,new a.OperandValue);break;case a.InOperator:c=new a.InOperator(new a.OperandProperty,[new a.OperandValue]);break;case a.UnaryOperatorType:c=new a.UnaryOperator(b.value,new a.OperandProperty);break;case a.Aggregate:var d=new a.AggregateOperand(new a.OperandProperty,null,b.value,new a.GroupOperator(a.GroupOperatorType.And,[]));b.value===a.Aggregate.Exists?c=d:(b.value!==a.Aggregate.Count&&(d.aggregatedExpression=new a.OperandProperty),c=new a.BinaryOperator(d,new a.OperandValue,a.BinaryOperatorType.Equal));break;default:throw Error("Unsupported operator type")}return b.reverse?new a.UnaryOperator(a.UnaryOperatorType.Not,c):c},c.and=function(b,c){return a.GroupOperator.combine(a.GroupOperatorType.Or,[b,c])},c.or=function(b,c){return a.GroupOperator.combine(a.GroupOperatorType.Or,[b,c])},c.getNotValidRange=function(a,b){var c=0,d=b.split("\n"),e=d[1],f=d[2].length;0===e.indexOf("...")&&(e=e.split("...")[1]);var c=a.indexOf(e);return{start:c,end:c+f}},Object.defineProperty(c.prototype,"displayType",{get:function(){return this.operatorType},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"enumType",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"leftPart",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"rightPart",{get:function(){return null},enumerable:!0,configurable:!0}),c.prototype.assignFrom=function(b,c){void 0===c&&(c=!1);var d=b;b instanceof a.UnaryOperator&&!(b.leftPart instanceof a.OperandProperty)&&(d=b.leftPart),c?this.assignLeftPart(d.leftPart):this.assignLeftPart(d),d.rightPart&&this.assignRightPart(d)},c.prototype.children=function(){var a=[];return this.leftPart&&a.push.apply(a,$.isArray(this.leftPart)?this.leftPart:[this.leftPart]),this.rightPart&&a.push.apply(a,$.isArray(this.rightPart)?this.rightPart:[this.rightPart]),a},c.prototype.accept=function(a){throw"Not implemented"},c}();a.CriteriaOperator=c}(e=b.Criteria||(b.Criteria={})),function(d){!function(d){function f(c,d,e){void 0===e&&(e=null);var e=e||c.text;return{caption:d,snippet:e,meta:b.Utils.getLocalization("function","DxDesignerStringId.CodeCompletion_Function"),tooltip:c.description||a.Analytics.Utils.getLocalization(c.text,c.descriptionStringId)||null,score:10,completer:{insertMatch:function(a,d){var f=a.completer.completions;if(f.filterText)for(var g,h=a.selection.getAllRanges(),i=0;g=h[i];i++)g.start.column-=f.filterText.length,a.session.remove(g);if("[]."===e.substr(0,3))for(var g,h=a.selection.getAllRanges(),i=0;g=h[i];i++)g.start.column-=2,"]."===a.session.getTextRange(g)&&(e=e.substr(3));a.insert(e),b.Internal.setCursorInFunctionParameter(c.paramCount,a,e)}}}}function g(a){return a.substring("["===a[0]?1:0,"]"===a[a.length-1]?a.length-1:a.length)}var h=function(a){function h(b){var c=a.call(this)||this;return c._options=b,c._contextPath=null,c._isInContext=function(){return null!==c._contextPath},c._getPath=function(){return c._contextPath?c._path()+"."+c._contextPath:c._path()},c.identifierRegexps=[/\./,/\[/],c._fieldListProvider=b.fieldListProvider,c._path=b.path,c._editor=b.editor,c._functions=ko.computed(function(){return ko.unwrap(b.functions)||d.functionDisplay}),c._rootItems=b.rootItems||[{name:"Parameters",needPrefix:!0}],c._disposables.push(c._functions),c}return __extends(h,a),h.prototype._previousSymbol=function(){var a=this._editor.getCursorPosition();return this._editor.session.getLine(a.row)[a.column-1]},h.prototype.beforeInsertMatch=function(a,b,c){var d=a.getCursorPosition();if("Parameters."===c)(b=b||!this._isInContext()&&a.session.getTokenAt(d.row,d.column))&&("support.variable.other"===b.type||"support.function"===b.type?a.session.remove({start:{column:b.start-1||0,row:d.row},end:{column:Math.max(b.start+b.value.length||0,d.column),row:d.row}}):"support.variable.parameter"===b.type?a.session.remove({start:{column:b.start||0,row:d.row},end:{column:Math.max(b.start+b.value.length+1||0,d.column),row:d.row}}):"text"===b.type&&"?"===b.value[b.value.length-1]&&a.session.remove({start:{column:b.start+b.value.length-1||0,row:d.row},end:{column:b.start+b.value.length||0,row:d.row}}));else{if(!(b=b||a.session.getTokenAt(d.row,d.column)))return;var e=null;"support.variable.other"===b.type||"support.function"===b.type?e=Math.max(b.start+b.value.length||0,d.column):"support.context.start"===b.type&&d.column<b.start+b.value.length&&(e=b.start+b.value.length-1||0),null!==e&&a.session.remove({start:{column:b.start||0,row:d.row},end:{column:e,row:d.row}})}},h.prototype.insertMatch=function(a,b,c){"Parameters."===b?a.insert("?"+c):a.insert("["+(b||"")+c+"]")},h.prototype.generateFieldDisplayName=function(a,b){return"Parameters."===a?"?"+b:"["+b+"]"},h.prototype._convertDataMemberInfoToCompletions=function(a,c,d){var e=this;return void 0===d&&(d=""),(a||[]).map(function(a){var f=e.generateFieldDisplayName(d,a.displayName);return{caption:a.displayName||a.name,snippet:f,meta:b.Internal.isList(a)&&b.Utils.getLocalization("list","DxDesignerStringId.CodeCompletion_List")||b.Utils.getLocalization("field","DxDesignerStringId.CodeCompletion_Field"),score:b.Internal.isList(a)&&200||100,completer:{insertMatch:function(b,f){e.beforeInsertMatch(b,c,d),e.insertMatch(b,d,e._options.getRealExpression?a.displayName||a.name:a.name)}}}})},h.prototype._combinePath=function(a){var b=this._getPath();if(a){var c=this._rootItems.filter(function(b){return 0===a.indexOf(b.name)})[0];b=c&&c.rootPath?[c.rootPath,a].join("."):[b,a].join(".")}return b},h.prototype._getParentPrefix=function(a){var b=this._editor.getCursorPosition().column-a.start-1,c=a.value.lastIndexOf(".",b),d=a.value.lastIndexOf("]",b);c=Math.max(d,c);var e="support.variable.other"===a.type||"support.context.start"===a.type?1:0,f=a.value.substring(e,c);return"["===f[0]&&(f=f.substr(1)),"]"===f[f.length-1]&&(f=f.substring(0,f.length-1)),f},h.prototype._getRealPath=function(a){var b=a.split("."),c=$.Deferred();return this._options.getRealExpression?this._options.getRealExpression(b[0],this.generateFieldDisplayName(null,b.splice(1).join("."))).done(function(a){a=a.slice(1,a.length-1),c.resolve(a&&[b[0],a].join(".")||b[0])}).fail(function(){c.resolve(a)}):c.resolve(a),c.promise()},h.prototype._getFields=function(a,b,d){var e=this;void 0===a&&(a=null),void 0===b&&(b=[]),void 0===d&&(d=!1);var f=$.Deferred(),g=void 0;return!a||"support.variable.other"!==a.type&&"support.function"!==a.type&&"support.context.start"!==a.type||(g=this._getParentPrefix(a)),this._getRealPath(this._combinePath(g)).done(function(i){var j=ko.unwrap(e._fieldListProvider).getItems(new c.PathRequest(i)).done(function(c){b.push.apply(b,e._convertDataMemberInfoToCompletions(h._cleanupFields(c),a,d?null:g&&g+"."))}),k=[j],l=[];g||e._rootItems.forEach(function(d){var f=d.rootPath||d.name;-1===l.indexOf(f)&&(l.push(f),k.push(ko.unwrap(e._fieldListProvider).getItems(new c.PathRequest(d.rootPath||d.name)).done(function(c){b.push.apply(b,e._convertDataMemberInfoToCompletions(h._cleanupFields(c),a,d.needPrefix?d.name+".":""))})))}),$.when(k).always(function(){f.resolve(b)})}),f.promise()},h._cleanupFields=function(a){return void 0===a&&(a=[]),a.filter(function(a){return"parameters"!==a.specifics&&"none"!==a.specifics})},h.prototype.getFunctionsCompletions=function(){var a=[];return ko.unwrap(this._functions).filter(function(a){return"Aggregate"!==a.category}).forEach(function(b){Object.keys(b.items).forEach(function(c){b.items[c]&&a.push(f(b.items[c][0],c))})}),a},h.prototype.getAggregateCompletions=function(){var a=[],b=ko.unwrap(this._functions).filter(function(a){return"Aggregate"===a.category})[0];return b&&Object.keys(b.items).forEach(function(c){b.items[c]&&a.push(f(b.items[c][0],c,c+"()"))}),a},h.prototype.getOperatorCompletions=function(a){return d.operatorNames.map(function(c){return{caption:c.text,snippet:a+c.text,meta:b.Utils.getLocalization("operator","DxDesignerStringId.CodeCompletion_Operator")}})},h.prototype._addFunctions=function(a){a.push.apply(a,this.getFunctionsCompletions())},h.prototype._addAggregates=function(a){a.push.apply(a,this.getAggregateCompletions())},h.prototype._addOperators=function(a,b){var c=/\s/.test(b[b.length-1])?"":" ";a.push.apply(a,this.getOperatorCompletions(c))},h.prototype._addParameterOperators=function(a,b){var d=this,e=$.Deferred(),f=ko.unwrap(this._fieldListProvider).getItems(new c.PathRequest("Parameters")).done(function(c){a.push.apply(a,d._convertDataMemberInfoToCompletions(c,b,"Parameters."))});return $.when(f).always(function(){e.resolve(a)}),e.promise()},h.prototype._getOperands=function(a){void 0===a&&(a=null);var b=[];return this._addFunctions(b),this._getFields(a,b)},h.prototype._getOperandsOrOperators=function(a,b,c){var d;try{e.CriteriaOperator.parse(b)}catch(a){d=a.hash}var f=b.trim(),g=f[f.length-1];if("?"===g&&" "!==b[b.length-1])this._addParameterOperators(c,a);else{if((d||!f)&&"]"!==g&&")"!==g)return this._getOperands();this._addOperators(c,b)}},h.prototype._findStartContextTokenPosition=function(a,b){for(var c=0,d=b;d>-1;d--)if("support.context.end"===a[d].type)c++;else if("support.context.start"===a[d].type){if(!(c>0))return d;c--}},h.prototype._findOpenedStartContext=function(a,b){for(var c=[],d=a.filter(function(a,c){return("support.context.start"===a.type||"support.context.end"===a.type)&&c<b}),e=0;e<d.length;e++)"support.context.start"===d[e].type?c.push(a.indexOf(d[e])):c.pop();return c},h.prototype._findOpenedAggregates=function(a,b){var c=[],d=a.filter(function(a,c){return"support.other.aggregate"===a.type&&c<b});if(d.length>0)for(var e=a[b],f=this._editor.getCursorPosition().column-(e&&e.start||0),g=d.length-1;g>-1;g--){var h=a.indexOf(d[g]),i=0,j=0,k=!1;if(h+1===b&&-1!==a[h+1].value.substr(0,f).indexOf("()")||h+1<b&&-1!==a[h+1].value.indexOf("()"))k=!0,b=h;else{for(var l=h;l<b;l++)if("("===a[l].value.trim()?i++:")"===a[l].value.trim()&&j++,i===j&&0!==i){k=!0;break}k||c.splice(0,0,h),b=h}}return c},h.prototype._getContextPath=function(a,b){var c=[],d=this._findOpenedAggregates(a,b),e=this._findOpenedStartContext(a,b),f=e.concat.apply(e,d).sort(function(a,b){return a-b});if(f.length>0)for(var h=0;h<f.length;h++)if("support.other.aggregate"===a[f[h]].type)if("support.context.end"===a[f[h]-1].type){var i=this._findStartContextTokenPosition(a,f[h]-2),j=g(a[i].value.match(/^\[(?:[^\]\)])*\]/)[0]);c.push(j)}else"support.variable.other"===a[f[h]-1].type&&c.push(g(a[f[h]-1].value));else{var j=g(a[f[h]].value.match(/^\[(?:[^\]\)])*\]/)[0]);c.push(j)}return c.filter(function(a){return!!a}).join(".")},h.prototype._getCompletions=function(a,b,c,d){var e,f=[],h=b.getTokenAt(c.row,c.column),i=a.session.getLine(c.row).substring(0,c.column),j=b.getTokens(c.row),k=h?h.index:-1;if(this._contextPath=this._getContextPath(j,k),h)if("support.context.start"===h.type){var l=this._editor.getCursorPosition().column-h.start===h.value.length;if(l){var m=[];this._addFunctions(m)}e=this._getFields(h,m,l)}else if("string.quoted.single"===h.type);else if(0===h.type.indexOf("support.variable"))e=this._getFields(h);else if("support.function"===h.type)e=this.defaultProcess(h,i.substring(0,h.start),f);else if("support.other.aggregate"===h.type){var n=j[k-1];this._addAggregates(f),n&&g(n.value).trim()&&(e=this._getFields({start:h.start-(n.value||"").length||0,value:n.value+h.value,type:"support.function"},f))}else e=this.defaultProcess(h,i,f);else e=this._getOperands();return e?e.promise():$.Deferred().resolve(f).promise()},h.prototype.defaultProcess=function(a,b,c){return this._getOperandsOrOperators(a,b,c)},h.prototype.getCompletions=function(a,b,c,d,e){this._getCompletions(a,b,c,d).done(function(a){e(null,a)})},h.prototype.getDocTooltip=function(a){a.tooltip&&!a.docHTML&&(a.docHTML=[a.tooltip].join(""))},h}(c.Disposable);d.CodeCompletor=h,d.createFunctionCompletion=f,d.trimBrackets=g}(d.Internal||(d.Internal={}))}(d=b.Widgets||(b.Widgets={})),function(a){!function(b){function c(b,d,e){void 0===e&&(e=""),d(b,e),b instanceof a.AggregateOperand&&(b.leftPart&&c(b.leftPart,d,e),b.leftPart&&b.leftPart.propertyName&&(e=e?[e,b.leftPart.propertyName].join("."):b.leftPart.propertyName)),b.children().forEach(function(a){return c(a,d,e)})}b.operatorTokens={Plus:"+",Minus:"-",Equal:"=",NotEqual:"<>",Greater:">",Less:"<",LessOrEqual:"<=",GreaterOrEqual:">="},b.criteriaForEach=c}(a.Utils||(a.Utils={}));var b=function(a){function b(b,c,d,e){void 0===b&&(b=""),void 0===c&&(c=-1),void 0===d&&(d=-1),void 0===e&&(e=0);var f=a.call(this)||this;return f.type="Property",f.propertyName=b,f.originalPropertyLength=e,f.startPosition={column:c,line:d},f}return __extends(b,a),Object.defineProperty(b.prototype,"displayType",{get:function(){return"["+this.propertyName+"]"},enumerable:!0,configurable:!0}),b.prototype.accept=function(a){return a.visitOperandProperty?a.visitOperandProperty(this):new b(this.propertyName)},b}(a.CriteriaOperator);a.OperandProperty=b}(e=b.Criteria||(b.Criteria={})),function(a){var b=function(){function a(a){this.displayNameProvider=a}return a.prototype._replaceNames=function(a,b,c){var f=this,g=$.Deferred();if(!b)return g.resolve("").promise();try{var h=e.CriteriaOperator.parse(b)}catch(a){return g.reject().promise()}var i=[],j=[],k=new d.Internal.FilterEditorSerializer;if(e.Utils.criteriaForEach(h,function(b,d){if(b instanceof e.OperandProperty){var g=0===b.propertyName.indexOf("^."),h=g?b.propertyName.substring(2):b.propertyName;h=d?[d,h].join("."):h;var k=c?f.displayNameProvider.getDisplayNameByPath(a,h):f.displayNameProvider.getRealName(a,h);i.push(k.done(function(a){var c=g?"^."+a:a;c=d?c.split(".").slice(d.split(".").length).join("."):c,j.push({operand:b,convertedName:c})}))}}),0===i.length)g.resolve(b);else{var l=0,m=function(){if(!(++l<i.length)){for(var a=b.split("\n"),c=0;c<a.length;c++)for(var d=j.filter(function(a){return a.operand.startPosition.line===c}).sort(function(a,b){return a.operand.startPosition.column-b.operand.startPosition.column}),e=0,f=0;e<d.length;e++){var h=d[e].operand.startPosition.column,m=d[e].operand.propertyName,n=0;d[e].operand.originalPropertyLength!==m.length&&(n=d[e].operand.originalPropertyLength-k.serialize(d[e].operand,!1).length);var o=d[e].convertedName;!m||h<0||(a[c]=a[c].substring(0,h+f)+o+a[c].substring(h+m.length+n+f),f+=o.length-m.length-n)}g.resolve(a.join("\n"))}};i.forEach(function(a){return a.always(m)})}return g.promise()},a.prototype.toDisplayExpression=function(a,b){return this._replaceNames(a,b,!0)},a.prototype.toRealExpression=function(a,b){return this._replaceNames(a,b,!1)},a}();a.DisplayExpressionConverter=b}(b.Internal||(b.Internal={})),function(a){var c=function(){function b(){this._func=[]}return b.prototype.CriteriaOperator=function(){return new a.CriteriaOperator},b.prototype.BinaryOperator=function(a){return new h(a.left,a.right,a.operatorType)},b.prototype.FunctionOperator=function(a){return new l(a.operatorType,a.operands)},b.prototype.AggregateOperand=function(a){return new e(a.property,a.aggregatedExpression,a.aggregateType,a.condition)},b.prototype.GroupOperator=function(a){return new n(a.operation,a.operands)},b.prototype.InOperator=function(a){return new o(a.criteriaOperator,a.operands)},b.prototype.ConstantValue=function(a){return new j(a.value)},b.prototype.OperandValue=function(a){return new i(a.value)},b.prototype.OperandParameter=function(a){return new q(a.parameterName,a.value)},b.prototype.OperandProperty=function(b){return new a.OperandProperty(b.propertyName,b.startColumn,b.startLine,b.originalPropertyLength)},b.prototype.UnaryOperator=function(a){return new s(a.operatorType,a.operator)},b.prototype.BetweenOperator=function(a){return new f(a.property,a.begin,a.end)},b.prototype.JoinOperator=function(a){return new p(a.joinTypeName,a.condition,a.type,a.aggregated)},b.prototype.addListener=function(a){-1===this._func.indexOf(a)&&this._func.push(a)},b.prototype.removeListener=function(a){var b=this._func.indexOf(a);-1!==b&&this._func.splice(b,1)},b.prototype.process=function(a,b){var c=this.CriteriaOperator();switch(a){case"join":c=this.JoinOperator(b);break;case"between":c=this.BetweenOperator(b);break;case"property":c=this.OperandProperty(b);break;case"parameter":c=this.OperandParameter(b);break;case"value":c=this.OperandValue(b);break;case"in":c=this.InOperator(b);break;case"function":c=this.FunctionOperator(b);break;case"unary":c=this.UnaryOperator(b);break;case"group":c=this.GroupOperator(b);break;case"binary":c=this.BinaryOperator(b);break;case"const":c=this.ConstantValue(b);break;case"aggregate":c=this.AggregateOperand(b)}return this._func.forEach(function(d){c=d(c,{operatorType:a,options:b})}),c},b}();a.CriteriaOperatorPreprocessor=c,a.criteriaCreator=new c;var d;!function(a){a[a.Count=0]="Count",a[a.Exists=1]="Exists",a[a.Min=2]="Min",a[a.Max=3]="Max",a[a.Avg=4]="Avg",a[a.Sum=5]="Sum",a[a.Single=6]="Single"}(d=a.Aggregate||(a.Aggregate={}));var e=function(b){function c(d,e,f,g){var h=b.call(this)||this;return h.change=function(b,c){var d=null;return b.type===m&&(d=a.CriteriaOperator.create(b),b.type!==d.enumType?d.leftPart.assignFrom(c):d.assignFrom(c),h.condition=d),d},h.assignLeftPart=function(b){b.leftPart instanceof c?h.assignFrom(b.leftPart):a.CriteriaOperator instanceof c?(h.property=b.property,h.aggregatedExpression&&b.aggregatedExpression&&(h.aggregatedExpression=b.aggregatedExpression),h.condition=b.property):h.property=b.leftPart},h.type="Aggregate",h.property=d,g instanceof n?h.condition=g:g instanceof s&&g.operatorType===r.Not?g.operand instanceof n?h.condition=new s(r.Not,g.operand):h.condition=new s(r.Not,new n(m.And,g.operand?[g.operand]:[])):h.condition=new n(m.And,g?[g]:[]),h.operatorType=f,h.aggregatedExpression=e,h}return __extends(c,b),Object.defineProperty(c.prototype,"displayType",{get:function(){return d[this.operatorType]},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"enumType",{get:function(){return d},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"leftPart",{get:function(){return this.property},enumerable:!0,configurable:!0}),c.prototype.children=function(){var a=[];return this.condition&&a.push(this.condition),this.aggregatedExpression&&a.push(this.aggregatedExpression),a},c.prototype.accept=function(a){return a.visitAggregateOperand?a.visitAggregateOperand(this):new c(this.property&&this.property.accept(a),this.aggregatedExpression&&this.aggregatedExpression.accept(a),this.operatorType,this.condition&&this.condition.accept(a))},c}(a.CriteriaOperator);a.AggregateOperand=e;var f=function(a){function b(b,c,d){var e=a.call(this)||this;return e.resetRightPart=function(a){e.begin=new i(a),e.end=new i(a)},e.assignLeftPart=function(a){e.property=a.leftPart},e.assignRightPart=function(a){null!==a.rightPart.length&&void 0!==a.rightPart.length?a.rightPart.length?(e.begin=a.rightPart[0],e.end=a.rightPart.length>1?a.rightPart[1]:new i):(e.begin=new i,e.end=new i):(e.begin=a.rightPart,e.end=new i)},e.operatorType="Between",e.type="Between",e.property=b,e.begin=c||new i,e.end=d||new i,e}return __extends(b,a),Object.defineProperty(b.prototype,"leftPart",{get:function(){return this.property},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"rightPart",{get:function(){return[this.begin,this.end]},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"displayType",{get:function(){return"Between"},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"enumType",{get:function(){return b},enumerable:!0,configurable:!0}),b.prototype.accept=function(a){return a.visitBetweenOperator?a.visitBetweenOperator(this):new b(this.property&&this.property.accept(a),this.begin&&this.begin.accept(a),this.end&&this.end.accept(a))},b}(a.CriteriaOperator);a.BetweenOperator=f;var g;!function(a){a[a.Equal=0]="Equal",a[a.NotEqual=1]="NotEqual",a[a.Greater=2]="Greater",a[a.Less=3]="Less",a[a.LessOrEqual=4]="LessOrEqual",a[a.GreaterOrEqual=5]="GreaterOrEqual",a[a.Like=6]="Like",a[a.BitwiseAnd=7]="BitwiseAnd",a[a.BitwiseOr=8]="BitwiseOr",a[a.BitwiseXor=9]="BitwiseXor",a[a.Divide=10]="Divide",a[a.Modulo=11]="Modulo",a[a.Multiply=12]="Multiply",a[a.Plus=13]="Plus",a[a.Minus=14]="Minus"}(g=a.BinaryOperatorType||(a.BinaryOperatorType={}));var h=function(b){function c(c,d,e){var f=b.call(this)||this;return f.assignLeftPart=function(a){f.leftOperand=a.leftPart},f.assignRightPart=function(a){null!==a.rightPart.length&&void 0!==a.rightPart.length?a.rightPart.length&&(f.rightOperand=a.rightPart[0]):f.rightOperand=a.rightPart},f.type="Binary",f.leftOperand=c||new a.CriteriaOperator,f.rightOperand=d||new a.CriteriaOperator,f.operatorType=e,f}return __extends(c,b),Object.defineProperty(c.prototype,"leftPart",{get:function(){return this.leftOperand},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"rightPart",{get:function(){return this.rightOperand},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"displayType",{get:function(){return a.Utils.operatorTokens[g[this.operatorType]]||g[this.operatorType]},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"enumType",{get:function(){return g},enumerable:!0,configurable:!0}),c.prototype.accept=function(a){return a.visitBinaryOperator?a.visitBinaryOperator(this):new c(this.leftOperand&&this.leftOperand.accept(a),this.rightOperand&&this.rightOperand.accept(a),this.operatorType)},c}(a.CriteriaOperator);a.BinaryOperator=h;var i=function(a){function c(c){var d=a.call(this)||this;d.type="Value";var e=null!==c&&void 0!==c?c:"";return c&&c.length&&("'"===c[0]&&"'"===c[c.length-1]||b.Widgets.Internal.validateGuid(c))?e=d._processStringValue(c):c&&c.length&&"#"===c[0]&&"#"===c[c.length-1]?(e=c.slice(1,c.length-1),(e=b.Internal.parseDate(e))||(e=b.Internal.parseDate(c.slice(1,c.length-1)))):"true"!==String(c).toLowerCase()&&"false"!==String(c).toLowerCase()||(e="true"===String(c).toLowerCase()?"True":"False"),d.value=e,d}return __extends(c,a),c.prototype._processStringValue=function(a){var b=a.slice(1,a.length-1);return-1!==b.indexOf("''")&&(b=b.replace("''","'")),b},Object.defineProperty(c.prototype,"displayType",{get:function(){return this.value||"?"},enumerable:!0,configurable:!0}),c}(a.CriteriaOperator);a.OperandValue=i;var j=function(a){function b(b){return a.call(this,b)||this}return __extends(b,a),b.prototype.accept=function(a){return a.visitConstantValue?a.visitConstantValue(this):new b(this.value)},b}(i);a.ConstantValue=j;var k;!function(a){a[a.None=0]="None",a[a.Custom=1]="Custom",a[a.CustomNonDeterministic=2]="CustomNonDeterministic",a[a.Iif=3]="Iif",a[a.IsNull=4]="IsNull",a[a.IsNullOrEmpty=5]="IsNullOrEmpty",a[a.Trim=6]="Trim",a[a.Len=7]="Len",a[a.Substring=8]="Substring",a[a.Upper=9]="Upper",a[a.Lower=10]="Lower",a[a.Concat=11]="Concat",a[a.Ascii=12]="Ascii",a[a.Char=13]="Char",a[a.ToStr=14]="ToStr",a[a.Replace=15]="Replace",a[a.Reverse=16]="Reverse",a[a.Insert=17]="Insert",a[a.CharIndex=18]="CharIndex",a[a.Remove=19]="Remove",a[a.Abs=20]="Abs",a[a.Sqr=21]="Sqr",a[a.Cos=22]="Cos",a[a.Sin=23]="Sin",a[a.Atn=24]="Atn",a[a.Exp=25]="Exp",a[a.Log=26]="Log",a[a.Rnd=27]="Rnd",a[a.Tan=28]="Tan",a[a.Power=29]="Power",a[a.Sign=30]="Sign",a[a.Round=31]="Round",a[a.Ceiling=32]="Ceiling",a[a.Floor=33]="Floor",a[a.Max=34]="Max",a[a.Min=35]="Min",a[a.Acos=36]="Acos",a[a.Asin=37]="Asin",a[a.Atn2=38]="Atn2",a[a.BigMul=39]="BigMul",a[a.Cosh=40]="Cosh",a[a.Log10=41]="Log10",a[a.Sinh=42]="Sinh",a[a.Tanh=43]="Tanh",a[a.PadLeft=44]="PadLeft",a[a.PadRight=45]="PadRight",a[a.StartsWith=46]="StartsWith",a[a.EndsWith=47]="EndsWith",a[a.Contains=48]="Contains",a[a.ToInt=49]="ToInt",a[a.ToLong=50]="ToLong",a[a.ToFloat=51]="ToFloat",a[a.ToDouble=52]="ToDouble",a[a.ToDecimal=53]="ToDecimal",a[a.LocalDateTimeThisYear=54]="LocalDateTimeThisYear",a[a.LocalDateTimeThisMonth=55]="LocalDateTimeThisMonth",a[a.LocalDateTimeLastWeek=56]="LocalDateTimeLastWeek",a[a.LocalDateTimeThisWeek=57]="LocalDateTimeThisWeek",a[a.LocalDateTimeYesterday=58]="LocalDateTimeYesterday",a[a.LocalDateTimeToday=59]="LocalDateTimeToday",a[a.LocalDateTimeNow=60]="LocalDateTimeNow",a[a.LocalDateTimeTomorrow=61]="LocalDateTimeTomorrow",a[a.LocalDateTimeDayAfterTomorrow=62]="LocalDateTimeDayAfterTomorrow",a[a.LocalDateTimeNextWeek=63]="LocalDateTimeNextWeek",a[a.LocalDateTimeTwoWeeksAway=64]="LocalDateTimeTwoWeeksAway",a[a.LocalDateTimeNextMonth=65]="LocalDateTimeNextMonth",a[a.LocalDateTimeNextYear=66]="LocalDateTimeNextYear",a[a.IsOutlookIntervalBeyondThisYear=67]="IsOutlookIntervalBeyondThisYear",a[a.IsOutlookIntervalLaterThisYear=68]="IsOutlookIntervalLaterThisYear",a[a.IsOutlookIntervalLaterThisMonth=69]="IsOutlookIntervalLaterThisMonth",a[a.IsOutlookIntervalNextWeek=70]="IsOutlookIntervalNextWeek",a[a.IsOutlookIntervalLaterThisWeek=71]="IsOutlookIntervalLaterThisWeek",a[a.IsOutlookIntervalTomorrow=72]="IsOutlookIntervalTomorrow",a[a.IsOutlookIntervalToday=73]="IsOutlookIntervalToday",a[a.IsOutlookIntervalYesterday=74]="IsOutlookIntervalYesterday",a[a.IsOutlookIntervalEarlierThisWeek=75]="IsOutlookIntervalEarlierThisWeek",a[a.IsOutlookIntervalLastWeek=76]="IsOutlookIntervalLastWeek",a[a.IsOutlookIntervalEarlierThisMonth=77]="IsOutlookIntervalEarlierThisMonth",a[a.IsOutlookIntervalEarlierThisYear=78]="IsOutlookIntervalEarlierThisYear",a[a.IsOutlookIntervalPriorThisYear=79]="IsOutlookIntervalPriorThisYear",a[a.IsThisWeek=80]="IsThisWeek",a[a.IsThisMonth=81]="IsThisMonth",a[a.IsThisYear=82]="IsThisYear",a[a.DateDiffTick=83]="DateDiffTick",a[a.DateDiffSecond=84]="DateDiffSecond",a[a.DateDiffMilliSecond=85]="DateDiffMilliSecond",a[a.DateDiffMinute=86]="DateDiffMinute",a[a.DateDiffHour=87]="DateDiffHour",a[a.DateDiffDay=88]="DateDiffDay",a[a.DateDiffMonth=89]="DateDiffMonth",a[a.DateDiffYear=90]="DateDiffYear",a[a.GetDate=91]="GetDate",a[a.GetMilliSecond=92]="GetMilliSecond",a[a.GetSecond=93]="GetSecond",a[a.GetMinute=94]="GetMinute",a[a.GetHour=95]="GetHour",a[a.GetDay=96]="GetDay",a[a.GetMonth=97]="GetMonth",a[a.GetYear=98]="GetYear",a[a.GetDayOfWeek=99]="GetDayOfWeek",a[a.GetDayOfYear=100]="GetDayOfYear",a[a.GetTimeOfDay=101]="GetTimeOfDay",a[a.Now=102]="Now",a[a.UtcNow=103]="UtcNow",a[a.Today=104]="Today",a[a.AddTimeSpan=105]="AddTimeSpan",a[a.AddTicks=106]="AddTicks",a[a.AddMilliSeconds=107]="AddMilliSeconds",a[a.AddSeconds=108]="AddSeconds",a[a.AddMinutes=109]="AddMinutes",a[a.AddHours=110]="AddHours",a[a.AddDays=111]="AddDays",a[a.AddMonths=112]="AddMonths",a[a.AddYears=113]="AddYears",a[a.OrderDescToken=114]="OrderDescToken"}(k=a.FunctionOperatorType||(a.FunctionOperatorType={}));var l=function(b){function c(c,d){var e=b.call(this)||this;return e.toString=function(b){var c=(a.Utils.operatorTokens[e.displayType]||e.displayType)+"("+e.operands.map(function(a){return a.toString()}).join(", ")+")";return b?"Not "+c:c},e.assignLeftPart=function(a){e.operands=[a.leftPart]},e.assignRightPart=function(a){e.operatorType!==k.IsNullOrEmpty&&e.operatorType!==k.IsOutlookIntervalBeyondThisYear&&e.operatorType!==k.IsOutlookIntervalLaterThisYear&&e.operatorType!==k.IsOutlookIntervalLaterThisMonth&&e.operatorType!==k.IsOutlookIntervalNextWeek&&e.operatorType!==k.IsOutlookIntervalLaterThisWeek&&e.operatorType!==k.IsOutlookIntervalTomorrow&&e.operatorType!==k.IsOutlookIntervalToday&&e.operatorType!==k.IsOutlookIntervalYesterday&&e.operatorType!==k.IsOutlookIntervalEarlierThisWeek&&e.operatorType!==k.IsOutlookIntervalLastWeek&&e.operatorType!==k.IsOutlookIntervalEarlierThisMonth&&e.operatorType!==k.IsOutlookIntervalEarlierThisYear&&e.operatorType!==k.IsOutlookIntervalPriorThisYear&&(null!==a.rightPart.length&&void 0!==a.rightPart.length?a.rightPart.length?e.operands.push(a.rightPart[0]):e.operands.push(new i):e.operands.push(a.rightPart))},e.operands=[],e.type="Function",e.operatorType=c,d=d||[new a.CriteriaOperator],d.forEach(function(a){return e.operands.push(a)}),e}return __extends(c,b),Object.defineProperty(c.prototype,"leftPart",{get:function(){return this.operands[0]},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"rightPart",{get:function(){return this.operands.filter(function(a,b){return 0!==b})},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"displayType",{get:function(){return k[this.operatorType]||this.operatorType.toString()},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"enumType",{get:function(){return k},enumerable:!0,configurable:!0}),c.prototype.accept=function(a){return a.visitFunctionOperator?a.visitFunctionOperator(this):new c(this.operatorType,this.operands&&this.operands.map(function(b){return b.accept(a)}))},c}(a.CriteriaOperator);a.FunctionOperator=l;var m;!function(a){a[a.And=0]="And",a[a.Or=1]="Or"}(m=a.GroupOperatorType||(a.GroupOperatorType={}));var n=function(b){function c(f,j){var k=b.call(this)||this;return k.create=function(a,b,f){var j=new h(b,new i(""),g.Equal);return a?j=new c(m.And,[]):f&&"list"===f&&(j=new e(b,null,d.Exists,new c(m.And,[]))),k.operands.push(j),k.operands[k.operands.indexOf(j)]},k.change=function(b,c,d){void 0===d&&(d=!1);var e=k.operands.indexOf(c);if(-1===e)throw Error("dont have this element in operands collection");var f=a.CriteriaOperator.create(b);return b.type!==f.enumType?f.leftPart.assignFrom(c):f.assignFrom(c,d),k.operands[e]=f,c=null,k.operands[e]},k.remove=function(a){k.operands.splice(k.operands.indexOf(a),1)},k.assignLeftPart=function(a){k.operands=a.operands},k.operands=[],k.type="Group",k.operatorType=f,j=j||[new a.CriteriaOperator,new a.CriteriaOperator],j.forEach(function(a){return k.operands.push(a)}),k}return __extends(c,b),c.combine=function(b,d){var e=[];return(d||[]).forEach(function(a){a instanceof c&&a.operatorType===b?e.push.apply(e,a.operands):e.push(a)}),1===e.length?e[0]:a.criteriaCreator.process("group",{operands:e,operation:b})},c.prototype.children=function(){return this.operands},Object.defineProperty(c.prototype,"displayType",{get:function(){return m[this.operatorType]},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"enumType",{get:function(){return m},enumerable:!0,configurable:!0}),c.prototype.accept=function(a){return a.visitGroupOperator?a.visitGroupOperator(this):new c(this.operatorType,this.operands&&this.operands.map(function(b){return b.accept(a)}))},c}(a.CriteriaOperator);a.GroupOperator=n;var o=function(b){function c(c,d){var e=b.call(this)||this;return e.assignLeftPart=function(a){e.criteriaOperator=a.leftPart},e.assignRightPart=function(a){e.operands=[].concat(a.rightPart)},e.operatorType="In",e.type="In",e.operands=[],e.criteriaOperator=c||new a.CriteriaOperator,(d||[]).forEach(function(a){return e.operands.push(a)}),e}return __extends(c,b),Object.defineProperty(c.prototype,"leftPart",{get:function(){return this.criteriaOperator},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"rightPart",{get:function(){return this.operands},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"displayType",{get:function(){return"In"},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"enumType",{get:function(){return c},enumerable:!0,configurable:!0}),c.prototype.accept=function(a){return a.visitInOperator?a.visitInOperator(this):new c(this.criteriaOperator&&this.criteriaOperator.accept(a),this.operands&&this.operands.map(function(b){return b.accept(a)}))},c}(a.CriteriaOperator);a.InOperator=o;var p=function(b){function c(a,c,d,e){var f=b.call(this)||this;return f.type="Join",f.joinTypeName=a,f.condition=c,f.operatorType=d,f.aggregatedExpression=e,f}return __extends(c,b),c.joinOrAggregate=function(b,c,d,e){return null===b||b.propertyName.length<2||"<"!=b.propertyName[0]||">"!=b.propertyName[b.propertyName.length-1]?a.criteriaCreator.process("aggregate",{property:b,aggregatedExpression:e,aggregateType:d,condition:c}):a.criteriaCreator.process("join",{joinTypeName:b.propertyName.substring(1,b.propertyName.length-2),condition:c,type:d,aggregated:e})},c.prototype.accept=function(a){return a.visitJoinOperand?a.visitJoinOperand(this):new c(this.joinTypeName,this.condition&&this.condition.accept(a),this.operatorType,this.aggregatedExpression&&this.aggregatedExpression.accept(a))},c}(a.CriteriaOperator);a.JoinOperand=p;var q=function(a){function b(b,c){var d=a.call(this,c)||this;return d.type="Parameter",d.parameterName=b||"",d}return __extends(b,a),Object.defineProperty(b.prototype,"displayType",{get:function(){return"?"+this.parameterName},enumerable:!0,configurable:!0}),b.prototype.accept=function(a){return a.visitOperandParameter?a.visitOperandParameter(this):new b(this.parameterName,this.value)},b}(i);a.OperandParameter=q;var r;!function(a){a[a.Minus=0]="Minus",a[a.Plus=1]="Plus",a[a.BitwiseNot=2]="BitwiseNot",a[a.Not=3]="Not",a[a.IsNull=4]="IsNull"}(r=a.UnaryOperatorType||(a.UnaryOperatorType={}));var s=function(b){function c(c,d){var e=b.call(this)||this;return e.type="Unary",e.operand=d||new a.CriteriaOperator,e.operatorType=c,e}return __extends(c,b),Object.defineProperty(c.prototype,"leftPart",{get:function(){return this.operand},enumerable:!0,configurable:!0}),c.prototype.assignFrom=function(a){this.operatorType===r.Not?a instanceof c?this.operand.assignFrom(a.operand):this.operand.assignFrom(a):this.operand=a instanceof c?a.operand.leftPart:a.leftPart||a},Object.defineProperty(c.prototype,"displayType",{get:function(){return r[this.operatorType]},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"enumType",{get:function(){return r},enumerable:!0,configurable:!0}),c.prototype.accept=function(a){return a.visitUnaryOperator?a.visitUnaryOperator(this):new c(this.operatorType,this.operand&&this.operand.accept(a))},c}(a.CriteriaOperator);a.UnaryOperator=s}(e=b.Criteria||(b.Criteria={})),function(d){function f(a,b){return ko.computed(function(){var c=ko.unwrap(a),d=ko.unwrap(b);return d?{getItems:function(a){var b=$.Deferred();return c.getItems(a).done(function(a){b.resolve(a.filter(function(a){return a.name!==d}))}).fail(function(){return b.reject()}),b.promise()},getValues:function(a){return c.getValues(a)}}:c})}var g;!function(d){var e=function(c){function e(a,e,f,g){var h=c.call(this)||this;h.searchPlaceholder=function(){return b.Utils.getLocalization("Enter text to search...","AnalyticsCoreStringId.QueryBuilder_SearchBox_EmptyText")},h._categories=ko.observableArray([]),h.toolBox=[],h.description=ko.observable(),h._defaultClick=a,d.operatorNames.filter(function(a){return!!a.descriptionStringId}).forEach(function(a){return h._initDescription(a)});var i=ko.computed(function(){return f()&&ko.unwrap(f().functions)||d.functionDisplay}),j=ko.computed(function(){return i().map(function(a){return h._createFunctionsCategoryItem(a.items,b.Utils.getLocalization(a.display,a.localizationId))})}),k=function(){return[h._createFieldsCategory(g,e),h._createConstantCategory(),h._createFunctionsCategory(j),h._createOperatorsCategory(d.operatorNames)]},l=ko.observable(null),m=function(){var a=h._categories()[0].content;l()&&l().isSelected(!1),l(a),a.isSelected(!0)},n=function(b){h._disposeCategories();var c=k();b&&b.customizeCategories&&b.customizeCategories(h,c,a),h._categories(c),m()};return h.resetCategoriesSelection=m,[i,j].forEach(function(a){return h._disposables.push(a)}),h._disposables.push(f.subscribe(function(a){n(a)})),n(f()),h._disposables.push(h.showDescription=ko.computed(function(){return l()&&l().showDescription})),h.toolBox=[h._generateTab(h._categories,"dx-expressioneditor-categories","170px",function(a){if(a.data&&a.data.selectedItem&&a.data.selectedItem()&&-1!==a.data.items.indexOf(a.data.selectedItem())){var b=a.data.selectedItem();h.description(h._localizedExpressionEditorItem(b))}else h.description(void 0);l()!==a&&(l().isSelected(!1),a.isSelected(!0),l(a))}),h._generateTab(l,"dx-expressioneditor-selectedcontent",ko.computed(function(){return h.showDescription()?"248px":"435px"}),function(a){h.description(h._localizedExpressionEditorItem(a))},h._defaultClick),h._generateTab(h.description,"dx-expressioneditor-description",void 0,void 0,void 0,h.showDescription)],h}return __extends(e,c),e.prototype._generateTab=function(a,b,c,d,e,f){return void 0===b&&(b=null),{templateName:b,width:c||"30%",content:a,click:d,dblclick:e,visible:f||!0}},e.prototype._localizedExpressionEditorItem=function(b){return a.Analytics.Utils.getLocalization(b.text,b.descriptionStringId)},e.prototype._initDescription=function(a){a.description=this._localizedExpressionEditorItem(a)},e.prototype._createFieldsCategory=function(a,c){return{displayName:b.Utils.getLocalization("Fields","AnalyticsCoreStringId.ExpressionEditor_ItemInfo_Fields"),content:{showDescription:!1,isSelected:ko.observable(!1),data:{fields:a,parameters:c},name:"dx-expressioneditor-fields"},dispose:function(){}}},e.prototype._createConstantCategory=function(){var a=[{text:"?",descriptionStringId:"ExpressionEditorStringId.Constant_Null"},{text:"False",descriptionStringId:"ExpressionEditorStringId.Constant_False"},{text:"True",descriptionStringId:"ExpressionEditorStringId.Constant_True"}];return d.createExpressionEditorCollectionToolOptions(a,"Constants","DataAccessStringId.ExpressionEditor_DocumentationCategory_Constants",!0)},e.prototype._createOperatorsCategory=function(a){return d.createExpressionEditorCollectionToolOptions(a,"Operators","DataAccessStringId.ExpressionEditor_DocumentationCategory_Operators",!0)},e.prototype._createFunctionsCategoryContent=function(a,b,c){return{showDescription:!0,isSelected:b,data:{textToSearch:a,items:c,availableItems:ko.observableArray(c),selectedItem:ko.observable(null)},name:"dx-expressioneditor-collection-function"}},e.prototype._createFunctionsCategoryItem=function(a,b){var c=this,d={display:b,isSelected:ko.observable(!1),data:[],name:"dx-expressioneditor-collection-function"};return $.map(a,function(a){a&&a.forEach(function(a){c._initDescription(a),d.data.push(a)})}),d},e.prototype._createFunctionsCategory=function(a){var c=ko.observable(""),d=[],e=ko.observable(!1),f=null,g=ko.computed(function(){return[].concat.apply([],a().map(function(a){return a.data}))}),h=this._createFunctionsCategoryContent(c,e,g()),i={displayName:b.Utils.getLocalization("Functions","DataAccessStringId.ExpressionEditor_DocumentationCategory_Functions"),items:a,allItems:g,isSelected:e,content:h,collapsed:ko.observable(!0),updateContent:function(a,d){h.isSelected&&h.isSelected(!1),h.isSelected=d,h.isSelected(!0),h.data.items=a,h.data.availableItems(h.data.items.filter(function(a){return!!b.Internal.findMatchesInString(a.text,c())}))},templateName:"dx-expressioneditor-category-accordion",dispose:function(){d.forEach(function(a){return a.dispose()}),d.splice(0,d.length)}};return d.push(g),d.push(c.subscribe(function(a){f&&clearTimeout(f),f=setTimeout(function(){i.content.data.availableItems(i.content.data.items.filter(function(c){return!!b.Internal.findMatchesInString(c.text,a)}))},150)})),i},e.prototype._disposeCategories=function(){this._categories().forEach(function(a){return a.dispose&&a.dispose()})},e.prototype.dispose=function(){c.prototype.dispose.call(this),this._disposeCategories()},e}(c.Disposable);d.Tools=e}(g=d.Internal||(d.Internal={}));var h;!function(a){a.LoadChildItemsForCollapsedNodes=!0}(h=d.TreeList||(d.TreeList={})),function(e){e.treeListEditAction={templateName:"dx-treelist-edit-action",imageClassName:"",text:"Edit",clickAction:$.noop,displayText:function(){return a.Analytics.Utils.getLocalization("Edit","AnalyticsCoreStringId.Group_Edit")}};var f=function(){function a(a,b,d){this._availableItemsCount=a,this.padding=b,this.pageSize=d,this.templateName="dx-treelist-item-ellipsis",this.collapsed=function(){return!0},this.visibleItems=function(){return[]},this.text=function(){return c.getLocalization("Show more...","AnalyticsCoreStringId.QueryBuilder_Tables_ShowMore")}}return a.prototype.renderNext=function(){this._availableItemsCount(this._availableItemsCount()+this.pageSize)},a}();e.TreeListEllipsisButton=f;var g=function(a){function g(c,d,e,f,g){void 0===d&&(d=[]),void 0===e&&(e=$.noop),void 0===f&&(f=!1),void 0===g&&(g=new b.Internal.CodeResolver);var i=a.call(this)||this;return i.resolver=g,i._rtl=!1,i._data=ko.observable(null),i._actions=ko.observable([]),i._pageSize=-1,i._actionsSubscription=null,i._iconName=function(){return(ko.unwrap(i.data&&i.data.icon||i.data&&i.data.specifics)||"default").toLowerCase()},i.level=-1,i.items=ko.observableArray(),i.collapsed=ko.observable(!0),i.isSelected=ko.observable(!1),i.isHovered=ko.observable(!1),i.isMultiSelected=ko.observable(!1),i._pageSize=c.pageSize||-1,i._path=d,i._rtl=f,i._treeListController=c.treeListController,i._templateName=c.templateName,i._onItemsVisibilityChanged=e,i.dragDropHandler=c.treeListController.dragDropHandler,i.getItems=function(){return i._loadItems(c)},i._initPaginate(),i.toggleSelected=function(a,b){(b.shiftKey||b.ctrlKey)&&i.selectedItems().length>0&&i._treeListController.canMultiSelect&&i._treeListController.canMultiSelect(i)?(c.selectedPath(""),i._treeListController.multiSelect(i,b.shiftKey,b.ctrlKey)):i._treeListController.canSelect(i)&&(c.treeListController.clickHandler&&c.treeListController.clickHandler(i),c.selectedPath(i.path))},c.treeListController.dblClickHandler&&(i.dblClickHandler=function(a){c.treeListController.dblClickHandler&&c.treeListController.dblClickHandler(a)}),i.toggleCollapsed=function(){i.hasItems&&(i.collapsed(!i.collapsed.peek()),i.collapsed.peek()||0!==i.items().length?h.LoadChildItemsForCollapsedNodes&&(i.items().forEach(function(a){a._treeListController.hasItems(a.data)&&a._loadItems(c)}),e()):i._loadItems(c,h.LoadChildItemsForCollapsedNodes).always(function(){e()}))},i.nodeImageClass=i._getNodeImageClassName(),i}return __extends(g,a),g.prototype._equal=function(a,b){var c=["innerActions","noDragable","dragData"];return b===a||Object.keys(b).filter(function(a){return-1===c.indexOf(a)}).every(function(c){return b[c]===a[c]})},g.prototype._getImageClassName=function(a){var b=this;return ko.computed(function(){return"dx-image-fieldlist-"+b._iconName()+(a?"":" dx-treelist-image-empty")})},g.prototype._getImageTemplateName=function(){var a=this;return ko.computed(function(){var b="dxrd-svg-fieldlist-"+a._iconName();return d.Internal.SvgTemplatesEngine.getExistingTemplate(b)})},g.prototype._getNodeImageClassName=function(){var a=this,b=ko.observable("dx-collapsing-image");return ko.computed({read:function(){return a.hasItems?a.collapsed()?"dx-collapsing-image":b():"dx-image-leaf-node"},write:function(a){b(a)}})},g.prototype._createItemsObj=function(a){for(var b={},c=0;c<a.length;c++)b[a[c].name]={item:a[c],index:c};return b},g.prototype._loadItems=function(a,b){var d=this;void 0===b&&(b=!1);var e=$.Deferred();this._loader&&this._loader.dispose(),this._disposables.reverse().forEach(function(a){return a.dispose&&a.dispose()}),this._disposables.splice(0);var f=ko.observable(),h=f.subscribe(function(c){c&&c.done(function(c){if(d.isDisposing)return void e.reject();for(var f=c,h=d.items.peek(),i=d._createItemsObj(f),j=!1,k=0,l=[].concat.apply([],h),m=0;m<l.length;m++)i[l[m].data.name]||(l[m].dispose(),h.splice(m-k,1),k++,j=!0);var n=d._createItemsObj(h),o=!1,p=!d._treeListController.showIconsForChildItems||d._treeListController.showIconsForChildItems(d);if(f.forEach(function(b,c){var e=n[b.name];if(e)d._equal(b,e.item.data)||(e.item.data=b),o||(o=e.index!==c);else{j=!0;var f=new g(a,d.pathParts,d._onItemsVisibilityChanged,d._rtl,d.resolver);f.data=b,f.level=d.level+1,f.parent=d,f.padding=d._applyPadding(d._rtl?"right":"left",20*f.level+12),f.imageClassName=f._getImageClassName(p),f.imageTemplateName=f._getImageTemplateName(),h.splice(c,0,f),n[b.name]={item:f,index:c}}}),o){var q=h.reduce(function(a,b,c){var d=Math.abs(c-(i[b.data.name]?i[b.data.name].index:-1));return!a||a.max<d?{max:d,index:c}:a},null).index,r=h[q];h.splice(q,1),h.splice(i[r.data.name]?i[r.data.name].index:-1,0,r),j=!0}j&&(d.items.valueHasMutated(),d._onItemsChanged()),d.collapsed()&&!b||d.items().forEach(function(b){b._treeListController.hasItems(b.data)&&b._loadItems(a)}),d.nodeImageClass(d.items.peek().some(function(a){return a.visible})?"dx-collapsing-image dx-image-expanded":"dx-image-leaf-node"),e.resolve(d.items.peek());var s=a.selectedPath.peek();if(s){var t=d.items.peek().filter(function(a){return 0===s.indexOf(a.path)})[0];t&&d._selectItem(t.name+s.substring(t.path.length))}})});return this._disposables.push({dispose:function(){h.dispose(),f(null)}}),this._disposables.push(this._loader=ko.computed(function(){f(a.itemsProvider.getItems(new c.PathRequest(d.path,d.pathParts)))})),e.promise()},g.prototype._onItemsChanged=function(){},g.prototype._selectItem=function(a){var b=this;if(this.hasItems){var c=function(){b._find(a),b.collapsed.peek()&&b.toggleCollapsed()};0===this.items.peek().length?this.getItems().done(function(a){c()}):c()}},g.prototype._find=function(a){var b=a&&this.items.peek().filter(function(b){return a===b.name||0===a.indexOf(b.name)&&"."===a[b.name.length]})[0];b&&(a.length>b.name.length?b._selectItem(a.substr(b.name.length+1)):this._treeListController.select(b))},g.prototype._applyPadding=function(a,b){var c={};return c["padding-"+a]=b,c},g.prototype._initPaginate=function(){var a=this;-1!==this._pageSize&&(this.maxItemsCount=ko.observable(this._pageSize),this.visibleItems=ko.computed(function(){if(0===a.items().length)return[];var b=a.items().filter(function(a){return a.visible});return b.length>a.maxItemsCount()&&(b=b.slice(0,a.maxItemsCount()),b.push(new f(a.maxItemsCount,b[0].padding,a._pageSize))),b}))},Object.defineProperty(g.prototype,"hasItems",{get:function(){if(!this.data)return!0;var a=this._treeListController.hasItems(this.data);return h.LoadChildItemsForCollapsedNodes?a&&this.items().some(function(a){return a.visible}):a},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"data",{get:function(){return this._data()},set:function(a){var b=this;this._data(a),this._actionsSubscription&&this._actionsSubscription.dispose(),this._actionsSubscription=ko.computed(function(){b._actions(b._treeListController&&b._treeListController.getActions?b._treeListController.getActions(b):[])})},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"name",{get:function(){return ko.unwrap(this.data&&this.data.name)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"path",{get:function(){return this.pathParts.join(".")},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"pathParts",{get:function(){return this.name?(ko.unwrap(this._path)||[]).concat([this.name]):ko.unwrap(this._path)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"text",{get:function(){return this.data&&this.data.displayName},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"templateName",{get:function(){return this._templateName||this.data&&this.data.templateName||"dx-treelist-item"},enumerable:!0,configurable:!0}),g.prototype.actionsTemplate=function(){return this.data&&ko.unwrap(this.data.actionsTemplate)||"dx-treelist-item-actions-with-edit"},g.prototype.treeListEditAction=function(){return e.treeListEditAction},Object.defineProperty(g.prototype,"hasContent",{get:function(){return this.data&&this.data.contenttemplate},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"actions",{get:function(){return this._actions()},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"isDraggable",{get:function(){return this.data&&this.data.dragData?!this.data.dragData.noDragable:!!this._treeListController.isDraggable&&this._treeListController.isDraggable(this)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"treeListController",{get:function(){return this._treeListController},enumerable:!0,configurable:!0}),g.prototype.dispose=function(){a.prototype.dispose.call(this),this._actions([]),this.visibleItems&&this.visibleItems.dispose(),this._actionsSubscription&&this._actionsSubscription.dispose(),this.disposeObservableArray(this.items),this.resetObservableArray(this.items),this.parent=null},Object.defineProperty(g.prototype,"visible",{get:function(){return!this._treeListController.itemsFilter||this.data&&this._treeListController.itemsFilter(this.data,this.path)},enumerable:!0,configurable:!0}),g.prototype.mouseenter=function(){this.isHovered(!0)},g.prototype.mouseleave=function(){this.isHovered(!1)},g.prototype.selectedItems=function(){return this._treeListController.selectedItems&&this._treeListController.selectedItems()||[]},g}(c.Disposable);e.TreeListItemViewModel=g;var i=function(a){function b(b,c,d,e){void 0===c&&(c=[]),void 0===d&&(d=$.noop),void 0===e&&(e=!1);var f=a.call(this,b,c,d,e)||this;return f._options=b,f._selectedPathSubscription=null,f.resolver.done(function(){d()}),f._selectedPathSubscription=b.selectedPath.subscribe(function(a){f._selectItem(f.path?a.substr(f.path.length+1):a)}),f._selectItem(f.path?f.path+"."+b.selectedPath():b.selectedPath()),f}return __extends(b,a),b.prototype.dispose=function(){a.prototype.dispose.call(this),this._selectedPathSubscription&&(this._selectedPathSubscription.dispose(),this._selectedPathSubscription=null)},b.prototype._onItemsChanged=function(){this._options.expandRootItems&&this.items().forEach(function(a){a.collapsed(!1)})},b}(g);e.TreeListRootItemViewModel=i;var j=function(){function a(){this.selectedItem=null}return a.prototype.dispose=function(){this.selectedItem=null},a.prototype.itemsFilter=function(a){return!0},a.prototype.hasItems=function(a){return"none"!==a.specifics&&("List"===a.specifics||"ListSource"===a.specifics||!0===a.isList)},a.prototype.canSelect=function(a){return!a.hasItems},a.prototype.select=function(a){this.canSelect(a)&&(this.selectedItem&&this.selectedItem.isSelected(!1),this.selectedItem=a,a.isSelected(!0))},a}();e.TreeListController=j;var k=function(a){function b(b,c,d){var e=a.call(this)||this;return e.fieldName=b,e.putSelectionHandler=c,e.selectionHandler=d,e}return __extends(b,a),b.prototype.itemsFilter=function(a){return"none"!==a.specifics&&"ReportItems"!==a.name},b.prototype.select=function(b){this.selectionHandler?this.selectionHandler(b):a.prototype.select.call(this,b)},b.prototype.getActions=function(a){var b=this;return[{clickAction:function(c){return b.putSelectionHandler(a,$(c))}}]},b.prototype.canSelect=function(a){return!0},b}(j);e.ExpressionEditorTreeListController=k;var l=function(a){function b(b,c,d){var e=a.call(this)||this;return e.customFilter=b,e.putSelectionHandler=c,e.selectionHandler=d,e}return __extends(b,a),b.prototype.itemsFilter=function(a){return"none"!==a.specifics&&(!this.customFilter||this.customFilter(a))},b.prototype.select=function(a){this.selectionHandler(a)},b.prototype.getActions=function(a){var b=this;return[{clickAction:function(c){a&&"Parameters"!==a.text&&b.putSelectionHandler(a.path,$(c))}}]},b.prototype.canSelect=function(a){return!0},b}(j);e.ExpressionEditorParametersTreeListController=l}(g=d.Internal||(d.Internal={})),function(a){function c(a,c,d,e){return{displayName:b.Utils.getLocalization(c,d),content:{showDescription:e,isSelected:ko.observable(!1),data:{items:a,selectedItem:ko.observable(null)},name:"dx-expressioneditor-collection"},dispose:function(){}}}function d(a,b,c,d){if(!c||!a)return b;var e=ko.observable(b());c.toDisplayExpression(a(),b()).done(function(a){e(a)}).fail(function(){e(b())});var f=b.subscribe(function(b){c.toDisplayExpression(a(),b).done(function(a){e(a)}).fail(function(){e(b)})}),g=a.subscribe(function(a){c.toDisplayExpression(a,b()).done(function(a){e(a)}).fail(function(a){e(b())})}),h=ko.pureComputed({read:function(){return e()},write:function(d){e(d),c.toRealExpression(a(),d).done(function(a){b(a)}).fail(function(){b(d)})}});return d&&[h,f,g].forEach(function(a){return d.push(a)}),h}a.createExpressionEditorCollectionToolOptions=c,a.wrapExpressionValue=d}(g=d.Internal||(d.Internal={}));var i=function(c){function d(d,h,i,j,k){void 0===i&&(i=ko.observable(!1)),void 0===j&&(j=!1);var l=c.call(this)||this;if(l.options=d,l._displayNameProvider=k,l._updateTextAreaValue=function(a,b){var c=l._getTextArea(b),d=l.textAreaValue().toString(),e=c&&c.selectionStart||d.length,f=" "==d[e-1]?(a.val||a.text||a)+" ":" "+(a.val||a.text||a)+" ";if(l.textAreaValue([d.slice(0,e),f,d.slice(e)].join("")),c&&c.setSelectionRange){c.focus();var g=e+(-1!==f.indexOf("(")?f.indexOf("(")+1:f.length);c.setSelectionRange(g,g)}},l._updateAceValue=function(a,c){var d=l.editorContainer(),e=d.getCursorPosition(),f=e.row,g=e.column,h=(a.val||a.text||a)+" ";g&&" "!==d.getSession().getValue().split("\n")[f][g-1]&&(h=" "+h),d.insert(h),d.focus(),b.Internal.setCursorInFunctionParameter(a.paramCount,d,h)},l._updateValue=function(a,b){l.aceAvailable?l._updateAceValue(a,$(b)):l._updateTextAreaValue(a,$(b))},l.patchFieldName=function(a){return a},l._parametersPutSelectionHandler=function(a,b){var c="Parameters",d=a.substring(c.length+1),e="?"+l.patchFieldName(d);l._updateValue(e,b)},l._fieldsPutSelectionHandler=function(a,b){var c=l.koOptions.peek().path.peek(),d=a.substring(c.length+1),e="["+l.patchFieldName(d)+"]";l._displayNameProvider?l.displayExpressionConverter.toDisplayExpression(c,e).done(function(a){l._updateValue(a,b)}).fail(function(){l._updateValue(e,b)}):l._updateValue(e,b)},l.aceAvailable=g.aceAvailable,l.popupVisible=ko.observable(!1),l.title=function(){return a.Analytics.Utils.getLocalization("Expression Editor","AnalyticsCoreStringId.ExpressionEditor_ExpressionCaption")},l.value=ko.observable(""),l.textAreaValue=ko.observable(""),l.languageHelper={getLanguageMode:function(){return"ace/mode/criteria"},createCompleters:function(a,b,c){var d=ko.computed(function(){return c.koOptions()&&ko.unwrap(c.koOptions().path)||""}),e=ko.computed(function(){return c.koOptions()&&ko.unwrap(c.koOptions().functions)||[]}),f=new g.CodeCompletor({editor:a,bindingContext:b,fieldListProvider:c.fieldListProvider,path:d,functions:e,rootItems:c.options.rootItems,getRealExpression:function(a,b){return l.displayExpressionConverter&&l.displayExpressionConverter.toRealExpression(a,b)||$.Deferred().resolve(b).promise()}});return[d,e].forEach(function(a){return f._disposables.push(a)}),[f]}},l.aceOptions={showLineNumbers:!1,showPrintMargin:!1,enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,showFoldWidgets:!1,highlightActiveLine:!1},l.additionalOptions={onChange:function(a){var b=a.getValue();try{var c=e.CriteriaOperator.parse(b);l.koOptions().validate&&l.isValid(l.koOptions().validate(c)),a.clearAnnotations()}catch(b){var d=b.hash&&b.hash.line||0,f=b.message.split("\n"),g=f[1]+"\n"+f[2];a.setAnnotations([{row:d,column:0,text:g,type:"error"}])}}},l.callbacks={focus:$.noop},l.koOptions=ko.observable(null),l.editorContainer=ko.observable(),l.isValid=ko.observable(!0),l.buttonItems=[],l.rtl=!1,l.modelValueValid=ko.computed(function(){return!l.koOptions()||!l.koOptions().isValid||l.koOptions().isValid()}),l.getPopupContainer=b.Internal.getParentContainer,l.koOptions(d),l.patchFieldName=function(a){return l.koOptions().patchFieldName&&l.koOptions().patchFieldName(a)||a},l.theme=l.koOptions()&&l.koOptions().theme,l._disposables.push(l.value=ko.computed({read:function(){var a=l.koOptions()&&ko.unwrap(l.koOptions().value);return a&&a.toString()||""},write:function(a){return l.koOptions()&&l.koOptions().value(a)}})),k&&d.path){l.displayExpressionConverter=new b.Internal.DisplayExpressionConverter(k);var m=ko.pureComputed(function(){return l.koOptions()&&l.koOptions().path&&l.koOptions().path()});l.displayValue=g.wrapExpressionValue(m,l.value,l.displayExpressionConverter,l._disposables),l._disposables.push(m)}else l.displayValue=l.value;l.rtl=j;var n=function(a,b){try{return e.CriteriaOperator.parse(a),l.isValid(!0),!0}catch(f){var c=e.CriteriaOperator.getNotValidRange(a,f.message),d=l._getTextArea(b&&b.element);d&&d.setSelectionRange(c.start,c.end),l.isValid(!1)}};l._disposables.push(l.popupVisible.subscribe(function(a){if(a)if(l.tools.resetCategoriesSelection&&l.tools.resetCategoriesSelection(),l.textAreaValue(l.displayValue()),l.aceAvailable){var b=l.editorContainer(),c=b&&b.getSession();c&&c.setValue(l.textAreaValue())}else n(l.value())}));var o=ko.computed(function(){return l.koOptions()&&l.koOptions().fieldName&&l.koOptions().fieldName()});l._disposables.push(l.fieldListProvider=f(h,o)),l.disabled=i;l.save=function(a){var b=l.textAreaValue();if(l.aceAvailable){var c=l.editorContainer(),d=c&&c.getSession();b=d&&d.getValue()}n(b,a)&&(l.displayValue(b),l.popupVisible(!1))};var p=null,q=function(a){ko.unwrap(a.data.type);p&&p.isSelected(!1),p=a,a.isSelected(!0)},r=ko.pureComputed(function(){return l.koOptions()&&l.koOptions().path&&l.koOptions().path()&&l._createToolsOptions(l.koOptions().path(),l.fieldListProvider(),new g.ExpressionEditorTreeListController(o,function(a,b){l._fieldsPutSelectionHandler(a.path,b)},q))});l.parametersTreeListController=new g.ExpressionEditorParametersTreeListController(function(a){return"parameters"===a.specifics||!b.Internal.isList(a)},l._parametersPutSelectionHandler,q);var s=ko.pureComputed(function(){return l._createToolsOptions("",l.fieldListProvider(),l.parametersTreeListController)});return l._disposables.push(l.tools=new g.Tools(l._updateValue,s,l.koOptions,r)),l._createMainPopupButtons(),[o,r,s].forEach(function(a){return l._disposables.push(a)}),l}return __extends(d,c),d.prototype.dispose=function(){c.prototype.dispose.call(this),this.koOptions(null),this.options=null},d.prototype._createMainPopupButtons=function(){var b=this;this.buttonItems=[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:a.Analytics.Utils.getLocalization("Save",a.Analytics.Internal.StringId.DataAccessBtnOK),onClick:function(a){b.save(a)}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:a.Analytics.Utils.getLocalization("Cancel",a.Analytics.Internal.StringId.DataAccessBtnCancel),onClick:function(){b.popupVisible(!1)}}}]},d.prototype._getTextArea=function(a){return a&&a.parents(".dx-expressioneditor").find(":input")[0]},d.prototype._createToolsOptions=function(a,b,c){return{itemsProvider:b,selectedPath:ko.observable(""),path:a,templateName:"dx-ee-treelist-item",treeListController:c,rtl:this.rtl}},d.prototype.onShown=function(){this.callbacks.focus()},d}(c.Disposable);d.ExpressionEditor=i,ko.bindingHandlers.dxExpressionEditor={init:function(c,d,e,f,g){var h=$(c);h.children().remove(),$(c).addClass("dx-popup-general");var j=a.Analytics.Widgets.Internal.getTemplate("dx-expressioneditor"),h=h.append(j),k=d(),l=null,m=new i(ko.unwrap(k.options),k.fieldListProvider,f.disabled,$(c).closest(".dx-rtl").length>0,k.displayNameProvider);ko.isSubscribable(k.options)&&(l=k.options.subscribe(function(a){a&&m.koOptions(a)}));var n=h.children()[0];ko.applyBindings(m,n);var o=function(){m.dispose(),m=null,l&&l.dispose()};return b.Internal.addDisposeCallback(c,o),{controlsDescendantBindings:!0}}};var j;!function(b){var d=function(c){function d(a,b,d,e){var f=c.call(this)||this;return f.canRemove=!0,f.operatorType=ko.observable(null),f.templateName="dx-filtereditor-common",f.isSelected=ko.observable(!1),f.operatorClass="criteria-operator-item-operator dxd-filter-editor-operator-back-color dxd-filter-editor-text-color",f.popupService=b.popupService||{visible:ko.observable(!1)},f.model=a,f.helper=b.helper,f.fieldListProvider=d,f.path=e,f.parent=b,f.operatorType(a.operatorType),f._disposables.push(f.operatorType.subscribe(function(a){f.model.assignType(a)})),f}return __extends(d,c),d.prototype._createLeftPartProperty=function(a){var c=this;if(a instanceof e.OperandProperty)var d=this.createChildSurface(a);else{var d=this.createChildSurface(a),f=Object.keys(this.helper.filterEditorOperators).reduce(function(a,b){return"_common"!==b&&"integer"===a&&c.helper.filterEditorOperators[b].filter(function(a){return c.operatorType()===a.value&&c.reverse===a.reverse&&c.model.enumType===a.type}).length>0&&(a=b),a},"integer");d.specifics=d.specifics||ko.observable(f)}return d.canChange=!1,d.canRemove=!1,d instanceof b.AggregateOperandSurface?(this.specifics=ko.computed(function(){return d.aggregatedExpression()&&d.aggregatedExpression().specifics()||"integer"}),this.dataType=ko.computed(function(){return d.aggregatedExpression()&&d.aggregatedExpression().dataType()||"integer"}),this._disposables.push(this.specifics),this._disposables.push(this.dataType)):(this.specifics=d.specifics,this.dataType=d.dataType),d},d.prototype.createChildSurface=function(a,b,c){return new this.helper.mapper[a.type](a,this,this.fieldListProvider,b||this.path)},d.prototype.getDisplayType=function(){var b=this,c=this.items.filter(function(a){return b.operatorType()===a.value&&b.reverse===a.reverse&&b.model.enumType===a.type})[0];return c&&c.name&&(c.displayText||a.Analytics.Utils.getLocalization(c.name,c.localizationId))||this.operatorType&&this.operatorType()||""},Object.defineProperty(d.prototype,"items",{get:function(){return this.helper.filterEditorOperators[this.specifics()]||this.helper.filterEditorOperators._common},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"displayType",{get:function(){return this.getDisplayType()},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"leftPart",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"rightPart",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"css",{get:function(){return this.operatorClass+(this.isSelected()?" selected":"")},enumerable:!0,configurable:!0}),d.prototype.change=function(a,b){!b&&a&&this.model.enumType===a.type&&this.reverse===a.reverse&&a.type!==e.FunctionOperatorType?this.operatorType(a.value):this.parent.change(a,this),this.helper.onChange()},d.prototype.remove=function(a){this.parent.remove(this),this.helper.onChange()},d}(c.Disposable);b.CriteriaOperatorSurface=d}(j=d.Filtering||(d.Filtering={})),function(a){var b=function(){function a(a,b,c,d,e){var f=this;this.showPopup=function(a,b){f._popupService.subscription&&f._popupService.subscription.dispose(),f._popupService.title(""),f.target.isSelected(!0),f._updateActions(f.target),f._popupService.target(b),setTimeout(function(){f._popupService.visible(!0)},10)},this.popupContentTemplate="dx-filtereditor-popup-common",this.target=a,this._action=c,this.propertyName=d,this._popupService=b,this.popupContentTemplate=e||this.popupContentTemplate}return a.prototype._updateActions=function(a){var b=this;this._popupService.data(null),a&&(this._popupService.subscription=this._popupService.visible.subscribe(function(a){b.target.isSelected(a)}),this._popupService.viewModel=a,this._popupService.data({data:ko.unwrap(a[this.propertyName]),template:this.popupContentTemplate,click:function(c){a[b._action](c),b._popupService.visible(!1)}}))},a}();a.FilterEditorAddOn=b;var d;!function(a){a[a.Left=0]="Left",a[a.Right=1]="Right",a[a.Unary=2]="Unary"}(d=a.CriteriaSurfaceValidatorState||(a.CriteriaSurfaceValidatorState={}));var f=function(){function a(){}return a.prototype.customValidate=function(a,b){return!1},a.prototype.checkLeftPart=function(a){return a instanceof e.OperandProperty||this.customValidate(a,d.Left)},a.prototype._checkRightPart=function(a){return a instanceof e.OperandProperty||a instanceof e.OperandParameter||a instanceof e.OperandValue||a instanceof e.ConstantValue||a instanceof e.UnaryOperator&&this._checkRightPart(a.operand)||this.customValidate(a,d.Right)},a.prototype.checkRightPart=function(a){if(Array.isArray(a)){for(var b=0;b<a.length;b++)if(!this._checkRightPart(a[b]))return!1;return!0}return this._checkRightPart(a)},a.prototype.aggregateIsValid=function(a){return this.checkLeftPart(a.leftPart)&&this.validateModel(a.condition)&&(!a.aggregatedExpression||(a.aggregatedExpression instanceof e.OperandProperty||this.validateModel(a.aggregatedExpression)))},a.prototype.commonOperandValid=function(a){return a.leftPart instanceof e.AggregateOperand?this.validateModel(a.leftPart):this.checkLeftPart(a.leftPart)&&this.checkRightPart(a.rightPart)},a.prototype.groupIsValid=function(a){for(var b=0;b<a.operands.length;b++)if(!this.validateModel(a.operands[b]))return!1;return!0},a.prototype.unaryIsValid=function(a){return a.operand instanceof e.OperandProperty||this.validateModel(a.operand)||this.customValidate(a.operand,d.Unary)},a.prototype.validateModel=function(a){return a instanceof e.AggregateOperand?this.aggregateIsValid(a):a instanceof e.GroupOperator?this.groupIsValid(a):a instanceof e.UnaryOperator?this.unaryIsValid(a):this.commonOperandValid(a)},a}();a.CriteriaSurfaceValidator=f;var g=function(){function b(a,b){void 0===a&&(a=e.Utils.operatorTokens),this.custom=b,this.operatorTokens=a}return b.prototype.serializeGroupOperand=function(a,b){var c=this,d=a.operands.map(function(a){return a instanceof e.GroupOperator?"("+c.serialize(a)+")":c.serialize(a)}).filter(function(a){return""!==a&&"()"!==a}).join(" "+(this.operatorTokens[a.displayType]||a.displayType)+" ");return b&&d?"Not("+d+")":d},b.prototype.serializeAggregateOperand=function(a,b){var c=a.operatorType===e.Aggregate.Exists?"":"."+e.Aggregate[a.operatorType],d=a.condition?this.serialize(a.condition):"";return this.serialize(a.property)+"["+d+"]"+c+(a.operatorType!==e.Aggregate.Exists?"("+(a.aggregatedExpression&&this.serialize(a.aggregatedExpression)||"")+")":"")},b.prototype.serializeOperandProperty=function(b){var c=b.displayType;return c.length-a.trimBrackets(c).length==2&&(c="["+a.trimBrackets(c).replace(/\\/g,"\\").replace(/\]/g,"\\]")+"]"),c},b.prototype.serializeOperandValue=function(b){var d=b.value;return null===d||void 0===d||!$.isNumeric(d)&&"true"!==String(d).toLowerCase()&&"false"!==String(d).toLowerCase()?d&&b.value instanceof Date?"#"+c.serializeDate(d)+"#":"integer"===b.specifics||"integer"===b.specifics?d||"?":a.validateGuid(d)?"{"+d+"}":(-1!==d.indexOf("'")&&(d=d.replace("'","''")),d?"'"+d+"'":"?"):"string"===b.specifics?"'"+d+"'":"guid"===b.specifics&&a.validateGuid(d)?"{"+d+"}":d},b.prototype.serializeOperandParameter=function(a){return a.displayType},b.prototype.serializeBetweenOperator=function(a,b){var c=this.serialize(a.property)+" "+a.displayType+"("+this.serialize(a.begin)+", "+this.serialize(a.end)+")";return b?"Not "+c:c},b.prototype.serializeInOperator=function(a,b){var c=this,d=this.serialize(a.criteriaOperator)+" "+a.displayType+"("+a.operands.map(function(a){return c.serialize(a)}).join(", ")+")";return b?"Not "+d:d},b.prototype.serializeBinaryOperator=function(a,b){if(a.operatorType===e.BinaryOperatorType.Like){var c=b?" Not ":" ";return this.serialize(a.leftOperand)+c+(this.operatorTokens[a.displayType]||a.displayType)+" "+this.serialize(a.rightOperand)}return(b?"Not ":"")+this.serialize(a.leftOperand)+" "+(this.operatorTokens[a.displayType]||a.displayType)+" "+this.serialize(a.rightOperand)},b.prototype.serializeUnaryOperator=function(a,b){if(a.operatorType===e.UnaryOperatorType.IsNull){var c=b?" Not ":" ";return this.serialize(a.operand)+" Is"+c+"Null"}if(a.operatorType===e.UnaryOperatorType.Not)return this.serialize(a.operand,!0);var d=(this.operatorTokens[a.displayType]||a.displayType)+this.serialize(a.operand);return b?"Not "+d:d},b.prototype.serializeFunctionOperator=function(a,b){var c=this,d=(this.operatorTokens[a.displayType]||a.displayType)+"("+a.operands.map(function(a){return c.serialize(a)}).join(", ")+")";return b?"Not "+d:d},b.prototype.serialize=function(a,b){if(void 0===b&&(b=!1),a instanceof e.AggregateOperand)return this.serializeAggregateOperand(a,b);if(a instanceof e.BetweenOperator)return this.serializeBetweenOperator(a,b);if(a instanceof e.BinaryOperator)return this.serializeBinaryOperator(a,b);if(a instanceof e.ConstantValue)return this.serializeOperandValue(a);if(a instanceof e.FunctionOperator)return this.serializeFunctionOperator(a,b);if(a instanceof e.GroupOperator)return this.serializeGroupOperand(a,b);if(a instanceof e.InOperator)return this.serializeInOperator(a,b);if(a instanceof e.OperandParameter)return this.serializeOperandParameter(a);if(a instanceof e.OperandProperty)return this.serializeOperandProperty(a);if(a instanceof e.OperandValue)return this.serializeOperandValue(a);if(a instanceof e.UnaryOperator)return this.serializeUnaryOperator(a,b);if(this.custom)return this.custom(a,b);throw Error("Undefined type criteria operator")},b.prototype.deserialize=function(a){return this.deserializeOperand(e.CriteriaOperator.parse(a))},b.prototype.deserializeOperand=function(a){if(a instanceof e.GroupOperator)return a;if(a instanceof e.UnaryOperator&&a.operatorType===e.UnaryOperatorType.Not){var b=a.operand;return b instanceof e.GroupOperator?a:new e.UnaryOperator(e.UnaryOperatorType.Not,new e.GroupOperator(e.GroupOperatorType.And,b?[b]:[]))}return new e.GroupOperator(e.GroupOperatorType.And,a?[a]:[])},b}();a.FilterEditorSerializer=g;var h=function(a){function b(b){var c=a.call(this)||this;return c.selectedItem=b,c}return __extends(b,a),b.prototype.itemsFilter=function(a){return!0},b.prototype.hasItems=function(a){return"none"!==a.specifics&&"List"!==a.specifics&&!0===a.isList},b.prototype.canSelect=function(a){return!a.data.isList||!0===a.data.isList&&"List"===a.data.specifics},b.prototype.select=function(a){this.canSelect(a)&&(this.selectedItem(a.data),a.isSelected(!0))},b}(a.TreeListController);a.FilterEditorTreeListController=h}(g=d.Internal||(d.Internal={})),function(d){var f=function(a){function b(b,c,d,f){var g=a.call(this,b,c,d,f)||this;g.contentTemplateName="dx-filtereditor-aggregate",g.property=ko.observable(null),g.aggregatedExpression=ko.observable(null),g.condition=ko.observable(null),g.property(g._createLeftPartProperty(b.property));var h=ko.computed(function(){return g.path()+"."+g.property().propertyName()});g._disposables.push(h),b.aggregatedExpression&&(g.aggregatedExpression(g.createChildSurface(b.aggregatedExpression,h)),g.templateName="dx-filtereditor-aggregate-common"),b.operatorType===e.Aggregate.Count&&(g.templateName="dx-filtereditor-aggregate-common");var i=g.createChildSurface(b.condition,h);return i.canRemove=!1,i instanceof q&&(i.operand().canRemove=!1),g.condition(i),g.change=function(b,c){if(c){var d=g.model.change(b,c.model),f=g.createChildSurface(d,h);f.canRemove=!1,f instanceof q&&(f.operand().canRemove=!1),g.condition(f)}else g.operatorType()===e.Aggregate.Exists||g.operatorType()===e.Aggregate.Count?g.parent.change(b,g):!b||b.value!==e.Aggregate.Exists&&b.value!==e.Aggregate.Count?a.prototype.change.call(g,b,c):g.parent.change(b,g);g.helper.onChange()},g}return __extends(b,a),Object.defineProperty(b.prototype,"leftPart",{get:function(){return this.property&&this.property()},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"rightPart",{get:function(){return this.aggregatedExpression()},enumerable:!0,configurable:!0}),b.prototype.dispose=function(){this.property().dispose(),this.condition().dispose(),this.aggregatedExpression()&&this.aggregatedExpression().dispose(),a.prototype.dispose.call(this)},b}(d.CriteriaOperatorSurface);d.AggregateOperandSurface=f;var h=function(a){function b(b,c,d,e){var f=a.call(this,b,c,d,e)||this;return f.property=ko.observable(null),f.end=ko.observable(null),f.begin=ko.observable(null),f.contentTemplateName="dx-filtereditor-between",f.property(f._createLeftPartProperty(b.property)),f.begin(f.createChildSurface(b.begin)),f.end(f.createChildSurface(b.end)),f}return __extends(b,a),Object.defineProperty(b.prototype,"leftPart",{get:function(){return this.property&&this.property()},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"rightPart",{get:function(){return[this.begin(),this.end()]},enumerable:!0,configurable:!0}),b.prototype.dispose=function(){this.property().dispose(),this.begin().dispose(),this.end().dispose(),a.prototype.dispose.call(this)},b}(d.CriteriaOperatorSurface);d.BetweenOperandSurface=h;var i=function(a){function b(b,c,d,e){var f=a.call(this,b,c,d,e)||this;return f.contentTemplateName="dx-filtereditor-binary",f.leftOperand=ko.observable(null),f.rightOperand=ko.observable(null),f.leftOperand(f._createLeftPartProperty(b.leftOperand)),f.rightOperand(f.createChildSurface(b.rightOperand)),f}return __extends(b,a),Object.defineProperty(b.prototype,"leftPart",{get:function(){return this.leftOperand()},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"rightPart",{get:function(){return this.rightOperand()},enumerable:!0,configurable:!0}),b.prototype.dispose=function(){this.leftOperand().dispose(),this.rightOperand().dispose(),a.prototype.dispose.call(this)},b}(d.CriteriaOperatorSurface);d.BinaryOperandSurface=i;var j=function(a){function b(b,c,d,e){var f=a.call(this,b,c,d,e)||this;return f.canChange=!0,f.canRemove=!1,f.changeValueType=function(a){var b=f.getRealParent(f.parent),c=f.getRealProperty(f),d=f.getPropertyName(b,c),e=b.model.changeValueType(a.instance,d);null!==d.index?(b[d.name]()[d.index].dispose(),b[d.name].splice(d.index,1,b.createChildSurface(e))):(b[d.name]().dispose(),b[d.name](b.createChildSurface(e))),f.helper.onChange()},f}return __extends(b,a),b.prototype.getRealParent=function(a){return a instanceof q?this.getRealParent(a.parent):a},b.prototype.getRealProperty=function(a){return a.parent instanceof q?this.getRealProperty(a.parent):a},b.prototype.getPropertyName=function(a,b){var c=null,d=null;return $.each(a,function(a,e){if(Array.isArray(ko.unwrap(e))&&ko.isObservable(e)){var f=ko.unwrap(e).indexOf(b);if(f>-1)return c=f,void(d=a)}else if(b===ko.unwrap(e)&&ko.isObservable(e))return void(d=a)}),{index:c,name:d}},b.prototype.getConvertableParameters=function(a){return this.helper.parameters()?this.helper.parameters().filter(function(b){var c=b.specifics&&b.specifics.toLocaleLowerCase();return null!=c&&null!=a&&(c===a||("default"===a||("string"===a||"float"===a&&"integer"===c)))}):[]},Object.defineProperty(b.prototype,"changeTypeItems",{get:function(){var a=[{name:"Value",instance:e.OperandValue,localizationId:"AnalyticsCoreStringId.FilterEditor_Operand_Type_Value"}];return this.helper.canChoiceProperty&&a.push({name:"Property",instance:e.OperandProperty,localizationId:"AnalyticsCoreStringId.FilterEditor_Operand_Type_Property"}),this.helper.canChoiceParameters&&(this.getConvertableParameters(this.parent.specifics()).length>0||this.helper.canCreateParameters)&&a.push({name:"Parameter",instance:e.OperandParameter,localizationId:"AnalyticsCoreStringId.FilterEditor_Operand_Type_Parameter"}),a.forEach(g.initDisplayText),a},enumerable:!0,configurable:!0}),b}(d.CriteriaOperatorSurface);d.OperandSurfaceBase=j;var k=function(b){function c(a,c,d,e){var f=b.call(this,a,c,d,e)||this;if(f.canRemove=!0,f.contentTemplateName="dx-filtereditor-function",f.operands=ko.observableArray([]),0===a.operands.length)f.specifics=c instanceof q?c.parent.specifics:c.specifics,f.contentTemplateName="dx-filtereditor-function-lightweight",f.canRemove=!1;else{f.operands.push(f._createLeftPartProperty(a.operands[0]));for(var g=1;g<a.operands.length;g++)f.operands.push(f.createChildSurface(a.operands[g]))}return f}return __extends(c,b),Object.defineProperty(c.prototype,"leftPart",{get:function(){return this.operands&&this.operands()[0]},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"rightPart",{get:function(){return this.operands&&this.operands().filter(function(a,b){return 0!==b})},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"displayType",{get:function(){var b=this,c=this.items.filter(function(a){return b.operatorType()===a.value&&b.reverse===a.reverse&&b.model.enumType===a.type})[0];return c&&c.name?c.displayText||a.Analytics.Utils.getLocalization(c.name,c.localizationId):isNaN(parseInt(this.operatorType()))?this.operatorType()||"":e.FunctionOperatorType[this.operatorType()]},enumerable:!0,configurable:!0}),c.prototype.dispose=function(){this.operands().forEach(function(a){return a.dispose()}),b.prototype.dispose.call(this)},c}(j);d.FunctionOperandSurface=k;var l=function(a){function b(b,c,d,e){var f=a.call(this,b,c,d,e)||this;return f.templateName="dx-filtereditor-group",f.operatorClass="criteria-operator-item-group dxd-filter-editor-group-back-color dxd-filter-editor-text-color",f.operands=ko.observableArray([]),f.createItems=null,f.createItems=[{name:"Add group",value:!0,localizationId:"StringId.FilterMenuGroupAdd"},{name:"Add condition",value:!1,localizationId:"StringId.FilterMenuConditionAdd"}],f.createItems.forEach(g.initDisplayText),f.operands((b.operands||[]).map(function(a){return f.createChildSurface(a)})),f.specifics=ko.observable("group"),f}return __extends(b,a),b.prototype.change=function(b,c){if(c){var d=c.specifics()||"integer",e=this.helper.filterEditorOperators[d]||this.helper.filterEditorOperators._common;if(!b){var g=e.filter(function(a){return c.operatorType()===a.value&&c.reverse===a.reverse&&c.model.enumType===a.type})[0];b=g||e[0]}var h=this.model.change(b,c.model,c.leftPart instanceof f&&"list"!==c.leftPart.leftPart.specifics()),i=this.operands().indexOf(c),j=this.createChildSurface(h);this.operands()[i].dispose(),this.operands.splice(i,1,j)}else a.prototype.change.call(this,b,c);this.helper.onChange()},b.prototype.remove=function(a){a?(this.model.remove(a.model),this.operands.remove(a),a.dispose()):(this.parent.remove(this),this.dispose()),this.helper.onChange()},b.prototype.create=function(a){var b=this.model.create(a.value,new e.OperandProperty);this.operands.push(this.createChildSurface(b)),this.helper.onChange()},Object.defineProperty(b.prototype,"rightPart",{get:function(){return this.operands()},enumerable:!0,configurable:!0}),b.prototype.dispose=function(){this.operands().forEach(function(a){return a.dispose()}),a.prototype.dispose.call(this)},b}(d.CriteriaOperatorSurface);d.GroupOperandSurface=l;var m=function(a){function b(b,c,d,f){var g=a.call(this,b,c,d,f)||this;return g.contentTemplateName="dx-filtereditor-in",g.operands=ko.observableArray([]),g.criteriaOperator=ko.observable(null),g.criteriaOperator(g._createLeftPartProperty(b.criteriaOperator)),g.operands((b.operands||[]).map(function(a){return g.createChildSurface(a)})),g.addValue=function(){var a=new e.OperandValue(null);g.model.operands.push(a),g.operands.push(g.createChildSurface(a))},g}return __extends(b,a),Object.defineProperty(b.prototype,"leftPart",{get:function(){return this.criteriaOperator()},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"rightPart",{get:function(){return this.operands()},enumerable:!0,configurable:!0}),b.prototype.dispose=function(){this.criteriaOperator().dispose(),this.operands().forEach(function(a){return a.dispose()}),a.prototype.dispose.call(this)},b}(d.CriteriaOperatorSurface);d.InOperandSurface=m;var n=function(a){function b(b,c,d,e){var f=a.call(this,b,c,d,e)||this;return f.changeParameter=function(a){f.model.parameterName=a.name,f.parameterName(a.name),f.helper.onChange()},f.operatorClass="criteria-operator-item-parameter dxd-filter-editor-parameter-back-color dxd-filter-editor-text-color",f.parameterName=ko.observable(""),f.templateName="dx-filtereditor-parameter",f.specifics=c.specifics,f.parameterName(b.parameterName),f}return __extends(b,a),Object.defineProperty(b.prototype,"items",{get:function(){return this.getConvertableParameters(this.specifics())},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"displayType",{get:function(){return null},enumerable:!0,configurable:!0}),b}(j);d.OperandParameterSurface=n;var o=function(a){function b(b,c,d,e){var f=a.call(this,b,c,d,e)||this;f._displayName=ko.observable(""),f.propertyName=ko.observable(""),f.specifics=ko.observable("integer"),f.dataType=ko.observable(""),f.valueType=ko.observable(""),f.changeProperty=function(a){f.fieldsOptions().selected(a)},f.templateName="dx-filtereditor-property",f.operatorClass="criteria-operator-item-field dxd-filter-editor-field-back-color dxd-filter-editor-field-back-color dxd-filter-editor-text-color",f.propertyName(b.propertyName);var g=f.helper.generateTreelistOptions(d,e);return g.options&&g.subscription?(f.fieldsOptions=g.options,f._disposables.push(g.subscription)):f.fieldsOptions=g,f._disposables.push(f.fieldsOptions().selectedPath.subscribe(function(a){var b=f.fieldsOptions().selectedPath().substr(f.path&&f.path().length>0?f.path().length+1:0);f.propertyName(b),f.model.propertyName=b,f.popupService.visible(!1)})),f._disposables.push(f.fieldsOptions().selected.subscribe(function(a){f._updateDisplayName(e,f.propertyName(),a.displayName);var b=a.specifics.toLowerCase();0===b.indexOf("calc")&&(b=b.split("calc")[1]),f.specifics()===b&&f.dataType()===a.dataType||(f.specifics(b),f.dataType(a.dataType),f.parent.change()),f.helper.onChange()})),f.fieldsOptions().selectedPath(f.path&&ko.unwrap(f.path)?[ko.unwrap(f.path),f.propertyName()].join("."):f.propertyName()),f._updateSpecifics(),f._disposables.push(f.displayName=ko.computed(function(){return f._displayName()||f.propertyName()})),f}return __extends(b,a),b.prototype._updateDisplayName=function(a,b,c){var d=this;this.helper.getDisplayPropertyName?this.helper.getDisplayPropertyName(ko.unwrap(a),b).done(function(a){d._displayName(a)}):this._displayName(c)},b.prototype._updateSpecifics=function(){var a=this,b=this.propertyName().split("."),d=b.pop();ko.unwrap(this.fieldsOptions).itemsProvider&&ko.unwrap(this.fieldsOptions).itemsProvider.getItems(new c.PathRequest([this.path()].concat(b).join("."))).done(function(b){var c=b.filter(function(a){return"List"!==a.specifics&&!a.isList});!a.propertyName()&&c.length>0&&(a.model.propertyName=c[0].name,a.propertyName(c[0].name),d=c[0].name);var e=b.filter(function(a){return a.name===d})[0];if(e){var f=e.specifics.toLowerCase();0===f.indexOf("calc")&&(f=f.split("calc")[1]),a.specifics(f),a.dataType(e.dataType),a._updateDisplayName(a.path,a.propertyName(),e.displayName)}})},Object.defineProperty(b.prototype,"items",{get:function(){return this.fieldsOptions},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"displayType",{get:function(){return null},enumerable:!0,configurable:!0}),b}(j);d.OperandPropertySurface=o;var p=function(d){function f(f,g,h,i){var j=d.call(this,f,g,h,i)||this;j._value=ko.observable(null),j._updateDate=function(a){"date"===a?this._value()instanceof Date||this._value(new Date((new Date).setHours(0,0,0,0))):this._value("")},j.changeValue=function(){var a=j.getRealParent(j.parent),b=j.getRealProperty(j),c=j.getPropertyName(a,b),d=a.model.changeValue(j.model,j.reverse,c);null!==c.index?(a[c.name]()[c.index].dispose(),a[c.name].splice(c.index,1,a.createChildSurface(d))):(a[c.name]().dispose(),a[c.name](a.createChildSurface(d)))},j.dataType=ko.observable(""),j.values=ko.observable([]),j.isEditable=ko.observable(!1),j.templateName="dx-filtereditor-value",j.getNumberEditorOptions=function(){return a.Analytics.Widgets.Internal.ValueEditorHelper.getNumberEditorOptions(j.dataType(),j.specifics(),{value:j._value,onFocusOut:function(){j.isEditable(!1)}})};var k=null;return j._disposables.push(j.dataSource=ko.computed(function(){return k&&k.dispose(),k=new a.data.DataSource({store:j.values(),paginate:j.values().length>200,pageSize:100})})),g instanceof q?(j.specifics=g.parent.specifics,j.dataType=g.parent.dataType,g.model.operatorType===e.UnaryOperatorType.Minus&&(j.reverse=!0)):(j.specifics=g.specifics,j.dataType=g.dataType),j._disposables.push(j.specifics.subscribe(function(a){f.specifics=a,j._updateDate(a)})),j._value(f.value),j._disposables.push(j._value.subscribe(function(a){j.model.value=a,j.helper.onChange()})),b.Internal.isNullOrEmptyString(j._value())&&j._updateDate(j.specifics()),j._disposables.push(j.value=ko.computed({read:function(){var b=j._value();if(b instanceof Date&&(b=a.Analytics.Internal.formatDate(b)),j.items.length>0){var c=j.items.filter(function(a){return String(a.value)===String(b)})[0];if(c)return c.display}return j.reverse&&(b="-"+b),null!==b&&void 0!==b&&""!==b?b:j.getDefaultValue()},write:function(a){a>0&&!j.reverse||a<0&&j.reverse?j._value(a):(a>0&&j.reverse||a<0&&!j.reverse)&&(j.reverse=!j.reverse,j._value(a<0?(""+a).substring(1):a),j.changeValue())}})),j._disposables.push(ko.computed(function(){var a=ko.unwrap(h);a&&a.getValues&&j.parent.leftPart instanceof o&&j.parent.leftPart.propertyName()&&a.getValues(new c.PathRequest(ko.unwrap(j.path)+"."+j.parent.leftPart.propertyName())).done(function(a){j.values(a)})})),f.specifics=j.specifics(),j}return __extends(f,d),Object.defineProperty(f.prototype,"items",{get:function(){return this.values()},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"displayType",{get:function(){return null},enumerable:!0,configurable:!0}),f.prototype.isDefaultDisplay=function(){return this.value()===this.getDefaultValue()},f.prototype.getDefaultValue=function(){return f._defaultValue?f._defaultValue:f._defaultValue=b.Utils.getLocalization("Enter a value","StringId.FilterEmptyEnter")},f}(j);d.OperandValueSurface=p;var q=function(a){function b(b,c,d,f){var g=a.call(this,b,c,d,f)||this;g.contentTemplateName="dx-filtereditor-unary",g.operand=ko.observable(null);var h=g.createChildSurface(b.operand);return b.operatorType===e.UnaryOperatorType.Not?(g.templateName="dx-filtereditor-not",h.reverse=!0,g.specifics=h.specifics):(h.dispose(),h=g._createLeftPartProperty(b.operand)),g.operand(h),g}return __extends(b,a),Object.defineProperty(b.prototype,"leftPart",{get:function(){var a=this.operand();return this.operand()&&this.operand().reverse&&this.operand().leftPart&&(a=this.operand().leftPart),a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"rightPart",{get:function(){return this.operand()&&this.operand().reverse?this.operand().rightPart:null},enumerable:!0,configurable:!0}),b.prototype.dispose=function(){this.operand().dispose(),a.prototype.dispose.call(this)},b}(d.CriteriaOperatorSurface);d.UnaryOperandSurface=q}(j=d.Filtering||(d.Filtering={})),function(b){function c(b){b.displayText=a.Analytics.Utils.getLocalization(b.name,b.localizationId)}b.initDisplayText=c}(g=d.Internal||(d.Internal={}));var k=function(){function b(a){this.rtl=!1,this.parameters=ko.observable([]),this.canSelectLists=!0,this.canCreateParameters=!1,this.canChoiceParameters=!0,this.canChoiceProperty=!0,this.criteriaTreeValidator=new g.CriteriaSurfaceValidator,this.filterEditorOperators={_common:[{name:"Equals",insertVal:"==",value:e.BinaryOperatorType.Equal,type:e.BinaryOperatorType,localizationId:"StringId.FilterClauseEquals"},{name:"Does not equal",hidden:!0,reverse:!0,value:e.BinaryOperatorType.Equal,type:e.BinaryOperatorType,localizationId:"StringId.FilterClauseDoesNotEqual"},{name:"Does not equal",insertVal:"!=",value:e.BinaryOperatorType.NotEqual,type:e.BinaryOperatorType,localizationId:"StringId.FilterClauseDoesNotEqual"},{name:"Equals",reverse:!0,hidden:!0,value:e.BinaryOperatorType.NotEqual,type:e.BinaryOperatorType,localizationId:"StringId.FilterClauseEquals"},{name:"Is greater than",insertVal:">",value:e.BinaryOperatorType.Greater,type:e.BinaryOperatorType,localizationId:"StringId.FilterClauseGreater"},{name:"Is less than or equal to",hidden:!0,reverse:!0,value:e.BinaryOperatorType.Greater,type:e.BinaryOperatorType,localizationId:"StringId.FilterClauseGreater"},{name:"Is greater than or equal to",insertVal:">=",value:e.BinaryOperatorType.GreaterOrEqual,type:e.BinaryOperatorType,localizationId:"StringId.FilterClauseGreaterOrEqual"},{name:"Is less than",hidden:!0,reverse:!0,value:e.BinaryOperatorType.GreaterOrEqual,type:e.BinaryOperatorType,localizationId:"StringId.FilterClauseLess"},{name:"Is less than",insertVal:"<",value:e.BinaryOperatorType.Less,type:e.BinaryOperatorType,localizationId:"StringId.FilterClauseLess"},{name:"Is greater than or equal to",reverse:!0,hidden:!0,value:e.BinaryOperatorType.Less,type:e.BinaryOperatorType,localizationId:"StringId.FilterClauseGreaterOrEqual"},{name:"Is less than or equal to",insertVal:"<=",value:e.BinaryOperatorType.LessOrEqual,type:e.BinaryOperatorType,localizationId:"StringId.FilterClauseLessOrEqual"},{name:"Is greater than",reverse:!0,hidden:!0,value:e.BinaryOperatorType.LessOrEqual,type:e.BinaryOperatorType,localizationId:"StringId.FilterClauseGreater"},{name:"Is between",value:"Between",insertVal:"Between(, )",paramCount:1,type:e.BetweenOperator,localizationId:"StringId.FilterClauseBetween"},{name:"Is not between",value:"Between",insertVal:"Between(, )",paramCount:1,type:e.BetweenOperator,reverse:!0,localizationId:"StringId.FilterClauseNotBetween"}],string:[],guid:[],integer:[],float:[],date:[],list:[],group:[]},this.onChange=function(){},this.onEditorFocusOut=function(a){},this.onSave=function(a){},this.onClosing=function(){},this.handlers={create:function(a,b){return{data:new g.FilterEditorAddOn(a,b,"create","createItems"),templateName:"dx-filtereditor-create"}},change:function(a,b){return{data:new g.FilterEditorAddOn(a,b,"change","items"),templateName:"dx-filtereditor-change"}},changeProperty:function(a,b){return{data:new g.FilterEditorAddOn(a,b,"changeProperty","items","dx-filtereditor-popup-treelist"),templateName:"dx-filtereditor-changeProperty"}},changeValueType:function(a,b){return{data:new g.FilterEditorAddOn(a,b,"changeValueType","changeTypeItems"),templateName:"dx-filtereditor-changeValueType"}},changeParameter:function(a,b){return{data:new g.FilterEditorAddOn(a,b,"changeParameter","items"),templateName:"dx-filtereditor-changeParameter"}}},this.mapper={Aggregate:j.AggregateOperandSurface,Property:j.OperandPropertySurface,Parameter:j.OperandParameterSurface,Value:j.OperandValueSurface,Group:j.GroupOperandSurface,Between:j.BetweenOperandSurface,Binary:j.BinaryOperandSurface,Function:j.FunctionOperandSurface,In:j.InOperandSurface,Unary:j.UnaryOperandSurface,Default:j.CriteriaOperatorSurface},this.serializer=a||new g.FilterEditorSerializer,this.filterEditorOperators.string=[].concat(this.filterEditorOperators._common,[{name:"Contains",insertVal:"Contains(, )",value:e.FunctionOperatorType.Contains,type:e.FunctionOperatorType,localizationId:"StringId.FilterClauseContains"},{name:"Does not contain",value:e.FunctionOperatorType.Contains,type:e.FunctionOperatorType,reverse:!0,localizationId:"StringId.FilterClauseDoesNotContain"},{name:"Begins with",insertVal:"StartsWith(, )",value:e.FunctionOperatorType.StartsWith,type:e.FunctionOperatorType,localizationId:"StringId.FilterClauseBeginsWith"},{name:"Ends with",insertVal:"StartsWith(, )",value:e.FunctionOperatorType.EndsWith,type:e.FunctionOperatorType,localizationId:"StringId.FilterClauseEndsWith"},{name:"Is like",insertVal:"Like",value:e.BinaryOperatorType.Like,type:e.BinaryOperatorType,localizationId:"StringId.FilterClauseLike"},{name:"Is not like",insertVal:"Not Like",value:e.BinaryOperatorType.Like,type:e.BinaryOperatorType,reverse:!0,localizationId:"StringId.FilterClauseNotLike"},{name:"Is any of",value:"In",insertVal:"In()",paramCount:1,type:e.InOperator,localizationId:"StringId.FilterClauseAnyOf"},{name:"Is none of",value:"In",type:e.InOperator,reverse:!0,localizationId:"StringId.FilterClauseNoneOf"},{name:"Is blank",insertVal:"IsNullOrEmpty()",value:e.FunctionOperatorType.IsNullOrEmpty,type:e.FunctionOperatorType,localizationId:"StringId.FilterClauseIsNullOrEmpty"},{name:"Is not blank",insertVal:"Not IsNullOrEmpty()",value:e.FunctionOperatorType.IsNullOrEmpty,type:e.FunctionOperatorType,reverse:!0,localizationId:"StringId.FilterClauseIsNotNullOrEmpty"}]),this.filterEditorOperators.guid=this.filterEditorOperators.string,this.filterEditorOperators.integer=[].concat(this.filterEditorOperators._common,[{name:"Is null",insertVal:"Is Null",value:e.UnaryOperatorType.IsNull,type:e.UnaryOperatorType,localizationId:"StringId.FilterClauseIsNull"},{name:"Is not null",insertVal:"Is Not Null",value:e.UnaryOperatorType.IsNull,type:e.UnaryOperatorType,reverse:!0,localizationId:"StringId.FilterClauseIsNotNull"},{name:"Is any of",value:"In",insertVal:"In()",paramCount:1,type:e.InOperator,localizationId:"StringId.FilterClauseAnyOf"},{name:"Is none of",value:"In",type:e.InOperator,reverse:!0,localizationId:"StringId.FilterClauseNoneOf"}]),this.filterEditorOperators.float=this.filterEditorOperators.integer,this.filterEditorOperators.date=[].concat(this.filterEditorOperators._common,[{name:"Is null",insertVal:"Is Null",value:e.UnaryOperatorType.IsNull,type:e.UnaryOperatorType,localizationId:"StringId.FilterClauseIsNull"},{name:"Is not null",insertVal:"Is Not Null",value:e.UnaryOperatorType.IsNull,type:e.UnaryOperatorType,reverse:!0,localizationId:"StringId.FilterClauseIsNotNull"},{name:"Is any of",value:"In",insertVal:"In()",type:e.InOperator,localizationId:"StringId.FilterClauseAnyOf"},{name:"Is none of",value:"In",type:e.InOperator,reverse:!0,localizationId:"StringId.FilterClauseNoneOf"},{name:"Is beyond this year",insertVal:"IsOutlookIntervalBeyondThisYear()",value:e.FunctionOperatorType.IsOutlookIntervalBeyondThisYear,type:e.FunctionOperatorType,localizationId:"StringId.FilterCriteriaToStringFunctionIsOutlookIntervalBeyondThisYear"},{name:"Is later this year",insertVal:"IsOutlookIntervalLaterThisYear()",value:e.FunctionOperatorType.IsOutlookIntervalLaterThisYear,type:e.FunctionOperatorType,localizationId:"StringId.FilterCriteriaToStringFunctionIsOutlookIntervalLaterThisYear"},{name:"Is later this month",insertVal:"IsOutlookIntervalLaterThisMonth()",value:e.FunctionOperatorType.IsOutlookIntervalLaterThisMonth,type:e.FunctionOperatorType,localizationId:"StringId.FilterCriteriaToStringFunctionIsOutlookIntervalLaterThisMonth"},{name:"Is next week",insertVal:"IsOutlookIntervalNextWeek()",value:e.FunctionOperatorType.IsOutlookIntervalNextWeek,type:e.FunctionOperatorType,localizationId:"StringId.FilterCriteriaToStringFunctionIsOutlookIntervalNextWeek"},{name:"Is later this week",insertVal:"IsOutlookIntervalLaterThisWeek()",value:e.FunctionOperatorType.IsOutlookIntervalLaterThisWeek,type:e.FunctionOperatorType,localizationId:"StringId.FilterCriteriaToStringFunctionIsOutlookIntervalLaterThisWeek"},{name:"Is tomorrow",insertVal:"IsOutlookIntervalTomorrow()",value:e.FunctionOperatorType.IsOutlookIntervalTomorrow,type:e.FunctionOperatorType,localizationId:"StringId.FilterCriteriaToStringFunctionIsOutlookIntervalTomorrow"},{name:"Is today",insertVal:"IsOutlookIntervalToday()",value:e.FunctionOperatorType.IsOutlookIntervalToday,type:e.FunctionOperatorType,localizationId:"StringId.FilterCriteriaToStringFunctionIsOutlookIntervalToday"},{name:"Is yesterday",insertVal:"IsOutlookIntervalYesterday()",value:e.FunctionOperatorType.IsOutlookIntervalYesterday,type:e.FunctionOperatorType,localizationId:"StringId.FilterCriteriaToStringFunctionIsOutlookIntervalYesterday"},{name:"Is earlier this week",insertVal:"IsOutlookIntervalEarlierThisWeek()",value:e.FunctionOperatorType.IsOutlookIntervalEarlierThisWeek,type:e.FunctionOperatorType,localizationId:"StringId.FilterCriteriaToStringFunctionIsOutlookIntervalEarlierThisWeek"},{name:"Is last week",insertVal:"IsOutlookIntervalLastWeek()",value:e.FunctionOperatorType.IsOutlookIntervalLastWeek,type:e.FunctionOperatorType,localizationId:"StringId.FilterCriteriaToStringFunctionIsOutlookIntervalLastWeek"},{name:"Is earlier this month",insertVal:"IsOutlookIntervalEarlierThisMonth()",value:e.FunctionOperatorType.IsOutlookIntervalEarlierThisMonth,type:e.FunctionOperatorType,localizationId:"StringId.FilterCriteriaToStringFunctionIsOutlookIntervalEarlierThisMonth"},{name:"Is earlier this year",insertVal:"IsOutlookIntervalEarlierThisYear()",value:e.FunctionOperatorType.IsOutlookIntervalEarlierThisYear,type:e.FunctionOperatorType,localizationId:"StringId.FilterCriteriaToStringFunctionIsOutlookIntervalEarlierThisYear"},{name:"Is prior this year",insertVal:"IsOutlookIntervalPriorThisYear()",value:e.FunctionOperatorType.IsOutlookIntervalPriorThisYear,type:e.FunctionOperatorType,localizationId:"StringId.FilterCriteriaToStringFunctionIsOutlookIntervalPriorThisYear"}]),this.filterEditorOperators.list=[{name:"Exists",value:e.Aggregate.Exists,insertVal:"Exists()",type:e.Aggregate,localizationId:"StringId.FilterAggregateExists"},{name:"Count",value:e.Aggregate.Count,insertVal:"Count()",type:e.Aggregate,localizationId:"StringId.FilterAggregateCount"},{name:"Max",value:e.Aggregate.Max,insertVal:"Max()",type:e.Aggregate,localizationId:"StringId.FilterAggregateMax"},{name:"Min",value:e.Aggregate.Min,insertVal:"Min()",type:e.Aggregate,localizationId:"StringId.FilterAggregateMin"},{name:"Sum",value:e.Aggregate.Sum,insertVal:"Sum()",type:e.Aggregate,localizationId:"StringId.FilterAggregateSum"},{name:"Avg",value:e.Aggregate.Avg,insertVal:"Avg()",type:e.Aggregate,localizationId:"StringId.FilterAggregateAvg"}],this.filterEditorOperators.group=[{name:"And",insertVal:"And",value:e.GroupOperatorType.And,type:e.GroupOperatorType,localizationId:"StringId.FilterGroupAnd"},{name:"Or",insertVal:"Or",value:e.GroupOperatorType.Or,type:e.GroupOperatorType,localizationId:"StringId.FilterGroupOr"},{name:"Not And",value:e.GroupOperatorType.And,reverse:!0,type:e.GroupOperatorType,localizationId:"StringId.FilterGroupNotAnd"},{name:"Not Or",value:e.GroupOperatorType.Or,reverse:!0,type:e.GroupOperatorType,localizationId:"StringId.FilterGroupNotOr"}],this._initDisplayText()}return b.prototype._initDisplayText=function(){var a=this;Object.keys(this.filterEditorOperators).forEach(function(b){a.filterEditorOperators[b].forEach(g.initDisplayText)})},b.prototype.registrateOperator=function(b,c,d,e,f,g){if(void 0===f&&(f=!1),this.filterEditorOperators[b]){if(!c[d]){var h=0,i=0;$.each(c,function(a,b){i=parseInt(a),!isNaN(i)&&h<i&&(h=i)}),h++,c[h]=d,c[d]=h}var j={name:e,value:c[d],type:c,reverse:f,displayText:a.Analytics.Utils.getLocalization(e,g)};this.filterEditorOperators[b].push(j)}},b.prototype.generateTreelistOptions=function(a,b){var c=this,d=ko.observable(null),e=ko.observable(null);return{subscription:ko.computed(function(){d({itemsProvider:ko.unwrap(a),selectedPath:ko.observable(""),selected:e,path:ko.unwrap(b),treeListController:new g.FilterEditorTreeListController(e),rtl:c.rtl})}),options:d}},b}();d.FilterEditorHelper=k,d.DefaultFilterEditorHelper=k,function(a){var b=function(b){function c(a){var c=b.call(this,a)||this,d=new k,f=[],g=[],h=[];return Object.keys(d.filterEditorOperators).forEach(function(a){d.filterEditorOperators[a].forEach(function(a){if(a.insertVal){var b=a.name,c=a.insertVal,d=a.paramCount;a.type===e.FunctionOperatorType&&0===f.filter(function(a){return a.name===b}).length?f.push({name:b,insertVal:c}):a.type===e.Aggregate&&0===g.filter(function(a){return a.name===b}).length?g.push({name:b,insertVal:c}):a.type!==e.Aggregate&&a.type!==e.FunctionOperatorType&&0===h.filter(function(a){return a.name===b}).length&&h.push({name:b,insertVal:c,paramCount:d})}})}),c.filterEditorAvailable={operators:h,aggregate:g,functions:f},c}return __extends(c,b),c.prototype.getFunctionsCompletions=function(){var b=[];return this.filterEditorAvailable.functions.forEach(function(c){b.push(a.createFunctionCompletion({text:c.name,paramCount:c.insertVal.split(",").length},c.insertVal,c.insertVal))}),b},c.prototype.getAggregateCompletions=function(){var b=[];return this.filterEditorAvailable.aggregate.forEach(function(c){b.push(a.createFunctionCompletion({text:c.name,paramCount:0},c.insertVal,c.insertVal))}),b},c.prototype.getOperatorCompletions=function(b){var c=[];return this.filterEditorAvailable.operators.forEach(function(d){c.push(d.insertVal.match(new RegExp("[(][^()]*[)]","g"))?a.createFunctionCompletion({text:d.name,paramCount:d.paramCount||d.insertVal.split(",").length},d.insertVal,d.insertVal):{caption:d.insertVal,snippet:b+d.insertVal,meta:"operator"})}),c},c}(a.CodeCompletor);a.FilterEditorCodeCompletor=b}(g=d.Internal||(d.Internal={}));var l=function(c){function d(d,e,f,h){void 0===f&&(f=!1);var i=c.call(this)||this;i.options=d,i._displayNameProvider=h,i._advancedMode=ko.observable(!1),i.textFocused=ko.observable(!1),i.aceAvailable=g.aceAvailable,i.languageHelper={getLanguageMode:function(){return"ace/mode/criteria"},createCompleters:function(a,b,c){var d=ko.computed(function(){return i.path&&i.path()}),e=new g.FilterEditorCodeCompletor({editor:a,bindingContext:b,fieldListProvider:c.fieldListProvider(),path:d,getRealExpression:function(a,b){return i.displayExpressionConverter&&i.displayExpressionConverter.toRealExpression(a,b)||$.Deferred().resolve(b).promise()}});return e._disposables.push(d),[e]}},i.aceOptions={showLineNumbers:!1,showPrintMargin:!1,enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,showGutter:!1},i.additionalOptions={onChange:function(a){return i.onValueChange(a.getValue())},changeTimeout:200,onFocus:function(a){return i.onFocus()},onBlur:function(a){return i.onBlur()}},i.editorContainer=ko.observable(),i.textVisible=ko.observable(!1),i.getPopupContainer=function(a){return b.Internal.getParentContainer(a,i.options().popupContainer)},i.timeout=null,i.animationTimeout=null,i.advancedMode=ko.computed({read:function(){return i._advancedMode()},write:function(a){i.timeout&&clearTimeout(i.timeout),i.animationTimeout&&clearTimeout(i.animationTimeout),a?(i.textVisible(!0),i.timeout=setTimeout(function(){i._advancedMode(!0),i.focusText()},1),i.animationTimeout=setTimeout(function(){i.editorContainer()&&i.editorContainer().resize&&i.editorContainer().resize()},210)):(i._advancedMode(!1),i.timeout=setTimeout(function(){i.textVisible(!1)},200))}}),i.invalidMessage=function(){return a.Analytics.Utils.getLocalization("Cannot create a tree for this expression","AnalyticsCoreStringId.FilterEditor_TreeCreationError")},i.advancedModeText=function(){return a.Analytics.Utils.getLocalization("Advanced Mode","AnalyticsCoreStringId.FilterEditor_AdvancedMode")},i.operandSurface=ko.observable(null),i.operand=null,i.popupVisible=ko.observable(!1),i.buttonItems=[],i.popupService=new b.Internal.PopupService,i.rtl=f,d()&&d().helper&&(d().helper.rtl=f),i._disposables.push(i.disabled=ko.computed(function(){return ko.unwrap(i.options()&&i.options().disabled())})),i.value=ko.observable(""),i.displayExpressionConverter=h&&new b.Internal.DisplayExpressionConverter(h),i.save=function(){if(i.helper.onSave(i.value()),i.operandSurface()&&i.isSurfaceValid()){var a=d().helper.serializer.serialize(i.operand,!1);i.options().value(a)}else i.options().value(i.value());i.popupVisible(!1)},i.displayValue=g.wrapExpressionValue(i.path,i.value,i.displayExpressionConverter,i._disposables);var j=ko.computed({read:function(){var a=i.options();return a&&a.value()},write:function(a){var b=i.options();b&&b.value(a)}});i.modelDisplayValue=g.wrapExpressionValue(i.path,j,i.displayExpressionConverter,i._disposables),i.fieldListProvider=e,i.modelValueIsValid=ko.computed(function(){return d()&&i._validateValue(d().value())}),i.isValid=ko.computed(function(){return i._validateValue(i.value())}),i.isSurfaceValid=ko.computed(function(){try{return i.options()&&i.isValid()&&i.options().helper.criteriaTreeValidator.validateModel(i.options().helper.serializer.deserialize(i.value()))}catch(a){return!1}}),i._disposables.push(j),i._disposables.push(i.modelValueIsValid),i._disposables.push(i.isValid),i._disposables.push(i.isSurfaceValid),i._disposables.push(i.popupVisible.subscribe(function(a){a?(i.value(i.options().value()),i.isSurfaceValid()?(i.operand=i._generateOperand(i.value()),i.operandSurface(i._generateSurface(i.operand))):(i.textVisible(!0),i._advancedMode(!0),i.editorContainer()&&i.focusText()),d().helper.onChange=function(){i.value(d().helper.serializer.serialize(i.operand,!1))}):(i.helper.onClosing(),i.value(null),i.operandSurface()&&i.operandSurface().dispose(),i.operandSurface(null),i.operand=null)})),i.createAddButton=function(a){return d().helper.handlers.create(a,i.popupService)},i.createChangeType=function(a){return d().helper.handlers.change(a,i.popupService)},i.createChangeProperty=function(a){return d().helper.handlers.changeProperty(a,i.popupService)},i.createChangeParameter=function(a){return d().helper.handlers.changeParameter(a,i.popupService)},i.createChangeValueType=function(a){return d().helper.handlers.changeValueType(a,i.popupService)};var k=ko.computed(function(){return!i.isValid()});return i._disposables.push(k),i._disposables.push(i.advancedMode),i._createMainPopupButtons(k),i}return __extends(d,c),d.prototype._createMainPopupButtons=function(b){var c=this;this.buttonItems=[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:a.Analytics.Utils.getLocalization("Save","StringId.OK"),disabled:b,onClick:function(){c.save()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:a.Analytics.Utils.getLocalization("Cancel","StringId.Cancel"),onClick:function(){c.popupVisible(!1)}}},{toolbar:"bottom",location:"before",widget:"dxCheckBox",options:{value:c.advancedMode,text:c.advancedModeText()}}]},d.prototype._generateOperand=function(a){return this.options().helper.serializer.deserialize(a)},d.prototype._generateSurface=function(a){var b=null;b=a instanceof e.UnaryOperator?this.options().helper.mapper.Unary:this.options().helper.mapper.Group;var c=new b(a,this,this.fieldListProvider,this.path);return c.canRemove=!1,c instanceof j.UnaryOperandSurface&&(c.operand().canRemove=!1),c},d.prototype._validateValue=function(a){try{return!(!this.options()||!this.options().helper)&&(this.options().helper.serializer.deserialize(a),!0)}catch(a){return!1}},d.prototype.change=function(a,b){this.operand=e.CriteriaOperator.create(a),this.operand.assignFrom(b.model);var a=null;a=this.operand instanceof e.UnaryOperator?this.options().helper.mapper.Unary:this.options().helper.mapper.Group;var b=new a(this.operand,this,this.fieldListProvider,this.path);b.canRemove=!1,b instanceof j.UnaryOperandSurface&&(b.operand().canRemove=!1),this.operandSurface(b)},Object.defineProperty(d.prototype,"helper",{get:function(){return this.options()&&this.options().helper},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"path",{get:function(){return this.options()&&this.options().path},enumerable:!0,configurable:!0}),d.prototype.dispose=function(){c.prototype.dispose.call(this),this.operandSurface()&&this.operandSurface().dispose()},d.prototype.onInput=function(a,b){var c=this;this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){c.onValueChange(a.component.option("text"))},200)},d.prototype.onFocus=function(){this.textFocused(!0)},d.prototype.onBlur=function(){this.textFocused(!1),this.helper.onEditorFocusOut(this.operand)},d.prototype.cacheElement=function(b){this.editorContainer(a.ui.dxTextArea.getInstance(b.get(0)))},d.prototype.updateCriteria=function(){this.isSurfaceValid()&&(this.operand=this._generateOperand(this.value()),this.operandSurface()&&this.operandSurface().dispose(),this.operandSurface(this._generateSurface(this.operand)))},d.prototype.onValueChange=function(a){var b=this;this.displayValue()!==a&&(this.displayValue(a),this.displayExpressionConverter?this.displayExpressionConverter.toRealExpression(this.path(),a).done(function(a){b.value(a),b.updateCriteria()}).fail(function(){b.value(a),b.updateCriteria()}):this.updateCriteria())},d.prototype.focusText=function(){var a=function(a){setTimeout(function(b){a.renderer&&a.renderer.updateText(),a.focus()},1)};if(this.editorContainer())a(this.editorContainer());else var b=this.editorContainer.subscribe(function(c){b.dispose(),a(c)})},d}(c.Disposable);d.FilterEditor=l,ko.bindingHandlers.dxFilterEditor={init:function(c,d){$(c).children().remove(),$(c).addClass("dx-popup-general");var e=a.Analytics.Widgets.Internal.getTemplate("dx-filtereditor"),f=$(c).append(e),g=d(),h=ko.observable(ko.unwrap(g.fieldListProvider)),i=[];i.push(ko.computed(function(){h(g.options()&&g.options().itemsProvider?ko.unwrap(g.options().itemsProvider):ko.unwrap(g.fieldListProvider))})),i.push(ko.computed(function(){g.getDisplayNameByPath&&g.options()&&g.options().helper&&!g.options().helper.getDisplayPropertyName&&(g.options().helper.getDisplayPropertyName=g.getDisplayNameByPath)}));var j=new l(g.options,h,$(c).closest(".dx-rtl").length>0,g.displayNameProvider);return ko.applyBindingsToDescendants(j,f.children()[0]),b.Internal.addDisposeCallback(f.children()[0],function(){i.forEach(function(a){return a.dispose()}),j.dispose()}),{controlsDescendantBindings:!0}}};var m=function(a){function c(c,d,e,f,g){void 0===f&&(f=!1);var h=a.call(this,d,e,f,g)||this;h.element=c,h._contentMargins=20,h._topOffset=30,h._defaultActiveTextContentHeightPerc=25,h._defaultActiveTreeContentHeightPerc=75,h._currentActiveTextContentHeightPerc=h._defaultActiveTextContentHeightPerc,h._currentActiveTreeContentHeightPerc=h._defaultActiveTreeContentHeightPerc,h.plainContentHeightPerc=ko.observable("100%"),h.textContentHeightPerc=ko.observable(null),h.treeContentHeightPerc=ko.observable(null);var i=$(c),j=function(){var a=i.height();h.plainContentHeightPerc(100*(1-h._topOffset/a)+"%");var b=h._contentMargins/(a-h._topOffset)*100/2;h._currentActiveTextContentHeightPerc=h._defaultActiveTextContentHeightPerc-b,h._currentActiveTreeContentHeightPerc=h._defaultActiveTreeContentHeightPerc-b,h.advancedMode()&&(h.treeContentHeightPerc(h._currentActiveTreeContentHeightPerc),h.textContentHeightPerc(h._currentActiveTextContentHeightPerc))};return j(),h._disposables.push(h.advancedMode.subscribe(function(a){a?(h.treeContentHeightPerc(h._currentActiveTreeContentHeightPerc+"%"),h.textContentHeightPerc(h._currentActiveTextContentHeightPerc+"%")):(h.treeContentHeightPerc(null),h.textContentHeightPerc(null))})),window.addEventListener("resize",j),b.Internal.addDisposeCallback(c,function(){window.removeEventListener("resize",j),h.dispose()}),h}return __extends(c,a),c}(l);d.FilterEditorPlain=m,ko.components.register("dx-filtereditor-plain",{viewModel:{createViewModel:function(a,b){var c=new m(b.element,a.options,ko.observable(a.fieldListProvider),void 0,a.displayNameProvider);return c.popupVisible(!0),a.options().value.subscribe(function(){c.popupVisible(!1),c.popupVisible(!0)}),c}},template:g.getTemplate("dx-filtereditor-plain")}),ko.components.register("dx-filtereditor-advanced",{viewModel:{createViewModel:function(a,b){var c=new l(a.options,ko.observable(a.fieldListProvider),void 0,a.displayNameProvider);return c.advancedMode(!0),c.popupVisible(!0),a.options().value.subscribe(function(){c.popupVisible(!1),c.popupVisible(!0)}),c}},template:g.getTemplate("dx-filtereditor-advanced")}),ko.bindingHandlers.cacheElement={init:function(a,b,c,d,e){b().action($(a))}};var n=function(){function b(b,c,e,f){var g=this;this.popupContainer=".dx-designer-viewport",this.itemsProvider=null,this.resetValue=function(){g.value("")},this.title=ko.pureComputed({read:function(){var b=g._title();return a.Analytics.Utils.getLocalization(b.text,b.localizationId)},write:function(a){g._title({text:a})}}),this.value=b,this.path=c||ko.observable(""),this.disabled=e||ko.observable(!1),this.helper=new d.DefaultFilterEditorHelper,this._title=ko.observable(f||{text:a.Analytics.Utils.getLocalization("Filter Editor","DataAccessUIStringId.FiltersView")})}return b}();d.FilterStringOptions=n,function(a){a.formatStringStandardPatterns={DateTime:{type:"System.DateTime",value:new Date(Date.now()),patterns:[]},Number:{type:"System.Int32",value:"123456789",patterns:["#.00","#,#","0.E+0.0","0.e+0.0","n","n1","n2","e","e1","f","f1"]},Percent:{type:"System.Int32",value:"100",patterns:["0.00%","0%"]},Currency:{type:"System.Int32",value:"100",patterns:["$0.00","$0","c","c1","c2"]},Special:{type:"System.Int32",value:"123456789",patterns:["(###) ### - ####","### - ## - ####"]},General:{type:"System.String",value:"",patterns:["General format have no specific number format"]}}}(g=d.Internal||(d.Internal={}));var o=function(c){function d(a,d,e,f,h,i,j){var k=c.call(this)||this;k._isDisabled=ko.observable(!1),k._timeout=null,k.currentType=ko.observable(),k.patternList=ko.observableArray([]),k.canAddCustomFormat=ko.observable(!1),k.formatPrefix=ko.observable(""),k.formatSuffix=ko.observable(""),k.previewString=ko.observable("Preview string"),k.formatResult=ko.observable(""),k.selectedFormats=ko.observable([]),k.selectedTypes=ko.observable([]),k.popupVisible=ko.observable(!1),k.localizationIdMap={title:{text:"FormatString Editor",localizationId:"AnalyticsCoreStringId.FormatStringEditor_Title"},category:{text:"Category",localizationId:"AnalyticsCoreStringId.Category"},preview:{text:"Preview",localizationId:"AnalyticsCoreStringId.TooltipButtons_Preview"},types:{text:"Types",localizationId:"AnalyticsCoreStringId.FormatStringEditor_Types"},add:{text:"Add",localizationId:"DataAccessUIStringId.Button_Add"},prefix:{text:"Prefix",localizationId:"AnalyticsCoreStringId.Prefix"},suffix:{text:"Suffix",localizationId:"AnalyticsCoreStringId.FormatStringEditor_Suffix"}},k.option("value",a),k.option("disabled",d||!1),k.option("rtl",i||!1),k.option("popupContainer",j||".dx-designer-viewport");var l=k;return k.popupService=new b.Internal.PopupService,k._standardPatternSource=e||g.formatStringStandardPatterns,k._customPatternSource=f||{},k.types=k._convertArray(Object.keys(k._standardPatternSource)),k._disposables.push(k.currentType.subscribe(function(a){l.isGeneralType?(l.formatResult(""),l.selectedFormats([])):l._updateFormatList()})),k.currentType(k.types[0].name),k._disposables.push(k.formatResult.subscribe(function(a){l._updateCanAddCustomFormat(a),l._updatePreview()})),k._disposables.push(k.formatPrefix.subscribe(function(a){l._updatePreview()})),k._disposables.push(k.formatSuffix.subscribe(function(a){l._updatePreview()})),k._disposables.push(k.popupVisible.subscribe(function(b){b&&(l._initEditor(a()),l.selectedTypes(l.types.filter(function(a){return a.name===l.currentType()})))})),k._createMainPopupButtons(),h&&h.updatePreview&&(k.updatePreview=h.updatePreview),k.setType=function(a){l.currentType(a.itemData.name),l._updateSelection()},k.setFormat=function(a){l.formatResult(a.itemData.name)},k.addCustomFormat=function(){l.formatResult()&&l.canAddCustomFormat()&&(l.customPatterns.push(l.formatResult()),l._updateFormatList(),l._scrollToBottom(),h&&h.saveCustomPattern(l.currentType(),l.formatResult()),l._updateSelection(l.patternList().length-1),l.canAddCustomFormat(!1))},k.removeCustomFormat=function(a){var b=l.selectedFormats()[0],c=l.patternList(),d=c.map(function(a){return a.name}).indexOf(a.name);l.customPatterns.splice(l.customPatterns.indexOf(a.name),1),l._updateFormatList(),h&&h.removeCustomPattern(l.currentType(),a.name),b.name===a.name?l._updateSelection(d===c.length-1?l.patternList().length-1:d):l.selectedFormats(l.patternList().filter(function(a){return a.name===b.name}))},k}return __extends(d,c),d.prototype.okAction=function(){var a=this.isGeneralType?this._getGeneralPreview("{0}"):this._wrapFormat();this.option("value",a),this.popupVisible(!1)},d.prototype._createMainPopupButtons=function(){var b=this;this.buttonItems=[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:a.Analytics.Utils.getLocalization("OK",a.Analytics.Internal.StringId.DataAccessBtnOK),disabled:this._isDisabled,onClick:function(){b.okAction()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:a.Analytics.Utils.getLocalization("Cancel",a.Analytics.Internal.StringId.DataAccessBtnCancel),onClick:function(){b.popupVisible(!1)}}}]},d.prototype._convertArray=function(b,c){return b.map(function(b){return{name:b,displayName:a.Analytics.Utils.getLocalization(b),canRemove:!!c}})},d.prototype._scrollToBottom=function(){var b=$(".dx-format-string .dx-format-string-formats").find(".dx-scrollview").filter(":visible"),c=a.ui.dxScrollView.getInstance(b.get(0));c&&c.scrollTo&&c.scrollTo(c.scrollHeight())},d.prototype._updateFormatList=function(){this.selectedFormats([]);var a=this._standardPatternSource[this.currentType()];this.patternList(this._convertArray(a.patterns).concat(this._convertArray(this.customPatterns,!0)))},d.prototype._updateSelection=function(a){var b=this.patternList()[a||0];b&&(this.selectedFormats([b]),this.formatResult(b.name))},d.prototype._setPreviewString=function(a){this.previewString(a),this._isDisabled(!1)},d.prototype._setErrorMessage=function(a){this.previewString(b.Utils.getLocalization("Preview string is not available","AnalyticsCoreStringId.FormatStringEditor_PreviewNotAvailable_Text")),this._isDisabled(a)},d.prototype._updatePreview=function(){var a=this;this._timeout&&clearTimeout(this._timeout),this._timeout=setTimeout(function(){if(a.isGeneralType)return void a.previewString(a._getGeneralPreview(void 0));var c=a._standardPatternSource[a.currentType()],d=a.updatePreview(c.value,c.type,a._wrapFormat());a._lastUpdatePreviewPromise=d,d.done(function(b){a._lastUpdatePreviewPromise===d&&(b.Result?a._setPreviewString(b.Result):a._setErrorMessage(b.IsError))}).fail(function(c){a._lastUpdatePreviewPromise===d&&a.previewString(b.Utils.getLocalization("Preview string is not available","AnalyticsCoreStringId.FormatStringEditor_PreviewNotAvailable_Text"))})},100)},d.prototype._getGeneralPreview=function(a){return void 0===a&&(a="###"),this.formatPrefix()+a+this.formatSuffix()},d.prototype._wrapFormat=function(a){var b=a||this.formatResult();return b&&-1!==b.indexOf("{0:")?b:b?"{0:"+b+"}":""},d.prototype._updateCanAddCustomFormat=function(a){if(!a)return void this.canAddCustomFormat(!1);var b=!0;for(var c in this._standardPatternSource)if(!(b=-1===this._standardPatternSource[c].patterns.indexOf(a)))break;this.canAddCustomFormat(b?-1===this.customPatterns.indexOf(a):b)},d.prototype._initEditor=function(a){var b=this;if(!a)return void this.setType({itemData:this.types[0]});if(-1!==a.indexOf("{0}"))return this.currentType("General"),this.formatPrefix(a.substring(0,a.indexOf("{0}"))),void this.formatSuffix(a.substring(a.indexOf("{0}")+3));var c,d=a.indexOf("{0:"),e=a.indexOf("}",d),f=a.substring(d+3,e),g=function(){b.currentType(h),0===d&&e===a.length-1&&(b.selectedFormats(b.patternList().filter(function(a){return a.name===f})),b.formatResult(f),c=!0)};for(var h in this._standardPatternSource){if(-1!==this._standardPatternSource[h].patterns.indexOf(f)){g();break}var i=this._customPatternSource[this._standardPatternSource[h].type];if(i&&-1!==i.indexOf(f)){g();break}}c||(this.currentType(this.types[0].name),this.selectedFormats([]),this.formatResult(a))},d.prototype.updateInputText=function(a,b){this[a](b.option("text"))},d.prototype.option=function(a,b){return void 0!==b&&(ko.isObservable(this[a])?this[a](b):this[a]=b),ko.unwrap(this[a])},d.prototype.updatePreview=function(a,b,c){return $.Deferred().resolve({Result:a||"preview string"}).promise()},Object.defineProperty(d.prototype,"customPatterns",{get:function(){var a=this._standardPatternSource[this.currentType()];return this._customPatternSource[a.type]=this._customPatternSource[a.type]||[]},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"isGeneralType",{get:function(){return"General"===this.currentType()},enumerable:!0,configurable:!0}),d.prototype.getDisplayText=function(b){return a.Analytics.Utils.getLocalization(this.localizationIdMap[b].text,this.localizationIdMap[b].localizationId)},d.prototype.getPopupContainer=function(a){return $(a).closest(this.option("popupContainer"))},d}(c.Disposable);d.FormatStringEditor=o,ko.bindingHandlers.dxFormatEditor={init:function(c,d){$(c).children().remove(),$(c).addClass("dx-popup-general");var e=a.Analytics.Widgets.Internal.getTemplate("dx-format-string"),f=$(c).append(e),g=d(),h=new o(g.value,g.disabled,g.standardPatterns,g.customPatterns||a.Reporting&&a.Reporting.Designer&&a.Reporting.Designer.Utils.formatStringEditorCustomSet,g.actions||a.Reporting&&a.Reporting.Designer&&a.Reporting.Designer.Internal.FormatStringService.actions,g.rtl,g.popupContainer);return ko.applyBindings(h,f.children()[0]),b.Internal.addDisposeCallback(c,function(){h.dispose()}),{controlsDescendantBindings:!0}}},function(b){var c=function(a){function b(b,c){return a.call(this,b,c)||this}return __extends(b,a),b.prototype._setContentHeight=function(){this._$popupContent.css({height:"100%"})},b}(a.ui.dxPopup);b.dxPopupWithAutoHeight=c,a.registerComponent("dxPopupWithAutoHeight",c)}(g=d.Internal||(d.Internal={}))}(d=b.Widgets||(b.Widgets={})),function(a){function d(b,c,d,e,f){a.addDisposeCallback(c,function(){b.dispose()}),setTimeout(function(){var a=!1;ko.computed({read:function(){!a&&ko.bindingHandlers.html.init&&(ko.bindingHandlers.html.init(c,function(){return b.content},d,e,f),a=!0),ko.bindingHandlers.html.update&&ko.bindingHandlers.html.update(c,function(){return b.content},d,e,f)},disposeWhenNodeIsRemoved:c})},1)}a.cloneHtmlBinding=d;var e=function(a){function c(b){var c=a.call(this)||this;return c._$spanProtect=$("<span>"),c._$spanSearch=$("<span>").addClass("dx-datagrid-search-text"),c.content=ko.observable(""),ko.isSubscribable(b.text)&&c._disposables.push(b.text.subscribe(function(a){c.content(c._getHighlightContent(a,ko.unwrap(b.textToSearch)))})),c._disposables.push(b.textToSearch.subscribe(function(a){c.content(c._getHighlightContent(ko.unwrap(b.text),a))})),c.content(c._getHighlightContent(ko.unwrap(b.text),ko.unwrap(b.textToSearch))),c}return __extends(c,a),c.prototype._getHighlightContent=function(a,c){var d=this,e=c,f=a;if(e){var g=b.Internal.findMatchesInString(f,e);if(g){var h="",i=0,j=f;return g.forEach(function(a,b){var c=j.indexOf(a),e=f.substr(i,c);j=j.substr(c+a.length),e&&(d._$spanProtect.text(e),h+=d._$spanProtect[0].outerHTML),d._$spanSearch.text(a),h+=d._$spanSearch[0].outerHTML,i=f.length-j.length,b===g.length-1&&j&&(d._$spanProtect.text(j),h+=d._$spanProtect[0].outerHTML)}),h}}return this._$spanProtect.text(f),f=this._$spanProtect[0].outerHTML},c}(c.Disposable);a.HighlightEngine=e,ko.bindingHandlers.searchHighlighting={init:function(a,b,c,f,g){d(new e(b()),a,c,f,g)}}}(b.Internal||(b.Internal={})),function(b){!function(b){ko.bindingHandlers.treelist={init:function(c,d,e,f,g){var h,i=null,j=null,k=null,l=d(),m=ko.unwrap(l),n=function(){var b=ko.unwrap(l),d=$(c).closest(".dx-scrollview"),e=a.ui.dxScrollView.getInstance(d.get(0));e&&e.update(),b.onItemsVisibilityChanged&&b.onItemsVisibilityChanged()},o=function(d){if(h&&h.dispose(),d.treeListController=d.treeListController?d.treeListController:new b.TreeListController,d.treeListController.dragDropHandler||(d.treeListController.dragDropHandler=g.$root.fieldDragHandler),d.itemsProvider=ko.unwrap(d.itemsProvider),d.pageSize=d.pageSize||-1,i&&i.dispose(),d&&d.itemsProvider){d.rtl||(d.rtl=$(c).closest(".dx-rtl").length>0),h=ko.computed(function(){var a=ko.unwrap(d.path);return Array.isArray(a)?a:a?a.split("."):[]}),i=new b.TreeListRootItemViewModel(d,h,n,d.rtl);var e=d.templateHtml||a.Analytics.Widgets.Internal.getTemplate("dx-treelist"),f=$(c).html(e);j=g.createChildContext(i),ko.applyBindings(j,f.children()[0]),k&&ko.utils.domNodeDisposal.removeDisposeCallback(c,k),k=function(){i&&i.dispose(),i=null,p&&p.dispose(),h&&h.dispose(),k=null,ko.utils.domNodeDisposal.removeDisposeCallback(c,k)},ko.utils.domNodeDisposal.addDisposeCallback(c,k)}};o($.extend({},m));var p=null;return ko.isSubscribable(l)?p=l.subscribe(function(a){a&&o($.extend({},a))}):ko.isSubscribable(l.itemsProvider)&&(p=l.itemsProvider.subscribe(function(a){a&&o($.extend({},l))})),{controlsDescendantBindings:!0}}}}(b.Internal||(b.Internal={}))}(d=b.Widgets||(b.Widgets={}))}(a.Analytics||(a.Analytics={}))}(DevExpress||(DevExpress={})),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.DisplayExpressionConverter","Analytics.Utils.DisplayExpressionConverter","Analytics.Internal.DisplayExpressionConverter"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.HighlightEngine","Analytics.Internal.HighlightEngine"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.Disposable","Analytics.Utils.Disposable"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.integerValueConverter","Analytics.Utils.integerValueConverter","Data.integerValueConverter","Analytics.Internal.integerValueConverter"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.floatValueConverter","Analytics.Utils.floatValueConverter","Data.floatValueConverter","Analytics.Internal.floatValueConverter"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.setCursorInFunctionParameter","Analytics.Internal.setCursorInFunctionParameter"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.isList","Analytics.Utils.isList","Analytics.Internal.isList"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.PathRequest","Analytics.Utils.PathRequest"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.ace","Analytics.Widgets.ace","Analytics.Widgets.Internal.ace"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.aceAvailable","Analytics.Widgets.aceAvailable","Analytics.Widgets.Internal.aceAvailable"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.CodeCompletor","Analytics.Widgets.CodeCompletor","Analytics.Widgets.Internal.CodeCompletor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.createFunctionCompletion","Analytics.Widgets.createFunctionCompletion","Analytics.Widgets.Internal.createFunctionCompletion"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.functionDisplay","Analytics.Widgets.Internal.functionDisplay"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.operatorNames","Analytics.Widgets.Internal.operatorNames"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.Tools","Analytics.Widgets.Internal.Tools"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.ExpressionEditorTreeListController","Analytics.Widgets.ExpressionEditorTreeListController","Analytics.Widgets.Internal.ExpressionEditorTreeListController"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.ExpressionEditorParametersTreeListController","Analytics.Widgets.ExpressionEditorParametersTreeListController","Analytics.Widgets.Internal.ExpressionEditorParametersTreeListController"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.wrapExpressionValue","Analytics.Widgets.wrapExpressionValue","Analytics.Widgets.Internal.wrapExpressionValue"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.ExpressionEditor","Analytics.Widgets.ExpressionEditor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.FilterEditorAddOn","Analytics.Widgets.Internal.FilterEditorAddOn"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.FilterEditorCodeCompletor","Analytics.Widgets.Internal.FilterEditorCodeCompletor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.initDisplayText","Analytics.Widgets.initDisplayText","Analytics.Widgets.Internal.initDisplayText"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.FilterEditorHelper","Analytics.Widgets.FilterEditorHelper"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.DefaultFilterEditorHelper","Analytics.Widgets.DefaultFilterEditorHelper"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.FilterEditorSerializer","Analytics.Widgets.Internal.FilterEditorSerializer"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.FilterEditorTreeListController","Analytics.Widgets.FilterEditorTreeListController","Analytics.Widgets.Internal.FilterEditorTreeListController"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.CriteriaSurfaceValidatorState","Analytics.Widgets.Internal.CriteriaSurfaceValidatorState"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.CriteriaSurfaceValidator","Analytics.Widgets.Internal.CriteriaSurfaceValidator"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.AggregateOperandSurface","Analytics.Widgets.AggregateOperandSurface","Analytics.Widgets.Filtering.AggregateOperandSurface"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.BetweenOperandSurface","Analytics.Widgets.BetweenOperandSurface","Analytics.Widgets.Filtering.BetweenOperandSurface"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.BinaryOperandSurface","Analytics.Widgets.BinaryOperandSurface","Analytics.Widgets.Filtering.BinaryOperandSurface"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.CriteriaOperatorSurface","Analytics.Widgets.CriteriaOperatorSurface","Analytics.Widgets.Filtering.CriteriaOperatorSurface"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.FunctionOperandSurface","Analytics.Widgets.FunctionOperandSurface","Analytics.Widgets.Filtering.FunctionOperandSurface"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.GroupOperandSurface","Analytics.Widgets.GroupOperandSurface","Analytics.Widgets.Filtering.GroupOperandSurface"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.InOperandSurface","Analytics.Widgets.InOperandSurface","Analytics.Widgets.Filtering.InOperandSurface"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.OperandParameterSurface","Analytics.Widgets.OperandParameterSurface","Analytics.Widgets.Filtering.OperandParameterSurface"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.OperandPropertySurface","Analytics.Widgets.OperandPropertySurface","Analytics.Widgets.Filtering.OperandPropertySurface"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.OperandSurfaceBase","Analytics.Widgets.OperandSurfaceBase","Analytics.Widgets.Filtering.OperandSurfaceBase"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.OperandValueSurface","Analytics.Widgets.OperandValueSurface","Analytics.Widgets.Filtering.OperandValueSurface"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.UnaryOperandSurface","Analytics.Widgets.UnaryOperandSurface","Analytics.Widgets.Filtering.UnaryOperandSurface"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.FilterEditor","Analytics.Widgets.FilterEditor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.FilterStringOptions","Analytics.Widgets.FilterStringOptions"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.FormatStringEditor","Analytics.Widgets.FormatStringEditor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.formatStringStandardPatterns","Analytics.Widgets.Internal.formatStringStandardPatterns"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.dxPopupWithAutoHeight","Analytics.Widgets.Internal.dxPopupWithAutoHeight"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.ValueEditorHelper","Analytics.Widgets.Internal.ValueEditorHelper"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.TreeListController","Analytics.Widgets.TreeListController","Analytics.Widgets.Internal.TreeListController"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.treeListEditAction","Analytics.Widgets.treeListEditAction","Analytics.Widgets.Internal.treeListEditAction"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.TreeListItemViewModel","Analytics.Widgets.TreeListItemViewModel","Analytics.Widgets.Internal.TreeListItemViewModel"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.TreeListRootItemViewModel","Analytics.Widgets.TreeListRootItemViewModel","Analytics.Widgets.Internal.TreeListRootItemViewModel"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.Aggregate","Analytics.Criteria.Aggregate"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.AggregateOperand","Analytics.Criteria.AggregateOperand"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.BetweenOperator","Analytics.Criteria.BetweenOperator"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.BinaryOperatorType","Analytics.Criteria.BinaryOperatorType"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.BinaryOperator","Analytics.Criteria.BinaryOperator"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.ConstantValue","Analytics.Criteria.ConstantValue"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.CriteriaOperator","Analytics.Criteria.CriteriaOperator"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.FunctionOperatorType","Analytics.Criteria.FunctionOperatorType"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.FunctionOperator","Analytics.Criteria.FunctionOperator"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.GroupOperatorType","Analytics.Criteria.GroupOperatorType"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.GroupOperator","Analytics.Criteria.GroupOperator"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.InOperator","Analytics.Criteria.InOperator"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.JoinOperand","Analytics.Criteria.JoinOperand"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.OperandParameter","Analytics.Criteria.OperandParameter"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.OperandProperty","Analytics.Criteria.OperandProperty"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.UnaryOperatorType","Analytics.Criteria.UnaryOperatorType"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.UnaryOperator","Analytics.Criteria.UnaryOperator"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.OperandValue","Analytics.Criteria.OperandValue"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.CriteriaOperatorPreprocessor","Analytics.Criteria.CriteriaOperatorPreprocessor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.criteriaCreator","Analytics.Criteria.criteriaCreator"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.operatorTokens","Analytics.Criteria.Utils.operatorTokens"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.criteriaForEach","Analytics.Criteria.Utils.criteriaForEach");var criteriaparser=function(){function a(){this.yy={}}var b=function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},c=[1,7],d=[1,6],e=[1,30],f=[1,8],g=[1,9],h=[1,10],i=[1,11],j=[1,25],k=[1,12],l=[1,13],m=[1,14],n=[1,15],o=[1,16],p=[1,17],q=[1,18],r=[1,19],s=[1,20],t=[1,21],u=[1,22],v=[1,23],w=[1,24],x=[1,27],y=[1,29],z=[1,28],A=[1,32],B=[1,33],C=[1,34],D=[1,35],E=[1,36],F=[1,37],G=[1,38],H=[1,39],I=[1,40],J=[1,41],K=[1,42],L=[1,43],M=[1,44],N=[1,45],O=[1,46],P=[1,47],Q=[1,48],R=[1,49],S=[1,50],T=[1,51],U=[1,52],V=[5,9,10,11,12,13,14,15,16,19,20,21,22,23,24,25,26,27,28,30,31,33,35,36,52],W=[5,9,10,11,12,13,14,15,16,19,20,21,22,23,24,25,26,27,28,30,31,33,35,36,51,52,53,55,56,57],X=[1,60],Y=[5,14,15,16,19,20,21,22,23,24,25,26,27,28,30,31,33,35,36,52],Z=[5,27,28,30,36,52],$=[1,113],_=[1,114],aa=[1,108],ba=[1,110],ca=[1,111],da=[1,109],ea=[1,112],fa=[5,9,10,11,12,13,14,15,16,19,20,21,22,23,24,25,26,27,28,30,31,33,35,36,37,52,60],ga=[5,11,12,14,15,16,19,20,21,22,23,24,25,26,27,28,30,31,33,35,36,52],ha=[5,19,20,25,26,27,28,30,31,36,52],ia=[5,19,20,21,22,23,24,25,26,27,28,30,31,36,52],ja=[30,36],ka={trace:function(){},yy:{},symbols_:{error:2,expressions:3,exp:4,EOF:5,const:6,propertyWithAgg:7,parameter:8,"*":9,"/":10,"+":11,"-":12,"%":13,"|":14,"&":15,"^":16,"!":17,"~":18,OP_EQ:19,OP_NE:20,OP_GT:21,OP_LT:22,OP_GE:23,OP_LE:24,OP_LIKE:25,NOT:26,AND:27,OR:28,"(":29,")":30,IS:31,NULL:32,OP_IN:33,arguments:34,OP_BETWEEN:35,",":36,NAME_LATIN:37,AGG_MIN:38,AGG_MAX:39,AGG_COUNT:40,AGG_AVG:41,AGG_SUM:42,AGG_EXISTS:43,AGG_SINGLE:44,STRING:45,NUMBER:46,OBJECT:47,BOOLEAN:48,GUID:49,property:50,"[":51,"]":52,".":53,agg:54,FIELD_END:55,CH:56,ESC_CH:57,FIELD_START:58,paramName:59,NAME_SOFT:60,"?":61,commaseparated:62,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",9:"*",10:"/",11:"+",12:"-",13:"%",14:"|",15:"&",16:"^",17:"!",18:"~",19:"OP_EQ",20:"OP_NE",21:"OP_GT",22:"OP_LT",23:"OP_GE",24:"OP_LE",25:"OP_LIKE",26:"NOT",27:"AND",28:"OR",29:"(",30:")",31:"IS",32:"NULL",33:"OP_IN",35:"OP_BETWEEN",36:",",37:"NAME_LATIN",38:"AGG_MIN",39:"AGG_MAX",40:"AGG_COUNT",41:"AGG_AVG",42:"AGG_SUM",43:"AGG_EXISTS",44:"AGG_SINGLE",45:"STRING",46:"NUMBER",47:"OBJECT",48:"BOOLEAN",49:"GUID",51:"[",52:"]",53:".",55:"FIELD_END",56:"CH",57:"ESC_CH",58:"FIELD_START",60:"NAME_SOFT",61:"?"},productions_:[0,[3,2],[4,1],[4,1],[4,1],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,4],[4,2],[4,3],[4,3],[4,3],[4,3],[4,4],[4,3],[4,7],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[7,6],[7,5],[7,3],[7,4],[7,3],[7,1],[7,4],[54,3],[54,1],[54,3],[54,1],[54,4],[54,4],[54,3],[54,4],[54,4],[54,4],[50,2],[50,2],[50,2],[50,3],[50,3],[50,1],[50,1],[50,1],[59,1],[59,1],[59,2],[59,2],[8,2],[8,1],[34,2],[34,3],[62,1],[62,3]],performAction:function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 1:return f[h-1];case 2:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("const",{value:f[h]});break;case 3:case 4:case 41:case 42:case 43:case 44:case 45:this.$=f[h];break;case 5:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.Multiply});break;case 6:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.Divide});break;case 7:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.Plus});break;case 8:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.Minus});break;case 9:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.Modulo});break;case 10:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.BitwiseOr});break;case 11:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.BitwiseAnd});break;case 12:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.BitwiseXor});break;case 13:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("unary",{operatorType:DevExpress.Analytics.Criteria.UnaryOperatorType.Minus,operator:f[h]});break;case 14:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("unary",{operatorType:DevExpress.Analytics.Criteria.UnaryOperatorType.Plus,operator:f[h]});break;case 15:case 25:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("unary",{operatorType:DevExpress.Analytics.Criteria.UnaryOperatorType.Not,operator:f[h]});break;case 16:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("unary",{operatorType:DevExpress.Analytics.Criteria.UnaryOperatorType.BitwiseNot,operator:f[h]});break;case 17:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.Equal});break;case 18:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.NotEqual});break;case 19:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.Greater});break;case 20:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.Less});break;case 21:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.GreaterOrEqual});break;case 22:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.LessOrEqual});break;case 23:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.Like});break;case 24:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("unary",{operatorType:DevExpress.Analytics.Criteria.UnaryOperatorType.Not,operator:DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-3],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.Like})});break;case 26:this.$=DevExpress.Analytics.Criteria.GroupOperator.combine(DevExpress.Analytics.Criteria.GroupOperatorType.And,[f[h-2],f[h]]);break;case 27:this.$=DevExpress.Analytics.Criteria.GroupOperator.combine(DevExpress.Analytics.Criteria.GroupOperatorType.Or,[f[h-2],f[h]]);break;case 28:case 64:case 79:this.$=f[h-1];break;case 29:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("unary",{operatorType:DevExpress.Analytics.Criteria.UnaryOperatorType.IsNull,operator:f[h-2]});break;case 30:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("unary",{operatorType:DevExpress.Analytics.Criteria.UnaryOperatorType.Not,operator:DevExpress.Analytics.Criteria.criteriaCreator.process("unary",{operatorType:DevExpress.Analytics.Criteria.UnaryOperatorType.IsNull,operator:f[h-3]})});break;case 31:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("in",{criteriaOperator:f[h-2],operands:f[h]});break;case 32:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("between",{property:f[h-6],begin:f[h-3],end:f[h-1]});break;case 33:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("function",{operatorType:DevExpress.Analytics.Criteria.FunctionOperatorType[f[h-1]]||f[h-1],operands:f[h]});break;case 34:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("function",{operatorType:DevExpress.Analytics.Criteria.FunctionOperatorType.Min,operands:f[h]});break;case 35:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("function",{operatorType:DevExpress.Analytics.Criteria.FunctionOperatorType.Max,operands:f[h]});break;case 36:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("function",{operatorType:DevExpress.Analytics.Criteria.FunctionOperatorType.Count||"Count",operands:f[h]});break;case 37:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("function",{operatorType:DevExpress.Analytics.Criteria.FunctionOperatorType.Avg||"Avg",operands:f[h]});break;case 38:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("function",{operatorType:DevExpress.Analytics.Criteria.FunctionOperatorType.Sum||"Sum",operands:f[h]});break;case 39:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("function",{operatorType:DevExpress.Analytics.Criteria.FunctionOperatorType.Exists||"Exists",operands:f[h]});break;case 40:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("function",{operatorType:DevExpress.Analytics.Criteria.FunctionOperatorType.Single||"Single",operands:f[h]});break;case 46:this.$=null;break;case 47:this.$=DevExpress.Analytics.Criteria.JoinOperand.joinOrAggregate(DevExpress.Analytics.Criteria.criteriaCreator.process("property",{propertyName:f[h-5].name,startColumn:f[h-5].col,startLine:f[h-5].line,originalPropertyLength:g[h-5].last_column-g[h-5].first_column+1}),f[h-3],f[h].type,f[h].expr);break;case 48:this.$=DevExpress.Analytics.Criteria.JoinOperand.joinOrAggregate(DevExpress.Analytics.Criteria.criteriaCreator.process("property",{propertyName:f[h-4].name,startColumn:f[h-4].col,startLine:f[h-4].line,originalPropertyLength:g[h-4].last_column-g[h-4].first_column+1}),null,f[h].type,f[h].expr);break;case 49:this.$=DevExpress.Analytics.Criteria.JoinOperand.joinOrAggregate(DevExpress.Analytics.Criteria.criteriaCreator.process("property",{propertyName:f[h-2].name,startColumn:f[h-2].col,startLine:f[h-2].line,originalPropertyLength:g[h-2].last_column-g[h-2].first_column}),null,f[h].type,f[h].expr);break;case 50:this.$=DevExpress.Analytics.Criteria.JoinOperand.joinOrAggregate(DevExpress.Analytics.Criteria.criteriaCreator.process("property",{propertyName:f[h-3].name,startColumn:f[h-3].col,startLine:f[h-3].line,originalPropertyLength:g[h-3].last_column-g[h-3].first_column+1}),f[h-1],DevExpress.Analytics.Criteria.Aggregate.Exists,null);break;case 51:this.$=DevExpress.Analytics.Criteria.JoinOperand.joinOrAggregate(DevExpress.Analytics.Criteria.criteriaCreator.process("property",{propertyName:f[h-2].name,startColumn:f[h-2].col,startLine:f[h-2].line,originalPropertyLength:g[h-2].last_column-g[h-2].first_column+1}),null,DevExpress.Analytics.Criteria.Aggregate.Exists,null);break;case 52:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("property",{propertyName:f[h].name,startColumn:f[h].col,startLine:f[h].line,originalPropertyLength:g[h].last_column-g[h].first_column});break;case 53:this.$=DevExpress.Analytics.Criteria.JoinOperand.joinOrAggregate(DevExpress.Analytics.Criteria.criteriaCreator.process("property",{}),null,f[h].type,f[h].expr);break;case 54:case 55:this.$={type:DevExpress.Analytics.Criteria.Aggregate.Count};break;case 56:case 57:this.$={type:DevExpress.Analytics.Criteria.Aggregate.Exists};break;case 58:this.$={type:DevExpress.Analytics.Criteria.Aggregate.Avg,expr:f[h-1]};break;case 59:this.$={type:DevExpress.Analytics.Criteria.Aggregate.Sum,expr:f[h-1]};break;case 60:this.$={type:DevExpress.Analytics.Criteria.Aggregate.Single,expr:DevExpress.Analytics.Criteria.criteriaCreator.process("property",{propertyName:"This"})};break;case 61:this.$={type:DevExpress.Analytics.Criteria.Aggregate.Single,expr:f[h-1]};break;case 62:this.$={type:DevExpress.Analytics.Criteria.Aggregate.Min,expr:f[h-1]};break;case 63:this.$={type:DevExpress.Analytics.Criteria.Aggregate.Max,expr:f[h-1]};break;case 65:this.$={name:f[h-1].name+f[h],line:f[h-1].line,col:f[h-1].col};break;case 66:this.$={name:f[h-1].name+f[h].substr(1),line:f[h-1].line,col:f[h-1].col};break;case 67:this.$={name:f[h-2].name+".",line:f[h-2].line,col:f[h-2].col};break;case 68:this.$={name:f[h-2].name+"."+f[h],line:f[h-2].line,col:f[h-2].col};break;case 69:this.$={name:"",line:g[h].first_line-1,col:g[h].first_column+1};break;case 70:this.$={name:f[h],line:g[h].first_line-1,col:g[h].first_column};break;case 71:this.$={name:"^",line:g[h].first_line-1,col:g[h].first_column};break;case 72:case 73:this.$=f[h];break;case 74:case 75:this.$=f[h-1]+f[h];break;case 76:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("parameter",{parameterName:f[h]});break;case 77:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("value",{});break;case 78:this.$=[];break;case 80:this.$=[f[h]];break;case 81:this.$=f[h-2].concat(f[h])}},table:[{3:1,4:2,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{1:[3]},{5:[1,31],9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,27:Q,28:R,31:S,33:T,35:U},b(V,[2,2]),b(V,[2,3]),b(V,[2,4]),{4:53,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:54,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:55,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:56,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:57,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:58,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},b(W,[2,70],{34:59,29:X}),{29:X,34:61},{29:X,34:62},{29:X,34:63},{29:X,34:64},{29:X,34:65},{29:X,34:66},{29:X,34:67},b(V,[2,41]),b(V,[2,42]),b(V,[2,43]),b(V,[2,44]),b(V,[2,45]),b(V,[2,46]),b(V,[2,52],{51:[1,68],53:[1,69],55:[1,70],56:[1,71],57:[1,72]}),{52:[1,73]},b(V,[2,77],{59:74,37:[1,75],60:[1,76]}),b(W,[2,69]),b(W,[2,71]),{1:[2,1]},{4:77,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:78,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:79,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:80,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:81,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:82,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:83,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:84,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:85,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:86,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:87,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:88,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:89,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:90,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:91,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{25:[1,92]},{4:93,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:94,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{26:[1,96],32:[1,95]},{29:X,34:97},{29:[1,98]},b(V,[2,13]),b(V,[2,14]),b(V,[2,15]),b(Y,[2,16],{9:A,10:B,11:C,12:D,13:E}),b(Z,[2,25],{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,31:S,33:T,35:U}),{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,27:Q,28:R,30:[1,99],31:S,33:T,35:U},b(V,[2,33]),{4:102,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,30:[1,100],32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z,62:101},b(V,[2,34]),b(V,[2,35]),b(V,[2,36]),b(V,[2,37]),b(V,[2,38]),b(V,[2,39]),b(V,[2,40]),{4:103,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,52:[1,104],58:y,61:z},{37:[1,107],38:$,39:_,40:aa,41:ba,42:ca,43:da,44:ea,54:105,58:[1,106]},b(W,[2,64]),b(W,[2,65]),b(W,[2,66]),{53:[1,115]},b(V,[2,76],{37:[1,116],60:[1,117]}),b(fa,[2,72]),b(fa,[2,73]),b(V,[2,5]),b(V,[2,6]),b(ga,[2,7],{9:A,10:B,13:E}),b(ga,[2,8],{9:A,10:B,13:E}),b(V,[2,9]),b([5,14,19,20,21,22,23,24,25,26,27,28,30,31,33,35,36,52],[2,10],{9:A,10:B,11:C,12:D,13:E,15:G,16:H}),b(Y,[2,11],{9:A,10:B,11:C,12:D,13:E}),b([5,14,16,19,20,21,22,23,24,25,26,27,28,30,31,33,35,36,52],[2,12],{9:A,10:B,11:C,12:D,13:E,15:G}),b(ha,[2,17],{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,21:K,22:L,23:M,24:N,33:T,35:U}),b(ha,[2,18],{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,21:K,22:L,23:M,24:N,33:T,35:U}),b(ia,[2,19],{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,33:T,35:U}),b(ia,[2,20],{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,33:T,35:U}),b(ia,[2,21],{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,33:T,35:U}),b(ia,[2,22],{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,33:T,35:U}),b(ha,[2,23],{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,21:K,22:L,23:M,24:N,33:T,35:U}),{4:118,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},b(Z,[2,26],{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,31:S,33:T,35:U}),b([5,28,30,36,52],[2,27],{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,27:Q,31:S,33:T,35:U}),b(V,[2,29]),{32:[1,119]},b(V,[2,31]),{4:120,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},b(V,[2,28]),b(V,[2,78]),{30:[1,121],36:[1,122]},b(ja,[2,80],{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,27:Q,28:R,31:S,33:T,35:U}),{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,27:Q,28:R,31:S,33:T,35:U,52:[1,123]},b(V,[2,51],{53:[1,124]}),b(V,[2,49]),b(W,[2,67]),b(W,[2,68]),b(V,[2,55],{29:[1,125]}),b(V,[2,57],{29:[1,126]}),{29:[1,127]},{29:[1,128]},{29:[1,129]},{29:[1,130]},{29:[1,131]},{38:$,39:_,40:aa,41:ba,42:ca,43:da,44:ea,54:132},b(fa,[2,74]),b(fa,[2,75]),b(ha,[2,24],{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,21:K,22:L,23:M,24:N,33:T,35:U}),b(V,[2,30]),{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,27:Q,28:R,31:S,33:T,35:U,36:[1,133]},b(V,[2,79]),{4:134,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},b(V,[2,50],{53:[1,135]}),{38:$,39:_,40:aa,41:ba,42:ca,43:da,44:ea,54:136},{30:[1,137]},{30:[1,138]},{4:139,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:140,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:142,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,30:[1,141],32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:143,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:144,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},b(V,[2,53]),{4:145,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},b(ja,[2,81],{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,27:Q,28:R,31:S,33:T,35:U}),{38:$,39:_,40:aa,41:ba,42:ca,43:da,44:ea,54:146},b(V,[2,48]),b(V,[2,54]),b(V,[2,56]),{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,27:Q,28:R,30:[1,147],31:S,33:T,35:U},{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,27:Q,28:R,30:[1,148],31:S,33:T,35:U},b(V,[2,60]),{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,27:Q,28:R,30:[1,149],31:S,33:T,35:U},{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,27:Q,28:R,30:[1,150],31:S,33:T,35:U},{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,27:Q,28:R,30:[1,151],31:S,33:T,35:U},{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,27:Q,28:R,30:[1,152],31:S,33:T,35:U},b(V,[2,47]),b(V,[2,58]),b(V,[2,59]),b(V,[2,61]),b(V,[2,62]),b(V,[2,63]),b(V,[2,32])],defaultActions:{31:[2,1]},parseError:function(a,b){if(!b.recoverable){var c=new Error(a);throw c.hash=b,c}this.trace(a)},parse:function(a){var b=this,c=[0],d=[null],e=[],f=this.table,g="",h=0,i=0,j=0,k=2,l=1,m=e.slice.call(arguments,1),n=Object.create(this.lexer),o={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(o.yy[p]=this.yy[p]);n.setInput(a,o.yy),o.yy.lexer=n,o.yy.parser=this,void 0===n.yylloc&&(n.yylloc={});var q=n.yylloc;e.push(q);var r=n.options&&n.options.ranges;"function"==typeof o.yy.parseError?this.parseError=o.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var s,t,u,v,w,x,y,z,A,B=function(){var a;return a=n.lex()||l,"number"!=typeof a&&(a=b.symbols_[a]||a),a},C={};;){if(u=c[c.length-1],this.defaultActions[u]?v=this.defaultActions[u]:(null!==s&&void 0!==s||(s=B()),v=f[u]&&f[u][s]),void 0===v||!v.length||!v[0]){var D="";A=[];for(x in f[u])this.terminals_[x]&&x>k&&A.push("'"+this.terminals_[x]+"'");D=n.showPosition?"Parse error on line "+(h+1)+":\n"+n.showPosition()+"\nExpecting "+A.join(", ")+", got '"+(this.terminals_[s]||s)+"'":"Parse error on line "+(h+1)+": Unexpected "+(s==l?"end of input":"'"+(this.terminals_[s]||s)+"'"),this.parseError(D,{text:n.match,token:this.terminals_[s]||s,line:n.yylineno,loc:q,expected:A})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+u+", token: "+s);switch(v[0]){case 1:c.push(s),d.push(n.yytext),e.push(n.yylloc),c.push(v[1]),s=null,t?(s=t,t=null):(i=n.yyleng,g=n.yytext,h=n.yylineno,q=n.yylloc,j>0&&j--);break;case 2:if(y=this.productions_[v[1]][1],C.$=d[d.length-y],C._$={first_line:e[e.length-(y||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(y||1)].first_column,last_column:e[e.length-1].last_column},r&&(C._$.range=[e[e.length-(y||1)].range[0],e[e.length-1].range[1]]),void 0!==(w=this.performAction.apply(C,[g,i,h,o.yy,v[1],d,e].concat(m))))return w;y&&(c=c.slice(0,-1*y*2),d=d.slice(0,-1*y),e=e.slice(0,-1*y)),c.push(this.productions_[v[1]][0]),d.push(C.$),e.push(C._$),z=f[c[c.length-2]][c[c.length-1]],c.push(z);break;case 3:return!0}}return!0}},la=function(){return{EOF:1,parseError:function(a,b){if(!this.yy.parser)throw new Error(a);this.yy.parser.parseError(a,b)},setInput:function(a,b){return this.yy=b||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),b=new Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},test_match:function(a,b){var c,d,e;if(this.options.backtrack_lexer&&(e={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(e.yylloc.range=this.yylloc.range.slice(0))),d=a[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var f in e)this[f]=e[f];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,b,c,d;this._more||(this.yytext="",this.match="");for(var e=this._currentRules(),f=0;f<e.length;f++)if((c=this._input.match(this.rules[e[f]]))&&(!b||c[0].length>b[0].length)){if(b=c,d=f,this.options.backtrack_lexer){if(!1!==(a=this.test_match(c,e[f])))return a;if(this._backtrack){b=!1;continue}return!1}if(!this.options.flex)break}return b?!1!==(a=this.test_match(b,e[d]))&&a:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return a||this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},pushState:function(a){this.begin(a)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(a,b,c,d){switch(c){case 0:return this.begin("INITIAL"),51;case 1:return this.begin("INITIAL"),55;case 2:return 57;case 3:return 56;case 4:return"INVALID";case 5:return 45;case 6:return 49;case 7:return 47;case 8:return 46;case 9:case 10:return 48;case 11:break;case 12:return 35;case 13:return 33;case 14:return 26;case 15:return 31;case 16:return 32;case 17:return 9;case 18:return 10;case 19:return 12;case 20:return 11;case 21:return 16;case 22:return 18;case 23:return 20;case 24:return 17;case 25:return 13;case 26:return 20;case 27:return 23;case 28:return 24;case 29:return 21;case 30:return 22;case 31:return 28;case 32:return 27;case 33:return 41;case 34:return 39;case 35:return 38;case 36:return 44;case 37:return 40;case 38:return 43;case 39:return 42;case 40:case 41:return 19;case 42:return 25;case 43:return 27;case 44:return 28;case 45:return 15;case 46:return 14;case 47:return this.begin("fieldname"),58;case 48:return 52;case 49:return 29;case 50:return 30;case 51:return 53;case 52:return 36;case 53:return 61;case 54:return 37;case 55:return 60;case 56:return"INVALID";case 57:return 5}},rules:[/^(?:\]\s*\[)/i,/^(?:\])/i,/^(?:\\.)/i,/^(?:.)/i,/^(?:$)/i,/^(?:'(?:[^\']|(?:('').))*')/i,/^(?:\{[0-9A-Fa-f]{8}[-]?(?:[0-9A-Fa-f]{4}[-]?){3}[0-9A-Fa-f]{12}\})/i,/^(?:#(?:[^\\\#]|(?:\\.))*#)/i,/^(?:[0-9]+(\.[0-9]+([mfMF]{1})?|[bsiluBSILU]{1})?)/i,/^(?:True\b)/i,/^(?:False\b)/i,/^(?:\s+)/i,/^(?:Between\b)/i,/^(?:In\b)/i,/^(?:Not\b)/i,/^(?:Is\b)/i,/^(?:Null\b)/i,/^(?:\*)/i,/^(?:\/)/i,/^(?:-)/i,/^(?:\+)/i,/^(?:\^)/i,/^(?:~)/i,/^(?:!=)/i,/^(?:!)/i,/^(?:%)/i,/^(?:<>)/i,/^(?:>=)/i,/^(?:<=)/i,/^(?:>)/i,/^(?:<)/i,/^(?:\|\|)/i,/^(?:&&)/i,/^(?:Avg\b)/i,/^(?:Max\b)/i,/^(?:Min\b)/i,/^(?:Single\b)/i,/^(?:Count\b)/i,/^(?:Exists\b)/i,/^(?:Sum\b)/i,/^(?:==)/i,/^(?:=)/i,/^(?:Like\b)/i,/^(?:And\b)/i,/^(?:Or\b)/i,/^(?:&)/i,/^(?:\|)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:\()/i,/^(?:\))/i,/^(?:\.)/i,/^(?:,)/i,/^(?:\?)/i,/^(?:\w[\w\d]*)/i,/^(?:[_\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376-\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06E5-\u06E6\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4-\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E46\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\d_\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376-\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06E5-\u06E6\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4-\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E46\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{fieldname:{rules:[0,1,2,3,4],inclusive:!1},INITIAL:{rules:[5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57],inclusive:!0}}}}();return ka.lexer=la,a.prototype=ka,ka.Parser=a,new a}();if(DevExpress.JS.Data.criteriaparser=criteriaparser,DevExpress.Analytics.Criteria.criteriaparser=criteriaparser,window.ace){var _define=window.ace.define||define;_define("ace/mode/criteria",["require","exports","module","ace/lib/oop","ace/mode/text"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("./text").Mode,f=a("./criteria_highlight_rules").CriteriaHighlightRules,g=function(){this.HighlightRules=f};d.inherits(g,e),b.Mode=g}),_define("ace/mode/criteria_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("./text_highlight_rules").TextHighlightRules,f=function(){this.$rules={start:[{token:"constant.other",regex:/(?:#(?:[^\\\#]|(?:\\.))*#?)|(?:\{[-0-9A-Fa-f]*\}?)/},{token:"string.quoted.single",regex:/N?'(?:\\.|[^'\\])*'?/},{token:"constant.numeric",regex:/[+\-]?\.?\d[\d.]*/i},{token:"support.other.aggregate",regex:/\.([a-zA-Z_]\w*)?/},{token:"keyword.operator",regex:/[+\-*\/%|&^<>]|==|!=|<=|>=|In|Like|Between|And|Or|Not/i},{token:"constant.language",regex:/True|False/i},{token:"support.context.start",regex:/\[(?:[^\]\)])*\]\[/},{token:"support.variable.other",regex:/\[(?:[^\]\)\,])*\]?/},{token:"support.variable.parameter",regex:/\?\w+/},{token:"support.context.end",regex:/\]/},{token:"support.function",regex:/[_\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376-\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06E5-\u06E6\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4-\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E46\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\d_\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376-\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06E5-\u06E6\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4-\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E46\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*/}]}};d.inherits(f,e),b.CriteriaHighlightRules=f})}var __extends=this&&this.__extends||function(){var a=function(b,c){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])})(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c),b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),DevExpress;!function(a){!function(b){var c;!function(a){function b(a){return ko.observable(void 0===a||null===a?null:parseFloat(a))}function c(a){var b=d.getShortTypeName(a),c=this.valuesArray&&this.valuesArray.filter(function(a){return a.value==b})[0];return ko.observable(this.values&&void 0!==this.values[b]||c?b:a)}function f(a){return ko.observable(void 0!==a?"true"===String(a).toLowerCase():a)}function g(a){var b=(a||"").split(","),c=ko.observable(a);if(3===b.length)c=ko.observable("rgb("+b.join(", ")+")");else if(4===b.length){var d=Math.round(parseFloat(b[0])/255*100)/100;b.shift(),b.push(d.toString()),c=ko.observable("rgba("+b.join(", ")+")")}return c}function h(a){return Math.round(a).toString()}function i(a){var b=(a||"").split(", "),c=a;if(3===b.length)b[0]=b[0].split("(")[1],b[2]=b[2].split(")")[0],c=b.join(",");else if(4===b.length){var d=Math.round(255*parseFloat(b[3]));b.pop(),b[0]=b[0].split("(")[1],c=d.toString()+","+b.join(",")}return c}var j=function(){function a(){this.controlsMap={}}return a.prototype.getControlInfo=function(a){return this.controlsMap[a]||null},a.prototype.getControlType=function(a){var b=d.getTypeNameFromFullName(a["@ControlType"]||"");return this.controlsMap[b]?b:"Unknown"},a.prototype.createControl=function(a,b,c){var d=this.getControlType(a);return new(this.controlsMap[d]&&this.controlsMap[d].type||e.ElementViewModel)(a,b,c)},a.prototype.registerControl=function(a,b){void 0!==b.isToolboxItem&&(b.nonToolboxItem=!b.isToolboxItem),Object.defineProperty(b,"isToolboxItem",{get:function(){return!b.nonToolboxItem},set:function(a){b.nonToolboxItem=!a},enumerable:!0,configurable:!0}),this.controlsMap[a]=b,this.controlsMap[a].info=$.extend(!0,[],b.info)},a.prototype._getPropertyInfo=function(a,b,c){var d=a.filter(function(a){return a.displayName===b[c]||a.propertyName===b[c]||a.modelName===b[c]})[0];if(c===b.length-1)return d||null;if(d.info)return this._getPropertyInfo(d.info,b,c+1);if(d.from){var e=null;try{e=d.from({})}catch(a){return null}var f=e.getInfo&&e.getInfo();if(f)return this._getPropertyInfo(f,b,c+1)}return null},a.prototype.getPropertyInfo=function(a,b){var c=b;return $.isArray(b)||(c=b.split(".")),this._getPropertyInfo(this.controlsMap[a].info,c,0)},a}();a.ControlsFactory=j,a.floatFromModel=b,a.fromEnum=c,a.parseBool=f,a.colorFromString=g,a.saveAsInt=h,a.colorToString=i}(c=b.Utils||(b.Utils={}));var d;!function(d){var e=function(){function a(){}return a.prototype.initActions=function(a){this.actions=a,this.actions.forEach(function(a){a.disabled||(a.disabled=ko.observable(!1))})},a.prototype.getActions=function(a){return this.condition(a)?(this.setDisabled&&this.setDisabled(a),this.actions):[]},a.prototype.condition=function(a){return!0},a}();d.BaseActionsProvider=e;var f=function(){function a(){}return a.generateUri=function(a,b){return a=a||"",a&&"/"===a[a.length-1]&&b&&"/"===b[0]?a+b.substring(1):a+b},a}();d.RequestHelper=f;var g=function(e){function g(b,c){var d=e.call(this)||this;return d._options=b,d._customEventRaiser=c,d._templateHtml=a.Analytics.Widgets.Internal.getTemplate("dxrd-designer"),d}return __extends(g,e),g.prototype.dispose=function(){e.prototype.dispose.call(this),this.sender&&this.sender instanceof c.Disposable&&this.sender.dispose(),this.removeProperties()},g.prototype._fireEvent=function(a,b){if(this._customEventRaiser)return void this._customEventRaiser(a,b);this._options&&this._options.callbacks&&this._options.callbacks[a]&&this._options.callbacks[a](this.sender,b)},g.prototype._getServerActionUrl=function(a,b){return f.generateUri(a,b)},g.prototype._getAvailableEvents=function(a,b){var c=this,d=a;return b&&this._options.callbacks[b]?Object.keys(a).forEach(function(e){d[e]=c._options.callbacks[b][e]||a[e]}):Object.keys(a).forEach(function(b){d[b]=c._options.callbacks[b]||a[b]}),d},g.prototype._getLocalizationRequest=function(){var a=$.Deferred(),c=this._options.requestOptions;if(c.getLocalizationAction){var d=this._getServerActionUrl(c.host,c.getLocalizationAction);$.getJSON(d).fail(function(c,d,e){try{b.Internal._processError(e.message,$.Deferred(),c,d)}finally{a.reject()}}).done(function(b){a.resolve(b)})}else a.resolve();return a.promise()},g.prototype._createDisposeFunction=function(a){var b=this;d.addDisposeCallback(a,function(){b.dispose()})},g}(c.Disposable);d.JSDesignerBindingCommon=g}(d=b.Internal||(b.Internal={}));var e;!function(a){var b=function(){function a(a,b,c,d){void 0===a&&(a=0),void 0===b&&(b=0),void 0===c&&(c=0),void 0===d&&(d=0),this.left=ko.observable(0),this.top=ko.observable(0),this.width=ko.observable(0),this.height=ko.observable(0),this.className="dxrd-drag-helper-item",this.left(a),this.top(b),this.width(c),this.height(d)}return a}();a.Rectangle=b}(e=b.Elements||(b.Elements={})),function(a){var d=function(b){function c(a,c,d,f,g){var h=b.call(this)||this;return h._size=new e.Size(0,0),h.alwaysAlt=!1,h.surface=a,h.selection=c,h.snapHelper=f,h.dragHelperContent=g,h.stopDrag=function(a,b,c){d().start(),h.doStopDrag(a,b,c),d().end(),f&&f.deactivateSnapLines()},h}return __extends(c,b),c.prototype.dispose=function(){b.prototype.dispose.call(this),this.surface=null,this.selection=null,this.snapHelper=null,this.dragHelperContent=null},c.prototype._getAbsoluteSurfacePosition=function(a){return{left:a.position.left-a.delta.left,top:a.position.top-a.delta.top}},c.prototype.addControl=function(b,c,d){var e=c.width&&c.width()||c._width&&c._width(),f=c.underCursor();if(f.x<e){c.getControlModel().addChild(b);var g=a.findSurface(b);if(!g)return;var h=d.width(),i=d.height(),j=f.x+h>e?e-h-1:f.x;g.rect({left:j,top:Math.max(f.y,0),width:h,height:i}),this.selection.initialize(g)}},c.prototype.recalculateSize=function(b){var c=ko.unwrap(this.surface);this._size.width(a.unitsToPixel(ko.unwrap(b.width)*c.dpi()/100,c.measureUnit(),c.zoom())),this._size.height(a.unitsToPixel(ko.unwrap(b.height)*c.dpi()/100,c.measureUnit(),c.zoom()))},c.prototype.helper=function(a,b){this.snapHelper&&this.snapHelper.updateSnapLines(this.selection.dropTarget||null)},c.prototype.startDrag=function(a){},c.prototype.drag=function(a,b){var c=!0!==a.altKey;if(this.selection.dropTarget){var d=this.selection.dropTarget.getControlModel().getMetaData().isContainer?this.selection.dropTarget:this.selection.dropTarget.parent||this.selection.dropTarget,e=d.locked,f=ko.dataFor(a.target).getControlModel&&ko.dataFor(a.target).getControlModel(),g=f&&f.getMetaData()||ko.dataFor(a.target).info;g&&g.canDrop&&(e=e||!g.canDrop(d,f)),e?(this.snapHelper&&this.snapHelper.deactivateSnapLines(),c=!1,this.dragHelperContent&&this.dragHelperContent.isLocked(!0)):this.dragHelperContent&&this.dragHelperContent.isLocked(!1)}if(c){var h=this._getAbsoluteSurfacePosition(b),i=this.snapHelper&&this.snapHelper.activateSnapLines({left:h.left,top:h.top,right:h.left+this._size.width(),bottom:h.top+this._size.height()});b.position.left-=i.left,b.position.top-=i.top}},c.prototype.doStopDrag=function(a,b,c){},c.started=ko.observable(!1),c}(c.Disposable);a.DragDropHandler=d;var f=function(){function a(a,b){var c=this;this._selection=a,this._undoEngine=b,this.shortcutMap={27:function(a){return c.processEsc(),!0},37:function(a){return c.moveSelectedControls(!0,!0,-1),!0},38:function(a){return c.moveSelectedControls(!0,!1,-1),!0},39:function(a){return c.moveSelectedControls(!1,!0,1),!0},40:function(a){return c.moveSelectedControls(!1,!1,1),!0}}}return a.prototype.processShortcut=function(a){var b=this.shortcutMap[a.keyCode];return!!b&&b(a)},a.prototype.processEsc=function(){var a=this._selection.focused()&&this._selection.focused().parent;a&&this._selection.focused(a)},a.prototype.moveSelectedControls=function(a,b,c){var d=this._selection.focused();if(!(!d||d&&d.getControlModel().getMetaData().isCopyDeny)){this._undoEngine&&this._undoEngine().start();var e,f,g,h=1,i=b?"left":"top",j=b?"width":"height";d.rect&&(e=d.rect()[i],f=d.rect()[i]+d.rect()[j],this._selection.selectedItems.filter(function(a){return!a.locked}).forEach(function(a){var b=a.rect()[i];b<e&&(e=b)}),this._selection.selectedItems.filter(function(a){return!a.locked}).forEach(function(a){var b=a.rect()[i]+a.rect()[j];b>f&&(f=b)}),a&&e<=0||!d.parent.rect||!a&&f.toFixed(5)>=d.parent.rect()[j]||(this._selection.selectedItems.filter(function(a){return!a.locked}).filter(function(a){return!!a.rect}).forEach(function(b){var d={},e=b.rect()[i],f=b.rect()[j],k=b.parent.rect()[j];g=e+c*h,(a&&g>=0||!a&&g+f<=k)&&(d[i]=g),!a&&g+f>k&&(d[i]=k-f),a&&g<0&&e>0&&(d[i]=0),b.rect(d)}),this._undoEngine&&this._undoEngine().end()))}},a}();a.KeyboardHelper=f;var g=function(){function a(a){this._handlers=[],this._targetElement=a}return Object.defineProperty(a.prototype,"_activeHandler",{get:function(){return this._handlers.length>0?this._handlers[this._handlers.length-1]:null},enumerable:!0,configurable:!0}),a.prototype._removeHandler=function(a){var b=this._handlers.indexOf(a);b<0||(this._handlers.splice(b,1),b===this._handlers.length&&(this._targetElement.off("keydown",a),this._activeHandler&&this._targetElement.on("keydown",this._activeHandler)))},a.prototype.bindHandler=function(a,c){var d=this;this._activeHandler&&this._targetElement.off("keydown",this._activeHandler),this._handlers.push(c),this._targetElement.on("keydown",c),b.Internal.addDisposeCallback(a,function(){d._removeHandler(c)})},a}();a.KeyDownHandlersManager=g,ko.bindingHandlers.cssArray={update:function(a,b,c,d,e){for(var f=ko.utils.unwrapObservable(b()),g=0;g<f.length;g++)ko.bindingHandlers.css.update(a,function(){return f[g]})}},ko.bindingHandlers.selectable={init:function(a,c,d,e,f){var g=c(),h=$(a),i=ko.unwrap(g.selection),j=$.extend({filter:".dxd-selectable",distance:1},ko.unwrap(g),{selecting:function(a,b){var c={control:ko.dataFor(b.selecting),cancel:!1,ctrlKey:a.ctrlKey};i.selecting(c),c.cancel&&$(b.selecting).removeClass("ui-selecting")},start:function(a,b){i.clickHandler(null,a),i.started=!0,a.stopPropagation()},stop:function(){i.started=!1,i.applySelection()},unselecting:function(a,b){i.unselecting(ko.dataFor(b.unselecting))}});h.selectable(j);var k=[],l=function(a,b){a&&ko.isSubscribable(a)&&k.push(a.subscribe(function(a){h.selectable("option",b,a)}))};l(i.disabled,"disabled"),l(g.zoom,"zoom"),b.Internal.addDisposeCallback(a,function(){h.data("ui-selectable")&&h.selectable("destroy"),h=null,l=null,k.forEach(function(a){return a.dispose()})})}},ko.bindingHandlers.updateTop={init:function(a,c,d,e,f){var g=c(),h=$(a),i=function(b){var c=a.getBoundingClientRect().height/a.offsetHeight,d=0===b||b?b:h.prev().position().top/c+h.prev().outerHeight();h.css("top",d+"px")},j=g.subscribe(function(a){i(a)});i(g()),b.Internal.addDisposeCallback(a,function(){j.dispose()})}},ko.bindingHandlers.draggable={init:function(b,c,d,e,f){var g=c();if(g){var h,i,j,k=$(b),l=k.closest(".dx-designer"),m=g.containment||".dxrd-ghost-container",n={left:0,top:0},o=function(a){a.delta={left:i.left-j.left,top:i.top-j.top},a.scroll={left:h.scrollLeft()-n.left,top:h.scrollTop()-n.top}},p=$.extend({},ko.unwrap(g),{start:function(b,c){a.DragDropHandler.started(!0);k.data("ui-draggable");h=l.find(".dxrd-viewport"),i=l.find(".dxrd-ghost-container").offset(),j=l.find(m).offset(),n.left=h.scrollLeft(),n.top=h.scrollTop(),g.startDrag&&g.startDrag(ko.dataFor(b.currentTarget||b.toElement))},stop:function(b,c){o(c),g.stopDrag(c,ko.dataFor(b.target),b),a.DragDropHandler.started(!1)},drag:function(a,b){o(b),g.drag&&g.drag(a,b)},helper:function(a){g.helper&&g.helper(ko.dataFor(a.currentTarget||a.toElement),a);var b=l.find(".dxrd-drag-helper-source").clone().css({display:"block"});return b.prependTo(l.find(p.containment)),ko.applyBindings(f.$root,b[0]),b}});p.containment=l.find(p.containment),k.draggable(p),a.addDisposeCallback(b,function(){k.data("ui-draggable")&&k.draggable("destroy")})}}};var h="dxd-track-cursor";ko.bindingHandlers.trackCursor={init:function(a,c,d,e,f){var g=$(a);g.addClass(h);var i=c(),j=null,k=(c().dropTarget,c().subscriptionTarget,document.body),l=document.documentElement,m=function(b){f.$root.selection.started&&f.$root.resizeHandler.started||(j=a.getBoundingClientRect(),i().isNotDropTarget||(f.$root.selection.dropTarget=ko.dataFor(a),b.stopPropagation()))},n=function(a){i($.extend(i(),{isOver:!0}))},o=function(a){f.$root.selection.dropTarget=null,i($.extend(i(),{isOver:!1}))},p=function(b){if(!f.$root.selection.started||!f.$root.resizeHandler.started){j=a.getBoundingClientRect();var c=window.pageYOffset||l.scrollTop||k.scrollTop,d=window.pageXOffset||l.scrollLeft||k.scrollLeft,e=l.clientTop||k.clientTop||0,g=l.clientLeft||k.clientLeft||0,h=b.pageY-(j.top+c-e),m=b.pageX-(j.left+d-g);i($.extend(i(),{x:m,y:h}))}};g.bind("mousemove",p),g.bind("mouseenter",n),g.bind("mouseover",m),g.bind("mouseleave",o),g.bind("dragover",function(a){p(a.originalEvent)}),b.Internal.addDisposeCallback(a,function(){g.unbind("dragover",function(a){p(a.originalEvent)}),g.unbind("mousemove",p),g.unbind("mouseover",m),g.unbind("mouseleave",o),g.unbind("mouseenter",n),g.removeClass(h)})}},ko.bindingHandlers.templates={init:function(a,b){var c=$(b()).text(),d=$(c);return $(a).append(d),{controlsDescendantBindings:!0}}},ko.bindingHandlers.zoom={update:function(b,c){for(var d=ko.unwrap(c()||{}),e=0;e<a.cssTransform.length;e++)b.style[a.cssTransform[e]]="scale("+d+")";$(b).addClass("dxrd-transform-origin-left-top")}},ko.bindingHandlers.keyDownActions=function(){var c=new a.KeyDownHandlersManager($(window));return{init:function(a,d){var e=d(),f=function(a){e.processShortcut(ko.unwrap(e.toolbarItems),a)};if(ko.isSubscribable(e.enabled)){var g=e.enabled.subscribe(function(b){b&&c.bindHandler(a,f)});b.Internal.addDisposeCallback(a,function(){return g.dispose()})}ko.unwrap(e.enabled)&&c.bindHandler(a,f)}}}(),ko.extenders.dxdnum=function(a,b){return a.subscribe(function(c){b.max?a(Math.min(c,b.max)):b.min&&a(Math.max(c,b.min))}),a};var i=function(a){function b(b,c,d,e,f){var g=a.call(this,c,d,e,f)||this;return g.position=b,g}return __extends(b,a),b}(e.Rectangle);a.DragHelperControlRectangle=i;var j=function(a){function b(b){var c=a.call(this)||this;return c.controls=ko.observableArray([]),c.customData=ko.observable({}),c.isLocked=ko.observable(!1),c._selectionProvider=b,c}return __extends(b,a),Object.defineProperty(b.prototype,"_isEmpty",{get:function(){return 0===this.controls().length},enumerable:!0,configurable:!0}),b.prototype.reset=function(){this.controls([]),this.customData({})},b.prototype.update=function(a){var b=this;if(this.left(a.absolutePosition.x()),this.top(a.absolutePosition.y()),this.width(a.rect().width),this.height(a.rect().height),this._isEmpty){var c=[];this._selectionProvider.selectedItems.forEach(function(b,d){b.locked||b.parent!==a.parent||c.push(new i(d))}),this.controls(c)}this.controls().forEach(function(a){var c=b._selectionProvider.selectedItems[a.position];a.left(c.absolutePosition.x()-b.left()),a.top(c.absolutePosition.y()-b.top()),a.width(c.rect().width),a.height(c.rect().height)})},b.prototype.setContent=function(a,b){void 0===b&&(b=null),this._isEmpty&&this.controls([a]),this.left(a.left()),this.top(a.top()),this.width(a.width()),this.height(a.height()),this.customData(b)},b}(e.Rectangle);a.DragHelperContent=j;var k=function(b){function c(a,c,d,e,f){var g=b.call(this,a,c,d,e,f)||this;return g.cursor="move",g.containment=".dxrd-ghost-container",g.helper=function(a){b.prototype.helper.call(g,a),-1===g.selection.selectedItems.indexOf(a)&&g.selection.updateSelection(a),f.update(a),g._size.width(f.width()),g._size.height(f.height())},g}return __extends(c,b),c.prototype.adjustDropTarget=function(a){for(var b=a;null!=b;){if(b.selected&&b.selected()){a=b.parent;break}b=b.parent}return a},c.prototype.startDrag=function(a){this.selection.swapFocusedItem(a);var b=this.selection.focused(),c=b.rect().left+b.underCursor().x,d=b.rect().top+b.underCursor().y;this.selection.selectedItems.filter(function(a){return!a.locked}).forEach(function(a){a.parent===b.parent&&(a.underCursor().offsetX=a.rect().left-c,a.underCursor().offsetY=a.rect().top-d)})},c.prototype.drag=function(a,c){c.position.left+=c.scroll.left,c.position.top+=c.scroll.top,b.prototype.drag.call(this,a,c)},c.prototype.getLocation=function(a,b){var c=a.underCursor().x+b.underCursor().offsetX,d=a.underCursor().y+b.underCursor().offsetY;return{left:c>0?c:0,top:d>0?d:0}},c.prototype.ajustLocation=function(a,b){b.rect(this.getLocation(a,b))},c.prototype.doStopDrag=function(b,c){if(this.dragHelperContent.reset(),this.selection.dropTarget){var d=this.selection.dropTarget.getControlModel(),e=d.getNearestParent(d).surface,f=this.selection.focused(),g=this.adjustDropTarget(e),h=f.getControlModel(),i=h.getNearestParent(g.getControlModel()),g=i&&a.findSurface(i),j=g!==f.parent;if(!g||!g.canDrop())return;var k=this._getAbsoluteSurfacePosition(b);g.underCursor().x=k.left-(g.absolutePosition&&g.absolutePosition.x()||0)-f.underCursor().offsetX,g.underCursor().y=k.top-(g.absolutePosition&&g.absolutePosition.y()||0)-f.underCursor().offsetY;var l=(b.position.left,b.position.top,this.selection.selectedItems.filter(function(a){return!a.locked&&a.parent===f.parent}).map(function(a){return a.getControlModel()}).filter(function(a){return a.getMetaData().canDrop(g,a)}));if(j){for(var m=0;m<l.length;m++)l[m].surface.rect({top:0,left:0});h.parentModel().removeChilds(l),i.addChilds(l);for(var m=0;m<l.length;m++)this.ajustLocation(g,l[m].surface);this.selection.focused(f),this.selection.selectItems(l.map(function(a){return a.surface}))}else{for(var m=0;m<l.length;m++)this.ajustLocation(g,l[m].surface);this.selection.expectClick=!0}}},c.prototype.create=function(a,b){ko.dataFor(a.target).locked&&$(this).draggable("disable")},c}(d);a.SelectionDragDropHandler=k;var l=function(b){function c(a,c,d,e,f,g){var h=b.call(this,a,c,d,e,f)||this;return h.cursor="arrow",h._controlsFactory=g,h.containment=".dxrd-designer",h.cursorAt={top:0,left:0},h}return __extends(c,b),c.prototype.helper=function(a){b.prototype.helper.call(this,a);var c=a,d=e.Size.fromString(c.info["@SizeF"]||c.info.size||"100,23");this.recalculateSize(d),this.dragHelperContent.setContent(new e.Rectangle(0,0,this._size.width(),this._size.height()))},c.prototype.doStopDrag=function(b,c){if(this.dragHelperContent.reset(),this.selection.dropTarget){var d=c,e=this._controlsFactory.createControl($.extend({},d.info),null),f=e.getNearestParent(this.selection.dropTarget.getControlModel()),g=a.findSurface(f);if(!g||!g.canDrop())return;var h=this._getAbsoluteSurfacePosition(b);g.underCursor().x=h.left-(g.absolutePosition&&g.absolutePosition.x()||0),g.underCursor().y=h.top-(g.absolutePosition&&g.absolutePosition.y()||0),(this.surface().isFit&&this.surface().isFit(g)||g.underCursor().isOver)&&this.addControl(e,g,this._size)}},c}(d);a.ToolboxDragDropHandler=l}(d=b.Internal||(b.Internal={}));var f;!function(a){var c=function(a){function b(b,c,d,e){var f=a.call(this,b,c,d,e)||this;return f._disposables.push(f.displayValue=ko.pureComputed({read:function(){var a=ko.unwrap(f.value);if(a&&"transparent"===a.toLowerCase())return"rgba(0,0,0,0)";if(/^rgba\s*\((\s*[a-f\d]+\s*,){3}\s*[a-f\d]+\s*\)$/i.test(a))return a;var b=document.createElement("div");return b.style.backgroundColor=a,b.style.backgroundColor||"rgba(0,0,0,1)"},write:function(a){f.value(a)}})),f}return __extends(b,a),b}(a.Editor);a.ColorPickerEditor=c;var d=function(a){function b(b,c,d,f){var g=a.call(this,b,c,d,f)||this;return g.path=ko.pureComputed(function(){return g._model()&&g._model().getPath&&g._model().getPath(g.name)||""}),g.treeListController=new e.TreeListController,g._disposables.push(g.path),g._disposables.push(g.treeListController),g}return __extends(b,a),b}(a.Editor);a.FieldListEditor=d;var e;!function(a){var b=function(){function a(){this.selectedItem=null,this.suppressActions=!0}return a.prototype.dispose=function(){this.selectedItem=null},a.prototype.itemsFilter=function(a){return"parameters"!==a.specifics&&("List"===a.specifics||"ListSource"===a.specifics||!0===a.isList||"none"===a.specifics)},a.prototype.hasItems=function(a){return"none"!==a.specifics},a.prototype.canSelect=function(a){return this.hasItems(a.data)&&!!a.path&&("List"===a.data.specifics||"ListSource"===a.data.specifics)||"none"===a.data.specifics},a.prototype.select=function(a){this.canSelect(a)&&(this.selectedItem&&this.selectedItem.isSelected(!1),this.selectedItem=a,a.isSelected(!0))},a}();a.DataMemberTreeListController=b}(e=a.Internal||(a.Internal={}));var f=function(a){function b(b,c,d,f){var g=a.call(this,b,c,d,f)||this;return g.treeListController=new e.DataMemberTreeListController,g._disposables.push(g.treeListController),g}return __extends(b,a),b}(d);a.DataMemberEditor=f,function(b){function c(a,c){return{header:"dx-number-editor",editorType:function(d){function e(a,b,c,e){return d.call(this,a,b,c,e)||this}return __extends(e,d),e.prototype.getOptions=function(e){var f=d.prototype.getOptions.call(this,e);return b.ValueEditorHelper.getNumberEditorOptions(a,c,f)},e}(d)}}var d=function(a){function c(){return null!==a&&a.apply(this,arguments)||this}return __extends(c,a),c.prototype._getEditorValidationRules=function(){return(a.prototype._getEditorValidationRules.call(this)||[]).concat(this.editorOptions&&this.editorOptions.showClearButton&&ko.unwrap(this.editorOptions.showClearButton)?[]:b.requiredValidationRules)},c}(a.Editor);b.RequiredNullableEditor=d,b.createNumericEditor=c}(e=a.Internal||(a.Internal={})),a.coreEditorTemplates={guid:{header:"dxrd-guid",editorType:a.GuidEditor},date:{header:"dx-date",editorType:e.RequiredNullableEditor},borders:{header:"dxrd-borders"},objecteditorCustom:{custom:"dxrd-objectEditorContent",editorType:a.PropertyGridEditor},field:{header:"dxrd-field",editorType:d},dataMember:{header:"dxrd-field",editorType:f},filterEditor:{header:"dxrd-filterstring"},formatEditor:{header:"dxrd-formatstring"},expressionEditor:{header:"dxrd-expressionstring"},customColorEditor:{header:"dxrd-colorpicker",editorType:c},sbyte:e.createNumericEditor("System.SByte","integer"),decimal:e.createNumericEditor("System.Decimal","float"),int64:e.createNumericEditor("System.Int64","integer"),int32:e.createNumericEditor("System.Int32","integer"),int16:e.createNumericEditor("System.Int16","integer"),single:e.createNumericEditor("System.Single","float"),double:e.createNumericEditor("System.Double","float"),byte:e.createNumericEditor("System.Byte","integer"),uint16:e.createNumericEditor("System.UInt16","integer"),uint32:e.createNumericEditor("System.UInt32","integer"),uint64:e.createNumericEditor("System.UInt64","integer")},a.editorTemplates=b.Internal.extend(a.editorTemplates,a.coreEditorTemplates)}(f=b.Widgets||(b.Widgets={})),function(a){var e=function(a){function b(b,c,e){var f=a.call(this)||this;f._createSurface=function(a){return a.surface||new(a.getControlFactory().controlsMap[a.controlType].surfaceType)(a,f._context)},f.preInitProperties(b,c,e),f._control=b,f._context=c,b.surface=f,f._context&&d.createUnitProperties(b,f,e,f._context.measureUnit,f._context.zoom,function(a){f._disposables.push(a)}),f._x=f._x||ko.observable(0),f._y=f._y||ko.observable(0),f._width=f._width||ko.observable(0),f._height=f._height||ko.observable(0);var g=ko.pureComputed(function(){return f.container()});f._disposables.push(g),f._container=g(),f._disposables.push(g.subscribe(function(a){if(f._container!==a&&f.rtlLayout()){var b=f._getX();f._container=a,f._setX(b)}else f._container=a}));var h=ko.computed({read:function(){return f._getX()},write:function(a){f._setX(a)}}),i=f._y,j=f._width,k=f._height;f.position={top:i,left:h,width:j,height:k,lineHeight:k},f._disposables.push(h);var l=ko.observable();return f._disposables.push(ko.computed(function(){f._control.update()||l({top:i(),left:h(),right:h()+j(),bottom:i()+k(),width:j(),height:k()})})),f._disposables.push(f.rect=ko.pureComputed({read:function(){return l()},write:function(a){a=f.beforeRectUpdated(a),f._control.update(!0);try{void 0!==a.left?f._setX(a.left,a.width):void 0!==a.width&&f._setX(h(),a.width),void 0!==a.top&&i(a.top),void 0!==a.right&&void 0===a.left&&void 0===a.width&&j(a.right-h()),void 0!==a.bottom&&void 0===a.top&&k(a.bottom-i()),void 0!==a.right&&void 0!==a.left&&void 0===a.width&&j(a.right-a.left),void 0!==a.bottom&&void 0!==a.top&&k(a.bottom-a.top),void 0!==a.width&&j(a.width),void 0!==a.height&&k(a.height)}finally{f._control.update(!1)}}})),f}return __extends(b,a),b.prototype._getX=function(){return this.rtlLayout()&&this._container?this._container.rect().width-this._x()-this._width():this._x()},b.prototype._setX=function(a,b){b=b||this._width(),this.rtlLayout()&&this._container?this._x(this._container.rect().width-a-b):this._x(a)},b.prototype.getRoot=function(){return this._context},b.prototype.preInitProperties=function(a,b,c){},b.prototype.container=function(){return this.parent},b.prototype.beforeRectUpdated=function(a){return a.left=a.left<0?0:a.left,a.top=a.top<0?0:a.top,a},b.prototype.rtlLayout=function(){return!!ko.unwrap(this._context.rtl)},b.prototype.getControlModel=function(){return this._control},b}(c.Disposable);a.SurfaceElementArea=e;var g=function(a){function b(b,c,e){var f=a.call(this,b,c,e)||this;if(f._countSelectedChildren=ko.observable(0),f.focused=ko.observable(!1),f.selected=ko.observable(!1),f.underCursor=ko.observable(new d.HoverInfo),f.allowMultiselect=!0,f.absolutePosition=new l(0,0),f.getControlModel=function(){return b},f.cssCalculator=new d.CssCalculator(b,c.rtl),f._getChildrenHolderName()&&b[f._getChildrenHolderName()]){var g=ko.observableArray();"controls"===f._getChildrenHolderName()?f._disposables.push(d.createObservableReverseArrayMapCollection(b[f._getChildrenHolderName()],g,f._createSurface)):f._disposables.push(d.createObservableArrayMapCollection(b[f._getChildrenHolderName()],g,f._createSurface)),f[f._getChildrenHolderName()]=g,f._disposables.push(f.isSelected=ko.pureComputed(function(){return!(!f.focused()&&!f.selected())||g().some(function(a){return a.isSelected()})}))}else f._disposables.push(f.isSelected=ko.pureComputed(function(){return f.focused()||f.selected()}));return f._disposables.push(f.css=ko.pureComputed(function(){return $.extend({},f.cssCalculator.fontCss(),f.cssCalculator.foreColorCss(),f.cssCalculator.backGroundCss(),f.cssCalculator.textAlignmentCss())})),f._disposables.push(f.contentCss=ko.pureComputed(function(){return $.extend({},f.cssCalculator.fontCss(),f.cssCalculator.foreColorCss(),f.cssCalculator.textAlignmentCss(),f.cssCalculator.angle(),f.cssCalculator.wordWrapCss(),f.cssCalculator.paddingsCss())})),f._disposables.push(ko.computed(function(){f.updateAbsolutePosition()})),f._disposables.push(f.absoluteRect=ko.pureComputed(function(){var a=f.rect(),b=f.absolutePosition.y(),c=f.absolutePosition.x();return{top:b,left:c,right:c+a.width,bottom:b+a.height,width:a.width,height:a.height}})),f.locked=!!b.lockedInUserDesigner&&b.lockedInUserDesigner(),f}return __extends(b,a),Object.defineProperty(b.prototype,"parent",{get:function(){return this.getControlModel().parentModel()&&this.getControlModel().parentModel().surface},enumerable:!0,configurable:!0}),b.prototype.checkParent=function(a){return this.parent===a},b.prototype._getChildrenHolderName=function(){return"controls"},b.prototype.getChildrenCollection=function(){return this._getChildrenHolderName()&&this[this._getChildrenHolderName()]||ko.observableArray([])},b.prototype.updateAbsolutePosition=function(){if(this.parent&&this.parent.absolutePosition){var a=this.parent.absolutePosition.x(),b=this.parent.absolutePosition.y(),c=a+this.rect().left,d=b+this.rect().top;this.absolutePosition.x(c),this.absolutePosition.y(d)}else this.absolutePosition.x(0),this.absolutePosition.y(0);this.afterUpdateAbsolutePosition()},b.prototype.canDrop=function(){return!this.locked&&this._control.getMetaData().isContainer},b.prototype.afterUpdateAbsolutePosition=function(){},b}(e);a.SurfaceElementBase=g;var h=function(a){function e(e,f,g){var h=a.call(this)||this;return h.actions=[],h.update=ko.observable(!1),h.preInitProperties(e,f,g),h.parentModel=ko.observable(f),h.controlType=h.controlType||h.getControlFactory().getControlType(e),g=g||new c.ModelSerializer,g.deserialize(h,e),h._disposables.push(h.displayName=ko.pureComputed(function(){var a=h.name&&h.name();return a||(a="unnamed "+h.controlType),a})),h.resetValue=function(a){if(h[a].resetValue)h[a].resetValue();else{var b=h.getPropertyDefaultValue(a);ko.isObservable(h[a])?h[a](b):d.copyObservables(b,h[a])}},h.actions.push({action:h.resetValue,title:b.Utils.getLocalization("Reset","AnalyticsCoreStringId.PropertyGrid_PopupMenu_Reset"),visible:h.isResettableProperty}),h}return __extends(e,a),e.prototype.getPropertyDefaultValue=function(a){var b=this.getPropertyInfo(a);return ko.unwrap(b&&(new c.ModelSerializer).deserializeProperty(b,{}))},e.prototype.getPropertyInfo=function(a){return this.getInfo().filter(function(b){return b.propertyName===a})[0]},e.prototype.getInfo=function(){return this.getControlFactory().controlsMap[this.controlType].info},e.prototype.createControl=function(a,b){return this.getControlFactory().createControl(a,this,b)},e.prototype.dispose=function(){a.prototype.dispose.call(this),this.surface&&this.surface.dispose()},e.prototype.preInitProperties=function(a,b,c){},e.prototype.getNearestParent=function(a){return a.getMetaData().isContainer?a:a.getNearestParent(a.parentModel())},e.prototype.getControlInfo=function(){return this.getControlFactory().controlsMap[this.controlType||"Unknown"]},e.prototype.getMetaData=function(){var a=this.controlType?this.controlType:"Unknown",b=this.getControlFactory().controlsMap[a];return{isContainer:b.isContainer||!1,isCopyDeny:b.isCopyDeny||!1,isDeleteDeny:b.isDeleteDeny||!1,canDrop:b.canDrop||function(){return!0},isPasteDeny:b.isPasteDeny||!b.isContainer}},e.prototype._hasModifiedValue=function(a){return this["_"+a]&&this["_"+a]()&&this.isPropertyModified(a)},e.prototype.createChild=function(a){var b=this.getControlFactory().createControl(a,this);return this.addChild(b),b},e.prototype.removeChilds=function(a){if(this.controls){for(var b=this.controls(),c=0;c<a.length;c++)b.splice(b.indexOf(a[c]),1);this.controls.valueHasMutated()}},e.prototype.addChilds=function(a){if(this.controls){for(var b=this.controls(),c=0;c<a.length;c++)b.splice(0,0,a[c]);this.controls.valueHasMutated()}},e.prototype.removeChild=function(a){this.controls&&this.controls.splice(this.controls().indexOf(a),1)},e.prototype.addChild=function(a){this.controls&&-1===this.controls().indexOf(a)&&(a.parentModel(this),this.controls.splice(0,0,a))},e.prototype.isPropertyVisible=function(a){return!0},e.prototype.isPropertyDisabled=function(a){return!1},e.prototype.isPropertyModified=function(a){var b=this["_"+a]?"_"+a:a;if(this[b].isPropertyModified)return this[b].isPropertyModified();if(this[b].isEmpty)return!this[b].isEmpty();var c=this.getPropertyDefaultValue(a),e=ko.unwrap(this[b]);return c instanceof Object?!d.compareObjects(c,e):c!==e},e.prototype.getControlFactory=function(){throw Error("Virtual method getControlFactory")},e.prototype.isResettableProperty=function(a){return-1===["name","size","location"].indexOf(a)},Object.defineProperty(e.prototype,"root",{get:function(){for(var a=this;a&&a.parentModel();)a=a.parentModel();return a},enumerable:!0,configurable:!0}),e.prototype.rtl=function(){return!1},e}(c.Disposable);a.ElementViewModel=h;var i=function(){function a(a,b,c,d){this.bottom=ko.observable(d),this.left=ko.observable(a),this.right=ko.observable(b),this.top=ko.observable(c)}return a.prototype.getInfo=function(){return j.paddingSerializationsInfo},a.prototype.isEmpty=function(){return this.toString()===a.defaultVal},a.fromString=function(b){void 0===b&&(b=a.defaultVal);var c=b.split(",");return new a(parseInt(c[0]),parseInt(c[1]),parseInt(c[2]),parseInt(c[3]))},a.prototype.toString=function(){return Math.round(this.left())+", "+Math.round(this.right())+", "+Math.round(this.top())+", "+Math.round(this.bottom())},a.defaultVal="100, 100, 100, 100",a.unitProperties=["left","right"],a}();a.Margins=i;var j;!function(a){a.left={propertyName:"left",modelName:"@Left",localizationId:"AnalyticsCoreStringId.PaddingInfo.Left",displayName:"Left",editor:f.editorTemplates.numeric},a.right={propertyName:"right",localizationId:"AnalyticsCoreStringId.PaddingInfo.Right",modelName:"@Right",displayName:"Right",editor:f.editorTemplates.numeric},a.top={propertyName:"top",localizationId:"AnalyticsCoreStringId.PaddingInfo.Top",modelName:"@Top",displayName:"Top",editor:f.editorTemplates.numeric},a.bottom={propertyName:"bottom",localizationId:"AnalyticsCoreStringId.PaddingInfo.Bottom",modelName:"@Bottom",displayName:"Bottom",editor:f.editorTemplates.numeric},a.all={propertyName:"all",localizationId:"AnalyticsCoreStringId.PaddingInfo.All",displayName:"All",editor:f.editorTemplates.numeric},a.paddingSerializationsInfo=[a.all,a.left,a.right,a.top,a.bottom]}(j=a.Metadata||(a.Metadata={}));var k=function(a){function b(b,c,d,e,f){void 0===b&&(b=ko.observable(null)),void 0===c&&(c=ko.observable(null)),void 0===d&&(d=ko.observable(null)),void 0===e&&(e=ko.observable(null)),void 0===f&&(f=ko.observable(100));var g=a.call(this)||this;g.left=b,g.right=c,g.top=d,g.bottom=e,g.dpi=f,["left","right","top","bottom"].forEach(function(a){g["_"+a]=ko.observable(g[a]()),g._disposables.push(g[a]=ko.computed({read:function(){return g["_"+a]()||0},write:function(b){g["_"+a](b)}}))});var h=ko.observable(!1),i=null;return g._disposables.push(g.all=ko.computed({read:function(){return h()?i:i=["right","top","bottom"].every(function(a){return g[a]()===g.left()})?g.left():null},write:function(a){h(!0),["left","right","top","bottom"].forEach(function(b){return g[b](a)}),h(!1)}})),g}return __extends(b,a),b.prototype.getInfo=function(){return j.paddingSerializationsInfo},b.prototype.resetValue=function(){var a=this;["left","right","top","bottom"].forEach(function(b){return a["_"+b](null)})},b.prototype.isEmpty=function(){var a=this;return["left","right","top","bottom"].map(function(b){return ko.unwrap(a["_"+b])}).every(function(a){return null===a})},b.prototype.applyFromString=function(a){if(a){var b=(a||"").split(",");this.left(parseInt(b[0])||0),this.right(parseInt(b[1])||0),this.top(parseInt(b[2])||0),this.bottom(parseInt(b[3])||0)}return this},b.from=function(a){return(new b).applyFromString(a)},b.prototype.toString=function(){if(!this.isEmpty())return this._toString()},b.prototype._toString=function(a){var b=this;return void 0===a&&(a=!1),["left","right","top","bottom"].map(function(a){return parseInt(ko.unwrap(b[a]))}).concat(this.dpi()).join(", ")},b.defaultVal="0, 0, 0, 0, 100",b.unitProperties=["left","right","top","bottom"],b}(c.Disposable);a.PaddingModel=k;var l=function(){function a(a,b){this.x=ko.observable(a),this.y=ko.observable(b)}return a.prototype.getInfo=function(){return d.locationFake},a.fromString=function(b){void 0===b&&(b="0, 0");var c=b.split(",");return new a(parseFloat(c[0]),parseFloat(c[1]))},a.prototype.toString=function(){return this.x()+", "+this.y()},a.unitProperties=["x","y"],a}();a.Point=l;var m=function(a){function b(b,d,e){var f=a.call(this)||this;return f.preInitProperties(b,d,e),e&&(f.getInfo=function(){return e}),d=d||new c.ModelSerializer,d.deserialize(f,b,e),f}return __extends(b,a),b.prototype.preInitProperties=function(a,b,c){},b}(c.Disposable);a.SerializableModel=m;var n=function(){function a(a,b){this.isPropertyDisabled=function(a){},this.height=ko.observable(b).extend({dxdnum:{min:2}}),this.width=ko.observable(a).extend({dxdnum:{min:2}})}return a.prototype.getInfo=function(){return d.sizeFake},a.fromString=function(b){void 0===b&&(b="0, 0");var c=b.split(",");return new a(parseFloat(c[0]),parseFloat(c[1]))},a.prototype.toString=function(){return this.width()+", "+this.height()},a.unitProperties=["width","height"],a}();a.Size=n}(e=b.Elements||(b.Elements={})),function(a){function b(a){var b=[];for(var d in a)if(!a[d].nonToolboxItem){var e={"@ControlType":d,displayName:a[d].displayName,index:a[d].toolboxIndex||0,canDrop:a[d].canDrop};if(a[d].size&&(e.size=a[d].size),a[d].defaultVal)for(var f in a[d].defaultVal)e[f]=a[d].defaultVal[f];b.push(new c.ToolboxItem(e))}return b.sort(function(a,b){return a.index-b.index})}function d(a){try{a.blur&&a.blur()}catch(a){document.body.blur()}}function e(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0;return("x"==a?b:3&b|8).toString(16)})}a.getToolboxItems=b,a.blur=d,a.guid=e}(d=b.Internal||(b.Internal={})),function(a){var b=function(){function a(){this.ajaxSettings={}}return a.prototype.sendRequest=function(a){return $.ajax($.extend({},this.ajaxSettings,a))},a}();a.AjaxSetup=b}(d=b.Internal||(b.Internal={})),function(a){a.ajaxSetup=new d.AjaxSetup}(c=b.Utils||(b.Utils={})),function(d){function g(a,b){if(b){if("Left"===a)return"Right";if("Right"===a)return"Left"}return a}function h(a){return d.editorTypeMapper[a]||f.editorTemplates.text}function i(a){return a.split(",")[0].trim()}function j(a){var b=i(a),c=b.split(".");return c[c.length-1]}function k(a){if(!a)return"";var b=ko.unwrap(a.name)||ko.unwrap(a.displayName),d=a.displayType&&a.displayType()||a.controlType;if(a.getControlFactory){var e=a.getControlFactory().getControlInfo(d);e.displayName&&(d=e.displayName)}return b+(d?" ("+c.getLocalization(j(d))+")":"")}function l(a,b){void 0===b&&(b=!1);var c,a=i(a||"").split(".").join("_");return 0===a.indexOf("XR")?c=a.slice(2).toLowerCase():"DevExpress_XtraReports_UI_XtraReport"===a&&(c="master_report"),(b?"dxrd-svg-toolbox-":"dxrd-image-")+(c||a.toLowerCase())}function m(a,b,c){if(0===b.indexOf("XR"))b=b[2].toLowerCase()+b.slice(3);else{var d=b.indexOf("Band");-1!==d&&"SubBand"!==b&&(b=b.slice(0,d)+b.slice(d+4))}return n(c||a.map(function(a){return ko.unwrap(a.name)}),b)}function n(a,b){for(var c=1,d=b+c;a.filter(function(a){return a===d}).length>0;)c++,d=b+c;return d}function o(a){var c=b.Internal.Globalize;c&&a&&(a.cldrSupplemental&&c.load(a.cldrSupplemental),a.cldrData&&c.load(a.cldrData),a.currentCulture&&c.locale(a.currentCulture))}function p(a,b){a&&b&&(27===a.keyCode&&b.esc&&b.esc(),13===a.keyCode&&a.ctrlKey&&b.ctrlEnter&&b.ctrlEnter())}function q(a,b,c,e,f){var g=a,h=d.getErrorMessage(c);h&&h!==g&&(d._addErrorPrefix?g+=": "+h:g=h);try{f?f(g,c,e):d.NotifyAboutWarning(g)}finally{b.reject(c,e,a)}}function r(a){return a&&d._errorProcessor.handlers.push(a),{dispose:function(){a&&s(a)}}}function s(a){d._errorProcessor.handlers.splice(d._errorProcessor.handlers.indexOf(a),1)}function t(a){return a?a.surface:null}function u(a,b,c,d){var e={top:b.top+d.y,left:b.left+d.x,bottom:b.top+c.originalSize.height,right:b.left+c.originalSize.width};return 0!==d.x?e.left=a.snapPosition(e.left,!1):0!==d.width&&(e.right=a.snapPosition(b.left+c.size.width,!1)),0!==d.y?e.top=a.snapPosition(e.top,!0):0!==d.height&&(e.bottom=a.snapPosition(b.top+c.size.height,!0)),e}function v(a){return parseInt(a,10)||0}function w(a,b,c){var d=v(a.css("left")),e=v(a.css("top"));if(c.rtl()){var f=c.pageWidth()-c.margins.left()-a.width();d>f&&(d=f)}var g=a[0].getBoundingClientRect();return{top:e,left:d,width:g.width,height:g.height}}function x(a){return Math.min(a.scrollHeight,a.offsetHeight,a.clientHeight)+a.offsetTop}function y(a,b){return b&&(x(a)<x(b)?window:b)||window}function z(a,b,c){return void 0===c&&(c=!1),function(){var d=$(b).find(".dxrd-designer").eq(0),e=d.find(".dxrd-toolbox-wrapper:visible").outerWidth()||0,f=(d.find(".dxrd-right-panel:visible").outerWidth()||0)+(d.find(".dxrd-right-tabs:visible").outerWidth()||0),g=f+e,h=d.width()-g;d.find(".dxrd-surface-wrapper").eq(0).css({left:c?f:e,right:c?e:f,width:h,bottom:d.find(".dxrd-navigation-panel-wrapper:visible").outerHeight()||0}),a(h)}}function A(a){if(!a)return!1;var b="\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376-\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E-\\u066F\\u0671-\\u06D3\\u06D5\\u06E5-\\u06E6\\u06EE-\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4-\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B4\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F-\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC-\\u09DD\\u09DF-\\u09E1\\u09F0-\\u09F1\\u0A05-\\u0A0A\\u0A0F-\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32-\\u0A33\\u0A35-\\u0A36\\u0A38-\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2-\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0-\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F-\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32-\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C-\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99-\\u0B9A\\u0B9C\\u0B9E-\\u0B9F\\u0BA3-\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C60-\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0-\\u0CE1\\u0CF1-\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32-\\u0E33\\u0E40-\\u0E46\\u0E81-\\u0E82\\u0E84\\u0E87-\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA-\\u0EAB\\u0EAD-\\u0EB0\\u0EB2-\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065-\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE-\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5-\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183-\\u2184\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3006\\u3031-\\u3035\\u303B-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FD5\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A-\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7AD\\uA7B0-\\uA7B7\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5-\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB65\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40-\\uFB41\\uFB43-\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC";return new RegExp("^["+b+"_]["+b+"_\\d]*$").test(a)}function B(a){return a.replace(/[\W_]+/g,"_")}function C(a){var b=a.focused();a.selectedItems.forEach(function(a){var c=a.getControlModel(),d=c.parentModel();!a.getControlModel().getMetaData().isDeleteDeny&&d&&a!==b&&d.removeChild(c)}),b.getControlModel().parentModel().removeChild(b.getControlModel()),a.focused(D(b))}function D(a){var b=a.parent,c=b;if(b){var d=b.getChildrenCollection()(),e=d.indexOf(a);-1===e&&d.length>0?c=d[d.length-1]:d.length>1&&e===d.length-1?c=d[e-1]:d.length>1&&0===e?c=d[d.length-1]:d.length>1?c=d[d.length-1]:-1===e&&c.parent&&-1===c.parent.getChildrenCollection()().indexOf(c)&&(c=D(c))}return c}var E=function(b){function c(a,c,e){var f=b.call(this)||this;f.target=a,f.collectionNames=e,f._handlers=[],f._setText=!1,f._visitedCollections=[],f._subscriptions=[],f.added=function(a){f._setText=!0,f._collectControls(a),f._setText=!1},f.deleted=function(a){var b=f.allControls(),c=b.indexOf(a);b.splice(c,1),d.collectionsVisitor(a,function(a){a().forEach(function(a){b.splice(b.indexOf(a),1)})}),f.allControls.valueHasMutated()},f.allControls=ko.observableArray();var g=a;return ko.isSubscribable(a)&&(f._disposables.push(a.subscribe(function(a){f._visitedCollections=[];for(var b=0,c=f._subscriptions.length;b<c;b++)f._subscriptions[b].dispose();f._subscriptions=[],f.allControls([]),a&&f._collectControls(a)})),g=a.peek()),f._disposables.push(f.allControls.subscribe(function(a){for(var b=a.filter(function(a){return"added"===a.status}),c=0;c<b.length;c++)f._setName(b[c].value)},null,"arrayChange")),g&&f._collectControls(g),f._handlers.push.apply(f._handlers,c),f}return __extends(c,b),c.prototype.getNameProperty=function(a){return a.name},c.prototype._setName=function(a){var b=this,c=this.allControls().map(function(a){return ko.unwrap(b.getNameProperty(a))});if(!this.getNameProperty(a)()||c.filter(function(c){return c===b.getNameProperty(a)()}).length>1){var d=a.controlType||"Unknown",e=a.getControlInfo&&a.getControlInfo().defaultVal&&a.getControlInfo().defaultVal["@Text"],f=m(this.allControls(),d.split(".").pop(),c);this.getNameProperty(a)(f),!this._setText||!a.text||a.text()||null!==e&&void 0!==e||a.text(this.getNameProperty(a)())}},c.prototype.dispose=function(){b.prototype.dispose.call(this),this._subscriptions.forEach(function(a){return a.dispose()}),this._subscriptions.splice(0),this._visitedCollections.splice(0),this._handlers.splice(0),this.target=null,this.allControls([])},c.prototype._collectControls=function(b){var c=this,e=[b];d.collectionsVisitor(b,function(b,d){if(-1===c._visitedCollections.indexOf(b)){c._visitedCollections.push(b);var f=c._subscriptions;d instanceof a.Analytics.Utils.Disposable&&(f=d._disposables);var g=b.subscribe(function(a){a.forEach(function(a){c[a.status]&&c[a.status](a.value),c._handlers.forEach(function(b){b[a.status]&&b[a.status](a.value)})})},null,"arrayChange");f.push({dispose:function(){g.dispose(),g=null,c._visitedCollections.splice(c._visitedCollections.indexOf(b),1)}})}e.push.apply(e,b())},this.collectionNames),this.allControls.push.apply(this.allControls,e)},c.prototype.getControls=function(a){var b=ko.observableArray();return d.collectionsVisitor(a,function(a){b.push.apply(b,a())}),b},c}(c.Disposable);d.DesignControlsHelper=E,d.patchPositionByRTL=g;var F=function(){function a(a,b){var c=this;this._rtlLayout=b,this._control=a,this.borderCss=function(b){var d=c._getBorderWidth(a,b),e=a.borderDefault&&a.borderDefault(),f=a.borderColor&&a.borderColor()||"",g=a.borders&&a.borders()||"",h=a.borderDashStyle&&a.borderDashStyle()||"";return e?c.createBorders(h,d,f,g,e):c.createBorders(h,d,f,g)},this.backGroundCss=function(){return{backgroundColor:a.backColor&&a.backColor()||"transparent"}},this.foreColorCss=function(){return{color:"transparent"===(a.foreColor&&a.foreColor()||"transparent")?"black":a.foreColor()}},this.fontCss=function(){return c.createFont(a.font&&a.font()||"")},this.wordWrapCss=function(){return c.createWordWrap(ko.unwrap(a.wordWrap),ko.unwrap(a.multiline))},this.paddingsCss=function(){var b=ko.unwrap(a.paddingObj||a.padding)||e.PaddingModel.from(e.PaddingModel.defaultVal),d={};return d.paddingLeft=c._getPixelValueFromUnit(b.left(),a)+"px",d.paddingTop=c._getPixelValueFromUnit(b.top(),a)+"px",d.paddingRight=c._getPixelValueFromUnit(b.right(),a)+"px",d.paddingBottom=c._getPixelValueFromUnit(b.bottom(),a)+"px",d},this.textAlignmentCss=function(){var b=a.textAlignment&&a.textAlignment()||"";return $.extend(c.createVerticalAlignment(b),c.createHorizontalAlignment(b))},this.stroke=function(){return{stroke:"transparent"===(a.foreColor&&a.foreColor()||"transparent")?"black":a.foreColor()}},this.strokeWidth=function(){return{strokeWidth:a.lineWidth&&a.lineWidth()||""}},this.strokeWidthWithWidth=function(){return{strokeWidth:a.width&&a.width()||""}},this.strokeDashArray=function(){return{strokeDasharray:c.createStrokeDashArray(a.lineStyle&&a.lineStyle()||"",a.lineWidth&&a.lineWidth()||"")}},this.strokeDashArrayWithWidth=function(){return{strokeDasharray:c.createStrokeDashArray(a.lineStyle&&a.lineStyle()||"",a.width&&a.width()||"")}},this.crossBandBorder=function(b){return c.createBorder(a.borderDashStyleCrossband&&a.borderDashStyleCrossband()||"solid",c._getBorderWidth(a),a.borderColor&&a.borderColor()||"",a.borders&&a.borders()||"",b)},this.angle=function(){return c.createAngle(a.angle&&a.angle()||0)},this.cellBorder=function(b,d){return c.createControlBorder(a.borderDashStyle&&a.borderDashStyle()||"solid",c._getBorderWidth(a,d),a.borderColor&&a.borderColor()||"",a.borders&&a.borders()||"",b)},this.zipCodeFontCss=function(b){return c.createZipCodeFont(b||a.size.height())},this.zipCodeAlignment=function(){var a="TopLeft";return $.extend(c.createVerticalAlignment(a),c.createHorizontalAlignment(a))}}return a.prototype._getPixelValueFromUnit=function(a,b){return b.root&&b.root.measureUnit?d.unitsToPixel(a,b.root.measureUnit()):a},a.prototype._patchPosition=function(a){return g(a,this._rtlLayout())},a.prototype._getBorderWidth=function(a,b){return a.borderWidth&&Math.floor(a.borderWidth()*(b||1))||""},a.prototype.createBorder=function(a,b,c,d,e){var f={};d=d||"All",f={stroke:"Silver",strokeWidth:2};var g=this.createStrokeDashArray(a,b);return-1===d.indexOf(e)&&-1===d.indexOf("All")||(f.stroke=c,f.strokeWidth=b,f.strokeDasharray=g),f},a.prototype.createControlBorder=function(a,b,c,d,e,f){void 0===f&&(f="solid 1px Silver");var g={};return d=d||"",a="Dash"===a?"dashed":"Dot"===a?"dotted":"Double"===a?"double":"solid",-1!==d.indexOf(e)||-1!==d.indexOf("All")?g["border"+this._patchPosition(e)]=a+" "+b+"px "+c:g["border"+this._patchPosition(e)]=f,g},a.prototype.createBorders=function(b,c,d,e,f){void 0===f&&(f=a.DEFAULT_BORDER);var g=this.createControlBorder(b,c,d,e,"Left",f),h=this.createControlBorder(b,c,d,e,"Right",f),i=this.createControlBorder(b,c,d,e,"Top",f),j=this.createControlBorder(b,c,d,e,"Bottom",f);return $.extend({},g,h,i,j)},a.prototype.createZipCodeFont=function(a){var b={};return b.fontFamily="Impact",b.fontSize=a+"px",b},a.prototype.createFont=function(a){var b={};a=a||"";var c=a.split(",");if(b.fontFamily=c[0]?'"'+c[0]+'"':"",b.fontSize=c[1],c.length>2)for(var d=2;d<c.length;d++)-1!==c[d].indexOf("Bold")&&(b.fontWeight="Bold"),-1!==c[d].indexOf("Italic")&&(b.fontStyle="Italic"),-1!=c[d].indexOf("Underline")&&(b.textDecoration="Underline"),-1!=c[d].indexOf("Strikeout")&&(b.textDecoration=(b.textDecoration?b.textDecoration+" ":"")+"Line-through");return b.fontWeight||(b.fontWeight=""),b.fontStyle||(b.fontStyle=""),b.textDecoration||(b.textDecoration=""),b},a.prototype.createVerticalAlignment=function(a){var b={};return-1!==a.indexOf("Top")&&(b.verticalAlign="top"),-1!==a.indexOf("Middle")&&(b.verticalAlign="middle"),-1!==a.indexOf("Bottom")&&(b.verticalAlign="bottom"),b},a.prototype.createHorizontalAlignment=function(a){var b={};return-1!==a.indexOf("Left")&&(b.textAlign=g("Left",this._control.rtl()).toLowerCase()),-1!==a.indexOf("Right")&&(b.textAlign=g("Right",this._control.rtl()).toLowerCase()),-1!==a.indexOf("Center")&&(b.textAlign="center"),-1!==a.indexOf("Justify")&&(b.textAlign="justify"),b},a.prototype.createStrokeDashArray=function(a,b){return"Solid"===a?"":"Dot"===a?[b,2*b].join("px, ")+"px":"Dash"===a?[4*b,4*b].join("px, ")+"px":"DashDot"===a?[4*b,2*b,b,2*b].join("px, ")+"px":"DashDotDot"===a?[4*b,2*b,b,2*b,b,2*b].join("px, ")+"px":""},a.prototype.createWordWrap=function(a,b){var c={};return!1===a&&!1===b?(c["white-space"]="nowrap",c["word-wrap"]="normal"):!0===a&&!1===b?(c["word-wrap"]="break-word",c["white-space"]=""):!1===a&&!0===b?(c["word-wrap"]="normal",c["white-space"]="pre"):!0===a&&!0===b&&(c["white-space"]="pre-wrap",c["word-wrap"]="break-word"),c},a.prototype.createAngle=function(a){return a=-a,{"-webkit-transform":"rotate("+a+"deg)","-moz-transform":"rotate("+a+"deg)","-o-transform":"rotate("+a+"deg)","-ms-transform":"rotate("+a+"deg)",transform:"rotate("+a+"deg)"}},a.prototype.contentSizeCss=function(a,b,c,d,e){var f=this,g={top:1,left:1,right:1,bottom:1,width:1,height:1};d=d||this._control.borders&&this._control.borders()||"";var h=this._getBorderWidth(this._control,c);return["Left","Top","Right","Bottom"].forEach(function(a){var b=0;""==h||-1===d.indexOf(a)&&-1===d.indexOf("All")||(b+=h),e&&(b+=f._getPixelValueFromUnit(ko.unwrap(e[a.toLowerCase()]),f._control)*(c||1)),b&&(g[f._patchPosition(a).toLowerCase()]=b)}),g.width=a-g.left-g.right,g.height=b-g.top-g.bottom,g},a.DEFAULT_BORDER="none",a}();d.CssCalculator=F,d.editorTypeMapper={Enum:f.editorTemplates.combobox,"System.String":f.editorTemplates.text,"System.Guid":f.coreEditorTemplates.guid,"System.SByte":f.coreEditorTemplates.sbyte,"System.Decimal":f.coreEditorTemplates.decimal,"System.Int64":f.coreEditorTemplates.int64,"System.Int32":f.coreEditorTemplates.int32,"System.Int16":f.coreEditorTemplates.int16,"System.Single":f.coreEditorTemplates.single,"System.Double":f.coreEditorTemplates.double,"System.Byte":f.coreEditorTemplates.byte,"System.UInt16":f.coreEditorTemplates.uint16,"System.UInt32":f.coreEditorTemplates.uint32,"System.UInt64":f.coreEditorTemplates.uint64,"System.Boolean":f.editorTemplates.boolSelect,"System.DateTime":f.editorTemplates.date,"DevExpress.DataAccess.Expression":f.coreEditorTemplates.expressionEditor},d.getEditorType=h,d.getTypeNameFromFullName=i,d.getShortTypeName=j,d.getControlFullName=k,d.getImageClassName=l,d.getUniqueNameForNamedObjectsArray=m,d.getUniqueName=n,d.initGlobalize=o;var G=function(){function a(){this._x=0,this._y=0,this.isOver=!1}return Object.defineProperty(a.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a},enumerable:!0,configurable:!0}),a}();d.HoverInfo=G,d.processTextEditorHotKeys=p;var H=function(a){function b(b){var c=a.call(this)||this;c._showInline=ko.observable(!1),c.text=ko.observable();var d;return c._disposables.push(b.focused.subscribe(function(){c._showInline()&&d&&(d(c.text()),c._showInline(!1));var a=b.focused()&&b.focused().getControlModel();d=a&&(a.textEditableProperty||a.text)})),c._disposables.push(c.visible=ko.pureComputed(function(){return c._showInline()})),c.show=function(a){if(!c._showInline()){if((b.selectedItems?1===b.selectedItems.length:!!b.focused())&&d&&!b.focused().locked){if(c.text(d()),c._showInline(!0),a){var e=$(a).find("textarea")[0];e&&e.select()}}else c._showInline(!1)}},c.keypressAction=function(a){p(a.event,{esc:function(){c._showInline(!1)},ctrlEnter:function(){d(c.text()),c._showInline(!1)}})},c}return __extends(b,a),b}(c.Disposable);d.InlineTextEdit=H;var I=function(){function a(a,b){var c=this;this.selectedItem=null,this.itemsFilter=function(b){var c=b.name.split(".")[0];return!a||(-1!==a.indexOf(c)||$.isNumeric(c))},this.hasItems=function(a){var c=a.name.split(".")[0];return a.isList||!!b&&-1!==b.indexOf(c)},this.getActions=function(a){return a.data&&a.data.innerActions||[]},this.select=function(a){c.selectedItem&&c.selectedItem.isSelected(!1),c.selectedItem=a,a.isSelected(!0)},this.showIconsForChildItems=function(){return!0}}return a.prototype.dispose=function(){this.selectedItem=null},a.prototype.canSelect=function(a){return!0},a}();d.ObjectStructureTreeListController=I;var J=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;return b.selectedPath=ko.observable(""),b.selectedMember=ko.observable(),b}return __extends(b,a),b.prototype.getClassName=function(a){if(a.className&&a.className())return a.className();var b=/function (.{1,})\(/,c=b.exec(a.constructor.toString());return c&&c.length>1?c[1]:""},b.prototype.createItem=function(a,b,d,e){var f=a.getInfo&&a.getInfo(),g=f&&f.filter(function(a){return a.propertyName===b})[0],h=ko.unwrap(d);g&&null!==h&&"object"==typeof h&&e.push({name:b,displayName:c.getLocalization(g.displayName,g.localizationId),specifics:b,innerActions:h.innerActions,isList:!!h.push})},b.prototype.getMemberByPath=function(a,b){var c=b.split("."),d=a;return c.splice(0,1),c.forEach(function(a){d&&d[a]&&(d=ko.unwrap(d[a]))}),d},b.prototype.getObjectPropertiesForPath=function(a,b,c){var d=this.getMemberByPath(a,b),e=[];if(d)if(d.push)this.createArrayItem(d,e,c);else for(var f in d)this.createItem(d,f,d[f],e);return e},b.prototype.createArrayItem=function(a,b,c){for(var d=0;d<a.length;d++){var e=ko.unwrap(a[d]);b.push({name:c?c+"."+d.toString():d.toString(),displayName:ko.unwrap(e.displayName||e.name),specifics:this.getClassName(e),innerActions:e.innerActions,isList:!!e.push})}},b}(c.Disposable);d.ObjectStructureProviderBase=J;var K=function(a){function b(b,d,e,f){var g=a.call(this)||this;return g.path=ko.observable(""),g.getPathByMember=f,g.listPropertyNames=d||[],g.getItems=function(a){var d=$.Deferred();if(a.fullPath){var e=b.filter(function(b){return b.name===a.fullPath.split(".")[0]})[0];d.resolve(g.getObjectPropertiesForPath(ko.unwrap(e.model),a.fullPath,e.name))}else d.resolve((b||[]).map(function(a){return{name:a.name,displayName:c.getLocalization(a.displayName)||a.name,isList:!0,specifics:a.className,dragData:{noDragable:!0},data:ko.unwrap(a.data)}}));return d.promise()},g._disposables.push(g.selectedPath=ko.computed({read:function(){return e()?g.path.peek()?g.getPathByMember(e()).substr(g.path.peek().length+1):g.getPathByMember(e()):null},write:function(a){if(a){var c=g.path()?g.path().split(".")[0]:a.split(".")[0],d=b.filter(function(a){return a.name===c})[0];d&&e(g.getMemberByPath(ko.unwrap(d.model),g.path()?[g.path(),a].join("."):a))}else e(null)}})),g}return __extends(b,a),b.prototype.createArrayItem=function(a,b,c){for(var d=0;d<a.length;d++){var e=ko.unwrap(a[d]),f=!1;this.listPropertyNames.forEach(function(a){!f&&e[a]&&ko.unwrap(e[a]).length>0&&(f=!0)});var g=this.getClassName(e);b.push({name:c?c+"."+d.toString():d.toString(),displayName:ko.unwrap(e.displayName||e.name),specifics:g,isList:f,data:e,dragData:{noDragable:!("bands"===c&&("groupheaderband"===g||"groupfooterband"===g||"detailreportband"===g)||"controls"===c||"rows"===c||"cells"===c||"subBands"===c||"Styles"===c||"Formatting Rules"===c)}})}},b.prototype.createItem=function(a,b,c,d){(!(this.listPropertyNames.length>0)||this.listPropertyNames.indexOf(b)>-1)&&c&&c.push&&this.createArrayItem(ko.unwrap(c),d,b)},b}(J);d.ObjectExplorerProvider=K;var L=function(a){function b(b,d,e){var f=a.call(this)||this;return f.getItems=function(a){var g=$.Deferred();return a.fullPath?g.resolve(f.getObjectPropertiesForPath(ko.unwrap(b),a.fullPath)):g.resolve([{name:d||ko.unwrap(b.name),displayName:c.getLocalization(d||ko.unwrap(b.name),e),isList:!0,specifics:b.className&&b.className(),dragData:{noDragable:!0}}]),g.promise()},f._disposables.push(f.selectedPath.subscribe(function(a){f.selectedMember(ko.unwrap(f.getMemberByPath(ko.unwrap(b),a)))})),f}return __extends(b,a),b}(J);d.ObjectStructureProvider=L,d.papperKindMapper={A2:{width:1654,height:2339},A3:{width:1169,height:1654},A3Extra:{width:1268,height:1752},A3ExtraTransverse:{width:1268,height:1752},A3Rotated:{width:1654,height:1169},A3Transverse:{width:1169,height:1654},A4:{width:827,height:1169},A4Extra:{width:929,height:1268},A4Plus:{width:827,height:1299},A4Rotated:{width:1169,height:827},A4Small:{width:827,height:1169},A4Transverse:{width:827,height:1169},A5:{width:583,height:827},A5Extra:{width:685,height:925},A5Rotated:{width:827,height:583},A5Transverse:{width:583,height:827},A6:{width:413,height:583},A6Rotated:{width:583,height:413},APlus:{width:894,height:1402},B4:{width:984,height:1390},B4Envelope:{width:984,height:1390},B4JisRotated:{width:1433,height:1012},B5:{width:693,height:984},B5Envelope:{width:693,height:984},B5Extra:{width:791,height:1087},B5JisRotated:{width:1012,height:717},B5Transverse:{width:717,height:1012},B6Envelope:{width:693,height:492},B6Jis:{width:504,height:717},B6JisRotated:{width:717,height:504},BPlus:{width:1201,height:1917},C3Envelope:{width:1276,height:1803},C4Envelope:{width:902,height:1276},C5Envelope:{width:638,height:902},C65Envelope:{width:449,height:902},C6Envelope:{width:449,height:638},CSheet:{width:1700,height:2200},DLEnvelope:{width:433,height:866},DSheet:{width:2200,height:3400},ESheet:{width:3400,height:4400},Executive:{width:725,height:1050},Folio:{width:850,height:1300},GermanLegalFanfold:{width:850,height:1300},GermanStandardFanfold:{width:850,height:1200},InviteEnvelope:{width:866,height:866},IsoB4:{width:984,height:1390},ItalyEnvelope:{width:433,height:906},JapaneseDoublePostcard:{width:787,height:583},JapaneseDoublePostcardRotated:{width:583,height:787},JapanesePostcard:{width:394,height:583},Ledger:{width:1700,height:1100},Legal:{width:850,height:1400},LegalExtra:{width:927,height:1500},Letter:{width:850,height:1100},LetterExtra:{width:927,height:1200},LetterExtraTransverse:{width:927,height:1200},LetterPlus:{width:850,height:1269},LetterRotated:{width:1100,height:850},LetterSmall:{width:850,height:1100},LetterTransverse:{width:827,height:1100},MonarchEnvelope:{width:388,height:750},Note:{width:850,height:1100},Number10Envelope:{width:412,height:950},Number11Envelope:{width:450,height:1038},Number12Envelope:{width:475,height:1100},Number14Envelope:{width:500,height:1150},Number9Envelope:{width:388,height:888},PersonalEnvelope:{width:362,height:650},Prc16K:{width:575,height:846},Prc16KRotated:{width:575,height:846},Prc32K:{width:382,height:594},Prc32KBig:{width:382,height:594},Prc32KBigRotated:{width:382,height:594},Prc32KRotated:{width:382,height:594},PrcEnvelopeNumber1:{width:402,height:650},PrcEnvelopeNumber10:{width:1276,height:1803},PrcEnvelopeNumber10Rotated:{width:1803,height:1276},PrcEnvelopeNumber1Rotated:{width:650,height:402},PrcEnvelopeNumber2:{width:402,height:693},PrcEnvelopeNumber2Rotated:{width:693,height:402},PrcEnvelopeNumber3:{width:492,height:693},PrcEnvelopeNumber3Rotated:{width:693,height:492},PrcEnvelopeNumber4:{width:433,height:819},PrcEnvelopeNumber4Rotated:{width:819,height:433},PrcEnvelopeNumber5:{width:433,height:866},PrcEnvelopeNumber5Rotated:{width:866,height:433},PrcEnvelopeNumber6:{width:472,height:906},PrcEnvelopeNumber6Rotated:{width:906,height:472},PrcEnvelopeNumber7:{width:630,height:906},PrcEnvelopeNumber7Rotated:{width:906,height:630},PrcEnvelopeNumber8:{width:472,height:1217},PrcEnvelopeNumber8Rotated:{width:1217,height:472},PrcEnvelopeNumber9:{width:902,height:1276},PrcEnvelopeNumber9Rotated:{width:1276,height:902},Quarto:{width:846,height:1083},Standard10x11:{width:1e3,height:1100},Standard10x14:{width:1e3,height:1400},Standard11x17:{width:1100,height:1700},Standard12x11:{width:1200,height:1100},Standard15x11:{width:1500,height:1100},Standard9x11:{width:900,height:1100},Statement:{width:550,height:850},Tabloid:{width:1100,height:1700},TabloidExtra:{width:1169,height:1800},USStandardFanfold:{width:1488,height:1100}},d._addErrorPrefix=!0,d._processError=q,d._errorProcessor={handlers:[],call:function(a){for(var b=0;b<d._errorProcessor.handlers.length;b++)d._errorProcessor.handlers[b](a)}},d.processErrorEvent=r,ko.bindingHandlers.resizable={init:function(a,c,f,g,h){var i=c(),j=$(a),k=j.closest(".dx-designer"),l=null,m=null,n={north:"n",east:"e",south:"s",west:"w"},o=[],p=null,q=$.extend({handles:i.handles||"all",ghost:!1,stop:function(a,b){m.each(function(a,b){var c=ko.dataFor(b),d=ko.contextFor(b).$root.surface(),e=$(b),f=c.rect(),g=w(e,c,d);g={top:-1!==l.indexOf(n.north)?g.top:f.top,left:-1!==l.indexOf(n.west)?g.left:f.left,width:-1!==l.indexOf(n.east)||-1!==l.indexOf(n.west)?g.width:f.width,height:-1!==l.indexOf(n.south)||-1!==l.indexOf(n.north)?g.height:f.height},o.push(function(){c.rect(g),JSON.stringify(f)===JSON.stringify(g)&&e.css({left:f.left,top:f.top,width:f.width,height:f.height})}),e.removeData("originalPosition"),e.removeData("originalSize")}),o.forEach(function(a){return a()}),o=[],l=null,i.stopped(),i.started=!1,i.snapHelper&&i.snapHelper.deactivateSnapLines()},start:function(a){for(var b=a.originalEvent.target.classList,c=0;c<b.length;c++)"ui-resizable-handle"!==b[c]&&0===b[c].indexOf("ui-resizable-")&&(l=b[c].slice("ui-resizable-".length,b[c].length));i.started=!0,i.starting(),m=i.$selectedNodes||$(".dxrd-viewport .dxrd-selected").filter(":visible"),m.each(function(a,b){var c=$(b),d=b.getBoundingClientRect();c.data("originalPosition",{top:parseFloat(c.css("top")),left:parseFloat(c.css("left"))}),c.data("originalSize",{width:d.width,height:d.height})});var d=j.offset(),e=k.find(".dxrd-ghost-container").offset();p=e?{top:d.top-e.top,left:d.left-e.left}:d,i.snapHelper&&i.snapHelper.updateSnapLines(g)},resize:function(a,b){var c=b.size.width-b.originalSize.width,d=b.size.height-b.originalSize.height,f=b.position.left-b.originalPosition.left,g=b.position.top-b.originalPosition.top;if(i.forceResize&&i.forceResize({size:new e.Size(b.size.width,b.size.height),delta:{dx:f,dy:g,dw:c,dh:d}}),a.altKey)i.snapHelper&&i.snapHelper.deactivateSnapLines();else if(i.snapHelper&&1===m.length){var h=u(i.snapHelper,p,b,{x:f,y:g,width:c,height:d});i.snapHelper.activateSnapLines(h),j.css({left:b.originalPosition.left+h.left-p.left,top:b.originalPosition.top+h.top-p.top,width:h.right-h.left,height:h.bottom-h.top})}m.each(function(b,e){if(e!==a.target){var h=$(e),i=h.data("originalPosition"),j=h.data("originalSize");h.css({left:i.left+f,top:i.top+g,width:j.width+c,height:j.height+d})}})}},ko.unwrap(i)),r=null;i.disabled||(r=d.DragDropHandler.started.subscribe(function(a){j.resizable("option","disabled",a),a?j.children(".ui-resizable-handle").css("display","none"):j.children(".ui-resizable-handle").css("display","block")})),j.resizable(q),j.resizable().on("resize",function(a){a.stopPropagation()}),b.Internal.addDisposeCallback(a,function(){j.data("ui-resizable")&&j.resizable("destroy"),j=null,r&&r.dispose()})},update:function(a,b,c,d,e){var f=$(a),g=!(!ko.unwrap(b().disabled)&&!ko.unwrap(d.locked));f.resizable("option","disabled",g),f.resizable("option","minHeight",ko.unwrap(b().minimumHeight)||1),f.resizable("option","minWidth",ko.unwrap(b().minimumWidth)||1),ko.unwrap(b().handles)&&f.resizable("option","handles")!==ko.unwrap(b().handles)&&f.resizable("option","handles",ko.unwrap(b().handles));var h=ko.unwrap(b().maximumWidth);h&&f.resizable("option","maxWidth",h),g?f.children(".ui-resizable-handle").css("display","none"):f.children(".ui-resizable-handle").css("display","block")}};var M=function(a){function b(c,d){return void 0===d&&(d="name"),a.call(this,b._createOptions(c,d))||this}return __extends(b,a),b._sortItems=function(a,b){return a.sort(function(a,c){var d=ko.unwrap(a[b]),e=ko.unwrap(c[b]);if(d&&e){var f=d-e;return isNaN(f)?(d=d.toLowerCase?d.toLowerCase():d,e=e.toLowerCase?e.toLowerCase():e,d<e?-1:d>e?1:0):f}})},b._createOptions=function(a,b){return a=this._sortItems(a,b),{load:function(b){var c=[].concat(a);return b.take&&(c=c.splice(b.skip,b.take)),b.filter&&(c=c.filter(b.filter)),$.Deferred().resolve(c).promise()},byKey:function(b){if(a.some(function(a){return a===b}))return b}}},b}(a.data.CustomStore);d.CustomSortedArrayStore=M;var N=function(a){function b(b,c){void 0===c&&(c="name");return b instanceof Array&&M._sortItems(b,c),a.call(this,b)||this}return __extends(b,a),b}(a.data.ArrayStore);d.SortedArrayStore=N;var O=function(b){function c(c){var d=b.call(this)||this;d._filter=ko.observable(null);var e=null;return d._disposables.push(d.dataSource=ko.computed(function(){return e&&e.dispose(),e=new a.data.DataSource({store:new M(c()),paginate:!0,filter:d._filter(),pageSize:100})})),d._disposables.push(d.visible=ko.computed(function(){return c().length>0})),d}return __extends(c,b),c.prototype.setFilter=function(a){this._filter(a)},c.prototype.resetFilter=function(){this._filter(null)},c}(c.Disposable);d.ControlsStore=O,d.findSurface=t,d.getControlNewAbsolutePositionOnResize=u,d.getControlRect=w,d.minHeightWithoutScroll=x,d.chooseBetterPositionOf=y,d.updateSurfaceContentSize=z,d.validateName=A,d.replaceInvalidSymbols=B,d.nameValidationRules=[{type:"custom",validationCallback:function(a){return A(a.value)},get message(){return a.Analytics.Utils.getLocalization("Name is required and should be a valid identifier.","AnalyticsCoreStringId.NameIsRequired_Error")}}];var P=function(){function a(){}return a.getInfo=function(a){var b=a.map(function(a){return a.getInfo()});return function(){for(var a=[],c=0;c<b[0].length;c++)b.filter(function(a){return a.filter(function(a){return a.propertyName===b[0][c].propertyName}).length>0}).length===b.length&&a.push(b[0][c]);return a}},a.isPropertyDisabled=function(a){return function(b){for(var c=0;c<a.length;c++)if(a[c].isPropertyDisabled(b))return!0;return!1}},a.isPropertyVisible=function(a){return function(b){for(var c=0;c<a.length;c++)if(!a[c].isPropertyVisible(b))return!1;return!0}},a.mergeProperty=function(a,b,c,d){var e=a[0][b],f=null;if(a.filter(function(a){return!!a[b]}).length===a.length&&!(f=d&&d(b,a,c)))if(ko.isObservable(e)&&!e.push){if(!a.every(function(a){return ko.isObservable(a[b])}))return f;var g=ko.observable(a.every(function(c){return a[0][b].peek()===c[b].peek()})?a[0][b].peek():null);f={result:g,subscriptions:[g.subscribe(function(d){c&&c().start(),a.forEach(function(a){a[b](d)}),c&&c().end()})]}}else"object"!=typeof e||$.isArray(e)||(f=this._merge(a.map(function(a){return a[b]}),c,d));return f},a._createProperty=function(a,b,c){if(c){if("object"==typeof c&&$.isEmptyObject(c))return;a[b]=c}},a._merge=function(a,b,c,d){var e=this,f={},g=[];if(["getInfo","isPropertyVisible","isPropertyDisabled"].forEach(function(b){a[0][b]&&e._createProperty(f,b,e[b](a))}),d){var h=f.isPropertyDisabled;f.isPropertyDisabled=function(a){return h&&h()||-1!==d.indexOf(a)}}if(f&&f.getInfo)f.getInfo().map(function(a){return a.propertyName}).forEach(function(d){var h=e.mergeProperty(a,d,b,c);h&&(g=[].concat.apply(g,h.subscriptions),e._createProperty(f,d,h.result))});else for(var i in a[0]){var j=this.mergeProperty(a,i,b,c);j&&(g=[].concat.apply(g,j.subscriptions),this._createProperty(f,i,j.result))}return{result:f,subscriptions:g}},a.mergeControls=function(a,b,c,d){var e=this._merge(a,b,c,d);return{result:$.extend(e.result,{controlType:"multiselect",displayName:ko.observable("")}),subscriptions:e.subscriptions}},a.getEditableObject=function(a,b,c){var d=this,e=ko.observable(null),f=[],g=a.focused.subscribe(function(a){e(a&&a.getControlModel())});return a._disposables&&(a._disposables.push(g),a._disposables.push({dispose:function(){f.forEach(function(a){return a.dispose()}),f.splice(0)}})),ko.pureComputed({read:function(){if(f.forEach(function(a){return a.dispose()}),f=[],a.selectedItems.length>1){var g=d.mergeControls(a.selectedItems.map(function(a){return a.getControlModel()}),b,c,a.ignoreMultiSelectProperties);return f=g.subscriptions,g.result}return e()},write:function(b){b&&b.surface?a.focused(b.surface):(a.updateSelection(null),e(b))}}).extend({deferred:!0})},a}();d.CombinedObject=P;var Q=function(a){function b(b){void 0===b&&(b=["name"]);var c=a.call(this)||this;return c.ignoreMultiSelectProperties=b,c._focused=ko.observable(null),c._selectedControls=ko.observableArray(),c._selectedControlsInner=[],c.focused=ko.pureComputed({read:function(){return c._focused()},write:function(a){a!==c._focused()&&(a&&(c._firstSelected=a),c.updateSelection(c._firstSelected))}}),c.dropTarget=null,c.expectClick=!1,c.disabled=ko.observable(!1),c._disposables.push(c.focused),c}return __extends(b,a),b.prototype.dispose=function(){this.reset(),a.prototype.dispose.call(this)},b.prototype._removeFromSelection=function(a){a.focused(!1),a.selected(!1),-1!==this._selectedControlsInner.indexOf(a)&&this._selectedControlsInner.splice(this._selectedControlsInner.indexOf(a),1)},b.prototype._setFocused=function(a){this._focused()&&this._removeFromSelection(this._focused()),this._focused(a),a&&(a.focused(!0),-1===this._selectedControlsInner.indexOf(a)&&this._selectedControlsInner.push(a),a.selected(!0))},b.prototype._resetTabPanelFocus=function(){document.activeElement&&0===$(document.activeElement).closest(".dxrd-surface").length&&d.blur(document.activeElement)},Object.defineProperty(b.prototype,"selectedItems",{get:function(){return this._selectedControls()},enumerable:!0,configurable:!0}),b.prototype.clear=function(){this.focused(null),this._selectedControls([])},b.prototype.reset=function(){this._focused(null),this._selectedControlsInner.splice(0),this._firstSelected=null,this._selectedControls([])},b.prototype.applySelection=function(){this._selectedControls(this._selectedControlsInner)},b.prototype.selectItems=function(a){this._selectedControlsInner=a,this._selectedControlsInner.forEach(function(a){a.focused()||a.selected(!0)}),this.applySelection()},b.prototype.updateSelection=function(a){this._selectedControlsInner.forEach(function(a){a.focused(!1),a.selected(!1)}),this._selectedControlsInner=[],this._setFocused(a),this.applySelection()},b.prototype.swapFocusedItem=function(a){this._focused()!==a&&(this._focused().focused(!1),this._focused(a),this._focused().focused(!0))},b.prototype.initialize=function(a){a=a||this.dropTarget,this._firstSelected=a&&a.focused?a:null,this.updateSelection(this._firstSelected)},b.prototype.clickHandler=function(a,b){if(void 0===b&&(b={ctrlKey:!1}),this.expectClick)return void(this.expectClick=!1);a=a||this.dropTarget,b.ctrlKey?(this.selectionWithCtrl(a),this.applySelection()):this._selectedControlsInner.length>1&&-1!==this._selectedControlsInner.indexOf(a)?this.swapFocusedItem(a):this._focused()!==a&&this.initialize(a),this._resetTabPanelFocus()},b.prototype.selecting=function(a){this._focused()?(a.cancel=!a.control.checkParent(this._firstSelected),a.cancel||(this._firstSelected&&this._firstSelected.focused()?this._setFocused(a.control):-1===this._selectedControlsInner.indexOf(a.control)&&(a.control.selected(!0),this._selectedControlsInner.push(a.control)))):this._setFocused(a.control)},b.prototype.unselecting=function(a){this._focused()===a?(this._setFocused(null),0===this._selectedControlsInner.length?this._setFocused(this._firstSelected):this._setFocused(this._selectedControlsInner[0])):this._removeFromSelection(a)},b.prototype.selectionWithCtrl=function(a){if(a&&a.allowMultiselect){var b=this._selectedControlsInner;0===b.length||1===b.length&&!b[0].allowMultiselect?this.initialize(a):-1===this._selectedControlsInner.indexOf(a)?(a.selected(!0),this._selectedControlsInner.push(a)):this._selectedControlsInner.length>1&&this.unselecting(a)}},b}(c.Disposable);d.SurfaceSelection=Q,d.deleteSelection=C,d.findNextSelection=D;var R=function(){function a(){this._verticalSnapLines=[],this._horizontalSnapLines=[],this._snapTargetToIgnore=null}return a.prototype._appendSnapLine=function(a,b,c,e){var f={position:a,limitInf:b,limSup:c},g=d.binaryIndexOf(e,f,function(a,b){return a.position-b.position});g>-1?(e[g].limitInf=Math.min(e[g].limitInf,b),e[g].limSup=Math.max(e[g].limSup,c)):e.splice(~g,0,f)},a.prototype._collectSnaplines=function(a,b){var c=this;this._enumerateCollection(a,b,function(a,b){a!==c._snapTargetToIgnore&&(c._appendSnapLine(b.left,b.top,b.bottom,c._verticalSnapLines),c._appendSnapLine(b.right,b.top,b.bottom,c._verticalSnapLines),c._appendSnapLine(b.top,b.left,b.right,c._horizontalSnapLines),c._appendSnapLine(b.bottom,b.left,b.right,c._horizontalSnapLines),c._collectSnaplines(a,b))})},a.prototype._getCollection=function(a){return a.controls&&a.controls()},a.prototype._enumerateCollection=function(a,b,c){var d=this._getCollection(a);if(d)for(var e=0;e<d.length;e++){var f=d[e].rect&&d[e].rect();f&&c(d[e],{top:f.top+b.top,bottom:f.bottom+b.top,left:f.left+b.left,right:f.right+b.left})}},a.prototype.collectSnaplines=function(a,b){return this._snapTargetToIgnore=b,this._verticalSnapLines.splice(0),this._horizontalSnapLines.splice(0),this._collectSnaplines(a,{top:0,left:0}),{vertical:this._verticalSnapLines,horizontal:this._horizontalSnapLines}},a}();d.SnapLinesCollector=R;var S=function(){function a(b,c,d){void 0===b&&(b=null),void 0===c&&(c=a.snapTolerance),void 0===d&&(d=new R),this.snapLineSurfaces=[new T,new T,new T,new T],this.verticalSnapLines=[],this.horizontalSnapLines=[],this._surfaceContext=b,this._snapTolerance=c,this._snapLinesCollector=d}return a.prototype._findClosestSnapLine=function(a,b){var c,e={position:a,limitInf:0,limSup:0},f=d.binaryIndexOf(b,e,function(a,b){return a.position-b.position});if(f>-1)c={snapLine:b[f],distance:a-b[f].position};else{f=~f;var g=b[f]?a-b[f].position:Number.MAX_VALUE,h=b[f-1]?a-b[f-1].position:Number.MAX_VALUE;c=Math.abs(g)>Math.abs(h)?{snapLine:b[f-1],distance:h}:{snapLine:b[f],distance:g}}return c},a.prototype._getActiveSnapLines=function(a,b,c){var d=this._findClosestSnapLine(a,c),e=this._findClosestSnapLine(b,c),f={lines:[],distance:0};if(Math.abs(d.distance-e.distance)>=1){var g=Math.abs(d.distance)<Math.abs(e.distance)?d:e;Math.abs(g.distance)<=this._snapTolerance&&(f.lines=[g],f.distance=g.distance)}else Math.abs(d.distance)<=this._snapTolerance&&(f.lines=[d,e],f.distance=d.distance);return f},a.prototype.updateSnapLines=function(a){void 0===a&&(a=null),this.verticalSnapLines.splice(0),this.horizontalSnapLines.splice(0);var b=this._snapLinesCollector.collectSnaplines(this._surfaceContext(),a);this.verticalSnapLines.push.apply(this.verticalSnapLines,b.vertical),this.horizontalSnapLines.push.apply(this.horizontalSnapLines,b.horizontal)},a.prototype.deactivateSnapLines=function(){this.snapLineSurfaces[0].reset(),this.snapLineSurfaces[1].reset(),this.snapLineSurfaces[2].reset(),this.snapLineSurfaces[3].reset()},a.prototype.activateSnapLines=function(a){for(var b=this._getActiveSnapLines(a.left,a.right,this.verticalSnapLines),c=this._getActiveSnapLines(a.top,a.bottom,this.horizontalSnapLines),d=0;d<2;d++){var e=b.lines[d];if(e){var f=Math.min(e.snapLine.limitInf,a.top),g=Math.max(e.snapLine.limSup,a.bottom);a.top<e.snapLine.limitInf&&(f-=c.distance),a.bottom>e.snapLine.limSup&&(g-=c.distance),this.snapLineSurfaces[d].updatePosition({top:f,left:e.snapLine.position,height:g-f,width:1})}else this.snapLineSurfaces[d].reset()}for(var d=0;d<2;d++){var e=c.lines[d];if(e){var h=Math.min(e.snapLine.limitInf,a.left),i=Math.max(e.snapLine.limSup,a.right);a.left<e.snapLine.limitInf&&(h-=b.distance),a.right>e.snapLine.limSup&&(i-=b.distance),this.snapLineSurfaces[d+2].updatePosition({top:e.snapLine.position,left:h,width:i-h,height:1})}else this.snapLineSurfaces[d+2].reset()}return{left:b.distance,top:c.distance}},a.prototype.snapPosition=function(a,b){var c=this._findClosestSnapLine(a,b?this.horizontalSnapLines:this.verticalSnapLines);return c&&Math.abs(c.distance)<=this._snapTolerance?c.snapLine.position:a},a.snapTolerance=10,a}();d.SnapLinesHelper=S;var T=function(){function a(){this._position=ko.observable(a._blankPosition)}return a.prototype.transform=function(){var a=this._position();return"matrix("+a.width+", 0, 0, "+a.height+", "+a.left+", "+a.top+")"},a.prototype.updatePosition=function(a){this._position(a)},a.prototype.reset=function(){this.updatePosition(a._blankPosition)},a._blankPosition={top:0,left:0,width:0,height:0},a}();d.SnapLineSurface=T}(d=b.Internal||(b.Internal={}));var g;!function(a){a.ActionId={Cut:"dxd-cut",Copy:"dxd-copy",Paste:"dxd-paste",Delete:"dxd-delete",Undo:"dxd-undo",Redo:"dxd-redo",ZoomOut:"dxd-zoom-out",ZoomSelector:"dxd-zoom-selector",ZoomIn:"dxd-zoom-in"}}(g=b.Tools||(b.Tools={})),function(a){var b=function(a){function b(b){var c=a.call(this)||this;return c.toolbarItems=[],c.enabled=b||ko.observable(!0),c}return __extends(b,a),b.prototype.processShortcut=function(a,b){for(var c=0;c<a.length;c++)a[c].hotKey&&(a[c].disabled&&!a[c].disabled()||!a[c].disabled)&&($.isFunction(a[c].visible)?a[c].visible():a[c].visible)&&a[c].hotKey.ctrlKey===b.ctrlKey&&a[c].hotKey.keyCode===b.keyCode&&(a[c].clickAction(),b.preventDefault())},b.prototype.shouldIgnoreProcessing=function(a){if(a.altKey||!this.enabled.peek())return!0;var b=$(document.activeElement);return!!(b.is("textarea")||b.is(":input")&&-1!=["password","text","number"].indexOf(b.attr("type")))},b}(c.Disposable);a.ActionListsBase=b;var d=function(b){function d(d,e,h,i,j,k,l){void 0===l&&(l=ko.observable(.01));var m=b.call(this,j)||this;m.menuItems=[];var n=new f(e,k),o=[];if(e){var p=ko.computed(function(){return e.selectedItems.some(function(a){return a.locked})});m._disposables.push(p),m._keyboardHelper=new a.KeyboardHelper(e,h),o.push({id:g.ActionId.Cut,text:"Cut",displayText:function(){return c.getLocalization("Cut","AnalyticsCoreStringId.EditCut")},imageClassName:"dxrd-image-cut",imageTemplateName:"dxrd-svg-toolbar-cut",disabled:ko.pureComputed(function(){return!d()||!n.canCopy()||p()}),visible:!0,clickAction:function(){h().start(),n.cut(),h().end()},hotKey:{ctrlKey:!0,keyCode:"X".charCodeAt(0)}}),o.push({id:g.ActionId.Copy,text:"Copy",displayText:function(){return c.getLocalization("Copy","AnalyticsCoreStringId.Cmd_Copy")},imageClassName:"dxrd-image-copy",imageTemplateName:"dxrd-svg-toolbar-copy",disabled:ko.pureComputed(function(){return!d()||!n.canCopy()||p()}),visible:!0,clickAction:function(){n.copy()},hotKey:{ctrlKey:!0,keyCode:"C".charCodeAt(0)}}),o.push({id:g.ActionId.Paste,text:"Paste",displayText:function(){return c.getLocalization("Paste","AnalyticsCoreStringId.Cmd_Paste")},imageClassName:"dxrd-image-paste",imageTemplateName:"dxrd-svg-toolbar-paste",disabled:ko.pureComputed(function(){return!d()||!n.canPaste()||p()}),visible:!0,clickAction:function(){h().start(),n.paste(),h().end()},hotKey:{ctrlKey:!0,keyCode:"V".charCodeAt(0)}}),o.push({id:g.ActionId.Delete,text:"Delete",displayText:function(){return c.getLocalization("Delete","AnalyticsCoreStringId.Cmd_Delete")},imageClassName:"dxrd-image-delete",imageTemplateName:"dxrd-svg-toolbar-delete",disabled:ko.pureComputed(function(){return!e.focused()||(e.focused().getControlModel().getMetaData().isDeleteDeny||p())}),visible:!0,hotKey:{ctrlKey:!1,keyCode:46},clickAction:function(){h().start(),a.deleteSelection(e),h().end()}})}return o.push({id:g.ActionId.Undo,text:"Undo",displayText:function(){return c.getLocalization("Undo","AnalyticsCoreStringId.Undo")},imageClassName:"dxrd-image-undo",imageTemplateName:"dxrd-svg-toolbar-undo",disabled:ko.pureComputed(function(){return!d()||!h()||h()&&!h().undoEnabled()||e&&p()}),visible:!0,clickAction:function(){h().undo()},hotKey:{ctrlKey:!0,keyCode:"Z".charCodeAt(0)},hasSeparator:!0}),o.push({id:g.ActionId.Redo,text:"Redo",displayText:function(){return c.getLocalization("Redo","AnalyticsCoreStringId.Redo")},imageClassName:"dxrd-image-redo",imageTemplateName:"dxrd-svg-toolbar-redo",disabled:ko.pureComputed(function(){return!d()||!h()||h()&&!h().redoEnabled()||e&&p()}),visible:!0,clickAction:function(){h().redo()},hotKey:{ctrlKey:!0,keyCode:"Y".charCodeAt(0)}}),o.push({id:g.ActionId.ZoomOut,text:"Zoom Out",displayText:function(){return c.getLocalization("Zoom Out","AnalyticsCoreStringId.ZoomOut")},imageClassName:"dxrd-image-zoomout",imageTemplateName:"dxrd-svg-toolbar-zoomout",disabled:ko.pureComputed(function(){return!d()}),visible:!0,hotKey:{ctrlKey:!0,keyCode:109},zoomStep:l,clickAction:function(){d().zoom(Math.max(d().zoom()-l(),.01))},hasSeparator:!0}),o.push({id:g.ActionId.ZoomSelector,text:"Zoom 100%",displayText:function(){return c.getLocalization("Zoom 100%")},imageClassName:"dxrd-image-zoom",disabled:ko.pureComputed(function(){return!d()}),visible:!0,hotKey:{ctrlKey:!0,keyCode:187},clickAction:function(){d().zoom(1)},templateName:"dxrd-zoom-select-template",zoomLevels:ko.observableArray([5,2,1.5,1,.75,.5,.25]),zoom:ko.pureComputed({read:function(){return d()&&d().zoom()},write:function(a){d().zoom(a)}}),onCustomItemCreating:function(b){b.customItem=a.parseZoom(b.text)}}),o.push({id:g.ActionId.ZoomIn,text:"Zoom In",displayText:function(){return c.getLocalization("Zoom In","AnalyticsCoreStringId.ZoomIn")},imageClassName:"dxrd-image-zoomin",imageTemplateName:"dxrd-svg-toolbar-zoomin",disabled:ko.pureComputed(function(){return!d()}),visible:!0,hotKey:{ctrlKey:!0,keyCode:107},zoomStep:l,clickAction:function(){d().zoom(d().zoom()+l())}}),i&&i(o),o.forEach(function(a){for(var b in a)ko.isComputed(a[b])&&m._disposables.push(a[b]);m._registerAction("menu"===a.container?m.menuItems:ko.unwrap(m.toolbarItems),a)}),m}return __extends(d,b),d.prototype._registerAction=function(a,b){b.index?a.splice(b.index,0,b):a.push(b)},d.prototype.processShortcut=function(a,c){this.shouldIgnoreProcessing(c)||(this._keyboardHelper.processShortcut(c)?c.preventDefault():b.prototype.processShortcut.call(this,a,c))},d}(b);a.ActionLists=d,a.copyPasteStrategy={createChild:function(a,b){return a.createChild(b)},calculateDelta:function(a,b,c){return{x:a.rect().left-c.x(),y:a.rect().top-c.y()}}};var f=function(){function b(b,c){void 0===c&&(c=a.copyPasteStrategy);var d=this;this._copyPasteStrategy=c,this._copyInfo=ko.observable(null),this.hasPasteInfo=ko.pureComputed(function(){return null!==d._copyInfo()}),this._selectionProvider=b}return b.prototype.canCopy=function(){return null!==this._selectionProvider.focused()&&!this._selectionProvider.focused().getControlModel().getMetaData().isCopyDeny},b.prototype.canPaste=function(){var a=this._selectionProvider.focused();return null!==a&&this.hasPasteInfo()&&a.canDrop()&&!a.getControlModel().getMetaData().isPasteDeny},b.prototype.copy=function(){if(this.canCopy()){var a=new c.ModelSerializer,b={focused:this._selectionProvider.focused(),objects:$.map(this._selectionProvider.selectedItems,function(b){return a.serialize(b.getControlModel())})};this._copyInfo(b)}},b.prototype.cut=function(){var a=new c.ModelSerializer,b={focused:this._selectionProvider.focused(),objects:$.map(this._selectionProvider.selectedItems,function(b){return b.getControlModel().parentModel().removeChild(b.getControlModel()),a.serialize(b.getControlModel())})};this._copyInfo(b)},b.prototype.paste=function(){var b=this;if(this.canPaste()){var c=this._selectionProvider.focused(),d=c.getControlModel(),f=[];c===this._copyInfo().focused&&(c=c.parent,d=c.getControlModel()),d.getMetaData().isContainer||(c=c.parent,d=c.getControlModel());for(var g=new e.Point(Number.MAX_VALUE,Number.MAX_VALUE),h=new e.Point(-1,-1),i=0;i<this._copyInfo().objects.length;i++){var j=this._copyPasteStrategy.createChild(d,this._copyInfo().objects[i]),k=a.findSurface(j);if(k){var l=new e.Point(k.rect().left,k.rect().top),m=new e.Point(k.rect().left+k.rect().width,k.rect().top+k.rect().height);g.x()>=l.x()&&g.x(l.x()),h.x()<=m.x()&&h.x(m.x()),g.y()>=l.y()&&g.y(l.y()),h.y()<=m.y()&&h.y(m.y()),f.push(k)}}for(var n=new e.Point((c.rect().width-c._context.margins.right())/2-(h.x()-g.x())/2+(c.rtlLayout()?c._context.margins.right():0),c.rect().height/2-(h.y()-g.y())/2),i=0;i<f.length;i++){var o=this._copyPasteStrategy.calculateDelta(f[i],c,g);f[i].rect({left:n.x()+o.x,top:n.y()+o.y})}this._selectionProvider.initialize(),f.forEach(function(a){b._selectionProvider.selecting({control:a,cancel:!1})})}},b}();a.CopyPasteHandler=f}(d=b.Internal||(b.Internal={})),function(b){var c=function(b){function c(e){var f=b.call(this)||this;f.tabs=[],f.collapsed=ko.observable(!1),f.position=ko.observable(c.Position.Right),f.toggleCollapsedText=ko.pureComputed(function(){var b=f.collapsed()?"Open":"Collapse";return a.Analytics.Utils.getLocalization(b,"ASPxReportsStringId.SidePanel_"+b)}),f.cssClasses=function(a){return d.extend({"dxrd-tab-panel-left":f.position()===c.Position.Left,"dxrd-tab-panel-right":f.position()===c.Position.Right,"dxrd-tab-panel-empty":f.isEmpty()},a)};var g=e.tabs,h=e.autoSelectTab;e.rtl&&f.position(c.Position.Left);var i=f;f.tabs=g,g&&g.length?f._disposables.push(f.isEmpty=ko.computed(function(){return f.tabs.every(function(a){return!a.visible()})})):f.isEmpty=ko.observable(!0),f._disposables.push(ko.computed(function(){var a=g.filter(function(a){return a.visible()});0!==a.length?0===a.filter(function(a){return a.active.peek()}).length&&(a[0].active(!0),h&&f.collapsed(!0)):f.collapsed(!0)})),f._disposables.push(ko.computed(function(){var a=g.filter(function(a){return a.disabled()});if(0!==a.length&&0!==a.filter(function(a){return a.active.peek()}).length){a.forEach(function(a){return a.active(!1)});var b=g.filter(function(a){return!a.disabled.peek()&&a.visible.peek()})[0];b&&f.selectTab({model:b})}})),h&&f.tabs.forEach(function(a){f._disposables.push(a.active.subscribe(function(b){b&&f.selectTab({model:a})}))}),f.selectTab=function(a){var b=a.model;b.disabled()||(f.tabs.forEach(function(a){a.active(a===b)}),f.collapsed(!1))};var j=ko.observable(340);f._disposables.push(f.width=ko.pureComputed({read:function(){return f.collapsed()?0:j()},write:function(a){j(a)}})),f._disposables.push(f.headerWidth=ko.pureComputed(function(){return f.isEmpty()?0:50+(f.collapsed()?0:f.width())}));var k=f;return f.getResizableOptions=function(a,b,d){return f._resizableOptions&&f._resizableOptions.$element===a||(f._resizableOptions={starting:function(){$(a).css(k.position()===c.Position.Left?"right":"left","")},handles:k.position()===c.Position.Left?"e":"w",stopped:$.noop,stop:$.noop,resize:function(){$(a).css({left:k.position()===c.Position.Left?b:"",right:k.position()===c.Position.Left?"":b}),i.width($(a).width())},disabled:i.collapsed,zoom:1,minimumWidth:d,maximumWidth:1e3,$element:a},k._disposables.push(k.position.subscribe(function(b){$(a).resizable("option","handles",k.position()===c.Position.Left?"e":"w")}))),f._resizableOptions},f._disposables.push(f.toggleCollapsedImage=ko.pureComputed(function(){var a=f.collapsed()?"-expand":"-collapse";return{class:"dxrd-image-propertygrid"+a,template:"dxrd-svg-tabs"+a}})),f._disposables.push(f.toggleCollapsedText),f}return __extends(c,b),c.prototype.dispose=function(){b.prototype.dispose.call(this),this.disposeArray(this.tabs)},c.Position={Left:"Left",Right:"Right"},c}(b.Disposable);b.TabPanel=c;var e=function(a){function c(b){var c=a.call(this)||this;c.active=ko.observable(!1),c.visible=ko.observable(),c.disabled=ko.observable();var d=b.imageClassName||b.text.toLowerCase();c._text=b.text,c._localizationId=b.localizationId,c._disposables.push(c.imageClassName=ko.pureComputed(function(){return"dxrd-image-"+d})),c.imageTemplateName=b.imageTemplateName||f.Internal.SvgTemplatesEngine.getExistingTemplate("dxrd-svg-tabs-"+b.text.toLowerCase()),c.template=b.template,c._disposables.push(b.model);var e=b.visible,g=b.disabled;return c._disposables.push(c.visible=ko.pureComputed(function(){return void 0===e||e()})),c._disposables.push(c.disabled=ko.pureComputed(function(){return void 0!==g&&g()})),c._disposables.push(c.visible.subscribe(function(a){a||c.active(!1)})),e&&c._disposables.push(e),g&&c._disposables.push(g),c.model=b.model,c}return __extends(c,a),Object.defineProperty(c.prototype,"text",{get:function(){return b.getLocalization(this._text,this._localizationId)},enumerable:!0,configurable:!0}),c}(b.Disposable);b.TabInfo=e;var g=function(){function a(a){this.disabled=ko.observable(!1),this.info=a}return Object.defineProperty(a.prototype,"type",{get:function(){return d.getTypeNameFromFullName(this.info["@ControlType"])},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"imageClassName",{get:function(){return[d.getImageClassName(this.type),this.disabled()?"dxrd-disabled-button":""].join(" ")},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"imageTemplateName",{get:function(){var a=d.getImageClassName(this.type,!0);return f.Internal.SvgTemplatesEngine.getExistingTemplate(a)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"index",{get:function(){return this.info.index},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"displayName",{get:function(){return this.info.displayName||this.type},enumerable:!0,configurable:!0}),a}();b.ToolboxItem=g}(c=b.Utils||(b.Utils={})),function(d){function e(a,b,c){var d=b();return a.peek().forEach(function(a){var b=c(a);d.splice(0,0,b)}),b.valueHasMutated(),a.subscribe(function(a){var d=b(),e=d.length;a.forEach(function(a){"deleted"===a.status&&d.splice(d.indexOf(a.value.surface),1)}),a.forEach(function(a){"added"===a.status&&d.splice(e-a.index,0,c(a.value))}),b.valueHasMutated()},null,"arrayChange")}function f(a,b,c){var d=b();return a.peek().forEach(function(a){var b=c(a);d.push(b)}),b.valueHasMutated(),a.subscribe(function(a){var d=b().length,e=0,f=[];a.forEach(function(a){"deleted"===a.status&&(e++,a.index<d&&(d=a.index))}),a.forEach(function(a){"added"===a.status&&(a.index<d&&(d=a.index),f.push(c(a.value)))}),b.splice.apply(b,[d,e].concat(f))},null,"arrayChange")}function g(a,b,c){var e=[];return d.getPropertyValues(a).forEach(function(a){var b=c(a);e.push(b)}),d.knockoutArrayWrapper(e,function(a,c){if("beforeChange"!==c)if("arrayChange"===c)for(var d=0;d<a.length;d++)b!==a[d].value.parentModel()&&a[d].value.parentModel(b);else for(var d=0;d<a.length;d++)b!==a[d].parentModel()&&a[d].parentModel(b)})}function h(a,b,c,d){for(var d=d||0,e=d;e<a.length;e++){if((ko.isObservable(a[e][b])?a[e][b].peek():a[e][b])===c)return a[e]}return null}function i(a,b){for(var c=0;c<a.length;c++)if(b(a[c]))return a[c];return null}function j(a,b,c){for(var d=0,e=a.length-1;d<=e;){var f=e+d>>1,g=c(b,a[f]);if(g>0)d=f+1;else{if(!(g<0))return f;e=f-1}}return~d}function k(a,b){if(void 0===b&&(b=!1),b&&m(a),d.DEBUG)throw new Error(a);J.warn(a)}function l(a){return a&&a.responseJSON&&a.responseJSON.error?a.responseJSON.error:""}function m(b,c,e,f){void 0===c&&(c="error");var g=$(".dx-designer-viewport")[0];a.ui.notify({message:b,type:c,maxWidth:g?g.clientWidth:void 0,position:{boundary:g,collision:"fit",of:d.chooseBetterPositionOf(document.documentElement,g),my:"bottom",at:"bottom",offset:"0 -10"},container:g,closeOnOutsideClick:!0,closeOnSwipe:!1,displayTime:e||("error"===c?6e4:3e3)})}function n(a,b,c){void 0===c&&(c=1);var d;return d="Test"===b||"Pixels"===b?1*a:"TenthsOfAMillimeter"===b?3.78*a/10:96*a/100,d*=c,Math.floor(100*d)/100}function o(a,b,c){var d;return d="Test"===b||"Pixels"===b?1*a:"TenthsOfAMillimeter"===b?a/3.78*10:a/96*100,d/=c,Math.round(100*d)/100}function p(a,b,c,d,e,f,g){var h=0;b[c]=ko.pureComputed({read:function(){var b=d(a)(),c=n(b,e.peek(),f());return Math.abs(c-h)>.2?h=c:h},write:function(b){if(!(Math.abs(b-h)<=.2)){h=b;var c=o(b,e.peek(),f());d(a)(c)}}}),g(b[c])}function q(a,b,c,d,e,f){if(c)for(var g in c)p(a,b,g,c[g],d,e,f)}function r(a,b){for(var c in a||{})ko.isObservable(a[c])?b[c](a[c]()):$.isFunction(a[c])||r(a[c],b[c])}function s(a,b){var c=a&&b&&!(a instanceof Array)&&!(b instanceof Array);if(c=c&&Object.getOwnPropertyNames(a).length===Object.getOwnPropertyNames(b).length)for(var d in a||{})if(0!==d.indexOf("_")&&("function"!=typeof a[d]||ko.isObservable(a[d]))){if(ko.isObservable(a[d]))c=ko.unwrap(a[d])===ko.unwrap(b[d]);else if(a[d]instanceof Array)if(b[d]instanceof Array&&a[d].length===b[d].length)for(var e=0;e<a[d].length&&!1!==(c=s(a[d][e],b[d][e]));e++);else c=!1;else c=a[d]instanceof Object?s(a[d],b[d]):a[d]===b[d];if(!1===c)break}return c}function t(a,b){return a+(b?"."+b:"")}function u(){var a=$("script[type='text/html']").map(function(a,b){if(b.src){var c=$.Deferred();return $.get(b.src).done(function(a){b.text=a,-1===a.indexOf('type="text/html"')&&-1===a.indexOf("type='text/html'")||$(document.body).append(a),c.resolve()}).fail(function(a,b,d){c.reject()}),c.promise()}});return $.when.apply($.when,a)}function v(a){return a<768?"xs":a<992?"sm":a<1200?"md":"lg"}function w(b,e){b.dx=e||a,b.getLocalization=function(){return c.getLocalization.apply(a.Analytics,arguments)},b.getPopupContainer=d.getParentContainer,b.surfaceClass=function(a){return"dx-designer-viewport dx-designer-viewport-"+v(a.clientWidth)+" "+(d.getParentContainer(a,".dx-theme-generic").length?"":" dx-theme-generic")}}function x(a,b,e,f,g,h,i,j){void 0===i&&(i=function(a){return!a.success}),void 0===j&&(j=d.getErrorMessage);var k,l=$.Deferred();return void 0!==b&&void 0!==e&&(k={actionKey:b,arg:e}),c.ajaxSetup.sendRequest($.extend({},{type:"POST",data:k,url:a},h)).fail(function(b,c,e){if(g&&g())return void l.reject();d._errorProcessor.call({jqXHR:b,textStatus:c,errorThrown:e,getRequestDetails:function(){return k||a}}),d._processError(e,l,b,c,f)}).done(function(b,c,e){if(!b)return void l.reject();if(i(b)){if(g&&g())return void l.reject();d._errorProcessor.call({jqXHR:e,textStatus:c,data:b,errorThrown:j(e),getRequestDetails:function(){return k||a}}),d._processError("Internal Server Error",l,e,c,f)}else l.resolve(b.result)}),l.promise()}function y(a){return x(a.uri,a.action,a.arg,a.processErrorCallback,a.ignoreError,a.customOptions,a.isError,a.getErrorMessage)}function z(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];return a.length>1?x.apply(this,a):y(a[0])}function A(a){return G(a,function(a){delete a["@Ref"]}),a}function B(a){return[{id:d.DesignerBaseElements.MenuButton,templateName:d.DesignerBaseElements.MenuButton,model:a},{id:d.DesignerBaseElements.Toolbar,templateName:d.DesignerBaseElements.Toolbar,model:a},{id:d.DesignerBaseElements.Toolbox,templateName:d.DesignerBaseElements.Toolbox,model:a},{id:d.DesignerBaseElements.Surface,templateName:d.DesignerBaseElements.Surface,model:a},{id:d.DesignerBaseElements.RightPanel,templateName:d.DesignerBaseElements.RightPanel,model:a}]}function C(a,b){return function(c){c.forEach(function(c){if(!c.wrappedWith||-1===c.wrappedWith.indexOf(a)){var d=c.clickAction;c.clickAction=function(a){return b(a,d)},c.wrappedWith=c.wrappedWith||[],c.wrappedWith.push(a)}})}}function D(e,f,g,h,i,j,k,l,m,n,o,p,q){void 0===h&&(h={}),void 0===i&&(i=[]);var r=new d.DesignerContextGenerator(k).addModel(e).addSurface(f).addUndoEngine(n).getContext(),s=new d.CommonDesignerGenerator(r,k);return s.mapOnContext().addSelection(function(a){a.selection=l||new d.SurfaceSelection,a.snapHelper=new d.SnapLinesHelper(f,d.SnapLinesHelper.snapTolerance,p||new d.SnapLinesCollector),a.editableObject=d.CombinedObject.getEditableObject(a.selection,r.undoEngine,o).extend({throttle:1}),a.addDragDrop(function(b){b.dragHelperContent=new d.DragHelperContent(a.selection),b.dragDropStarted=d.DragDropHandler.started,b.addDragDropHandler("dragHandler",new d.SelectionDragDropHandler(r.surface,a.selection,r.undoEngine,a.snapHelper,b.dragHelperContent)),b.addDragDropHandler("toolboxDragHandler",new d.ToolboxDragDropHandler(r.surface,a.selection,r.undoEngine,a.snapHelper,b.dragHelperContent,g))}),a.addResize(function(b){b.handler={starting:function(){l.expectClick=!0,r.undoEngine().start()},stopped:function(){r.undoEngine().end(),setTimeout(function(){l.expectClick=!1},100)},disabled:d.DragDropHandler.started,snapHelper:a.snapHelper}})}).addToolboxItems(function(){return d.getToolboxItems(g.controlsMap)}).addIsLoading().addControlProperties(i,h,q).addPopularProperties(g).addControlsHelper(function(a){a.addControlsHelper(m).addControlsStore()}).addTabPanel(void 0,function(){return[new c.TabInfo({text:"Properties",template:"dxrd-propertiestab",model:s.getModel().propertyGrid,localizationId:"AnalyticsCoreStringId.Cmd_Properties",visible:ko.pureComputed(function(){return!!e()}),disabled:ko.pureComputed(function(){return s.getModel().propertyGrid.focusedItem()instanceof Array}).extend({throttle:100})})]}).addContextActions(function(a){a.actionProviders=[],a.createDefaultActions(s.getModel().editableObject,s.getModel().undoEngine)}).addMenu(function(a){a.appMenuVisible=ko.observable(!1),a.toggleAppMenu=function(){a.appMenuVisible(!a.appMenuVisible())},a.getMenuPopupContainer=function(a){return $(a).closest(".dxrd-menu-button").prev(".dxrd-menu-container")},a.getMenuPopupTarget=function(a){return $(a).closest(".dxrd-menu-button").find(".dxrd-menu-place")}}).addElement("inlineTextEdit",function(){return new d.InlineTextEdit(s.getModel().selection)}).addElement("actionsGroupTitle",function(){return function(){return b.Utils.getLocalization("Actions","AnalyticsCoreStringId.Actions")}}).addElement("updateFont",function(){return function(b){a.Analytics.Widgets.Internal.availableFonts($.extend(a.Analytics.Widgets.Internal.availableFonts(),b))}}).addElement("sortFont",function(){return function(){var b={},c=a.Analytics.Widgets.Internal.availableFonts.peek();Object.keys(c).sort(function(a,b){return a.localeCompare(b)}).forEach(function(a){return b[a]=c[a]}),a.Analytics.Widgets.Internal.availableFonts(b)}}).addElement("surfaceSize",function(){return ko.observable(0)}).addElement("popularVisible",function(){return ko.pureComputed(function(){return s.getModel().popularProperties._editors().some(function(a){return a.visible()})||s.getModel().contextActions().length>0})}).addActionList().addParts().getModel()}function E(a){var c=ko.unwrap(a);return"none"===c?b.Utils.getLocalization("none","DataAccessStringId.ParameterListEmpty"):"(none)"===c?"(none)"!==b.Utils.getLocalization("(none)","DxDesignerStringId.None")?b.Utils.getLocalization("(none)","DxDesignerStringId.None"):"("+b.Utils.getLocalization("none","DataAccessStringId.ParameterListEmpty")+")":c}function F(a){var b=Math.round(parseInt(a.replace("%","")))/100;return b?b>=5?5:b<=.1?.1:b:1}function G(a,b,c,d){if(void 0===c&&(c=[]),void 0===d&&(d=["surface","reportSource"]),-1===c.indexOf(a)&&a&&void 0!==a){var e=[];for(var f in a)-1===c.indexOf(a[f])&&0!==f.indexOf("_")&&-1===d.indexOf(f)&&e.push(a[f]);b(a),c.push(a);for(var g=0;g<e.length;g++)e[g]=ko.unwrap(e[g]),"object"==typeof e[g]&&G(e[g],b,c,d)}}function H(a,b,c,d){if(void 0===c&&(c=["controls","bands","subBands","crossBandControls","rows","cells","fields"]),void 0===d&&(d=[]),a&&void 0!==a){d.push(a);for(var e=0,f=c.length;e<f;e++)a[c[e]]&&(b(a[c[e]],a),(a[c[e]]()||[]).forEach(function(a){return H(a,b,c,d)}))}}d.createObservableReverseArrayMapCollection=e,d.createObservableArrayMapCollection=f,d.deserializeChildArray=g,d.getFirstItemByPropertyValue=h,d.findFirstItemMatchesCondition=i,d.find=i,d.binaryIndexOf=j;var I=function(){function a(a,b,c){var d=this;this._extenders=c,this.getItems=function(c){var e=$.Deferred(),f=[];return d._beforeFieldListCallback(c,f)?e.resolve(f):b&&!c.fullPath?(f.push.apply(f,$.map(b(),function(a){return{name:a.id||a.ref,displayName:a.name,isList:!0,specifics:a.specifics||"ListSource",dragData:{noDragable:!1}}})),d._afterFieldListCallBack(c,f),e.resolve(f)):(d._patchRequest(c,b),a(c).done(function(a){f.push.apply(f,a),d._afterFieldListCallBack(c,f),e.resolve(f)}).fail(function(a){return e.reject(a)})),e.promise()}}return a.prototype._patchRequest=function(a,b){if(b)for(var c=b.peek(),d=0;d<c.length;d++){if(c[d].id===a.id&&a.id)return void(a.ref=void 0);if(c[d].ref===a.ref&&a.ref)return void(a.id=void 0)}},a.prototype._beforeFieldListCallback=function(a,b){return!!this._extenders&&this._extenders.some(function(c){return c.beforeItemsFilled(a,b)})},a.prototype._afterFieldListCallBack=function(a,b){this._extenders&&this._extenders.forEach(function(c){c.afterItemsFilled&&c.afterItemsFilled(a,b)})},a}();d.FieldListProvider=I,d.NotifyType={info:"info",warning:"warning",error:"error",success:"success"};var J=function(a){var b=function(b){return function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];a&&$.isFunction(a[b])&&a[b].apply(a,arguments)}};return{info:b("info"),warn:b("warn"),error:b("error")}}(window.console);d.NotifyAboutWarning=k,d.getErrorMessage=l,d.ShowMessage=m,d.unitsToPixel=n,d.pixelToUnits=o,d.createUnitProperty=p,d.createUnitProperties=q,d.copyObservables=r,d.compareObjects=s,d.cssTransform=["-webkit-transform","-moz-transform","-ms-transform","-o-transform","transform"],d.DEBUG=!1,d.getFullPath=t,d.loadTemplates=u,d.getSizeFactor=v,d.appendStaticContextToRootViewModel=w,d._ajax=x,d._ajaxWithOptions=y,d.ajax=z,d.cutRefs=A,d.DesignerBaseElements={MenuButton:"dxrd-menubutton-template-base",Toolbar:"dxrd-toolbar-template-base",Toolbox:"dxrd-toolbox-template-base",Surface:"dxrd-surface-template-base",RightPanel:"dxrd-right-panel-template-base"},d.generateDefaultParts=B,d.createActionWrappingFunction=C,d.createDesigner=D,d.localizeNoneString=E,d.parseZoom=F,d.objectsVisitor=G,d.collectionsVisitor=H}(d=b.Internal||(b.Internal={})),function(b){!function(b){var c=function(a){function b(b,c){var d=a.call(this,b,$.extend(c,{showClearButton:!0}))||this;d._path=ko.observable(""),d._value=ko.observable(""),d._parentViewport=null,d._itemsProvider=ko.observable(null),d._defaultPosition=null;var e=$(b);return e.addClass("dx-fieldlistpicker"),d.option("path")&&d._path(d.option("path")),d.option("value")&&d._value(d.option("value")),d.option("itemsProvider")&&d._itemsProvider(d.option("itemsProvider")),d.option("valueChangeEvent","change"),d.option("openOnFieldClick",!1===d.option("acceptCustomValue")),d._parentViewport=e.parents(".dx-designer-viewport"),"displayValue"in c&&(d.option("displayValue",c.displayValue),d._setTitle(d.option("displayValue"))),d}return __extends(b,a),b.prototype._showDropDown=function(){if(this._popup){var a=$(this.element());this._popup.option("width",a.width());var b=$.extend(!0,{},this._defaultPosition,{boundary:this._parentViewport[0],boundaryOffset:"0 20",collision:"none flip"});this._popup.option("position",b),this._popup.option("height","auto"),this._popup.option("maxHeight",this._getMaxHeight()),this._popup.repaint(),$(this._popup.content())[0].style.height="auto",this._popup._renderPosition()}},b.prototype._getMaxHeight=function(){var a=$(this.element()),b=a.offset(),c=$(window).height(),d=Math.max(b.top,c-b.top-a.outerHeight());return Math.min(.5*c,d)},b.prototype._closeOutsideDropDownHandler=function(b,c){a.prototype._closeOutsideDropDownHandler.call(this,b,!0)},b.prototype._hideOnBlur=function(){return!1},b.prototype._popupConfig=function(){var b=this._options.integrationOptions.templates["dx-polymorph-widget"],c=a.prototype._popupConfig.call(this);return this._defaultPosition=c.position,$.extend(c,{container:this._parentViewport,contentTemplate:b&&b._template,closeOnOutsideClick:!0})},b.prototype._setTitle=function(a){this.option("openOnFieldClick")&&$(this.element()).attr("title",a)},b.prototype._optionChanged=function(b,c){var d=this,e=b.name||b,f=c||b.value;switch(e){case"value":a.prototype._optionChanged.apply(this,arguments),setTimeout($.proxy(function(){d.option("opened",!1)},this),50);break;case"path":this._path(f);break;case"itemsProvider":this._itemsProvider(f);break;case"displayValue":$(this._input()).val(f),this._setTitle(f);break;default:a.prototype._optionChanged.apply(this,arguments),"opened"===e&&f&&this._showDropDown()}},b.prototype._clearValueHandler=function(){$(this._input()).val(null),a.prototype._clearValueHandler.apply(this,arguments)},b.prototype._renderPopupContent=function(){var b=this;a.prototype._renderPopupContent.call(this);var c=ko.pureComputed({read:function(){return b._path()?b._path()+"."+b._value():b._value()},write:function(a){b._path()&&b._path().length>0?(b._value(a.substr(b._path().length+1)),b.option("value",b._value())):(b._value(a),b.option("value",b._value()))}}),d=$("<div>").addClass("dx-treelist-wrapper").get(0),e=this._createComponent(d,"dxScrollView",{scrollByThumb:!0}),f=this,g=$(e.content()),h=$(this.element());g.append($('<div data-bind="treelist: options"></div>')[0]);var i=ko.contextFor(h.get(0)),j=this.option("treeListController"),k=ko.computed(function(){return{itemsProvider:b._itemsProvider(),onItemsVisibilityChanged:function(){f._popup&&f._popup._renderPosition()},selectedPath:c,treeListController:j,path:b._path}}),l=i.createChildContext({options:k});ko.applyBindingsToDescendants(l,g.get(0)),$(this._popup.content()).append(d)},b}(a.ui.dxDropDownBox);b.dxFieldListPicker=c,a.registerComponent("dxFieldListPicker",c)}(b.Internal||(b.Internal={}))}(f=b.Widgets||(b.Widgets={})),function(d){ko.bindingHandlers.dxBorderEditor={init:function(b,c,d,f,g){$(b).children().remove();var h=a.Analytics.Widgets.Internal.getTemplate("dxrd-bordereditor"),i=$(b).append(h);return ko.applyBindings({value:new e(c(),f.disabled)},i.children()[0]),{controlsDescendantBindings:!0}}};var e=function(a){function b(b,c){void 0===c&&(c=ko.observable(!1));var d=a.call(this)||this;return d.left=ko.observable(!1),d.right=ko.observable(!1),d.top=ko.observable(!1),d.bottom=ko.observable(!1),d.disabled=c,d.value=b.value,d.updateModel(b.value()),d._disposables.push(b.value.subscribe(function(a){d.updateModel(a)})),d}return __extends(b,a),b.prototype._setAllValues=function(a){this.left(a),this.bottom(a),this.right(a),this.top(a)},b.prototype.setValue=function(a){this.disabled()||(this[a](!this[a]()),this.updateValue())},b.prototype.setAll=function(){this.disabled()||(this._setAllValues(!0),this.updateValue())},b.prototype.setNone=function(){this.disabled()||(this._setAllValues(!1),this.updateValue())},b.prototype.updateModel=function(a){var b=a||"None";-1!==b.indexOf("All")?this._setAllValues(!0):-1!==b.indexOf("None")?this._setAllValues(!1):(this.left(-1!==b.indexOf("Left")),this.top(-1!==b.indexOf("Top")),this.right(-1!==b.indexOf("Right")),this.bottom(-1!==b.indexOf("Bottom")))},b.prototype.updateValue=function(){var a=[];this.left()&&this.right()&&this.top()&&this.bottom()?a.push("All"):this.left()||this.right()||this.top()||this.bottom()?(this.left()&&a.push("Left"),this.right()&&a.push("Right"),this.top()&&a.push("Top"),this.bottom()&&a.push("Bottom")):a.push("None"),this.value(a.join(","))},b}(c.Disposable);d.BordersModel=e;var g=function(c){function d(d,e,f,g){void 0===f&&(f=0),void 0===g&&(g=!0);var h=c.call(this,d,e,f,void 0,void 0,ko.observable(""))||this;h.focusedItem=ko.observable(),h.editorsRendered=ko.observable(!1),h.isSortingByGroups=ko.observable(!0),h.isSearching=ko.observable(!1),h.allEditorsCreated=ko.observable(!1),h.textToSearch=ko.observable(""),h._searchBox=null,h.searchPlaceholder=function(){return b.Utils.getLocalization("Enter text to search...","AnalyticsCoreStringId.QueryBuilder_SearchBox_EmptyText")},h.switchSearchBox=function(){h.isSearching()?(h.isSearching(!1),h.textToSearch("")):(h.isSearching(!0),h._searchBox&&h._searchBox.focus())},g&&(h.createEditorAddOn=function(a){var c=new b.Internal.EditorAddOn(a,h.popupService);return a._disposables.push(c),{templateName:c.templateName,data:c}}),h.popupService=new b.Internal.PopupService,h.createGroups(e.groups),h.update(d()),h._disposables.push(h.focusedImageClassName=ko.pureComputed(function(){return b.Internal.getImageClassName(d()&&d().controlType)}));var i=h.isSortingByGroups.subscribe(function(a){a||(h.editorsRendered(!0),i.dispose())});h._disposables.push(i),h.focusedItem=d,h.displayExpr=function(b){return a.Analytics.Internal.getControlFullName(b)};var j=null;return h._disposables.push(h.textToSearch.subscribe(function(a){j&&clearTimeout(j),j=setTimeout(function(){h._textToSearch(a),a&&h.groups.forEach(function(a){return a.collapsed()&&a.editors().some(function(a){return a.isSearchedProperty()})&&a.collapsed(!1)})},200)})),h}return __extends(d,c),d.prototype.getEditors=function(){var a=c.prototype.getEditors.call(this),b=a.map(function(a){return a.displayName()}).sort();return a.sort(function(a,c){return b.indexOf(a.displayName())-b.indexOf(c.displayName())}),a},d.prototype._update=function(a,b,d){return this.groups&&this.groups.forEach(function(a){0===a.editors().length&&a.recreate()}),c.prototype._update.call(this,a,b,d)},d.prototype.cleanEditors=function(){c.prototype.cleanEditors.call(this),this.groups.forEach(function(a){return a.resetEditors()})},d.prototype.dispose=function(){c.prototype.dispose.call(this),this.disposeArray(this.groups),this.disposeObservableArray(this._editors),this.resetObservableArray(this._editors),this.cleanSubscriptions(),this._searchBox=null,this.focusedItem=null},d.prototype.createGroups=function(a){var b=this;this.groups=Object.keys(a).map(function(c){return new h(c,a[c].info,function(a){return a.filter(function(a){return!!a.editor}).map(function(a){var c=b.findEditorByInfo(a);return c||(c=b.createEditor(a),b._editors.push(c),c)})},!0,a[c].displayName)}),this._disposables.push.apply(this._disposables,this.groups)},d.prototype.searchBox=function(b){this._searchBox=a.ui.dxTextBox.getInstance(b.get(0))},d}(f.ObjectProperties);d.ControlProperties=g;var h=function(a){function b(b,d,e,f,g){void 0===f&&(f=!0);var h=a.call(this)||this;if(h.editors=ko.observableArray([]).extend({deferred:!0}),h.editorsCreated=ko.observable(!1),h.editorsRendered=ko.observable(!1),h._displayName=b,h.displayName=g||function(){return c.getLocalization(b)},h._serializationsInfo=d,h.collapsed=ko.observable(f),f){var i=h.collapsed.subscribe(function(a){i.dispose(),h.editorsRendered(!0)});h._disposables.push(i)}return h.recreate=function(){h.editors(e(d))},h.editors(e(d)),h.visible=ko.computed(function(){return h.editors().some(function(a){return a.visible()})}),h._disposables.push(h.visible),h}return __extends(b,a),b.prototype.resetEditors=function(){this.disposeObservableArray(this.editors),this.resetObservableArray(this.editors)},b.prototype.dispose=function(){a.prototype.dispose.call(this),this.disposeObservableArray(this.editors),this.resetObservableArray(this.editors)},b.prototype.update=function(a){var b=this;this._viewModel=a,this.editors().forEach(function(a){a.update(b._viewModel)})},b}(c.Disposable);d.Group=h,d.sizeFake=[{propertyName:"height",displayName:"Height",localizationId:"AnalyticsCoreStringId.SizeF.Height",editor:f.editorTemplates.numeric,editorOptions:{min:2}},{propertyName:"width",displayName:"Width",localizationId:"AnalyticsCoreStringId.SizeF.Width",editor:f.editorTemplates.numeric,editorOptions:{min:2}}],d.locationFake=[{propertyName:"x",displayName:"X",editor:f.editorTemplates.numeric},{propertyName:"y",displayName:"Y",editor:f.editorTemplates.numeric}];var i=function(){function a(a,b){this._context=a,this._rtl=b}return a.prototype.addElement=function(a,b){return this._context[a]=b,this},a.prototype.addUndoEngine=function(a){return void 0===a&&(a=ko.observable(new c.UndoEngine(this._context.model))),this._context.undoEngine=a,this},a.prototype.addSurface=function(a){return this._context.surface=a,this},a.prototype.getContext=function(){return this._context},a}();d.DesignerContextGeneratorInternal=i;var j=function(){function a(a){this._rtl=a}return a.prototype.addModel=function(a){return new i({model:a},this._rtl)},a}();d.DesignerContextGenerator=j;var k=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return __extends(b,a),Object.defineProperty(b.prototype,"handler",{get:function(){return this._handler},set:function(a){this._disposables.push(a),this._handler=a},enumerable:!0,configurable:!0}),b.prototype.generate=function(){var a={};return this.handler&&(a.resizeHandler=this.handler),a},b}(c.Disposable);d.ResizeSettings=k;var l=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return __extends(b,a),b.prototype._actionUndoEngineWrappingFunction=function(a,b){return d.createActionWrappingFunction("WrapWithUndoEngine",function(a,c){b().start(),c(a),b().end()})(a)},Object.defineProperty(b.prototype,"actionProviders",{get:function(){return this._actionProviders},set:function(a){this._disposables.push.apply(this._disposables,a),this._actionProviders=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"actions",{get:function(){return this._actions},set:function(a){this._disposables.push(a),this._actions=a},enumerable:!0,configurable:!0}),b.prototype.createDefaultActions=function(a,b){var c=this;this.actions=ko.computed(function(){var d=a(),e=[];return c.actionProviders.forEach(function(a){e.push.apply(e,a.getActions(d))}),c._actionUndoEngineWrappingFunction(e,b),e})},b.prototype.generate=function(){var a={};return this.actionProviders&&(a.contextActionProviders=this.actionProviders),this.actions&&(a.contextActions=this.actions),a},b}(c.Disposable);d.ContextActionsSettings=l;var m=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;return b._model={},b}return __extends(b,a),Object.defineProperty(b.prototype,"dragHelperContent",{get:function(){return this._dragHelperContent},set:function(a){this._disposables.push(a),this._dragHelperContent=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"dragDropStarted",{get:function(){return this._dragDropStarted},set:function(a){this._disposables.push(a),this._dragDropStarted=a},enumerable:!0,configurable:!0}),b.prototype.addDragDropHandler=function(a,b){this._disposables.push(b),this._model[a]=b},b.prototype.generate=function(){var a=this._model;return this.dragHelperContent&&(a.dragHelperContent=this.dragHelperContent),this.dragDropStarted&&(a.dragDropStarted=this.dragDropStarted),a},b}(c.Disposable);d.DragDropSettings=m;var n=function(a){function b(b,c){var d=a.call(this)||this;return d._selection=b,d._context=c,d._model={},d}return __extends(b,a),b.prototype.generate=function(){var a=this._model;return this.controlsHelper&&(a.controlsHelper=this.controlsHelper),a},b.prototype.addControlsHelper=function(a){var b=this;return this.controlsHelper=a||new d.DesignControlsHelper(this._context.model,[{added:function(a){},deleted:function(a){a.surface===b._selection.focused()&&b._selection.focused(d.findNextSelection(a.surface))}}]),this._disposables.push(this.controlsHelper),this},b.prototype.addControlsStore=function(a){return a=a||new d.ControlsStore(this.controlsHelper.allControls),this._disposables.push(a),this._model.controlsStore=a,this},b}(c.Disposable);d.ControlsHelperSettings=n;var o=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;return b.stopPropagation=!1,b}return __extends(b,a),b.prototype.generate=function(){var a={};return this.appMenuVisible&&(a.appMenuVisible=this.appMenuVisible),this.toggleAppMenu&&(a.toggleAppMenu=this.toggleAppMenu),this.getMenuPopupContainer&&(a.getMenuPopupContainer=this.getMenuPopupContainer),this.getMenuPopupTarget&&(a.getMenuPopupTarget=this.getMenuPopupTarget),a.stopPropagation=this.stopPropagation,a},Object.defineProperty(b.prototype,"appMenuVisible",{get:function(){return this._appMenuVisible},set:function(a){this._disposables.push(a),this._appMenuVisible=a},enumerable:!0,configurable:!0}),b}(c.Disposable);d.MenuSettings=o;var p=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;return b._dragDropSettings=new m,b._resizeSettings=new k,b}return __extends(b,a),b.prototype.dispose=function(){this._editableObject(null),a.prototype.dispose.call(this),this.removeProperties()},Object.defineProperty(b.prototype,"selection",{get:function(){return this._selection},set:function(a){this._disposables.push(a),this._selection=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"snapHelper",{get:function(){return this._snapHelper},set:function(a){this._disposables.push(a),this._snapHelper=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"editableObject",{get:function(){return this._editableObject},set:function(a){this._disposables.push(a),this._editableObject=a},enumerable:!0,configurable:!0}),b.prototype.addDragDrop=function(a){a(this._dragDropSettings),this._disposables.push(this._dragDropSettings)},b.prototype.addResize=function(a){a(this._resizeSettings),this._disposables.push(this._resizeSettings)},b.prototype.generate=function(){var a={};return this.selection&&(a.selection=this.selection),this.snapHelper&&(a.snapHelper=this.snapHelper),this.editableObject&&(a.editableObject=this.editableObject),d.extend(a,this._dragDropSettings.generate(),this._resizeSettings.generate())},b}(c.Disposable);d.SelectionSettings=p;var q=function(a){function b(b,c){var d=a.call(this)||this;return d._context=b,d._rtl=c,d._model={},d._selectionSettings=new p,d._model.rtl=d._rtl,d._model.dispose=function(){d.dispose()},d}return __extends(b,a),b.prototype._createPopularProperties=function(a,b){var c=[];return b.forEach(function(b){var d=a.filter(function(a){return a.propertyName===b})[0];d&&c.push(d)}),c},b.prototype._resetModel=function(){var a=this;Object.keys(this._model).forEach(function(b){"dispose"!==b&&delete a._model[b]})},Object.defineProperty(b.prototype,"rtl",{get:function(){return this._rtl},set:function(a){this._rtl=a,this._model.rtl=a},enumerable:!0,configurable:!0}),b.prototype.dispose=function(){a.prototype.dispose.call(this),this._resetModel()},b.prototype.initializeContext=function(a){return this._context=a,this},b.prototype.getPropertyByName=function(a){return this._model[a]},b.prototype.addElement=function(a,b){return this._model[a]=b(),this._disposables.push(this._model[a]),this},b.prototype.mapOnContext=function(){return this._model.model=this._context.model,this._model.surface=this._context.surface,this._model.undoEngine=this._context.undoEngine,this},b.prototype.addSelection=function(a){return a(this._selectionSettings),this._disposables.push(this._selectionSettings),d.extend(this._model,this._selectionSettings.generate()),this},b.prototype.addPropertyGrid=function(a,b){return void 0===b&&(b="propertyGrid"),this._model[b]=a&&a(),this._disposables.push(this._model[b]),this},b.prototype.addControlProperties=function(a,b,c){var d=this;return this.addPropertyGrid(function(){return new g(d._model.editableObject,{groups:b,editors:a},null)})},b.prototype.addPopularProperties=function(a){var b=this;return this.addPropertyGrid(function(){return new f.ObjectProperties(ko.pureComputed(function(){var c={getInfo:function(){return[]}},d=b._model.editableObject();if(d){var e=a.controlsMap[d.controlType],f=b._createPopularProperties(e&&e.info||[],e&&e.popularProperties||[]);f.forEach(function(a){a.propertyName in d&&(c[a.propertyName]=d[a.propertyName])}),c.getInfo=function(){return f},c.root=d.root,c.actions=d.actions,c.getPath=function(a){return d.getPath&&d.getPath(a)||""},c.getModel=function(){return d},c.isPropertyModified=function(a){return!!d.isPropertyModified&&d.isPropertyModified(a)},c.getActionClassName=function(a){return d.getActionClassName?d.getActionClassName(a):""},c.isPropertyVisible=function(a){return d.isPropertyVisible(a)},c.isPropertyDisabled=function(a){return!!d.isPropertyDisabled&&d.isPropertyDisabled(a)},c.isSame=function(a){return a===d}}return c}),void 0,void 0,void 0)},"popularProperties")},b.prototype.addToolboxItems=function(a){return this._model.toolboxItems=a&&a(),this},b.prototype.addTabPanel=function(a,b){void 0===b&&(b=function(){return[]});var d=a&&a()||new c.TabPanel({tabs:b(),rtl:this._rtl});return this._model.tabPanel=d,this._disposables.push(d),this},b.prototype.addIsLoading=function(a){return void 0===a&&(a=function(){return ko.observable(!0)}),this._model.isLoading=a(),this._disposables.push(this._model.isLoading),this},b.prototype.addControlsHelper=function(a){var b=new n(this._selectionSettings.selection,this._context);return a(b),this._disposables.push(b),d.extend(this._model,b.generate()),this},b.prototype.addMenu=function(a){var b=new o;return a(b),this._disposables.push(b),d.extend(this._model,b.generate()),this},b.prototype.addContextActions=function(a){var b=new l;return a(b),this._disposables.push(b),d.extend(this._model,b.generate()),this},b.prototype.addParts=function(a,b){void 0===a&&(a=function(a){return a}),void 0===b&&(b=!0);var c=[];return b&&(c=d.generateDefaultParts(this._model)),this._model.parts=a(c),this},b.prototype.getModel=function(){return this._model},b.prototype.addActionList=function(a){var b=a&&a()||new d.ActionLists(this._context.surface,this._selectionSettings.selection,this._context.undoEngine,function(){});return this._disposables.push(b),this._model.actionLists=b,this},b}(c.Disposable);d.CommonDesignerGenerator=q;var r={render:function(a){var b=$("<i />").addClass("dx-icon");a.model.iconClass?b.addClass("dx-icon-"+a.model.iconClass):a.model.icon&&b.addClass(a.model.icon),a.model.icon&&b.attr("data-bind","template: '"+a.model.icon+"'");var c=b.get(0);$(a.container).append(c),ko.applyBindings(a.model,c)}},s=function(a){function b(b,c){return c.template=r,a.call(this,b,c)||this}return __extends(b,a),b.prototype._getContentData=function(){var b=a.prototype._getContentData.call(this);return ko.utils.extend(b,{iconClass:this.option("iconClass")})},b.prototype._optionChanged=function(b){switch(b.name){case"iconClass":this._updateContent(),this._updateAriaLabel();break;default:a.prototype._optionChanged.call(this,b)}},b}(a.ui.dxButton);d.dxButtonWithTemplate=s,a.registerComponent("dxButtonWithTemplate",s)}(d=b.Internal||(b.Internal={}))}(a.Analytics||(a.Analytics={}))}(DevExpress||(DevExpress={})),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.DragDropHandler","Analytics.Internal.DragDropHandler"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.DragHelperContent","Analytics.Internal.DragHelperContent"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.SelectionDragDropHandler","Analytics.Internal.SelectionDragDropHandler"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ToolboxDragDropHandler","Analytics.Internal.ToolboxDragDropHandler"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.SurfaceElementArea","Analytics.SurfaceElementArea","Analytics.Elements.SurfaceElementArea"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.SurfaceElementBase","Analytics.SurfaceElementBase","Analytics.Elements.SurfaceElementBase"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Disposable","Analytics.Utils.Disposable"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ElementViewModel","Analytics.ElementViewModel","Analytics.Elements.ElementViewModel"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.SerializableModel","Analytics.SerializableModel","Analytics.Elements.SerializableModel"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.CombinedObject","Analytics.Internal.CombinedObject"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.SurfaceSelection","Analytics.Internal.SurfaceSelection"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.SnapLinesCollector","Analytics.Internal.SnapLinesCollector"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.SnapLinesHelper","Analytics.Internal.SnapLinesHelper"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.CopyPasteHandler","Analytics.Internal.CopyPasteHandler"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.SnapLineSurface","Analytics.Internal.SnapLineSurface"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ActionId","Analytics.ActionId","Analytics.Tools.ActionId"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ActionListsBase","Analytics.Internal.ActionListsBase"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ActionLists","Analytics.Internal.ActionLists"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.KeyboardHelper","Analytics.Internal.KeyboardHelper"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.KeyDownHandlersManager","Analytics.Internal.KeyDownHandlersManager"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.TabPanel","Analytics.TabPanel","Analytics.Utils.TabPanel"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.TabInfo","Analytics.TabInfo","Analytics.Utils.TabInfo"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ToolboxItem","Analytics.ToolboxItem","Analytics.Utils.ToolboxItem"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ControlsFactory","Analytics.Utils.ControlsFactory"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.DesignControlsHelper","Analytics.Internal.DesignControlsHelper"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.CssCalculator","Analytics.Internal.CssCalculator"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.FieldListProvider","Analytics.Utils.FieldListProvider","Analytics.Internal.FieldListProvider"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.HoverInfo","Analytics.Internal.HoverInfo"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.InlineTextEdit","Analytics.Internal.InlineTextEdit"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Margins","Analytics.Margins","Analytics.Elements.Margins"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ObjectStructureTreeListController","Analytics.Internal.ObjectStructureTreeListController"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.DataMemberTreeListController","Analytics.Widgets.DataMemberTreeListController","Analytics.Widgets.Internal.DataMemberTreeListController"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ObjectStructureProviderBase","Analytics.Internal.ObjectStructureProviderBase"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ObjectExplorerProvider","Analytics.Internal.ObjectExplorerProvider"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ObjectStructureProvider","Analytics.Internal.ObjectStructureProvider"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Point","Analytics.Point","Analytics.Elements.Point"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Rectangle","Analytics.Rectangle","Analytics.Elements.Rectangle"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Size","Analytics.Size","Analytics.Elements.Size"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.SortedArrayStore","Analytics.Internal.SortedArrayStore"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ControlsStore","Analytics.Internal.ControlsStore"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.dxFieldListPicker","Analytics.Widgets.dxFieldListPicker","Analytics.Widgets.Internal.dxFieldListPicker"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.BaseActionsProvider","Analytics.Internal.BaseActionsProvider"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.createObservableArrayMapCollection","Analytics.Utils.createObservableArrayMapCollection","Analytics.Internal.createObservableArrayMapCollection"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.deserializeChildArray","Analytics.Utils.deserializeChildArray","Analytics.Internal.deserializeChildArray"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getFirstItemByPropertyValue","Analytics.Utils.getFirstItemByPropertyValue","Analytics.Internal.getFirstItemByPropertyValue"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.findFirstItemMatchesCondition","Analytics.Utils.findFirstItemMatchesCondition","Analytics.Internal.findFirstItemMatchesCondition"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.binaryIndexOf","Analytics.Utils.binaryIndexOf","Analytics.Internal.binaryIndexOf"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getEditorType","Analytics.Internal.getEditorType"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getTypeNameFromFullName","Analytics.Internal.getTypeNameFromFullName"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getShortTypeName","Analytics.Internal.getShortTypeName"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getControlFullName","Analytics.Internal.getControlFullName"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getImageClassName","Analytics.Internal.getImageClassName"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getUniqueNameForNamedObjectsArray","Analytics.Internal.getUniqueNameForNamedObjectsArray"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getUniqueName","Analytics.Internal.getUniqueName"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.initGlobalize","Analytics.Internal.initGlobalize"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.NotifyAboutWarning","Analytics.Utils.NotifyAboutWarning","Analytics.Internal.NotifyAboutWarning"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getErrorMessage","Analytics.Utils.getErrorMessage","Analytics.Internal.getErrorMessage"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ShowMessage","Analytics.Utils.ShowMessage","Analytics.Internal.ShowMessage"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.floatFromModel","Analytics.Utils.floatFromModel"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.fromEnum","Analytics.Utils.fromEnum"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.parseBool","Analytics.Utils.parseBool"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.colorFromString","Analytics.Utils.colorFromString"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.saveAsInt","Analytics.Utils.saveAsInt"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.colorToString","Analytics.Utils.colorToString"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer._processError","Analytics.Internal._processError"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.processErrorEvent","Analytics.Internal.processErrorEvent"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.deleteSelection","Analytics.Internal.deleteSelection"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.findNextSelection","Analytics.Internal.findNextSelection"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.findSurface","Analytics.Internal.findSurface"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getControlNewAbsolutePositionOnResize","Analytics.Internal.getControlNewAbsolutePositionOnResize"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getControlRect","Analytics.Internal.getControlRect"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.minHeightWithoutScroll","Analytics.Internal.minHeightWithoutScroll"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.chooseBetterPositionOf","Analytics.Internal.chooseBetterPositionOf"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.updateSurfaceContentSize","Analytics.Internal.updateSurfaceContentSize"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.unitsToPixel","Analytics.Utils.unitsToPixel","Analytics.Internal.unitsToPixel"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.pixelToUnits","Analytics.Utils.pixelToUnits","Analytics.Internal.pixelToUnits"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.createUnitProperty","Analytics.Utils.createUnitProperty","Analytics.Internal.createUnitProperty"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.createUnitProperties","Analytics.Utils.createUnitProperties","Analytics.Internal.createUnitProperties"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.validateName","Analytics.Internal.validateName"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.replaceInvalidSymbols","Analytics.Internal.replaceInvalidSymbols"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.propertiesVisitor","Analytics.Utils.propertiesVisitor","Analytics.Internal.propertiesVisitor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.objectsVisitor","Analytics.Utils.objectsVisitor","Analytics.Internal.objectsVisitor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.collectionsVisitor","Analytics.Utils.collectionsVisitor","Analytics.Internal.collectionsVisitor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.copyObservables","Analytics.Utils.copyObservables","Analytics.Internal.copyObservables"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.compareObjects","Analytics.Utils.compareObjects","Analytics.Internal.compareObjects"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getFullPath","Analytics.Utils.getFullPath","Analytics.Internal.getFullPath"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.loadTemplates","Analytics.Utils.loadTemplates","Analytics.Internal.loadTemplates"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.appendStaticContextToRootViewModel","Analytics.Utils.appendStaticContextToRootViewModel","Analytics.Internal.appendStaticContextToRootViewModel"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ajax","Analytics.Utils.ajax","Analytics.Internal.ajax"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Internal.ajaxSetup","Analytics.Utils.ajaxSetup"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.checkModelReady","Analytics.Utils.checkModelReady","Analytics.Internal.checkModelReady"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.cutRefs","Analytics.Utils.cutRefs","Analytics.Internal.cutRefs"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.patchPositionByRTL","Analytics.Internal.patchPositionByRTL"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.generateDefaultParts","Analytics.Utils.generateDefaultParts","Analytics.Internal.generateDefaultParts"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.createActionWrappingFunction","Analytics.Utils.createActionWrappingFunction","Analytics.Internal.createActionWrappingFunction"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.createDesigner","Analytics.Utils.createDesigner","Analytics.Internal.createDesigner"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.localizeNoneString","Analytics.Utils.localizeNoneString","Analytics.Internal.localizeNoneString"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.find","Analytics.Utils.find","Analytics.Internal.find"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.copyPasteStrategy","Analytics.Internal.copyPasteStrategy"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getToolboxItems","Analytics.getToolboxItems","Analytics.Internal.getToolboxItems"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.createObservableReverseArrayMapCollection","Analytics.Utils.createObservableReverseArrayMapCollection","Analytics.Internal.createObservableReverseArrayMapCollection"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.editorTypeMapper","Analytics.Internal.editorTypeMapper"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.NotifyType","Analytics.Utils.NotifyType","Analytics.Internal.NotifyType"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.papperKindMapper","Analytics.Internal.papperKindMapper"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer._errorProcessor","Analytics.Internal._errorProcessor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.nameValidationRules","Analytics.Internal.nameValidationRules"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.sizeFake","Analytics.Internal.sizeFake"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.locationFake","Analytics.Internal.locationFake"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.cssTransform","Analytics.Utils.cssTransform","Analytics.Internal.cssTransform"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.DEBUG","Analytics.Utils.DEBUG","Analytics.Internal.DEBUG"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.DesignerBaseElements","Analytics.Utils.DesignerBaseElements","Analytics.Internal.DesignerBaseElements"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.left","Analytics.left","Analytics.Elements.Metadata.left"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.right","Analytics.right","Analytics.Elements.Metadata.right"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.top","Analytics.top","Analytics.Elements.Metadata.top"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.bottom","Analytics.bottom","Analytics.Elements.Metadata.bottom"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.paddingSerializationsInfo","Analytics.paddingSerializationsInfo","Analytics.Elements.Metadata.paddingSerializationsInfo"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.coreEditorTemplates","Analytics.Widgets.coreEditorTemplates"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Widgets.RequiredNullableEditor","Analytics.Widgets.Internal.RequiredNullableEditor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.createNumericEditor","Analytics.Widgets.createNumericEditor","Analytics.Widgets.Internal.createNumericEditor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.PaddingModel","Analytics.PaddingModel","Analytics.Elements.PaddingModel"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.BordersModel","Analytics.Widgets.BordersModel","Analytics.Internal.BordersModel"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.ControlProperties","Analytics.Widgets.ControlProperties","Analytics.Internal.ControlProperties"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.Group","Analytics.Widgets.Group","Analytics.Internal.Group"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.ColorPickerEditor","Analytics.Widgets.ColorPickerEditor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.DataMemberEditor","Analytics.Widgets.DataMemberEditor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.FieldListEditor","Analytics.Widgets.FieldListEditor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Widgets.dxButtonWithTemplate","Analytics.Internal.dxButtonWithTemplate"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Utils.DesignerContextGeneratorInternal","Analytics.Internal.DesignerContextGeneratorInternal"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Utils.DesignerContextGenerator","Analytics.Internal.DesignerContextGenerator"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Utils.ResizeSettings","Analytics.Internal.ResizeSettings"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Utils.ContextActionsSettings","Analytics.Internal.ContextActionsSettings"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Utils.DragDropSettings","Analytics.Internal.DragDropSettings"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Utils.ControlsHelperSettings","Analytics.Internal.ControlsHelperSettings"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Utils.MenuSettings","Analytics.Internal.MenuSettings"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Utils.SelectionSettings","Analytics.Internal.SelectionSettings"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Utils.CommonDesignerGenerator","Analytics.Internal.CommonDesignerGenerator");
9
+ var __extends=this&&this.__extends||function(){var a=function(b,c){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])})(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c),b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),DevExpress;!function(a){!function(a){var b;!function(a){function b(a,b,c,d){delete a[c],d=d||c,Object.defineProperty(a,c,{get:function(){return b[d]},set:function(a){b[d]=a},configurable:!0})}function c(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];for(var d=function(b,c){void 0===c&&(c=!0);for(var d=b.split("."),e=a,f=0;f<d.length-1;f++)!e[d[f]]&&c&&(e[d[f]]={}),e=e[d[f]];return{object:e,propertyName:d[d.length-1]}},e=b[b.length-1],f=d(b[b.length-1]),g=0;g<b.length-1;g++)!function(a,b){Object.defineProperty(b.object,b.propertyName,{get:function(){return console.warn("DevExpress."+a+" is now deprecated and will be removed in future versions. Use DevExpress."+e+" instead."),f.object[f.propertyName]},set:function(b){console.warn("DevExpress."+a+" is now deprecated and will be removed in future versions. Use DevExpress."+e+" instead."),f.object[f.propertyName]=b},configurable:!0})}(b[g],d(b[g]))}function d(a,b){var c=function(){ko.utils.domNodeDisposal.removeDisposeCallback(a,c),b&&b(),c=null,b=null};ko.utils.domNodeDisposal.addDisposeCallback(a,c)}a._defineProperty=b,a._definePropertyByString=c,a.addDisposeCallback=d}(b=a.Internal||(a.Internal={}));!function(a){function c(a,c){var d=[];return b.getPropertyValues(a).forEach(function(a){var b=c(a);d.push(b)}),ko.observableArray(d)}function d(a,b){return(a||[]).map(function(a){var b=void 0!==a&&null!==a?a.toString():"00";return 1===b.length&&(b="0"+b),b}).join(b)}function e(a){var b=[a.getMonth()+1,a.getDate(),a.getFullYear()],c=d([a.getHours(),a.getMinutes(),a.getSeconds()],":");return"00:00:00"===c?d([b[2],b[0],b[1]],"-"):d(b,"/")+" "+c}var f=function(){function a(){this._disposables=[],this.isDisposing=!1}return a.prototype.disposeObservableArray=function(a){a&&a().forEach(function(a){a.dispose&&a.dispose()})},a.prototype.resetObservableArray=function(a){a&&a([])},a.prototype.disposeArray=function(a){a&&(a.forEach(function(a){a.dispose&&a.dispose()}),a.splice(0,a.length))},a.prototype.dispose=function(){this.isDisposing||(this.isDisposing=!0,(this._disposables||[]).reverse().forEach(function(a){return a&&a.dispose&&a.dispose()}),this._disposables=[])},a.prototype.removeProperties=function(){var a=this;Object.keys(this).forEach(function(b){delete a[b]})},a}();a.Disposable=f,a.deserializeArray=c,a.serializeDate=e}(a.Utils||(a.Utils={})),function(a){function b(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];var d=ko.observableArray(a),e=d.notifySubscribers;return d.notifySubscribers=function(a,c){if(b)for(var f=0,g=b.length;f<g;f++)b[f](a,c);return e.call(d,a,c)},d}function c(a){return null!=a&&a===a.window}function d(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?j[j.toString.call(a)]||"object":typeof a}function e(a){return"object"===d(a)&&!a.nodeType&&!c(a)&&!(a.constructor&&!k.call(a.constructor.prototype,"isPrototypeOf"))}function f(a){if("string"==typeof a)return!1;for(var b in a)return!1;return!0}function g(a){return"function"===d(a)}function h(a,b){for(var c=[],d=2;d<arguments.length;d++)c[d-2]=arguments[d];var f,i,j,k,l,m,a=arguments[0]||{},n=1,o=arguments.length,p=!1;for("boolean"==typeof a&&(p=a,a=arguments[n]||{},n++),"object"==typeof a||g(a)||(a={}),n===o&&(a=this,n--);n<o;n++)if(null!=(f=arguments[n]))for(i in f)j=a[i],k=f[i],a!==k&&(p&&k&&(e(k)||(l=Array.isArray(k)))?(l?(l=!1,m=j&&Array.isArray(j)?j:[]):m=j&&e(j)?j:{},a[i]=h(p,m,k)):void 0!==k&&(a[i]=k));return a}function i(a){void 0===a&&(a={});var b=[];for(var c in a)b.push(a[c]);return b}a.knockoutArrayWrapper=b;var j={},k=j.hasOwnProperty;["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error"].forEach(function(a){return j["[object "+a+"]"]=a.toLowerCase()}),a.isPlainObject=e,a.isEmptyObject=f,a.extend=h,a.getPropertyValues=i}(b=a.Internal||(a.Internal={})),function(a){var c=function(){function c(c){this._refTable={},this._linkTable={},this._options=b.extend({useRefs:!0,serializeDate:a.serializeDate},c)}return c.prototype.linkObjects=function(){for(var a in this._linkTable){var b=this._refTable[a];if(b){this._linkTable[a].forEach(function(a){return a(b)})}}},c.prototype._getModel=function(a,b){var c=a;return b.forEach(function(a){c=c[a]}),c},c.prototype._collectLinks=function(a,b,c,d){var e=this,f=a[d].slice("#Ref-".length),g=ko.observable();this._linkTable[f]=this._linkTable[f]||[],this._linkTable[f].push(g),b._restoreLinks||(b._restoreLinks=[]),b._restoreLinks.push(function(a){var b=e._getModel(a,c);return{setRef:function(a){-1===a?delete b[d]:b[d]="#Ref-"+a},obj:g()}})},c.prototype._enumRefs=function(a,b,c){var d=this;a._refs||(a._refs=[]),a._refs.push(function(a,e){d._getModel(a,b)[c]=e})},c.prototype._collectLinksAndEnumRefs=function(a,b,c){var d=this;void 0===b&&(b=null),void 0===c&&(c=[]);var e=null===b;b=b||a,Object.keys(a).forEach(function(f){a[f]instanceof Object?d._collectLinksAndEnumRefs(a[f],b,[].concat(c,[f])):a[f].indexOf&&0===a[f].indexOf("#Ref-")?d._collectLinks(a,b,c,f):e||"@Ref"!==f||d._enumRefs(b,c,f)}),e&&this.linkObjects()},c.prototype.deserializeProperty=function(a,c){var d=this,e=a.defaultVal,f=(a.propertyName,a.modelName);if(f){if(void 0!==c[f]&&(e=c[f]),"string"==typeof a)return ko.observable(e);if(a.link){var g=ko.observable(null);if(e){var h=e&&e.slice("#Ref-".length);this._linkTable[h]=this._linkTable[h]||[],this._linkTable[h].push(g)}return g}if(!a.array){if(a.from)return a.from(e,this);if(a.type){var i=new a.type(e,this,a.info);return i._model||this.deserialize(i,e||{},a.info),i}if(a.info){var j={getInfo:function(){return a.info}};return this.deserialize(j,e||{}),j}if(a.modelName)return ko.observable(e);throw new Error("Invalid info '"+JSON.stringify(a)+"'")}if(a.from)return a.from(e,this);if(a.info){var k=[];return b.getPropertyValues(e).forEach(function(b){var c={getInfo:function(){return a.info}};d.deserialize(c,b||{}),k.push(c)}),ko.observableArray(k)}}},c.prototype.deserialize=function(a,c,d){var e=this;if(void 0===d&&(d=null),c){a._model=b.extend({},c);var d=a.getInfo?a.getInfo():d,f=c["@Ref"];f&&(this._refTable[f]=a),d.forEach(function(b){var d=b.propertyName,f=b.modelName;void 0!==c[f]&&delete a._model[f];var g=e.deserializeProperty(b,c);void 0!==g&&(a[d]=g)}),this.linkObjects()}},c.prototype.serialize=function(a,b,c){return void 0===c&&(c=null),b||c?this._serialize(a,b,c):this._serialize(a,null,null)},c.prototype._isSerializableValue=function(a){return b.isPlainObject(a)&&!b.isEmptyObject(a)||Array.isArray(a)&&a.length>0||!Array.isArray(a)&&!b.isPlainObject(a)},c.prototype._serialize=function(a,c,d){var e=this,f=b.extend({},a._model),g=null===d;return d=d||{linkObjTable:[],objects:[]},f._restoreLinks&&(d.linkObjTable.push.apply(d.linkObjTable,f._restoreLinks.map(function(a){return a(f)})),delete f._restoreLinks),f._refs&&(f._refs.forEach(function(a){return a(f,(d.objects.push("0")-1).toString())}),delete f._refs),c=a.getInfo?a.getInfo():c,delete f["@Ref"],a.isEmpty&&a.isEmpty()?{}:(c.forEach(function(g){var h=g.propertyName,i=ko.unwrap(a["_"+h]||a[h]),j=g.defaultVal;g.beforeSerialize&&(i=g.beforeSerialize(i)),g.from&&(j=ko.unwrap(g.from(j,e)));var k={};if(g.modelName&&(g.alwaysSerialize||void 0!==i&&null!==i&&(b.isPlainObject(i)||!b.isEmptyObject(i)||Array.isArray(i)&&i.length>0||!Array.isArray(i)&&!b.isPlainObject(i))&&i!==j)){if(g.link)d.linkObjTable.push({obj:i,setRef:function(a){a<0?delete f[g.modelName]:f[g.modelName]="#Ref-"+a}}),k=void 0;else if(g.array){k={};var l=1;i.forEach(function(a){var b=g.info||null,c=e._serialize(a,b,d);e._isSerializableValue(c)&&(k["Item"+l]=c,e._options.useRefs&&(c["@Ref"]=(d.objects.push(a)-1).toString()),l++)})}else if(g.from)k=i.isEmpty&&i.isEmpty()?{}:g.toJsonObject?g.toJsonObject(i,e,d):i.toString();else if(g.info||i.getInfo)k=e._serialize(i,g.info,d);else{if(!g.modelName)throw new Error("Invalid info '"+c.stringify()+"'");k=i instanceof Date?e._options.serializeDate(i):i}(g.alwaysSerialize||e._isSerializableValue(k))&&(f[g.modelName]=k)}}),g&&d.linkObjTable.forEach(function(a){var b=d.objects.indexOf(a.obj);a.setRef(b)}),f)},c}();a.ModelSerializer=c;var d=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;return b._handlers=[],b}return __extends(b,a),b.prototype.dispose=function(){this._handlers=[]},b.prototype.call=function(a,b){this._handlers.filter(function(b){return b.type===a}).forEach(function(a){return a.value(b)})},b.prototype.addHandler=function(a,b){this._handlers.push({type:a,value:b})},b.prototype.removeHandler=function(a,b){var c=this._handlers.filter(function(c){return c.type===a&&c.value===b})[0],d=this._handlers.indexOf(c);-1!==d&&this._handlers.splice(d,1)},b}(a.Disposable);a.EventManager=d}(a.Utils||(a.Utils={}))}(a.Analytics||(a.Analytics={}))}(DevExpress||(DevExpress={})),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.deserializeArray","Analytics.Utils.deserializeArray"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.ModelSerializer","Analytics.Utils.ModelSerializer"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.serializeDate","Analytics.Utils.serializeDate"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.extend","Analytics.Utils.extend","Analytics.Internal.extend"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.isPlainObject","Analytics.Utils.isPlainObject","Analytics.Internal.isPlainObject"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.isEmptyObject","Analytics.Utils.isEmptyObject","Analytics.Internal.isEmptyObject"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.getPropertyValues","Analytics.Utils.getPropertyValues","Analytics.Internal.getPropertyValues"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.knockoutArrayWrapper","Analytics.Utils.knockoutArrayWrapper","Analytics.Internal.knockoutArrayWrapper");var __extends=this&&this.__extends||function(){var a=function(b,c){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])})(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c),b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),DevExpress;!function(a){!function(b){var c;!function(c){function d(){return b.Utils.getLocalization("Select...","AnalyticsCoreStringId.PropertyGrid_Editor_EmptyText")}function f(){return b.Utils.getLocalization("No data to display","AnalyticsCoreStringId.DataPreview_Empty")}function g(){return b.Utils.getLocalization("Enter text to search...","AnalyticsCoreStringId.QueryBuilder_SearchBox_EmptyText")}function h(a,b){var c=$.Deferred();return a.length>0?$.when.apply($,a).done(function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];a.forEach(function(a){return e.loadMessages(a[0])})}).always(function(){return c.resolve(b())}):c.resolve(b()),c}function i(b){if(b){var d=a.localization.message.getMessagesByLocales(),e=d[b]||{},f=d[b.split("-")[0]]||{};if(!e["dxList-selectAll"]&&!f["dxList-selectAll"]){var g=c.messages["AnalyticsCoreStringId.SelectAll"];g&&(e["dxList-selectAll"]=g)}var h={};h[b]=e,a.localization.loadMessages(h)}}function j(a){return!!c.custom_localization_values[a]}function k(a){return c.messages[a]}function l(b){return a.localization.formatDate(b,"shortDate")}function m(b,c,d){if(void 0===c&&(c=!0),!c)return d?a.localization.parseDate(b,d):a.localization.parseDate(b);if(b){if(b instanceof Date)return b;var e=a.localization.parseDate(b,"MM/dd/yyyy HH:mm:ss");return e||(e=a.localization.parseDate(b,"yyyy-MM-dd")),e}return null}c.removeWinSymbols=!0,c.Globalize=a.Analytics.Internal.Globalize||window.Globalize,c.messages={},c.custom_localization_values={},c.selectPlaceholder=d,c.noDataText=f,c.searchPlaceholder=g,c.resolveFromPromises=h,c.applyLocalizationToDevExtreme=i,c.isCustomizedWithUpdateLocalizationMethod=j,c.localize=k,c.formatDate=l,c.parseDate=m}(c=b.Internal||(b.Internal={}));var d;!function(a){function d(a,b){void 0===b&&(b=c.removeWinSymbols);var d=c.localize(a);if(d&&b&&(-1!==d.indexOf("&")||-1!==d.indexOf("<u>")||-1!==d.indexOf("</u>"))){var f={};return f[a]=d.replace("&","").replace("<u>","").replace("</u>",""),e.loadMessages(f),f[a]}}function f(a){return b.Internal.localize(a)||a}function g(a){$.extend(c.messages,a.messages)}function h(a,b){return-1!==a.indexOf(b,this.length-b.length)}function i(a,e,g){void 0===e&&(e=null),void 0===g&&(g=c.removeWinSymbols);var h=e&&b.Internal.localize(e)||f(a);return h=e&&d(e,g)||h,c.isCustomizedWithUpdateLocalizationMethod(h)&&(a=h),c.isCustomizedWithUpdateLocalizationMethod(a)?f(a):h}function j(a){$.extend(c.custom_localization_values,a);var b={};for(var d in a)b[d]=a[d];g({messages:b})}a.addCultureInfo=g,a._stringEndsWith=h,a.getLocalization=i,a.updateLocalization=j}(d=b.Utils||(b.Utils={}));var e;!function(a){function b(a){$.extend(c.messages,a)}a.loadMessages=b}(e=b.Localization||(b.Localization={})),function(b){function c(a,b,c){try{for(var d=a.files,e=0;e<d.length;e++){var f=d[e];if("img"===c.type){var g=/image.*/;if(!f.type.match(g))continue}var h=new FileReader;h.onload=function(){try{b.resolve({format:f.name.split(".").pop(),content:"text"!==c.readMode?h.result.replace(/^data:[^,]+,/,""):h.result})}catch(a){b.reject()}},"text"!==c.readMode?h.readAsDataURL(f):h.readAsText(f)}}catch(a){b.reject()}}function d(){var a=document.createElement("input");return a.type="file",a.id=n,a.style.width="0px",a.style.height="0px",a.style.display="none",document.body.appendChild(a),a}function e(a){var b=$.Deferred(),e=document.getElementById(n);return e||(e=d()),e.accept=a.accept,e.onchange=function(){c(e,b,a),e.value=""},e.click(),b.promise()}function f(a,b){return!!a&&!!b&&a.header===b.header&&a.content===b.content&&a.editorType===b.editorType}function g(a,b,c){if(!c){var d=h(b);return!!a&&a.match(new RegExp(d,"gi"))}var d=c.canUseRegex?b:h(b);c.searchMode!=m.startWith||c.canUseRegex||(d="^"+d);var e="";return c.caseSensitive||(e+="i"),c.globalMatch&&(e+="g"),!!a&&a.match(new RegExp(d,e))}function h(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function i(a,b,c){return c=c||a.length-b,a.slice(0,b)+a.slice(b+c,a.length)}function j(b,c,d,e){void 0===e&&(e="");var f=b;return f=a.Analytics.Internal.stringRemove(f,c,d),f=a.Analytics.Internal.stringInsert(f,c,Array(d+1).join(e))}function k(a,b,c){return a.substring(0,b)+c+a.substring(b)}function l(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];var d=a.toString();if(b.length){var e,f=typeof b[0],g="string"===f||"number"===f?Array.prototype.slice.call(b):b[0];for(e in g)d=d.replace(new RegExp("\\{"+e+"\\}","gi"),g[e])}return d}b.StringId={MasterDetailRelationsEditor:"DataAccessUIStringId.MasterDetailEditorForm_Title",DataAccessBtnOK:"DataAccessUIStringId.Button_OK",DataAccessBtnCancel:"DataAccessUIStringId.Button_Cancel",DataSourceWizardTitle:"DataAccessUIStringId.WizardTitleDatasource",WizardPageConfigureQuery:"DataAccessUIStringId.WizardPageConfigureQuery"};var m;!function(a){a[a.contains=0]="contains",a[a.startWith=1]="startWith"}(m=b.SearchMode||(b.SearchMode={}));var n="dxd-fileuploader-input";b.uploadFile=e,b.compareEditorInfo=f,b.findMatchesInString=g,b.escapeToRegExp=h,b.stringRemove=i,b.stringReplace=j,b.stringInsert=k,b.formatUnicorn=l}(c=b.Internal||(b.Internal={}));!function(c){c.editorTemplates={bool:{header:"dx-boolean"},boolSelect:{header:"dx-boolean-select"},numeric:{header:"dx-numeric"},modificators:{custom:"dx-modificators"},combobox:{header:"dx-combobox"},comboboxEditable:{header:"dx-combobox-editable"},text:{header:"dx-text"},image:{header:"dx-image"},file:{header:"dx-file"},commonCollection:{custom:"dx-commonCollection"},stringArray:{header:"dx-emptyHeader",content:"dx-string-array"}};var e;!function(a){a.propertiesGridEditorsPaddingLeft=19}(e=c.Internal||(c.Internal={}));var f=function(d){function f(c,f,g,h){void 0===g&&(g=ko.observable(!1)),void 0===h&&(h=void 0);var j=d.call(this)||this;j._model=ko.observable(),j.isVisibleByContent=ko.observable(!0),j.isSearchedProperty=ko.observable(!0),j.isParentSearched=ko.observable(!1),j.rtl=a.config().rtlEnabled,j._validator=new i(j),j._cachedValue=void 0,j.isEditorSelected=ko.observable(!1),j.isRequired=!1,j.collapsed=ko.observable(!0),j.info=ko.observable(c),j._disposables.push(j.displayName=ko.computed(function(){var b=j.info();return b&&a.Analytics.Utils.getLocalization(b.displayName,b.localizationId)})),h&&(j.textToSearch=h,j._disposables.push(j.isSearchedProperty=ko.computed(function(){return j.isParentSearched()||!!b.Internal.findMatchesInString(j.displayName(),h())}))),j.padding=j._setPadding(j.rtl?"right":"left",f*e.propertiesGridEditorsPaddingLeft);var k=ko.observable(null),l=c.propertyName;j.editorOptions=c.editorOptions,j.validatorOptions=c.validatorOptions,j.isRequired=c.isRequired,void 0!==c.defaultVal&&(k=ko.observable(c.defaultVal)),c.from&&(k=c.from(c.defaultVal)),c.array&&(k=ko.observableArray()),j._disposables.push(j.values=ko.computed(function(){var a=j.info().valueStore||j.info().valuesArray;return a||(a=ko.unwrap(j.info().values),a?$.map(a,function(a,b){return{value:b,displayValue:a}}):void 0)})),j.level=f,j._init(c.editor,k,l);var m=function(a,b,c){return ko.isObservable(b)?b():"function"==typeof b?b(a):void 0!==b?b:c};return j._disposables.push(j.disabled=ko.computed(function(){var a=j._model(),b=g()||a&&a.isPropertyDisabled&&a.isPropertyDisabled(j.name);return b||(b=m(a,j.info().disabled,!1)),b})),j._disposables.push(j.visible=ko.computed(function(){var a=j._model(),b=j.isSearchedProperty()&&(a&&a.isPropertyVisible?a.isPropertyVisible(j.name):j.isVisibleByContent());return b&&(b=m(a,j.info().visible,!0)),b})),j._disposables.push(j.isPropertyModified=ko.computed(function(){return j._model()&&j._model().isPropertyModified&&j._model().isPropertyModified(j.name)})),j._disposables.push(j.isPropertyHighlighted=ko.pureComputed(function(){if(j._shouldSkipHighlighting(j.name))return!1;var a=j._model();return a&&a.isPropertyHighlighted&&a.isPropertyHighlighted(j.name)})),j}return __extends(f,d),f.prototype._setPadding=function(a,b){var c={};return c["padding-"+a]=b,c},f.prototype.dispose=function(){this._validator&&this._validator.dispose(),this._validator=null,d.prototype.dispose.call(this),this._cachedValue=null,this._model(null)},f.prototype._shouldSkipHighlighting=function(a){return this.isComplexEditor},f.prototype._assignValue=function(a,b,c,d){ko.isObservable(a)?a(c):b[d]=c},f.prototype._init=function(a,b,d){var e=this;a=a||c.editorTemplates.text,this.templateName=a.header,this.contentTemplateName=a.content,this.defaultValue=a===c.editorTemplates.color?"transparent":null,this._cachedValue=void 0,this._disposables.push(this.value=ko.computed({read:function(){var a=e._model();if(!a&&e._cachedValue)return e._cachedValue;var c=a&&void 0!==a[d]?a[d]:b;if(ko.isObservable(c)&&!c.push){var f=void 0!==c()&&null!==c();return e._cachedValue=f?c():e.defaultValue,e._cachedValue}return e._cachedValue=c,e._cachedValue},write:function(a){var b=e._model();if(b){var c=b[d];e._validator.assignWithValidation(a,function(){e._assignValue(c,b,a,d)})}}})),this.name=d,this.editorTemplate=a&&a.custom||"dx-property-editor"},f.prototype.findInfo=function(a){var b=this;if(!a)return null;var c=a.getInfo&&a.getInfo();return c?c.filter(function(a){return a.propertyName===b.name})[0]:null},f.prototype.updateInfo=function(a){return a&&b.Internal.compareEditorInfo(a.editor,this.info().editor)?(this.info()!==a&&this.info(a),!0):!a},f.prototype.update=function(a){if(a){var b=this.findInfo(a);this.isVisibleByContent(this.name in a&&this.updateInfo(b)),this._model(this.isVisibleByContent()?a:null)}else this.isVisibleByContent(!1),this._model(null)},f.prototype.getOptions=function(a){var b=this.info.peek().editor.extendedOptions;return $.extend({},a,this.editorOptions,b)},f.prototype.getValidatorOptions=function(a){return this._validator&&this._validator.getValidatorOptions(a)},f.prototype._getEditorValidationRules=function(){var a=ko.unwrap(this.info);if(a){var b=a.validationRules;return b||(null===b?null:[])}},f.prototype.getValidationRules=function(){return this._validator&&this._validator.getValidationRules()},Object.defineProperty(f.prototype,"validationRules",{get:function(){return this.getValidationRules()},enumerable:!0,configurable:!0}),f.prototype.getPopupServiceActions=function(){var a=this;if(this._model()){var b=(this._model().actions||[]).concat();return(this._model().actionProviders||[]).forEach(function(c){(c&&c.getActions(a.name)||[]).forEach(function(a){return b.push(a)})}),b}},Object.defineProperty(f.prototype,"isComplexEditor",{get:function(){return!!this.contentTemplateName},enumerable:!0,configurable:!0}),f}(d.Disposable);c.Editor=f;var g=function(a){function c(c,d,e,f,g){var h=a.call(this,c,d,e,f)||this;h._popupService=g,h.editorCreated=ko.observable(!1),h.viewmodel=h.createObjectProperties(),h._disposables.push(h.viewmodel);var i=h.collapsed.subscribe(function(a){a||(i.dispose(),h.editorCreated(!0))});return h._disposables.push(i),f&&(h._disposables.push(h.visibleByName=ko.computed(function(){var a=!!b.Internal.findMatchesInString(h.displayName(),f());return $.isEmptyObject(h.viewmodel)||h.viewmodel._editors().forEach(function(b){return b.isParentSearched(a)}),a})),h.isSearchedProperty.dispose&&h.isSearchedProperty.dispose(),h._disposables.push(h.isSearchedProperty=ko.computed(function(){if(h.visibleByName())return!0;var a=h.viewmodel.visible();return a&&h.collapsed(!1),a}))),h}return __extends(c,a),c.prototype.createObjectProperties=function(){var a=this;return new j(this.value,{editors:ko.computed(function(){return a.info().info})},this.level+1,this.disabled,void 0,this.textToSearch,this._popupService)},c}(f);c.PropertyGridEditor=g;var h=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return __extends(b,a),b.prototype.createObjectProperties=function(){return this.collapsed(!1),this.editorCreated(!0),this.level=-1,a.prototype.createObjectProperties.call(this)},b}(g);c.PropertyGridEditorFlat=h,function(){c.editorTemplates.objecteditor={header:"dx-emptyHeader",content:"dx-objectEditorContent",editorType:g},c.editorTemplates.inplaceObjectEditor={custom:"dx-objectEditorContent",editorType:h}}();var i=function(b){function c(a){var c=b.call(this)||this;return c._editor=a,c._lastValidatorOptions=null,c._lastModelOverridableRules=null,c._onValidatedHandler=void 0,c}return __extends(c,b),c.prototype.dispose=function(){this.onValidatedHandler=null,this.validatorInstance&&this.validatorInstance.dispose(),this.validatorInstance=null,b.prototype.dispose.call(this)},c.prototype._isValid=function(b,c){var d=this;return this.onValidatedHandler=void 0,this.validatorInstance?((b||[]).forEach(function(a){return a&&(a.validator=d.validatorInstance)}),this.validatorInstance.validate()):a.validationEngine.validate(c,b,this._editor.displayName())},Object.defineProperty(c.prototype,"validatorInstance",{get:function(){return this._validatorInstance},set:function(a){this._validatorInstance&&this.onValidatedHandler&&this._validatorInstance.off("validated",this._onValidatedHandler),this._validatorInstance=a},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"onValidatedHandler",{get:function(){return this._onValidatedHandler},set:function(a){this._onValidatedHandler&&this.validatorInstance&&(this.validatorInstance.off("validated",this._onValidatedHandler),this._onValidatedHandler=a,a&&this.validatorInstance.on("validated",this._onValidatedHandler))},enumerable:!0,configurable:!0}),c.prototype.getValidationRules=function(){var a=this.getValidatorOptions(),b=(a||{}).validationRules;return b||(null===b?null:[])},c.prototype.getValidatorOptions=function(a){void 0===a&&(a={});var b=this._editor.info.peek();if(b){var c=this._lastValidatorOptions,d=this._editor._getEditorValidationRules();if(c&&!this.areRulesChanged(d))return c;this._lastModelOverridableRules=d;var e=this._concatValidationRules(b.validatorOptions,d),f=b.editor.extendedOptions&&b.editor.extendedOptions.validatorOptions,c=$.extend({},a,b.validatorOptions,{validationRules:e},f);return this._wrapValidatorEvents(c),this._lastValidatorOptions=c,c}},c.prototype.areRulesChanged=function(a){var b=this;return this._lastModelOverridableRules&&this._lastModelOverridableRules.length?!a||!a.length||!a.every(function(a){return b._lastModelOverridableRules.some(function(b){return a.message===b.message&&a.validationCallback===b.validationCallback&&a.type===b.type})}):a&&a.length},c.prototype.wrapOnValidatorInitialized=function(a){var b=a.onInitialized,c=this;a.onInitialized=function(a){c._onValidatorInitialized(a),b&&b.apply(this,arguments)}},c.prototype._onValidatorInitialized=function(a){this.validatorInstance=a&&a.component},c.prototype._concatValidationRules=function(a,b){return a&&a.validationRules||b?((a||{}).validationRules||[]).concat(b||[]):null},c.prototype._wrapValidatorEvents=function(a){if(a&&a.validationRules&&a.validationRules.length)return this.wrapOnValidatorInitialized(a),a},c.prototype.assignWithValidation=function(a,b){var c=this,d=this.getValidationRules(),e=!d||d.some(function(a){return a.assignValueFirst});e&&b();var f=this._isValid(d,a);if(!f.isValid)return void(f.brokenRule&&f.brokenRule.isDeferred&&(this.onValidatedHandler=function(a){c.onValidatedHandler=void 0,a.isValid&&b()}));e||b()},c}(d.Disposable);c.EditorValidator=i;var j=function(c){function d(d,e,f,g,h,i,j){void 0===f&&(f=0),void 0===g&&(g=ko.observable(!1)),void 0===h&&(h=!1);var k=c.call(this)||this;return k._targetSubscription=null,k._infoSubscription=null,k._getInfoComputed=null,k.level=0,k.rtl=a.config().rtlEnabled,j&&(k.createEditorAddOn=function(a){var c=new b.Internal.EditorAddOn(a,k.popupService);return a._disposables.push(c),{templateName:c.templateName,data:c}},k.popupService=j),k._editors=ko.observableArray([]).extend({deferred:!0}),k.level=f,k._parentDisabled=g,k._textToSearch=i,k._disposables.push(k.visible=ko.computed(function(){return k._editors().some(function(a){return a.visible()})})),k._targetSubscription=d.subscribe(function(a){k._infoSubscription&&k._infoSubscription.dispose(),k._getInfoComputed&&k._getInfoComputed.dispose(),k._update(a,e,h)}),k._update(d(),e,h),k}return __extends(d,c),d.prototype.update=function(a){a&&this._editors().forEach(function(b){b.update(a)})},d.prototype._cleanEditorsSubscriptions=function(){this._editors().forEach(function(a){a.dispose();for(var b in a)ko.isComputed(a[b])&&a[b].dispose()})},d.prototype.dispose=function(){c.prototype.dispose.call(this),this.disposeObservableArray(this._editors),this.resetObservableArray(this._editors),this.cleanSubscriptions()},d.prototype.cleanSubscriptions=function(){this._infoSubscription&&this._infoSubscription.dispose(),this._getInfoComputed&&this._getInfoComputed.dispose(),this._targetSubscription&&this._targetSubscription.dispose(),this._cleanEditorsSubscriptions()},d.prototype.cleanEditors=function(){this._cleanEditorsSubscriptions(),this._editors([])},d.prototype.findEditorByInfo=function(a){return this._editors().filter(function(c){return c.name===a.propertyName&&b.Internal.compareEditorInfo(c.info().editor,a.editor)})[0]},d.prototype.createEditor=function(a){return new(a.editor&&a.editor.editorType||f)(a,this.level,this._parentDisabled,this._textToSearch,this.popupService)},d.prototype.createEditors=function(a){var b=this;return(a||[]).filter(function(a){return!!a.editor&&!b.findEditorByInfo(a)}).map(function(a){return b.createEditor(a)})},d.prototype._createEditors=function(a){if(!a||0===a.length)return!1;var b=this.createEditors(a);if(b.length){var c=this._editors();0===c.length?c=b:b.forEach(function(a){var b=c.map(function(a){return a.name}).indexOf(a.name);-1!==b?c.splice(b,0,a):c.push(a)}),this._editors(c)}},d.prototype._update=function(a,b,c){var d=this;c&&(this._cleanEditorsSubscriptions(),this.resetObservableArray(this._editors));this._getInfoComputed=ko.computed(function(){return b&&b.editors&&ko.unwrap(b.editors)||a&&a.getInfo&&a.getInfo()}),this._infoSubscription=this._getInfoComputed.subscribe(function(b){c&&(d._cleanEditorsSubscriptions(),d.resetObservableArray(d._editors)),d._createEditors(b),d.update(a)}),this._createEditors(this._getInfoComputed()),this.update(a)},d.prototype.getEditors=function(){return this._editors()},d}(d.Disposable);c.ObjectProperties=j}(b.Widgets||(b.Widgets={})),function(a){var b=function(){function a(){this._queue=[],this._done=[]}return a.prototype.done=function(a){this._done.push(a)},a.prototype.execute=function(a,b){void 0===b&&(b=0);var c=$.Deferred();if(b){var d=this;this._queue.push(function(){setTimeout(function(){if(c.resolve(a()),d._queue.splice(0,1),0!==d._queue.length)d._queue[0]();else for(var b=0;b<d._done.length;b++)d._done[b]()},b)}),1===this._queue.length&&this._queue[0]()}else c.resolve(a());return c.promise()},a}();a.CodeResolver=b,a.globalResolver=new b}(c=b.Internal||(b.Internal={})),function(c){ko.bindingHandlers.dxPropertyGrid={init:function(d,e,f,g,h){$(d).children().remove();var i=a.Analytics.Widgets.Internal.getTemplate("dx-propertieseditor"),j=$(d).append(i),k=e(),l=new c.ObjectProperties(k.target,k.editorsInfo,k.level,k.parentDisabled,k.recreateEditors,k.textToSearch);return ko.applyBindings(h.createChildContext(l),j.children()[0]),b.Internal.addDisposeCallback(d,function(){l.dispose()}),{controlsDescendantBindings:!0}}},ko.virtualElements.allowedBindings.lazy=!0,ko.bindingHandlers.lazy={init:function(a,c,d,e,f){var g=b.Internal.globalResolver,h=c();h.innerBindings&&(g=h.resolver,h=h.innerBindings);var i=!1;return $.each(h,function(b,c){var h=ko.bindingHandlers[b];g.execute(function(){if(!i){var b=!1;ko.computed({read:function(){!b&&h.init&&(h.init(a,function(){return c},d,e,f),b=!0),h.update&&h.update(a,function(){return c},d,e,f)},disposeWhenNodeIsRemoved:a})}},1)}),b.Internal.addDisposeCallback(a,function(){i=!0}),{controlsDescendantBindings:!0}}},ko.bindingHandlers.dxdAccordion={init:function(c,d){var e=d(),f=$(c),g=f.find(".dx-accordion-content").first(),h=function(){var b=f.parents(".dx-scrollview");if(b.length>0){var c=a.ui.dxScrollView.getInstance(b.get(0));c&&c.update()}},i=f.find(".dx-accordion-header,.dx-accordion-button").get(0);a.events.off(i,"dxclick"),a.events.on(i,"dxclick",function(){e.collapsed((!e.alwaysShow||!e.alwaysShow())&&!e.collapsed())}),e.collapsed()?g.hide():g.show();var j=e.collapsed.subscribe(function(a){g.slideToggle(e.timeout,function(){return h()})});b.Internal.addDisposeCallback(c,function(){return j.dispose()})}},ko.bindingHandlers.dxdAccordionExt={init:function(b,c,d,e,f){var g=c(),h=$(b),i=function(){var b=h.parents(".dx-scrollview");if(b.length>0){var c=a.ui.dxScrollView.getInstance(b.get(0));c&&c.update()}},j=h.find(".dx-accordion-content").first(),k=null;g.collapsed()&&!0===g.lazyContentRendering&&(k=j.html(),j.empty()),g.collapsed.subscribe(function(a){a?j.slideUp(g.timeout,function(){i()}):(k&&(j.html(k),ko.applyBindingsToDescendants(f,j.get(0)),k=null),j.slideDown(g.timeout,function(){i()}))}),g.collapsed()?j.hide():j.show()}},ko.bindingHandlers.dxLocalizedSelectBox={init:function(c,d,e,f,g){var h=d(),i=h.displayExpr;h.placeholder=h.placeholder||b.Internal.selectPlaceholder(),h.noDataText=h.noDataText||b.Internal.noDataText(),h.displayExpr=function(a){return a?i?b.Utils.getLocalization($.isFunction(i)?i(a):a[i],a.localizationId):b.Utils.getLocalization(a,a.localizationId):a},h.itemTemplate=function(b,c,d){var e=g.createChildContext({display:h.displayExpr(b)});$(d).children().remove();var f=a.Analytics.Widgets.Internal.getTemplate("item-with-title"),i=$(d).append(f);return ko.applyBindingsToDescendants(e,i[0]),d};var j=f.getOptions?f.getOptions(h):h;return ko.bindingHandlers.dxSelectBox.init(c,function(){return j},e,f,g),{controlsDescendantBindings:!0}}},ko.bindingHandlers.styleunit={update:function(a,b){var c=ko.utils.unwrapObservable(b()||{});$.each(c,function(b,c){c=ko.utils.unwrapObservable(c)||0,a.style[b]=c+"px"})}},ko.bindingHandlers.service={init:function(a,b,c,d,e){var f=ko.unwrap(b()||{}),g=function(a){var b=e.$parents.filter(function(b){return void 0!==b[a]})[0];return b?b[a]:null},h=g(f.name);if(h){var i=h(d),j=e.createChildContext(i.data);ko.renderTemplate(i.templateName,j,{},a,"replaceNode")}}}}(b.Widgets||(b.Widgets={})),function(a){var b=function(){function a(){this.data=ko.observable(),this.title=ko.observable(),this.visible=ko.observable(!1),this.actions=ko.observableArray([]),this.target=ko.observable()}return a}();a.PopupService=b;var c=function(a){function b(b,c){var d=a.call(this)||this;return d.showPopup=function(a,b){d._popupService.title(d._editor.displayName()),d._updateActions(d._editor.getPopupServiceActions()),d._popupService.target(b),d._popupService.visible(!0)},d.templateName="dx-editor-addons",d._editor=b,d._popupService=c,d._disposables.push(d._actions=ko.pureComputed(function(){return b.disabled()?[]:(b.getPopupServiceActions()||[]).filter(function(a){return a.visible(b.name)})})),d._disposables.push(d.visible=ko.pureComputed(function(){return d._actions().length>0})),d._disposables.push(d.hint=ko.pureComputed(function(){var a=[];return d._actions().forEach(function(b){return d._getTitles(b,[],a)}),a.join("\n")})),d._disposables.push(d.editorMenuButtonCss=ko.pureComputed(function(){var a=b._model();return a&&a.getActionClassName&&a.getActionClassName(b.name)||""})),d._disposables.push(d.imageTemplateName=ko.pureComputed(function(){var a=b._model();return a&&a.getMenuBoxTemplate&&a.getMenuBoxTemplate(b.name)||""})),d}return __extends(b,a),b.prototype._updateActions=function(a){var b=this;this._popupService.actions([]),a&&a.length&&(a.sort(function(a,b){return a.title<b.title?-1:a.title>b.title?1:0}).sort(function(a,b){return(a.weight||0)-(b.weight||0)}),this._wrapVisibleItems(a,this._editor.name).forEach(function(a){b._popupService.actions.push(a)}))},b.prototype._getTitles=function(a,b,c){var d=this;void 0===b&&(b=[]),void 0===c&&(c=[]);var e=ko.unwrap(a.title);(a.items||[]).forEach(function(a){var f=e?b.concat([e]):b;d._getTitles(a,f,c)});var f=ko.unwrap(a.hint);if(f&&e){var g=b.concat([e]).join(". ");return c.push(g+":\n"+f+"\n"),c}},b.prototype._wrapVisibleItems=function(a,b){var c=this;if(a)return a.map(function(a){return c._wrapActionClick(a,b)}).filter(function(a){return!!a})},b.prototype._wrapActionClick=function(a,b){var c=this;return a.visible(b)?{id:a.id,items:this._wrapVisibleItems(a.items,b),customTemplate:a.customTemplate,action:function(){a.action(b),c._popupService.visible(!1)},title:a.title,hint:a.hint,visible:function(){return!0}}:null},b}(d.Disposable);a.EditorAddOn=c}(c=b.Internal||(b.Internal={})),function(c){var e=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return __extends(b,a),b.prototype._getEditorValidationRules=function(){return(a.prototype._getEditorValidationRules.call(this)||[]).concat(f.guidValidationRules).concat(this.editorOptions&&this.editorOptions.isNullable?[]:f.guidRequiredValidationRules)},b}(c.Editor);c.GuidEditor=e;var f;!function(b){function c(a){return/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(a)||/^\{[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\}$/.test(a)||/^\([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\)$/.test(a)||/^[0-9a-fA-F]{32}$/.test(a)}function d(a){return a&&c(a)}function e(a){return!a||c(a)}b.validateGuid=d,b.validateNullableGuid=e;var f=function(){return a.Analytics.Utils.getLocalization("Guid is required and should have a valid format.","AnalyticsCoreStringId.GuidIsRequired_Error")};b.guidValidationRules=[{type:"custom",validationCallback:function(a){return e(a.value)},message:f}],b.guidRequiredValidationRules=[{type:"required",message:f}],b.requiredValidationRules=[{type:"required",message:function(){return a.Analytics.Utils.getLocalization("The value cannot be empty","AnalyticsCoreStringId.ParametersPanel_DateTimeValueValidationError")}}]}(f=c.Internal||(c.Internal={})),function(c){var e=function(a){function b(b,c,d,e){void 0===e&&(e="");var f=a.call(this)||this;return f.collapsed=ko.observable(!0),f.selected=ko.observable(!1),f._disposables.push(f.value=ko.computed({read:function(){return c.peek()[d()]},write:function(a){c.peek()[d()]=a}})),f.editor=b,f.index=d,f._disposables.push(f.name=ko.computed(function(){return e&&f.value()&&f.value()[e]?ko.unwrap(f.value()[e]):d()})),f}return __extends(b,a),b}(d.Disposable);c.CollectionItemWrapper=e;var f=function(d){function f(b,e){void 0===e&&(e=ko.observable(!1));var f=d.call(this)||this;f.buttonMap={delete:{text:"Delete",localizationId:"AnalyticsCoreStringId.Cmd_Delete"},add:{text:"Add",localizationId:"DataAccessUIStringId.Button_Add"},down:{text:"Move Down",localizationId:"AnalyticsCoreStringId.Cmd_MoveDown"},up:{text:"Move Up",localizationId:"AnalyticsCoreStringId.Cmd_MoveUp"}},f.selectedIndex=ko.observable(null),f.alwaysShow=ko.observable(!1),f.collapsed=ko.observable(!1!==b.collapsed);var g=b.addHandler||b.info&&b.info()&&b.info().addHandler,h=b.hideButtons||b.info&&b.info()&&b.info().hideButtons;f._textEmptyArray=b.textEmptyArray||{text:"To create an item click the Add button.",localizationId:"AnalyticsCoreStringId.SqlDSWizard_PageConfigureParametersEmpty"},f.displayPropertyName=b.info&&b.info()&&b.info().displayPropertyName||b.displayName,f._disposables.push(f.showButtons=ko.computed(function(){return!ko.unwrap(h)&&!f.collapsed()})),f.showScroll=!!b.showScroll;var i=function(a,c){return b.isDisabledButton?b.isDisabledButton(a,c):"delete"===c?null===a:"add"!==c&&("up"===c?null===a||0===a:"down"===c?null===a||a===f.values().length-1:void 0)};f.isDisabledButton=function(a){return e()||i(f.selectedIndex(),a)},f.isVisibleButton=function(a){return!!f.showButtons()&&(!b.isVisibleButton||b.isVisibleButton(f.selectedIndex(),a))},f.padding=void 0!==b.level?b.level*c.propertiesGridEditorsPaddingLeft:0,f.displayName=b.info&&b.info()?a.Analytics.Utils.getLocalization(b.info().displayName,b.info().localizationId):b.displayName,f.options=b,b.displayName||(f.collapsed(!1),f.alwaysShow(!0)),b.alwaysShow&&f.alwaysShow(!0),f._disposables.push(f.values=ko.computed(function(){return ko.unwrap(b.values())}));var j=ko.unwrap(b.selectedItem);return j&&(f._setSelectedIndex(j),f._disposables.push(b.selectedItem.subscribe(function(a){f._setSelectedIndex(a)}))),f.add=function(a){a.event.stopPropagation(),b.undoEngine&&b.undoEngine().start();var c=g();if(c){var d=b.values().push(c);b.undoEngine&&b.undoEngine().end(),b.selectedItem&&f.select({index:function(){return d-1}})}},f.up=function(a){f._move(b.values(),-1),a.event.stopPropagation()},f.down=function(a){f._move(b.values(),1),a.event.stopPropagation()},f.remove=function(a){if(a.event.stopPropagation(),!(f.selectedIndex()<0)){b.values().splice(f.selectedIndex(),1);var c=b.values()().length;c>0?f.select({index:function(){return f.selectedIndex()>=c?c-1:f.selectedIndex()}},!0):f.select({index:function(){return null}},!0)}},f.select=function(a,c){void 0===c&&(c=!1),(f.selectedIndex()!==a.index()||c)&&(f.selectedIndex(a.index()),b.selectedItem&&b.selectedItem(null!==f.selectedIndex()?f.values()[f.selectedIndex()]:null))},f.disabled=e,f}return __extends(f,d),f.prototype.dispose=function(){d.prototype.dispose.call(this),this.removeProperties()},f.prototype._move=function(a,b){if(this.selectedIndex()>=0){var c=this.selectedIndex(),d=c+b;if(d>=a().length||d<0)return;a.splice(d,0,a.splice(c,1)[0]),this.selectedIndex(d)}},f.prototype._setSelectedIndex=function(a){var b=this.values().indexOf(a);this.selectedIndex(-1===b?null:b)},f.prototype.getDisplayTextButton=function(b){return a.Analytics.Utils.getLocalization(this.buttonMap[b].text,this.buttonMap[b].localizationId)},f.prototype.getDisplayTextEmptyArray=function(){return a.Analytics.Utils.getLocalization(this._textEmptyArray.text,this._textEmptyArray.localizationId)},f.prototype.createCollectionItemWrapper=function(a,c,d){var f=new e(a,this.values,c,this.displayPropertyName);return b.Internal.addDisposeCallback(d,function(){return f.dispose()}),f},f}(d.Disposable);c.CollectionEditorViewModel=f,ko.bindingHandlers.dxCollectionEditor={init:function(c,d,e,g,h){var i=d(),j=new f(i,g.disabled),k=a.Analytics.Widgets.Internal.getTemplate(i.editorTemplate||"#dx-collectioneditor"),l=$(k),m=i.info&&i.info()&&i.info().template||i.template;if(m){var n=a.Analytics.Widgets.Internal.getTemplate(m);l.find(".dx-collection-item").append($(n))}else l.find(".dx-collection-item").append($(c).children());var o=$(c).append(l),p=h.createChildContext(j);return ko.applyBindings(p,o.children()[0]),b.Internal.addDisposeCallback(c,function(){return j.dispose()}),{controlsDescendantBindings:!0}}};var g="dx-ellipsiseditor",h=g+" dx-dropdowneditor",i=g+"-button dx-widget dx-button-normal dx-dropdowneditor-button dx-ellipsis-button",j=g+"-icon dx-ellipsis-image dx-dropdowneditor-icon",k="dxrd-svg-ellipsis",l=function(a){function c(b,c){return a.call(this,b,c)||this}return __extends(c,a),c.prototype._init=function(){a.prototype._init.call(this);var b=$(this.element());b.addClass(h),this._koContext=ko.contextFor(b.get(0))},c.prototype._render=function(){a.prototype._render.call(this),this._renderButton()},c.prototype._renderButton=function(){this._$button=$("<div />").addClass(i),this._attachButtonEvents(),this._$buttonIcon=$("<div />").addClass(j).height("100%").append(b.Widgets.Internal.SvgTemplatesEngine.templates[k]).appendTo(this._$button),ko.applyBindingsToDescendants(this._koContext,this._$buttonIcon[0]);var c=a.prototype._buttonsContainer.call(this);this._$button.prependTo(c)},c.prototype._updateButtonSize=function(){this._$buttonIcon.height($(this.element()).height())},c.prototype._attachButtonEvents=function(){var a=this,b=[];this._$input||(this._$input=$(this._input())),this._$button.off("click"),this._$input.off("click"),this.option("disabled")||b.push(this._$button),this.option("openOnFieldClick")&&b.push(this._$input),b.forEach(function(b){b.on("click",function(b){a.option("buttonAction")&&(a.option("buttonAction")(),b.stopPropagation())})})},c.prototype._optionChanged=function(b,c){switch(b.name||b){case"disabled":this._attachButtonEvents()}a.prototype._optionChanged.apply(this,arguments)},c}(a.ui.dxTextBox);c.dxEllipsisEditor=l,a.registerComponent("dxEllipsisEditor",l);var g="dx-fileimage",m=g+"-input-wrapper",n=function(a){function c(b,c){return c.placeholder=c.placeholder||d.getLocalization("(none)","DxDesignerStringId.None"),a.call(this,b,c)||this}return __extends(c,a),c.prototype._getDisplayValue=function(){var a={Image:"AnalyticsCoreStringId.ImagePicker_Placeholder",File:"AnalyticsCoreStringId.FilePicker_Placeholder"},b=this.option("placeholderId");return this.option("value")&&b?d.getLocalization(b,a[b]):this.option("value")},c.prototype._handleResult=function(a){this.option("useFormat")&&this.option("format",a.format),this.option("value",a.content)},c.prototype._renderInput=function(b){var c=b&&$(b)||$("<div />");c.addClass(m),this._inputContainer=c.get(0),$(this.element()).append(this._inputContainer),a.prototype._renderInput.call(this,b)},c.prototype._attachButtonEvents=function(){var a=this;this._$button.off("click"),this.option("disabled")||this._$button.on("click",function(c){c.stopPropagation(),c.preventDefault(),b.Internal.uploadFile({accept:a.option("accept")||"image/*",readMode:a.option("readMode")}).done(function(b){a._handleResult(b)})})},c.prototype._renderValue=function(){this.option("text",this._getDisplayValue()),a.prototype._renderValue.call(this)},c}(l);c.dxFileImagePicker=n,a.registerComponent("dxFileImagePicker",n),c.availableUnits=[{value:"pt",displayValue:"Point",localizationId:"DevExpress.ReportDesigner_FontOptions_Unit_Point"},{value:"world",displayValue:"World",localizationId:"AnalyticsCoreStringId.FontOptions_Unit_World"},{value:"px",displayValue:"Pixel",localizationId:"AnalyticsCoreStringId.FontOptions_Unit_Pixel"},{value:"in",displayValue:"Inch",localizationId:"AnalyticsCoreStringId.Wizard_Inch"},{value:"doc",displayValue:"Document",localizationId:"PreviewStringId.ReportDesigner_FontOptions_Unit_Document"},{value:"mm",displayValue:"Millimetr",localizationId:"AnalyticsCoreStringId.Wizard_Millimeter"}];var o=function(a){function b(b){var c=a.call(this)||this;return c.family=ko.observable("Times New Roman"),c.unit=ko.observable("pt"),c.isUpdateModel=!1,c.size=ko.observable(9),c.modificators={bold:ko.observable(!1),italic:ko.observable(!1),strikeout:ko.observable(!1),underline:ko.observable(!1)},c.updateModel(b()),c._disposables.push(b.subscribe(function(a){c.isUpdateModel=!0,c.updateModel(a),c.isUpdateModel=!1})),c._disposables.push(c.modificators.bold.subscribe(function(a){return c.updateValue(b)})),c._disposables.push(c.modificators.italic.subscribe(function(a){return c.updateValue(b)})),c._disposables.push(c.modificators.strikeout.subscribe(function(a){return c.updateValue(b)})),c._disposables.push(c.modificators.underline.subscribe(function(a){return c.updateValue(b)})),c._disposables.push(c.family.subscribe(function(a){return c.updateValue(b)})),c._disposables.push(c.size.subscribe(function(a){return c.updateValue(b)})),c._disposables.push(c.unit.subscribe(function(a){return c.updateValue(b)})),c}return __extends(b,a),b.prototype.updateModel=function(a){if(a){var b=a.split(",");this.family(b[0]);var d=this;c.availableUnits.forEach(function(a){-1!=b[1].indexOf(a.value)&&(d.size(parseFloat(b[1].split(a.value)[0])),d.unit(a.value))}),this.modificators.bold(-1!==a.indexOf("Bold")),this.modificators.italic(-1!==a.indexOf("Italic")),this.modificators.underline(-1!==a.indexOf("Underline")),this.modificators.strikeout(-1!==a.indexOf("Strikeout"))}},b.prototype.updateValue=function(a){if(!this.isUpdateModel){var b=[this.family(),this.size()+this.unit()].join(", "),c=[];this.modificators.bold()&&c.push("Bold"),this.modificators.italic()&&c.push("Italic"),this.modificators.underline()&&c.push("Underline"),this.modificators.strikeout()&&c.push("Strikeout");var d=c.join(", ");a(d?[b,d].join(", style="):b)}},b}(d.Disposable);c.FontModel=o,c.availableFonts=ko.observable({"Times New Roman":"Times New Roman",Arial:"Arial","Arial Black":"Arial Black","Comic Sans MS":"Comic Sans MS","Courier New":"Courier New",Georgia:"Georgia",Impact:"Impact","Lucida Console":"Lucida Console","Lucida Sans Unicode":"Lucida Sans Unicode",Tahoma:"Tahoma","Trebuchet MS":"Trebuchet MS",Verdana:"Verdana","MS Sans Serif":"MS Sans Serif","MS Serif":"MS Serif",Symbol:"Symbol",Webdings:"Webdings",Wingdings:"Wingdings"})}(f=c.Internal||(c.Internal={}));var g=function(a){function b(b,c,d,e){return a.call(this,b,c,d,e)||this}return __extends(b,a),b.prototype.createObjectProperties=function(){var a=new f.FontModel(this.value);return this._disposables.push(a),new c.ObjectProperties(ko.observable(a),{editors:h.fontInfo},this.level+1,this.disabled,void 0,this.textToSearch)},b}(c.PropertyGridEditor);c.FontEditor=g;var h;!function(a){a.fontName={propertyName:"family",displayName:"Font Name",localizationId:"AnalyticsCoreStringId.FormatFontName",editor:c.editorTemplates.combobox,values:f.availableFonts},a.fontSize={propertyName:"size",displayName:"Size",localizationId:"AnalyticsCoreStringId.Font.Size",editor:c.editorTemplates.numeric},a.fontSizeUnit={propertyName:"unit",displayName:"Unit",localizationId:"AnalyticsCoreStringId.Font.Unit",editor:c.editorTemplates.combobox,valuesArray:f.availableUnits},a.fontInfo=[a.fontName,a.fontSize,a.fontSizeUnit,{propertyName:"modificators",editor:c.editorTemplates.modificators}]}(h=c.Metadata||(c.Metadata={})),c.editorTemplates.font={header:"dx-emptyHeader",content:"dx-objectEditorContent",editorType:g},function(b){function d(b){var b="#"===b[0]?b.substr(1):b;return $("#"+b).text()||a.Analytics.Widgets.Internal.SvgTemplatesEngine.templates[b]}b.extendedTemplates=function(a){return void 0===a&&(a=c.Internal.SvgTemplatesEngine.templates),{"dxrd-svg-fieldlist-list":a["dxrd-svg-fieldlist-table"],"dxrd-svg-fieldlist-default":a["dxrd-svg-fieldlist-column"]}},b.availableTemplates={"dxrd-svg-collapsed":'<svg data-bind="svgAttrs" viewBox="0 0 9 9"><path class="dxd-icon-fill" d="M2 2l5 3-5 3z"/></svg>',"dxrd-svg-ellipsis":'<svg data-bind="svgAttrs" viewBox="-467 277 16 16"><path class="dxd-icon-fill" d="M-464 284h2v2h-2zM-460 284h2v2h-2zM-456 284h2v2h-2z"/></svg>',"dxrd-svg-expressioneditor-addition":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M20 10h-6V4h-4v6H4v4h6v6h4v-6h6z"/></svg>',"dxrd-svg-expressioneditor-and":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M15 4c-1.1 0-2.1.2-3 .7-.9-.5-1.9-.7-3-.7-3.9 0-7 3.1-7 7s3.1 7 7 7c1.1 0 2.1-.2 3-.7.9.4 1.9.7 3 .7 3.9 0 7-3.1 7-7s-3.1-7-7-7zm-1 7c0 1.6-.8 3.1-2 4-1.2-.9-2-2.3-2-4s.8-3.1 2-4c1.2.9 2 2.4 2 4zM4 11c0-2.8 2.2-5 5-5 .3 0 .7 0 1 .1-1.2 1.3-2 3-2 4.9s.8 3.6 2 4.9c-.3.1-.7.1-1 .1-2.8 0-5-2.2-5-5zm11 5c-.3 0-.7 0-1-.1 1.2-1.3 2-3 2-4.9s-.8-3.6-2-4.9c.3-.1.7-.1 1-.1 2.8 0 5 2.2 5 5s-2.2 5-5 5z"/><path class="dxd-icon-fill dxd-opacity-60" d="M14 11c0 1.6-.8 3.1-2 4-1.2-.9-2-2.3-2-4s.8-3.1 2-4c1.2.9 2 2.4 2 4z"/></svg>',"dxrd-svg-expressioneditor-division":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M2 10h20v4H2z"/><circle class="dxd-icon-fill" cx="12" cy="6" r="2"/><circle class="dxd-icon-fill" cx="12" cy="18" r="2"/></svg>',"dxrd-svg-expressioneditor-edit":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M18 8l-6 6-6-6z"/></svg>',"dxrd-svg-expressioneditor-equal":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M4 6h16v4H4zM4 12h16v4H4z"/></svg>',"dxrd-svg-expressioneditor-greater":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M4 4v2l10 6-10 6v2l14-8z"/></svg>',"dxrd-svg-expressioneditor-greater_or_equal":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M4 2v2l10 6-10 6v2l14-8zM4 22l14-8v-2L4 20z"/></svg>',"dxrd-svg-expressioneditor-less":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M18 4v2L8 12l10 6v2L4 12z"/></svg>',"dxrd-svg-expressioneditor-less_or_equal":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M18 2v2L8 10l10 6v2L4 10zM18 22L4 14v-2l14 8z"/></svg>',"dxrd-svg-expressioneditor-modulus":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M16 4L2 20h4L20 4zM16 12c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM6 12c2.2 0 4-1.8 4-4S8.2 4 6 4 2 5.8 2 8s1.8 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2z"/></svg>',"dxrd-svg-expressioneditor-multiplication":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M18 6l-2-2-5 5-5-5-2 2 5 5-5 5 2 2 5-5 5 5 2-2-5-5z"/></svg>',"dxrd-svg-expressioneditor-not":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M15 4c-1.1 0-2.1.2-3 .7-.9-.5-1.9-.7-3-.7-3.9 0-7 3.1-7 7s3.1 7 7 7c1.1 0 2.1-.2 3-.7.9.4 1.9.7 3 .7 3.9 0 7-3.1 7-7s-3.1-7-7-7zm-1 7c0 1.6-.8 3.1-2 4-1.2-.9-2-2.3-2-4s.8-3.1 2-4c1.2.9 2 2.4 2 4zM4 11c0-2.8 2.2-5 5-5 .3 0 .7 0 1 .1-1.2 1.3-2 3-2 4.9s.8 3.6 2 4.9c-.3.1-.7.1-1 .1-2.8 0-5-2.2-5-5zm11 5c-.3 0-.7 0-1-.1 1.2-1.3 2-3 2-4.9s-.8-3.6-2-4.9c.3-.1.7-.1 1-.1 2.8 0 5 2.2 5 5s-2.2 5-5 5z"/><path class="dxd-icon-fill dxd-opacity-60" d="M4 11c0-2.8 2.2-5 5-5 .3 0 .7 0 1 .1-1.2 1.3-2 3-2 4.9s.8 3.6 2 4.9c-.3.1-.7.1-1 .1-2.8 0-5-2.2-5-5z"/></svg>',"dxrd-svg-expressioneditor-not_equal":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M20 0h-2l-3.8 6H4v4h7.6l-1.2 2H4v4h3.8L4 22h2l3.8-6H20v-4h-7.6l1.2-2H20V6h-3.8z"/></svg>',"dxrd-svg-expressioneditor-or":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-60" d="M14 11c0 1.6-.8 3.1-2 4-1.2-.9-2-2.3-2-4s.8-3.1 2-4c1.2.9 2 2.4 2 4z"/><path class="dxd-icon-fill" d="M15 4c-1.1 0-2.1.2-3 .7-.9-.5-1.9-.7-3-.7-3.9 0-7 3.1-7 7s3.1 7 7 7c1.1 0 2.1-.2 3-.7.9.4 1.9.7 3 .7 3.9 0 7-3.1 7-7s-3.1-7-7-7zm-1 7c0 1.6-.8 3.1-2 4-1.2-.9-2-2.3-2-4s.8-3.1 2-4c1.2.9 2 2.4 2 4zM4 11c0-2.8 2.2-5 5-5 .3 0 .7 0 1 .1-1.2 1.3-2 3-2 4.9s.8 3.6 2 4.9c-.3.1-.7.1-1 .1-2.8 0-5-2.2-5-5zm11 5c-.3 0-.7 0-1-.1 1.2-1.3 2-3 2-4.9s-.8-3.6-2-4.9c.3-.1.7-.1 1-.1 2.8 0 5 2.2 5 5s-2.2 5-5 5z"/><path class="dxd-icon-fill dxd-opacity-60" d="M4 11c0-2.8 2.2-5 5-5 .3 0 .7 0 1 .1-1.2 1.3-2 3-2 4.9s.8 3.6 2 4.9c-.3.1-.7.1-1 .1-2.8 0-5-2.2-5-5zM15 16c-.3 0-.7 0-1-.1 1.2-1.3 2-3 2-4.9s-.8-3.6-2-4.9c.3-.1.7-.1 1-.1 2.8 0 5 2.2 5 5s-2.2 5-5 5z"/></svg>',"dxrd-svg-expressioneditor-parenthesis":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M2 11c0 3.8 1.8 7.1 4 9h2c-2.2-1.9-4-5.2-4-9s1.8-7.1 4-9H6c-2.2 1.9-4 5.2-4 9zM16 2h-2c2.2 1.8 4 5.2 4 9s-1.8 7.2-4 9h2c2.2-1.8 4-5.2 4-9s-1.8-7.2-4-9z"/><path class="dxd-icon-fill" d="M6 10h2v2H6zM10 10h2v2h-2zM14 10h2v2h-2z"/></svg>',"dxrd-svg-expressioneditor-subtraction":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M4 10h16v4H4z"/></svg>',"dxrd-svg-fieldlist-array":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M18 6v2h-2v2h2v8h2V6zM4 8H2v2h2v8h2V6H4zM8 18h6V6H8v12zm2-10h2v8h-2V8z"/></svg>',"dxrd-svg-fieldlist-bitearray":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M18 6v2h-2v2h2v8h2V6zM4 8H2v2h2v8h2V6H4zM8 18h6V6H8v12zm2-10h2v8h-2V8z"/></svg>',"dxrd-svg-fieldlist-bool":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M4 10v4l6 6 10-10V6L10 16z"/></svg>',"dxrd-svg-fieldlist-booleanfield":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M4 10v4l6 6 10-10V6L10 16z"/></svg>',"dxrd-svg-fieldlist-column":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M0 0h22v4H0zM6 6h4v16H6zM12 12h4v4h-4zM12 18h4v4h-4zM18 6h4v4h-4zM0 12h4v4H0zM18 18h4v4h-4zM12 6h4v4h-4zM0 18h4v4H0zM0 6h4v4H0zM18 12h4v4h-4z"/></svg>',"dxrd-svg-fieldlist-datasource":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><ellipse class="dxd-icon-fill dxd-opacity-80" cx="11" cy="4" rx="7" ry="2"/><path class="dxd-icon-fill dxd-opacity-80" d="M11 10c-3.9 0-7-.9-7-2v12c0 1.1 3.1 2 7 2s7-.9 7-2V8c0 1.1-3.1 2-7 2z"/></svg>',"dxrd-svg-fieldlist-date":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M11 0C4.9 0 0 4.9 0 11s4.9 11 11 11 11-4.9 11-11S17.1 0 11 0zm6 12h-6c-.5 0-1-.5-1-1V5c0-.5.5-1 1-1s1 .5 1 1v5h5c.5 0 1 .5 1 1s-.5 1-1 1z"/></svg>',"dxrd-svg-fieldlist-datetimefield":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M11 0C4.9 0 0 4.9 0 11s4.9 11 11 11 11-4.9 11-11S17.1 0 11 0zm6 12h-6c-.5 0-1-.5-1-1V5c0-.5.5-1 1-1s1 .5 1 1v5h5c.5 0 1 .5 1 1s-.5 1-1 1z"/></svg>',"dxrd-svg-fieldlist-doublefield":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M6 6H4v2h2v10h2V4H6zM10 16h2v2h-2zM20 12V4h-6v2h4v4h-4v8h6v-2h-4v-4z"/></svg>',"dxrd-svg-fieldlist-enum":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M13 12H1c-.5 0-1 .5-1 1v8c0 .5.5 1 1 1h12c.5 0 1-.5 1-1v-8c0-.5-.5-1-1-1zm-1 8H2v-2h10v2zm0-4H2v-2h10v2zM23 4H11c-.5 0-1 .5-1 1v5h12v2h-6v2h7c.5 0 1-.5 1-1V5c0-.5-.5-1-1-1zm-1 4H12V6h10v2z"/></svg>',"dxrd-svg-fieldlist-float":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M6 6H4v2h2v10h2V4H6zM10 16h2v2h-2zM20 12V4h-6v2h4v4h-4v8h6v-2h-4v-4z"/></svg>',"dxrd-svg-fieldlist-guid":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M10 10v10h8V2h-2v8h-6zm2 2h4v6h-4v-6zM6 10h2v10H6zM6 6h2v2H6z"/></svg>',"dxrd-svg-fieldlist-integer":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M4 8H2v2h2v8h2V6H4zM8 6v2h4v2H8v8h6v-2h-4v-4h4V6h-2zM16 6v2h4v2h-2v2h2v4h-4v2h6V6z"/></svg>',"dxrd-svg-fieldlist-integerfield":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M4 8H2v2h2v8h2V6H4zM8 6v2h4v2H8v8h6v-2h-4v-4h4V6h-2zM16 6v2h4v2h-2v2h2v4h-4v2h6V6z"/></svg>',"dxrd-svg-fieldlist-listsource":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><ellipse class="dxd-icon-fill dxd-opacity-80" cx="11" cy="4" rx="7" ry="2"/><path class="dxd-icon-fill dxd-opacity-80" d="M11 10c-3.9 0-7-.9-7-2v12c0 1.1 3.1 2 7 2s7-.9 7-2V8c0 1.1-3.1 2-7 2z"/></svg>',"dxrd-svg-fieldlist-none":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M0 0v22h22V0H0zm16 14l-2 2-3-3-3 3-2-2 3-3-3-3 2-2 3 3 3-3 2 2-3 3 3 3z"/></svg>',"dxrd-svg-fieldlist-parameters":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M12 4h4v8h-4zM8 18h4v4H8zM8 12h4v4H8zM8 0h4v4H8zM4 4h4v4H4z"/></svg>',"dxrd-svg-fieldlist-range":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M4 4h4v2H4v12h4v2H2V4h2zm16 0h-4v2h4v12h-4v2h6V4h-2z"/></svg>',"dxrd-svg-fieldlist-string":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M4 8h4v4H2v8h8V6H4v2zm4 10H4v-4h4v4zM14 10V2h-2v18h8V10h-6zm4 8h-4v-6h4v6z"/></svg>',"dxrd-svg-fieldlist-stringfield":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M4 8h4v4H2v8h8V6H4v2zm4 10H4v-4h4v4zM14 10V2h-2v18h8V10h-6zm4 8h-4v-6h4v6z"/></svg>',"dxrd-svg-fieldlist-table":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M0 0h22v4H0zM12 12h4v4h-4zM12 18h4v4h-4zM18 6h4v4h-4zM0 12h4v4H0zM18 18h4v4h-4zM12 6h4v4h-4zM6 12h4v4H6zM6 18h4v4H6zM6 6h4v4H6zM0 18h4v4H0zM0 6h4v4H0zM18 12h4v4h-4z"/></svg>',"dxrd-svg-fieldlist-view":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M0 6h4v4H0zM6 6h4v4H6zM12 6h4v4h-4zM18 6h4v4h-4zM0 12h4v4H0zM6 12h4v4H6zM0 18h4v4H0zM6 18h4v4H6zM0 0h22v4H0zM23.7 22.3l-2.5-2.5c.5-.8.8-1.8.8-2.8 0-2.8-2.2-5-5-5s-5 2.2-5 5 2.2 5 5 5c1 0 2-.3 2.8-.8l2.5 2.5c.4.4 1 .4 1.4 0 .4-.4.4-1 0-1.4zM17 20c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3z"/></svg>',"dxrd-svg-filtereditor-add":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-filter-editor-add-icon-fill-color" d="M20 10h-6V4h-4v6H4v4h6v6h4v-6h6z"/></svg>',"dxrd-svg-filtereditor-edit":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M18 8l-6 6-6-6z"/></svg>',"dxrd-svg-filtereditor-remove":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-filter-editor-remove-icon-fill-color" d="M18 6l-2-2-5 5-5-5-2 2 5 5-5 5 2 2 5-5 5 5 2-2-5-5z"/></svg>',"dxrd-svg-fontstyle-bold":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M14.4 10.8c1.1.3 1.9.7 2.5 1.3.8.8 1.1 1.8 1.1 3 0 .9-.2 1.8-.7 2.6-.5.8-1.2 1.4-2 1.8-.9.4-2.2.6-4 .6H4v-.5h.4c.7 0 1.1-.2 1.4-.7.2-.5.2-2 .2-3V6c0-1.1 0-2.6-.3-2.9-.3-.4-.7-.6-1.3-.6H4V2h6.6c1.3 0 2.3.1 3.1.3 1.2.3 2.1.9 2.7 1.7s.9 1.7.9 2.8c0 .9-.2 1.7-.7 2.4-.5.7-1.2 1.3-2.2 1.6zM8 10H10.6c1.1 0 2 0 2.6-.3.6-.3.9-.6 1.2-1.2.3-.6.5-1.2.5-1.9 0-1.1-.4-2-1.1-2.7S11.4 3 10 3H8v7zm0 8.9h3c1.4 0 2.5-.3 3.2-1s1.1-1.6 1.1-2.7c0-.7-.2-1.4-.5-2-.3-.6-.9-1.2-1.6-1.5-.8-.4-1.5-.7-2.7-.7H8v7.9z"/></svg>',"dxrd-svg-fontstyle-italic":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M14 21.5l-.2.5H6l.2-.5c.8 0 1.3-.1 1.6-.2.4-.2.7-.4.9-.7.3-.5.5-1.3.8-2.5l2.4-12c.3-1.3.3-1.8.3-2.3 0-.3-.1-.5-.2-.6s-.3-.3-.6-.4c-.3-.1-.7-.1-1.5-.1l.3-.7H18l-.2.5c-.6 0-1.4.1-1.7.2-.4.2-.8.5-1 .8-.1.5-.5 1-.8 2.5L12 18.1c-.2 1.3-.3 1.7-.3 2.1 0 .2.1.5.2.6.1.2.3.3.6.4s.7.2 1.5.3z"/></svg>',"dxrd-svg-fontstyle-strikeout":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M20 12h-5.3c-.7-.4-1.7-.9-2.9-1.5-2.4-1.2-3.9-2.1-4.6-2.8-.4-.5-.7-1-.7-1.6 0-.8.3-1.4 1-2.1.6-.4.8-.7 2.1-.9.9-.1 1.9.2 2.8.7.9.4 1.6 1 2.1 1.8s.8 1.4 1 2.4h.5V2h-.5c-.1.4-.2.7-.4.9-.2.1-.4.2-.7.2-.2 0-.6-.1-1.2-.4-1.3-.5-2.5-.7-3.6-.7-1.8 0-3 .8-3.9 1.5C4.5 4.4 4 5.7 4 7c0 .8.2 1.5.6 2.2s1 1.3 1.7 1.8c.4.3.9.6 1.6 1H2v2h9.7c.9.5 1.5.8 1.8 1 .6.4 1 .9 1.3 1.3s.4 1 .4 1.4c0 .8-.4 1.6-1.1 2.2-.8.6-1.8.9-3.1.9-1.1 0-2.1-.2-3.1-.7-.9-.5-1.8-1-2.3-1.7-.2-.2-.8-1.4-1-2.4H4v6h.6c.1-.4.2-.7.3-.9.2-.1.4-.2.6-.2.3 0 1.1.1 2.1.4s1.7.5 2 .5c.5.1 1.1.1 1.7.1 1.9 0 3.5-.5 4.8-1.6 1.2-1 1.9-2.3 1.9-3.7 0-.8-.2-1.5-.6-2.2-.1-.2-.2-.2-.3-.4H20v-2z"/></svg>',"dxrd-svg-fontstyle-underline":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M14 0v1h.9c.4 0 .7.1.8.2.3.4.3 1.2.3 2.3V12c0 .8 0 1.7-.1 2.6-.1 1-.5 1.8-1 2.3-1 .9-3 1.1-3.7 1.1-.7 0-2.9-.2-3.9-1.1-.7-.7-.9-1.3-1.1-2.2-.2-1.1-.2-2-.2-2.7V3.5c0-1.1 0-2 .3-2.2.2-.2.6-.3 1.1-.3H8V0H2v1h.9c.7 0 .9.1 1 .2.1.2.1 1.1.1 2.3v7.6c0 2.4.2 4 .5 4.8.5 1.2 1.3 2.3 2.4 3C8.7 20 9.9 20 11 20c1.4 0 2.6-.1 4.1-1.1 1.1-.8 1.9-1.7 2.3-3 .3-.9.4-2.5.4-4.8V3.5c0-1.2 0-1.9.3-2.2.3-.3.5-.3 1.3-.3h.6V0h-6zM2 22h18v2H2z"/></svg>',"dxrd-svg-menu-menu":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M2 2h20v4H2zM2 10h20v4H2zM2 18h20v4H2z"/></svg>',"dxrd-svg-menu-open":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M4 8L2 20h18l2-12z"/><path class="dxd-icon-fill" d="M20 6V4H6V2H0v18L2 6z"/></svg>',"dxrd-svg-menu-save":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M10 0h6v6h-6z"/><path class="dxd-icon-fill" d="M18 0v8H4V0H2L0 2v20h22V0h-4zm0 18H4v-6h14v6z"/></svg>',"dxrd-svg-operations-add":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M22 10h-8V2h-4v8H2v4h8v8h4v-8h8z"/></svg>',"dxrd-svg-operations-add_calcfield":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M18 8V0H0v16h10c0-4.4 3.6-8 8-8zM8 4H6v2h2v2H6v6H2v-2h2V8H2V6h2V2h4v2z"/><path class="dxd-icon-fill" d="M18 10c-3.3 0-6 2.7-6 6s2.7 6 6 6 6-2.7 6-6-2.7-6-6-6zm3 7h-2v2h-2v-2h-2v-2h2v-2h2v2h2v2z"/></svg>',"dxrd-svg-operations-add_datasource":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><ellipse class="dxd-icon-fill" cx="8" cy="2" rx="6" ry="2"/><path class="dxd-icon-fill" d="M16 10c-3.3 0-6 2.7-6 6s2.7 6 6 6 6-2.7 6-6-2.7-6-6-6zm3 7h-2v2h-2v-2h-2v-2h2v-2h2v2h2v2zM8 13c-3.1 0-6-.9-6-2v5c0 1.1 2.9 2 6 2h.3c-.2-.6-.3-1.3-.3-2 0-1.1.2-2.1.6-3H8zM14 8.3V4c0 1.1-2.9 2-6 2s-6-.9-6-2v5c0 1.1 2.9 2 6 2 .6 0 1.3 0 1.9-.1 1-1.3 2.5-2.2 4.1-2.6z"/></svg>',"dxrd-svg-operations-add_query":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M0 6h4v4H0zM6 6h4v4H6zM12 6h4v4h-4zM18 6h4v4h-4zM0 12h4v4H0zM6 12h4v4H6zM0 18h4v4H0zM6 18h4v4H6zM0 0h22v4H0zM18 12c-3.3 0-6 2.7-6 6s2.7 6 6 6 6-2.7 6-6-2.7-6-6-6zm3 7h-2v2h-2v-2h-2v-2h2v-2h2v2h2v2z"/></svg>',"dxrd-svg-operations-ascending":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M12 0L6 6h4v16h4V6h4z"/></svg>',"dxrd-svg-operations-descending":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M12 22l6-6h-4V0h-4v16H6z"/></svg>',"dxrd-svg-operations-edit":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M2 22h4l-4-4zM4 16l4 4 8-8-4-4zM16 4l-2 2 4 4 2-2z"/></svg>',"dxrd-svg-operations-movedown":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M6 10l6 6 6-6V6l-6 6-6-6z"/></svg>',"dxrd-svg-operations-moveleft":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M12 6l-6 6 6 6h4l-6-6 6-6z"/></svg>',"dxrd-svg-operations-moveleft_all":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M12 6H8l-6 6 6 6h4l-6-6z"/><path class="dxd-icon-fill" d="M20 6h-4l-6 6 6 6h4l-6-6z"/></svg>',"dxrd-svg-operations-moveright":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M10 18l6-6-6-6H6l6 6-6 6z"/></svg>',"dxrd-svg-operations-moveright_all":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M10 18h4l6-6-6-6h-4l6 6z"/><path class="dxd-icon-fill" d="M2 18h4l6-6-6-6H2l6 6z"/></svg>',"dxrd-svg-operations-moveup":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M18 12l-6-6-6 6v4l6-6 6 6z"/></svg>',"dxrd-svg-operations-recycle_bin":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M6 19c0 .5.5 1 1 1h10c.5 0 1-.5 1-1V8H6v11zM19 4h-5V3c0-.5-.5-1-1-1h-2c-.5 0-1 .5-1 1v1H5c-.6 0-1 .4-1 1v1h16V5c0-.6-.4-1-1-1z"/></svg>',"dxrd-svg-operations-remove":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M4 10h14v4H4z"/></svg>',"dxrd-svg-operations-unsorted":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M0 20l6-6V6H2l5-6 5 6H8v6l6-6V0h2v4l4-4 2 2-6 6v8h4l-5 6-5-6h4v-6l-6 6v6H6v-4l-4 4z"/></svg>',"dxrd-svg-properties-borders-all":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M0 0v22h22V0H0zm20 20H2V2h18v18z"/></svg>',"dxrd-svg-properties-borders-bottom":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M0 12h2v4H0zM12 0h4v2h-4zM0 6h2v4H0zM18 2h2v2h2V0h-4zM6 0h4v2H6zM20 18v2H2v-2H0v4h22v-4zM2 4V2h2V0H0v4zM20 6h2v4h-2zM20 12h2v4h-2z"/></svg>',"dxrd-svg-properties-borders-left":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M6 0h4v2H6zM20 12h2v4h-2zM12 0h4v2h-4zM20 18v2h-2v2h4v-4zM20 6h2v4h-2zM4 20H2V2h2V0H0v22h4zM18 2h2v2h2V0h-4zM12 20h4v2h-4zM6 20h4v2H6z"/></svg>',"dxrd-svg-properties-borders-none":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M6 0h4v2H6zM20 12h2v4h-2zM12 0h4v2h-4zM20 18v2h-2v2h4v-4zM20 6h2v4h-2zM18 2h2v2h2V0h-4zM12 20h4v2h-4zM6 20h4v2H6zM0 6h2v4H0zM2 4V2h2V0H0v4zM2 18H0v4h4v-2H2zM0 12h2v4H0z"/></svg>',"dxrd-svg-properties-borders-right":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M12 20h4v2h-4zM0 6h2v4H0zM6 20h4v2H6zM2 4V2h2V0H0v4zM0 12h2v4H0zM18 2h2v18h-2v2h4V0h-4zM4 20H2v-2H0v4h4zM6 0h4v2H6zM12 0h4v2h-4z"/></svg>',"dxrd-svg-properties-borders-top":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M20 6h2v4h-2zM6 20h4v2H6zM20 12h2v4h-2zM4 20H2v-2H0v4h4zM12 20h4v2h-4zM2 4V2h18v2h2V0H0v4zM20 18v2h-2v2h4v-4zM0 12h2v4H0zM0 6h2v4H0z"/></svg>',"dxrd-svg-properties-search":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M2.6 21.4c.8.8 2 .8 2.8 0l4.6-4.6c1.2.7 2.6 1.1 4.1 1.1 4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8c0 1.5.4 2.9 1.1 4.1l-4.6 4.6c-.8.8-.8 2 0 2.8zM10 10.1c0-2.2 1.8-4 4-4s4 1.8 4 4-1.8 4-4 4-4-1.9-4-4z"/></svg>',"dxrd-svg-properties-sortingbyalphabet":'<svg data-bind="svgAttrs" viewBox="0 0 16 16"><path class="dxd-icon-fill" d="M3.2 0L1 7h1.6L3 5.3h2L5.4 7H7L4.9 0H3.2zm0 4.2L3.8 2c0-.1.1-.4.2-.8v.1c0 .3.1.6.1.7l.5 2.2H3.2zM1 10h4l-4 5v1h6v-1H3l4-5V9H1zM13 12V0h-2v12H8l4 4 4-4z"/></svg>',"dxrd-svg-properties-sortingbygroups":'<svg data-bind="svgAttrs" viewBox="0 0 16 16"><path class="dxd-icon-fill" d="M1 7h7V0H1v7zm1-6h5v5H2V1zM9 1h6v1H9zM9 3h6v1H9zM9 5h6v1H9zM9 10h6v1H9zM9 12h6v1H9zM9 14h6v1H9z"/><path class="dxd-icon-fill" d="M5 2H4v1H3v1h1v1h1V4h1V3H5zM1 16h7V9H1v7zm1-6h5v5H2v-5z"/><path class="dxd-icon-fill" d="M5 11H4v1H3v1h1v1h1v-1h1v-1H5z"/></svg>',"dxrd-svg-queryBuilder-aggregate":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M21 0H3v4l8 8-8 8v4h18v-4H7l8-8-8-8h14z"/></svg>',"dxrd-svg-queryBuilder-data_preview":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M21.7 20.3l-2.5-2.5c.5-.8.8-1.8.8-2.8 0-2.8-2.2-5-5-5s-5 2.2-5 5 2.2 5 5 5c1 0 2-.3 2.8-.8l2.5 2.5c.4.4 1 .4 1.4 0 .4-.4.4-1 0-1.4zM15 18c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3z"/><ellipse class="dxd-icon-fill" cx="8" cy="2" rx="6" ry="2"/><path class="dxd-icon-fill" d="M8.7 13s-.1 0 0 0c-.1 0-.1 0 0 0H7.3C4.4 12.8 2 12 2 11v5c0 1 2.6 1.9 5.4 2H9c-.4-.9-.7-1.9-.7-2.9.1-.8.2-1.5.4-2.1zM14 8.2V4c0 1.1-2.9 2-6 2s-6-.9-6-2v5c0 1.1 2.9 2 6 2 .6 0 1.2 0 1.7-.1 1-1.4 2.5-2.4 4.3-2.7z"/></svg>',"dxrd-svg-queryBuilder-group_by":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M2 4h14v6H2zM8 14h14v6H8z"/></svg>',"dxrd-svg-queryBuilder-select_statment":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M18 4l-4-4v4zM21.7 22.3l-4.5-4.5c.5-.8.8-1.8.8-2.8 0-2.8-2.2-5-5-5s-5 2.2-5 5 2.2 5 5 5c1 0 2-.3 2.8-.8l4.5 4.5c.4.4 1 .4 1.4 0s.4-1 0-1.4zM13.1 18c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.4 3-3 3z"/><path class="dxd-icon-fill" d="M13 8c2 0 3.7.8 5 2.1V6h-6V0H0v20h8.1C6.8 18.7 6 17 6 15c0-3.9 3.1-7 7-7z"/></svg>',"dxrd-svg-queryBuilder-sorting_asc":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M8 0H4v14H2l4 8 4-8H8zM14 14h6l-6 6v2h8v-2h-6l6-6v-2h-8zM19.4 0L14 10h2l.9-2H20v2h2V0h-2.6zm.6 6h-1.9L20 2v4z"/></svg>',"dxrd-svg-queryBuilder-sorting_desc":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M8 0H4v14H2l4 8 4-8H8zM22 0h-8v2h6l-6 6v2h8V8h-6l6-6zM14 22h2l.9-2H20v2h2V12h-2.6L14 22zm6-4h-1.9l1.9-4v4z"/></svg>',"dxrd-svg-tabs-properties":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><circle class="dxd-icon-fill" cx="12" cy="12" r="2"/><path class="dxd-icon-fill" d="M20 10h-.3c-.2-.7-.5-1.4-.9-2.1l.2-.2c.8-.8.8-2.1 0-2.8-.8-.8-2.1-.8-2.8 0l-.2.2c-.6-.4-1.3-.7-2.1-.9V4c0-1.1-.9-2-2-2S10 2.9 10 4v.3c-.7.2-1.4.4-2.1.8l-.1-.2c-.8-.7-2.1-.7-2.9 0-.7.8-.7 2.1 0 2.9l.2.2c-.4.6-.6 1.3-.8 2H4c-1.1 0-2 .9-2 2s.9 2 2 2h.3c.2.7.5 1.4.9 2.1l-.2.2c-.8.8-.8 2.1 0 2.8.8.8 2.1.8 2.8 0l.2-.2c.6.4 1.3.7 2.1.9v.2c0 1.1.9 2 2 2s2-.9 2-2v-.3c.7-.2 1.4-.5 2.1-.9l.2.2c.8.8 2.1.8 2.8 0 .8-.8.8-2.1 0-2.8L19 16c.4-.6.7-1.3.9-2.1h.1c1.1 0 2-.9 2-2 0-1-.9-1.9-2-1.9zm-8 6c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"/></svg>',"dxrd-svg-toolbar-copy":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M10 10h4l-4-4z"/><path class="dxd-icon-fill" d="M8 6H0v18h14V12H8zM18 0v4h4z"/><path class="dxd-icon-fill" d="M16 0H8v4h2l6 6v8h6V6h-6z"/></svg>',"dxrd-svg-toolbar-cut":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M17.9 14c-.6 0-1.2.1-1.7.4L14 12l6-6V2l-8 8-8-8v4l6 6 2-2 2 2-2 2-2-2-2.3 2.4c-.6-.2-1.1-.4-1.7-.4-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4c0-.6-.1-1.1-.3-1.6L12 14l2.3 2.4c-.2.5-.3 1-.3 1.6 0 2.2 1.8 4 4 4s4-1.8 4-4c-.1-2.2-1.9-4-4.1-4zM6 20c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm11.9 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/></svg>',"dxrd-svg-toolbar-delete":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M20 4l-2-2-7 7-7-7-2 2 7 7-7 7 2 2 7-7 7 7 2-2-7-7z"/></svg>',"dxrd-svg-toolbar-paste":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M8 2V0H6v2H4v2h6V2zM16 16v-6h-6v14h12v-8z"/><path class="dxd-icon-fill" d="M22 14h-4v-4zM8 8h6V2h-2v4H2V2H0v16h8z"/></svg>',"dxrd-svg-toolbar-redo":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M24 9L14 2v4h-1.2C6 6 0 12.2 0 19v3c1.6-5.9 7-10 12.8-10H14v4.1L24 9z"/></svg>',"dxrd-svg-toolbar-undo":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M0 9l10-7v4h1.2C18 6 24 12.2 24 19v3c-1.6-5.9-7-10-12.8-10H10v4.1L0 9z"/></svg>',"dxrd-svg-toolbar-validate":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M22 6L8 20l-6-6v-4l6 6L22 2v4z"/></svg>',"dxrd-svg-toolbar-zoomin":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M22 10h-8V2h-4v8H2v4h8v8h4v-8h8z"/></svg>',"dxrd-svg-toolbar-zoomout":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M2 10h20v4H2z"/></svg>',"dxrd-svg-wizard-Download":'<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill" d="M7 12l5 5 5-5h-4V2h-2v10H7zm8-4v2h4v10H5V10h4V8H3v14h18V8h-6z"/></svg>',"dxrd-svg-wizard-JsonDataSource":'<svg data-bind="svgAttrs" viewBox="0 0 96 96"><style>.Black{fill:#727272;} .White{fill:#FFFFFF;} .Green{fill:#039C23;} .Blue{fill:#1177D7;} .Red{fill:#D11C1C;} .st0{opacity:0.75;} .st1{opacity:0.25;} .st2{opacity:0.5;}</style><g><path class="st2 Black" d="M63.6 72.5c-.1-.2-.2-.4-.3-.7-.5-1.4-.8-2.9-.9-4.4-.1-2.3.4-4.5 1.5-6.3.7-1.2 1.7-2.4 2.8-3.2.4-.3 1.1-.7 1.1-.7s.5-.3 1.2-.6c.1.1.2.1.3.2 1.7 1.2 3 2.8 3.9 4.6.3.7.6 1.5.8 2.3v2.8c0 2.4-4.1 4.6-10.4 6zm-20.4-2.2c-.3-2.6-.3-5.3.2-7.9.4-2.3 1.2-4.5 2.2-6.5C48.9 49.5 55 44.6 62 42.8c1.4-.4 4.2-.8 5.8-.8 1.4 0 4.4.6 6.2 1.4v-22c0 4.2-11.6 7.6-26 7.6s-26-3.4-26-7.6v45c0 3.8 9.5 6.9 21.9 7.5-.3-1.2-.5-2.4-.7-3.6z"/><ellipse class="st1 Black" cx="48" cy="19.5" rx="26" ry="7.5"/><path class="Blue" d="M91.8 70.1c-.3 2.4-1 4.8-2 7-1.2 2.5-2.9 4.9-4.9 6.9-2.2 2.1-4.8 4-7.6 5.2-2 .9-5.5 1.9-9.1 1.9-1 0-3.3-.6-4.7-1.1-2.4-1-4.6-2.5-6.3-4.5-1.1-1.3-2-2.8-2.7-4.3-1.1-2.5-1.7-5.3-1.9-8.1-.1-2-.1-4 .2-5.9.5-3.1 1.8-6.2 4.1-8.5.4-.4 1.9-1.6 2.7-2.1.8-.5 3.2-1.3 4.5-1.4 1-.1 2 0 2.9.2-.5.3-1 .6-1.4 1-1.4 1-2.5 2.3-3.3 3.8-1.3 2.2-1.8 4.8-1.7 7.3 0 1.7.4 3.5 1 5.1.5 1.3 1.2 2.5 2.1 3.5.7.8 1.6 1.6 2.5 2.2.5.3 1 .7 1.6.9.5.2 1 .4 1.5.5 3.1.7 6.4-.4 8.9-2.2 1.5-1.1 2.8-2.6 3.8-4.2 1.4-2.2 2.2-4.7 2.5-7.2.2-1.5.2-3 .1-4.5-.1-2-.4-4.1-1-6-.8-3-2.3-5.8-4.4-8.1-.9-1-2-1.9-3.1-2.7-.2-.2-.5-.3-.7-.4-.2-.1-.5-.3-.7-.4 1.5.4 3 1 4.4 1.7 3.9 2 7.3 4.9 9.6 8.6.7 1 1.2 2.1 1.7 3.2.8 1.8 1.3 3.7 1.6 5.6.1 2.3.1 4.7-.2 7zm-40.1 8.6c-.6-2-.9-4.2-1-6.5-.1-1.5-.1-2.9.1-4.3.3-2.8 1.1-5.4 2.4-7.5 1-1.7 2.3-3.2 3.8-4.4 1.1-.8 2.3-1.5 3.5-1.9 1.3-.5 2.6-.7 4-.7.5 0 1.1 0 1.6.1.7.1 1.4.3 2 .5.1.1.7.3.8.4.4.2.9.5 1.5.9 2 1.4 3.5 3.2 4.5 5.4.9 1.9 1.3 4 1.4 6.3 0 2.4-.4 4.7-1.4 6.7-.8 1.7-2 3.3-3.4 4.5 2.2-.2 4.5-1.2 6.4-3 .4-.3.7-.7 1-1.1.5-.6.9-1.1 1.2-1.5.4-.7.8-1.4 1.2-2.2.5-1.1.8-2.1 1-3.1.3-1.7.4-3.5.3-5.8-.3-4.3-1.5-8-3.5-10.9-.4-.6-.7-1-1-1.4-.6-.7-1.3-1.3-2-2-.8-.7-1.1-.9-2.5-1.7S69 44 67.8 44c-1.3 0-4 .3-5.4.6-6.5 1.7-12 6.2-15 12.2-.9 1.9-1.6 3.9-2 6-.5 2.4-.5 4.8-.2 7.2.2 2 .7 3.9 1.5 5.7.4 1 .9 2.1 1.6 3.1 1.8 2.9 4.2 5.3 7.2 7.2-1.7-1.9-3-4.5-3.8-7.3z"/></g></svg>',"dxrd-svg-wizard-NoDataSource":'<svg data-bind="svgAttrs" viewBox="0 0 96 96"><style>.Black{fill:#727272;} .White{fill:#FFFFFF;} .Green{fill:#039C23;} .Blue{fill:#1177D7;} .Red{fill:#D11C1C;} .st0{opacity:0.75;} .st1{opacity:0.25;} .st2{opacity:0.5;}</style><g><path class="st2 Black" d="M44 68c0-12.2 9.8-22 22-22 1.4 0 2.7.1 4 .4v-24c0 4.2-11.6 7.6-26 7.6s-26-3.4-26-7.6v45c0 4.2 11.6 7.6 26 7.6h1.1c-.7-2.2-1.1-4.6-1.1-7z"/><ellipse class="st1 Black" cx="44" cy="20.5" rx="26" ry="7.5"/><circle class="Red" cx="66" cy="68" r="20"/><path class="White" d="M53.4 77.8C51.3 75.1 50 71.7 50 68c0-8.8 7.2-16 16-16 3.7 0 7.1 1.3 9.8 3.4L53.4 77.8zm25.2-19.6L56.2 80.6c2.7 2.1 6.1 3.4 9.8 3.4 8.8 0 16-7.2 16-16 0-3.7-1.3-7.1-3.4-9.8z"/></g></svg>',"dxrd-svg-wizard-ObjectDataSource":'<svg data-bind="svgAttrs" viewBox="0 0 96 96"><style>.Black{fill:#727272;} .White{fill:#FFFFFF;} .Green{fill:#039C23;} .Blue{fill:#1177D7;} .Red{fill:#D11C1C;} .st0{opacity:0.75;} .st1{opacity:0.25;} .st2{opacity:0.5;}</style><g><path class="st2 Black" d="M64.7 71H64V59h6v7.4c0 1.8-2 3.3-5.3 4.6zM52 52v7h12v-7H52zm-18 7h12V46h18v-7h6V21.4c0 4.2-11.6 7.6-26 7.6s-26-3.4-26-7.6v45c0 3.1 6.6 5.8 16 7V59z"/><ellipse class="st1 Black" cx="44" cy="19.5" rx="26" ry="7.5"/><path class="Blue" d="M82 41H66v7H48v13H36v26h26V75h13V57h7V41zm-9 32H62V61H50V50h16v7h7v16z"/></g></svg>',"dxrd-svg-wizard-SqlDataSource":'<svg data-bind="svgAttrs" viewBox="0 0 96 96"><style>.Black{fill:#727272;} .White{fill:#FFFFFF;} .Green{fill:#039C23;} .Blue{fill:#1177D7;} .Red{fill:#D11C1C;} .st0{opacity:0.75;} .st1{opacity:0.25;} .st2{opacity:0.5;}</style><g><path class="st2 Black" d="M48 29c-14.4 0-26-3.4-26-7.6v45c0 4.2 11.6 7.6 26 7.6s26-3.4 26-7.6v-45c0 4.2-11.6 7.6-26 7.6z"/><ellipse class="st1 Black" cx="48" cy="19.5" rx="26" ry="7.5"/></g></svg>',"dxrd-svg-wizard-expressions":'<svg data-bind="svgAttrs" viewBox="0 0 32 32"><path class="dxd-icon-fill" d="M25.6 4.3c-.3-.4-.7-.7-1.2-1-.6-.2-1.3-.3-2.2-.3-1.8 0-3.3.4-4.5 1.3s-1.9 2.1-2.2 3.6l-.3 1.4-.4 1.7h-2.4l-.4 2h2.4L12 24.3c-.2 1.3-.7 1.9-1.3 1.9-.2 0-.3 0-.4-.1l-.4-.4c-.3-.4-.6-.7-.7-.8-.2-.2-.4-.3-.6-.4-.2-.1-.4-.1-.7-.1-.5 0-1 .2-1.3.6-.4.4-.6.9-.6 1.5 0 .7.4 1.3 1.2 1.9.6.4 1.5.6 2.6.6s2.1-.2 2.9-.6 1.5-1.1 2.2-2c.6-.9 1.1-2.1 1.4-3.4l2.3-9.9H21l.5-2H19l.4-1.7.4-1.6c.2-.8.3-1.2.5-1.5.2-.3.5-.5.9-.5.2 0 .3 0 .5.1s.4.3.7.7c.3.3.6.6.9.7s.6.2.9.2c.4 0 .7-.1 1-.2.3-.2.5-.4.7-.7.2-.3.3-.7.3-1-.2-.5-.3-.9-.6-1.3z"/></svg>'};var e=function(){function a(a,b,c){this._data=b,this._templates=c,this.templateName=a}return a.prototype.data=function(a,b){if(this._data[this.templateName]=this._data[this.templateName]||{},1===arguments.length)return this._data[this.templateName][a];this._data[this.templateName][a]=b},a.prototype.text=function(a){if(0===arguments.length){var b=this._templates[this.templateName];if(!b)throw new Error("Cannot find template with ID "+this.templateName);return b}this._templates[this.templateName]=a},a}(),f=function(){function a(){var a=this;this._hasTemplate=function(b){return a._templates.hasOwnProperty(b)},this._data={},this._templates={}}return Object.defineProperty(a,"Instance",{get:function(){return this._instance||(this._instance=new this)},enumerable:!0,configurable:!0}),Object.defineProperty(a,"templates",{get:function(){return a.Instance._templates},enumerable:!0,configurable:!0}),a.addTemplates=function(b){ko.utils.extend(a.templates,b)},a.getExistingTemplate=function(b){return a.Instance._hasTemplate(b)?b:void 0},a}();b.SvgTemplatesEngine=f;var g=ko.templateEngine.prototype.makeTemplateSource;ko.templateEngine.prototype.makeTemplateSource=function(a,b){return"string"==typeof a&&f.getExistingTemplate(a)?new e(a,f._instance._data,f.templates):g.apply(this,[a,b])},b.getTemplate=d,f.addTemplates(c.Internal.availableTemplates),f.addTemplates(c.Internal.extendedTemplates())}(f=c.Internal||(c.Internal={}))}(b.Widgets||(b.Widgets={}))}(a.Analytics||(a.Analytics={}))}(DevExpress||(DevExpress={})),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.getLocalization","Analytics.getLocalization","Analytics.Utils.getLocalization"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.findMatchesInString","Analytics.Utils.findMatchesInString","Analytics.Internal.findMatchesInString"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.escapeToRegExp","Analytics.Utils.escapeToRegExp","Analytics.Internal.escapeToRegExp"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.formatUnicorn","Analytics.Utils.formatUnicorn","Analytics.Internal.formatUnicorn"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.PopupService","Analytics.Internal.PopupService"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.CollectionItemWrapper","Analytics.Widgets.CollectionItemWrapper","Analytics.Widgets.Internal.CollectionItemWrapper"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.CollectionEditorViewModel","Analytics.Widgets.CollectionEditorViewModel","Analytics.Widgets.Internal.CollectionEditorViewModel"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.dxEllipsisEditor","Analytics.Widgets.dxEllipsisEditor","Analytics.Widgets.Internal.dxEllipsisEditor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.dxFileImagePicker","Analytics.Widgets.dxFileImagePicker","Analytics.Widgets.Internal.dxFileImagePicker"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.FontEditor","Analytics.Widgets.FontEditor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.fontInfo","Analytics.Widgets.fontInfo","Analytics.Widgets.Metadata.fontInfo"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.availableFonts","Analytics.Widgets.availableFonts","Analytics.Widgets.Internal.availableFonts"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.availableUnits","Analytics.Widgets.availableUnits","Analytics.Widgets.Internal.availableUnits"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.FontModel","Analytics.Widgets.FontModel","Analytics.Widgets.Internal.FontModel"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.propertiesGridEditorsPaddingLeft","Analytics.Widgets.propertiesGridEditorsPaddingLeft","Analytics.Widgets.Internal.propertiesGridEditorsPaddingLeft"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.Editor","Analytics.Widgets.Editor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.editorTemplates","Analytics.Widgets.editorTemplates"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.validateGuid","Analytics.Widgets.validateGuid","Analytics.Widgets.Internal.validateGuid"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Widgets.validateGuid","Analytics.Widgets.Internal.validateNullableGuid"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.guidValidationRules","Analytics.Widgets.guidValidationRules","Analytics.Widgets.Internal.guidValidationRules"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Widgets.guidRequiredValidationRules","Analytics.Widgets.Internal.guidRequiredValidationRules"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Widgets.requiredValidationRules","Analytics.Widgets.Internal.requiredValidationRules"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.GuidEditor","Analytics.Widgets.GuidEditor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.PropertyGridEditor","Analytics.Widgets.PropertyGridEditor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.EditorAddOn","Analytics.Internal.EditorAddOn"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.ObjectProperties","Analytics.Widgets.ObjectProperties"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.compareEditorInfo","Analytics.Utils.compareEditorInfo","Analytics.Internal.compareEditorInfo"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Localization.Globalize","Analytics.Localization.Globalize","Analytics.Internal.Globalize"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Localization.messages","Analytics.Localization.messages","Analytics.Internal.messages"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Localization.addCultureInfo","Analytics.Localization.addCultureInfo","Analytics.Utils.addCultureInfo"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Localization.localize","Analytics.Localization.localize","Analytics.Internal.localize"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Localization.parseDate","Analytics.Localization.parseDate","Analytics.Internal.parseDate"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Localization.selectPlaceholder","Analytics.Localization.selectPlaceholder","Analytics.Internal.selectPlaceholder"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Localization.noDataText","Analytics.Localization.noDataText","Analytics.Internal.noDataText"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.CodeResolver","Analytics.Internal.CodeResolver"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.globalResolver","Analytics.Internal.globalResolver"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.isCustomizedWithUpdateLocalizationMethod","Analytics.isCustomizedWithUpdateLocalizationMethod","Analytics.Internal.isCustomizedWithUpdateLocalizationMethod"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getLocalization","Analytics.Utils.getLocalization"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.updateLocalization","Analytics.updateLocalization","Analytics.Utils.updateLocalization"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.StringId","Analytics.StringId","Analytics.Internal.StringId"),DevExpress.Analytics.Widgets.Internal.SvgTemplatesEngine.addTemplates({"dx-editor-addons":'\x3c!-- ko if: visible --\x3e \x3c!-- ko if: !ko.unwrap($data.imageTemplateName) --\x3e <div class="dxrd-editormenu-box dxd-property-grid-menu-box-color dxd-back-contrast" data-bind="dxclick: showPopup, css: editorMenuButtonCss, attr: { title: $data.hint }"> <div class="dxrd-editormenu-box-inside dxd-back-secondary"></div> </div> \x3c!-- /ko --\x3e \x3c!-- ko if: ko.unwrap($data.imageTemplateName) --\x3e <div class="dxrd-editormenu-box dxd-property-grid-menu-box-color" data-bind="dxclick: showPopup, attr: { title: $data.hint }, css: editorMenuButtonCss, template: { name: $data.imageTemplateName, if: ko.unwrap($data.imageTemplateName) }"> </div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e',"dx-boolean":'<div class="propertygrid-editor-checkbox" data-bind="dxCheckBox: getOptions({ value: value, disabled: disabled }), dxValidator: { validationRules: validationRules || [] }"></div>',"dx-boolean-select":"<div data-bind=\"dxLocalizedSelectBox: { dataSource: [ { val: true, text: $root.getLocalization('Yes', 'AnalyticsCoreStringId.ParametersPanel_True') }, { val: false, text: $root.getLocalization('No', 'AnalyticsCoreStringId.ParametersPanel_False') }], valueExpr: 'val', displayExpr: 'text', value: value, disabled: disabled, dropDownOptions: { container: $root.getPopupContainer($element) } }, dxValidator: { validationRules: validationRules || [] }\"></div>","dx-commonCollection":'<div class="dx-editor" data-bind="visible: visible"> <div data-bind="dxCollectionEditor: { values: value, displayName: displayName, level: level, info: info }"> </div> </div>',"dx-commonCollectionItem":'<div data-bind="dxPropertyGrid: { target: value, level: editor.level + 1, parentDisabled: editor.disabled }"></div>',"item-with-title":'<div class="dx-listitem-with-title" data-bind="text: $data.display, attr: { title: $data.display }"></div>',"dx-combobox":"<div data-bind=\"dxLocalizedSelectBox: { dataSource: values, value: value, valueExpr: 'value', displayExpr: 'displayValue', displayCustomValue: true, disabled: disabled, dropDownOptions: { container: $root.getPopupContainer($element) } }, dxValidator: { validationRules: $data.validationRules || [] }\"> </div>","dx-combobox-editable":"<div data-bind=\"dxSelectBox: getOptions({ items: values, value: value, valueExpr: 'value', displayExpr: 'displayValue', disabled: disabled, placeholder: $root.dx.Analytics.Internal.selectPlaceholder(), acceptCustomValue: true, onCustomItemCreating: function(arg) { return { value: arg.text, displayValue: arg.text }; }, dropDownOptions: { container: $root.getPopupContainer($element) } })\"></div>","dx-combobox-undo":"<div data-bind=\"dxLocalizedSelectBox: { dataSource: values, value: generateValue($root.undoEngine), valueExpr: 'value', displayExpr: 'displayValue', displayCustomValue: true, disabled: disabled, dropDownOptions: { container: $root.getPopupContainer($element) } }, dxValidator: { validationRules: $data.validationRules || [] }\"> </div>","dx-property-editor":'<div class="dx-editor" data-bind="visible: visible"> <div class="dx-group" data-bind="dxdAccordion: { collapsed: collapsed }"> <div class="dx-editor-header"> <div class="dx-field"> <div class="dx-field-label dx-accordion-header dxd-text-primary" data-bind="styleunit: padding, css: { \'dx-accordion-empty\': templateName === \'dx-emptyHeader\' }"> \x3c!-- ko if: isComplexEditor --\x3e <div class="propertygrid-editor-collapsed dx-collapsing-image" data-bind="template: \'dxrd-svg-collapsed\', css: { \'dx-image-expanded\': !collapsed() }"></div> \x3c!-- ko if: !!$data.textToSearch --\x3e <div class="dx-group-header-font" data-bind="searchHighlighting: { text: displayName, textToSearch: textToSearch }, attr: { \'title\': displayName }"></div> \x3c!-- /ko --\x3e \x3c!-- ko ifnot: !!$data.textToSearch --\x3e <div class="dx-group-header-font" data-bind="text: displayName, attr: { \'title\': displayName }"></div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: !isComplexEditor --\x3e \x3c!-- ko if: !!$data.textToSearch --\x3e <div class="propertygrid-editor-displayName" data-bind="searchHighlighting: { text: displayName, textToSearch: textToSearch }, attr: { \'title\': displayName }, css: { \'dx-field-label-required\': isRequired }, style: { fontWeight: isPropertyModified() ? \'Bold\' : \'\'}"></div> \x3c!-- /ko --\x3e \x3c!-- ko ifnot: !!$data.textToSearch --\x3e <div class="propertygrid-editor-displayName" data-bind="text: displayName, attr: { \'title\': displayName }, css: { \'dx-property-required\': isRequired }, style: { fontWeight: isPropertyModified() ? \'Bold\' : \'\'}"></div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> <div class="dx-field-value" data-bind="css: { \'dxd-border-accented\': $data.isPropertyHighlighted }"> <div data-bind="service: { name: \'createEditorAddOn\' }"></div> \x3c!-- ko if: templateName !== \'dx-emptyHeader\' --\x3e \x3c!-- ko lazy: { template: templateName } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div> </div> \x3c!-- ko if: isComplexEditor --\x3e <div class="dx-editor-content dx-accordion-content"> \x3c!-- ko if: (!$data.editorCreated || editorCreated) --\x3e \x3c!-- ko template: contentTemplateName --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e </div> </div>',"dx-emptyHeader":" ","dx-date":'<div class="dx-datebox-container"> <div data-bind="dxDateBox: getOptions({ value: value, closeOnValueChange: true, type: \'datetime\', disabled: disabled, dropDownOptions: { container: $root.getPopupContainer($element) } }), dxValidator: { validationRules: validationRules || [] }"></div> </div>',"dx-file":"<div data-bind=\"dxFileImagePicker: { value: value, placeholderId: 'File', disabled: disabled }\"></div>","dx-modificators":'<div class="dx-font-content"> <div class="dx-field"> <div class="dx-field-label dxd-text-primary" data-bind="styleunit: { \'paddingLeft\': padding }"></div> \x3c!-- ko with: value --\x3e <div class="dx-field-value"> <div class="dx-font-styles-content"> <div class="dx-font-style-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dx-image-fontstyle-bold" data-bind="css: { \'dxd-state-active\': bold(), \'dx-disabled-button\': $parent.disabled }, click: function() { if(!$parent.disabled()) { bold(!bold()); } }">\x3c!-- ko template: \'dxrd-svg-fontstyle-bold\'--\x3e\x3c!-- /ko --\x3e</div> <div class="dx-font-style-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dx-image-fontstyle-italic" data-bind="css: { \'dxd-state-active\': italic(), \'dx-disabled-button\': $parent.disabled }, click: function() { if(!$parent.disabled()) { italic(!italic()); } }">\x3c!-- ko template: \'dxrd-svg-fontstyle-italic\'--\x3e\x3c!-- /ko --\x3e</div> <div class="dx-font-style-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dx-image-fontstyle-underline" data-bind="css: { \'dxd-state-active\': underline(), \'dx-disabled-button\': $parent.disabled }, click: function() { if(!$parent.disabled()) { underline(!underline()); } }">\x3c!-- ko template: \'dxrd-svg-fontstyle-underline\'--\x3e\x3c!-- /ko --\x3e</div> <div class="dx-font-style-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dx-image-fontstyle-strikeout" data-bind="css: { \'dxd-state-active\': strikeout(), \'dx-disabled-button\': $parent.disabled }, click: function() { if(!$parent.disabled()) { strikeout(!strikeout()); } }">\x3c!-- ko template: \'dxrd-svg-fontstyle-strikeout\'--\x3e\x3c!-- /ko --\x3e</div> </div> </div> \x3c!-- /ko --\x3e </div> </div>',"dx-image":"<div data-bind=\"dxFileImagePicker: { value: value, placeholderId: 'Image', accept: 'image/*', type: 'img', disabled: disabled }\"></div>","dx-numeric":'<div data-bind="dxNumberBox: getOptions({ value:value, showSpinButtons:true, disabled:disabled }), dxValidator: { validationRules: validationRules || [] }"></div>',"dx-number-editor":'<div data-bind="dxTextBox: getOptions({ value: value, disabled: disabled }), dxValidator: { validationRules: validationRules || [] }"></div>',"dx-text":'\x3c!-- ko if: $data.validationRules --\x3e <div data-bind="dxTextBox: getOptions({ value: value, disabled: disabled }), dxValidator: getValidatorOptions($data.validatorOptions || { validationRules: validationRules || [] })"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: !$data.validationRules --\x3e <div data-bind="dxTextBox: getOptions({ value: value, disabled: disabled })"></div> \x3c!-- /ko --\x3e',"dx-string-array":'<div class="dx-field" data-bind="css: { \'dxd-border-accented\': $data.isPropertyHighlighted }"> <div class="dx-string-array-container dx-texteditor dx-multiline"> <textarea class="dx-string-array-textarea dx-texteditor-input" data-bind="value: value, disable: disabled"></textarea> </div> </div>',"dx-propertieseditor":'<div data-bind="css: { \'dx-rtl\' : rtl }"> <div class="dx-editors"> <div class="dx-fieldset"> \x3c!-- ko foreach: getEditors() --\x3e \x3c!-- ko template: editorTemplate --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div> </div>',"dx-objectEditorContent":"\x3c!-- ko if: visible --\x3e <div data-bind=\"template: { name: 'dx-propertieseditor', data: viewmodel }\"></div> \x3c!-- /ko --\x3e","dx-collectioneditor":'<div class="dx-collectioneditor"> <div data-bind="dxdAccordion: { collapsed: collapsed, alwaysShow: alwaysShow }"> <div class="dx-collectioneditor-header dx-accordion-header"> <div class="dx-editor-header"> <div class="dx-field"> \x3c!-- ko if: showButtons--\x3e <div class="dx-collectioneditor-actions-wrapper"> \x3c!-- ko if: isVisibleButton(\'delete\') --\x3e <div class="dx-collectioneditor-action" data-bind="dxButtonWithTemplate: { onClick: remove, disabled: isDisabledButton(\'delete\'), icon: \'dxrd-svg-operations-remove\', iconClass: \'dx-image-remove\' }, attr: { title: getDisplayTextButton(\'delete\') }"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: isVisibleButton(\'add\') --\x3e <div class="dx-collectioneditor-action" data-bind="dxButtonWithTemplate: { onClick: add, disabled: isDisabledButton(\'add\'), icon: \'dxrd-svg-operations-add\', iconClass: \'dx-image-add\' }, attr: { title: getDisplayTextButton(\'add\') }"></div> \x3c!-- /ko --\x3e <div class="dx-collectioneditor-action-separator"></div> \x3c!-- ko if: isVisibleButton(\'down\') --\x3e <div class="dx-collectioneditor-action" data-bind="dxButtonWithTemplate: { onClick: down, disabled: isDisabledButton(\'down\'), icon: \'dxrd-svg-operations-movedown\', iconClass: \'dx-image-movedown\' }, attr: { title: getDisplayTextButton(\'down\') }"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: isVisibleButton(\'up\') --\x3e <div class="dx-collectioneditor-action" data-bind="dxButtonWithTemplate: { onClick: up, disabled: isDisabledButton(\'up\'), icon: \'dxrd-svg-operations-moveup\', iconClass: \'dx-image-moveup\' }, attr: { title: getDisplayTextButton(\'up\') }"></div> \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e \x3c!-- ko if: displayName --\x3e <div class="dx-collectioneditor-header-text dxd-text-primary" data-bind="styleunit: { \'paddingLeft\': padding }"> <div class="propertygrid-editor-collapsed dx-collapsing-image" data-bind="template: \'dxrd-svg-collapsed\', css: { \'dx-image-expanded\': !collapsed() }"></div> <div class="dx-group-header-font dxd-text-primary" data-bind="text: displayName, attr: { title: displayName }"></div> </div> \x3c!-- /ko --\x3e </div> </div> </div> <div class="dx-accordion-content"> <div data-bind="dxScrollView: { showScrollbar: \'onHover\', disabled: !showScroll, useNative: false, scrollByThumb: true }"> \x3c!-- ko if: values().length === 0 && showButtons --\x3e <div class="dx-collectioneditor-empty dxd-empty-area-placeholder-text-color dxd-text-info"> <span class="dx-collectioneditor-empty-text" data-bind="text: getDisplayTextEmptyArray()"></span> </div> \x3c!-- /ko --\x3e \x3c!-- ko if: values().length !== 0 --\x3e <div class="dx-collectioneditor-items" data-bind="foreach: values"> <div data-bind="with: $parent.createCollectionItemWrapper($parents[1], $index, $element)"> <div class="dx-collectioneditor-item-container dxd-button-back-color dxd-state-normal dxd-back-highlighted" data-bind="dxclick: $parents[1].select, css: { \'dxd-state-selected\' : $parents[1].selectedIndex() === $index() }"> <div class="dx-collection-item"></div> </div> </div> </div> \x3c!-- /ko --\x3e </div> </div> </div> </div>',"dx-expressioneditor-main":'<div class="dx-expression-tree"> \x3c!-- ko if: !aceAvailable --\x3e <div class="dx-expressioneditor-textarea dxd-border-secondary dxd-back-primary2" data-bind="dxTextArea: { value: textAreaValue, isValid: isValid, spellcheck: false, onKeyUp: function() { isValid(true); } }"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: aceAvailable --\x3e <div class="dx-expressioneditor-textarea dxd-border-secondary dxd-back-primary2" data-bind="dxAceEditor: { value: textAreaValue, editorContainer: editorContainer, theme: theme, options: aceOptions, additionalOptions: additionalOptions, callbacks: callbacks }"></div> \x3c!-- /ko --\x3e <div class="dx-expressioneditor-tools"> \x3c!-- ko with: tools--\x3e <div class="dx-expressioneditor-tools-tabs"> \x3c!-- ko foreach: toolBox--\x3e <div class="dx-expressioneditor-tools-tab dxd-back-primary2" data-bind="style: { width: width }, visible: visible"> \x3c!-- ko if: $data.templateName --\x3e \x3c!-- ko template: { name: $data.templateName }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko--\x3e </div> \x3c!-- /ko--\x3e </div> </div>',"dx-expressioneditor":'<div> <div class="no-margin-right" data-bind="dxEllipsisEditor: { value: displayValue, buttonAction: function() { popupVisible(true); }, disabled: disabled, isValid: modelValueValid }"></div> \x3c!-- ko template: \'dx-expressioneditor-popup\'--\x3e \x3c!--/ko--\x3e </div>',"dx-expressioneditor-popup":'<div class="dx-expressioneditor dx-popup-general" data-bind="dxPopup: { showTitle: true, title: title(), visible: popupVisible, toolbarItems: buttonItems, showCloseButton: true, fullScreen: false, height: \'600px\', width: \'645px\', container: getPopupContainer($element), position: { of: getPopupContainer($element)}, onShown: onShown }"> \x3c!-- ko if: popupVisible --\x3e \x3c!-- ko template: "dx-expressioneditor-main" --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>',"dx-expressioneditor-categories":'<div class="dx-expressioneditor-tools-tab-content-wrapper dxd-border-secondary " data-bind="dxScrollView: { showScrollbar: \'onHover\' }"> \x3c!-- ko foreach: content --\x3e \x3c!-- ko if: $data.templateName --\x3e \x3c!-- ko template: $data.templateName--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko ifnot: $data.templateName --\x3e <div class="dx-expressioneditor-tools-tab-category dxd-list-item-back-color dxd-back-highlighted" data-bind="css: {\'dxd-state-selected\': content.isSelected }, text: displayName, dxclick: function() { $parent.click($data.content) }"> </div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>',"dx-expressioneditor-category-accordion":'<div class="dx-fieldset" style="margin: 0;"> <div data-bind="dxdAccordion: { collapsed: collapsed }"> <div class="dx-accordion-header dx-expressioneditor-tools-tab-accordion-header dxd-list-item-back-color dxd-back-highlighted" data-bind="css: {\'dxd-state-selected\': $data.isSelected }, dxclick: function() { $data.updateContent($data.allItems(), $data.isSelected); $parent.click($data.content) }"> <div class=" dx-collapsing-image" data-bind="template: \'dxrd-svg-collapsed\', css: { \'dx-image-expanded\': !collapsed() }" style="display:inline-block;"></div> <span class="dx-expressioneditor-tools-tab-header" data-bind="text: displayName"></span> </div> <div class="dx-accordion-content"> \x3c!-- ko foreach: items--\x3e <div class="dx-expressioneditor-tools-tab-item dxd-text-primary dxd-list-item-back-color dxd-back-highlighted" data-bind="css: {\'dxd-state-selected\': isSelected }, text: $data.display, dxclick: function() { $parent.updateContent($data.data, $data.isSelected); $parents[1].click($parent.content); }"></div> \x3c!-- /ko --\x3e </div> </div> </div>',"dx-expressioneditor-description":'<div class="dx-expressioneditor-tools-tab-content-wrapper dxd-border-secondary " data-bind="dxScrollView: { showScrollbar: \'onHover\' }"> <div class="dx-expressioneditor-description dxd-text-primary" data-bind="text: content"></div> </div>',"dx-expressioneditor-fields":'<div class="dx-expressioneditor-fields"> <div data-bind="treeListSearchPanel: { controllers: [ ko.unwrap($data.parameters) ? ko.unwrap($data.parameters).treeListController : ko.unwrap($data.parameters), ko.unwrap($data.fields) ? ko.unwrap($data.fields).treeListController : ko.unwrap($data.fields) ] }"> </div> <div class="dx-expressioneditor-tools-tab-content-wrapper dxd-border-secondary " data-bind="dxScrollView: { showScrollbar: \'onHover\' }"> \x3c!-- ko if: fields --\x3e <div class="dx-treelist-wrapper" data-bind="treelist: fields"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: $data.parameters --\x3e <div class="dx-treelist-wrapper" data-bind="treelist: parameters"></div> \x3c!-- /ko --\x3e </div> </div>',"dx-ee-treelist-item":'<div class="dx-treelist-item dxd-list-item-back-color dxd-back-highlighted" data-bind="visible: visible, event: { dblclick: function() { actions[0].clickAction($element); }}, styleunit: padding, css: { \'dx-treelist-item-selected dxd-state-selected\': isSelected }"> <div class="dx-treelist-item-images"> \x3c!-- ko if: hasItems --\x3e <div class="dx-treelist-collapsedbutton" data-bind="css: nodeImageClass, template: \'dxrd-svg-collapsed\', click: toggleCollapsed"></div> \x3c!-- /ko --\x3e \x3c!-- ko ifnot: hasItems --\x3e <div class="dx-treelist-collapsedbutton"></div> \x3c!-- /ko --\x3e <div class="dx-treelist-image" data-bind="css: $data.imageClassName, template: {name: $data.imageTemplateName, if: !!ko.unwrap($data.imageTemplateName)}, attr: { title: text }"> </div> </div> <div class="dx-treelist-caption"> <div class="dx-treelist-selectedcontent" data-bind="click: toggleSelected"> \x3c!-- ko template: { name: \'dx-treelist-item-text-content\' } --\x3e \x3c!-- /ko --\x3e </div> </div> </div>',"dx-expressioneditor-selectedcontent":"\x3c!-- ko with: content --\x3e \x3c!-- ko template: $data--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e","dx-expressioneditor-collection":'<div class="dx-expressioneditor-tools-tab-content-wrapper dxd-border-secondary" data-bind="dxScrollView: { showScrollbar: \'onHover\' }"> \x3c!-- ko foreach: items --\x3e <div class="dx-expressioneditor-tools-tab-item dxd-list-item-back-color dxd-text-primary dxd-back-highlighted" data-bind="text: $data.displayName || $data.text, css: { \'dx-expressioneditor-state-selected dxd-state-selected\': $parent.selectedItem() === $data }, dxclick: function() { $parent.selectedItem($data); $parents[2].click($data); }, event: { dblclick: function() { $parents[2].dblclick($data, $element); } }"></div> \x3c!-- /ko --\x3e </div>',"dx-expressioneditor-collection-function":'<div class="dx-expressioneditor-collection-function"> <div class="dx-expressioneditor-collection-function-search"> <div data-bind="dxTextBox: { value: textToSearch, showClearButton: true, valueChangeEvent: \'keyup\', placeholder: $parents[2].searchPlaceholder() }"></div> </div> <div class="dx-expressioneditor-collection-function-items dxd-border-secondary" data-bind="dxScrollView: { showScrollbar: \'onHover\' }"> \x3c!-- ko foreach: availableItems --\x3e <div class="dx-expressioneditor-tools-tab-item dxd-list-item-back-color dxd-text-primary dxd-back-highlighted" data-bind="css: { \'dx-expressioneditor-state-selected dxd-state-selected\': $parent.selectedItem() === $data }, dxclick: function() { $parent.selectedItem($data); $parents[2].click($data); }, event: { dblclick: function() { $parents[2].dblclick($data, $element); } }, searchHighlighting: { text: $data.displayName || $data.text, textToSearch: $parent.textToSearch }"></div> \x3c!-- /ko --\x3e </div> </div>',"dx-filtereditor-content":"<div class=\"dx-filtereditor-tree-container\" data-bind=\"css: { 'advanced': advancedMode }\"> \x3c!-- ko template: 'dx-filtereditor-content-tree' --\x3e \x3c!-- /ko --\x3e </div> <div class=\"dx-filtereditor-text-container\" data-bind=\"css: { 'advanced': advancedMode }, visible: textVisible\"> \x3c!-- ko template: 'dx-filtereditor-content-text'--\x3e \x3c!-- /ko --\x3e </div>","dx-filtereditor-content-plain":'<div class="dx-filtereditor-plain-advanced" data-bind="dxCheckBox: { value: advancedMode, text: advancedModeText }"></div> <div class="dx-filtereditor-plain-content" data-bind="style: { height: plainContentHeightPerc }"> <div class="dx-filtereditor-text-container" data-bind="css: { \'advanced\': advancedMode }, style: { height: textContentHeightPerc }"> \x3c!-- ko template: \'dx-filtereditor-content-text\'--\x3e \x3c!-- /ko --\x3e </div> <div class="dx-filtereditor-tree-container" data-bind="css: { \'advanced\': advancedMode }, style: { height: treeContentHeightPerc }"> \x3c!-- ko template: \'dx-filtereditor-content-tree\' --\x3e \x3c!-- /ko --\x3e </div> </div>',"dx-filtereditor-content-text":'\x3c!-- ko if: !aceAvailable --\x3e <div class="dx-filtereditor-text" data-bind="dxTextArea: { value: displayValue, isValid: isValid, onInput: onInput, spellcheck: false }, cacheElement: { action: function(element) { cacheElement(element) } }"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: aceAvailable --\x3e <div class="dx-filtereditor-text dx-texteditor dx-textarea dx-editor-outlined" data-bind="css: {\'dx-invalid\': !$data.isValid(), \'dx-state-focused\': textFocused }"> <div class="dx-texteditor-container"> <div class="dx-filtereditor-ace dxd-back-primary2" data-bind="dxAceEditor: { value: $data.displayValue, theme: helper.aceTheme, editorContainer: editorContainer, options: aceOptions, additionalOptions: additionalOptions }"></div> <div class="dx-texteditor-buttons-container"></div> </div> </div> \x3c!-- /ko --\x3e',"dx-filtereditor-content-tree":'<div class="dx-filtereditor-tree dxd-border-secondary" data-bind="dxScrollView: { showScrollbar: \'onHover\', direction: \'both\' }"> \x3c!-- ko with: operandSurface --\x3e \x3c!-- ko template: { name: $data.templateName, data: $data}--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- ko ifnot: isSurfaceValid --\x3e <div class="dx-filtereditor-tree-lockscreen" data-bind="dxclick: function() { $data.advancedMode(true); }"> <div class="dx-filtereditor-tree-lockscreen-content"> <div class="dx-filtereditor-tree-lockscreen-content-text" data-bind="text: invalidMessage()"> </div> </div> </div> \x3c!-- /ko --\x3e',"dx-filtereditor":'<div> <div class="no-margin-right" data-bind="dxEllipsisEditor: { value: modelDisplayValue, isValid: modelValueIsValid, disabled: disabled, buttonAction: function() { popupVisible(true); } }"></div> \x3c!-- ko template: \'dx-filtereditor-popup\' --\x3e \x3c!-- /ko --\x3e </div>',"dx-filtereditor-advanced":"<div class=\"dx-filtereditor\" style=\"width: 100%; height: 100%;\" data-bind=\"style: { pointerEvents: $data.options().disabled() ? 'none' : '' }\"> \x3c!-- ko template: 'dx-filtereditor-content' --\x3e \x3c!-- /ko --\x3e \x3c!-- ko template: 'dx-filtereditor-content-popups' --\x3e \x3c!-- /ko --\x3e </div>","dx-filtereditor-plain":"<div class=\"dx-filtereditor\" style=\"width: 100%; height: 100%;\" data-bind=\"style: { pointerEvents: $data.options().disabled() ? 'none' : '' }\"> \x3c!-- ko template: 'dx-filtereditor-content-plain' --\x3e \x3c!-- /ko --\x3e \x3c!-- ko template: 'dx-filtereditor-content-popups' --\x3e \x3c!-- /ko --\x3e </div>","dx-filtereditor-aggregate-common":'\x3c!-- ko with: property--\x3e \x3c!-- ko template: { name: templateName, data: $data }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e <div data-bind="service: { name: \'createChangeType\' }"></div> \x3c!-- ko if: $data.aggregatedExpression() --\x3e <div class="criteria-operator-text dxd-filter-editor-text-color">(</div> \x3c!-- ko with: aggregatedExpression--\x3e \x3c!-- ko template: { name: templateName, data: $data }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e <div class="criteria-operator-text dxd-filter-editor-text-color">)</div> \x3c!-- /ko --\x3e',"dx-filtereditor-aggregate":'<div class="criteria-operator-group"> <div class="criteria-operator-group-item"> <div class="criteria-operator-action" data-bind="dxclick: function() { $data.remove && $data.remove(); }"> <div class="criteria-operator-action-image dx-image-filtereditor-remove" data-bind="visible: !!$data.canRemove">\x3c!-- ko template: \'dxrd-svg-filtereditor-remove\' --\x3e\x3c!-- /ko --\x3e</div> </div> \x3c!-- ko template: { name: \'dx-filtereditor-aggregate-common\' }--\x3e \x3c!-- /ko --\x3e </div> <div class="criteria-operator-content"> \x3c!-- ko with: condition--\x3e \x3c!-- ko template: { name: templateName, data: $data }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div>',"dx-filtereditor-between":'<div class="criteria-operator-group"> <div class="criteria-operator-group-item"> <div class="criteria-operator-action" data-bind="dxclick: function() { $data.remove && $data.remove(); }"> <div class="criteria-operator-action-image dx-image-filtereditor-remove" data-bind="visible: !!$data.canRemove">\x3c!-- ko template: \'dxrd-svg-filtereditor-remove\' --\x3e\x3c!-- /ko --\x3e</div> </div> \x3c!-- ko with: property--\x3e \x3c!-- ko template: { name: templateName, data: $data }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e <div data-bind="service: { name: \'createChangeType\' }"></div> \x3c!-- ko with: begin--\x3e \x3c!-- ko template: { name: templateName, data: $data }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e <div class="criteria-operator-text dxd-filter-editor-text-color">and</div> \x3c!-- ko with: end--\x3e \x3c!-- ko template: { name: templateName, data: $data }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div>',"dx-filtereditor-binary":'<div class="criteria-operator-group"> <div class="criteria-operator-group-item"> <div class="criteria-operator-action" data-bind="dxclick: function() { $data.remove && $data.remove(); }"> <div class="criteria-operator-action-image dx-image-filtereditor-remove" data-bind="visible: !!$data.canRemove">\x3c!-- ko template: \'dxrd-svg-filtereditor-remove\' --\x3e\x3c!-- /ko --\x3e</div> </div> \x3c!-- ko with: leftOperand--\x3e \x3c!-- ko template: { name: templateName, data: $data }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e <div data-bind="service: { name: \'createChangeType\' }"></div> \x3c!-- ko with: rightOperand--\x3e \x3c!-- ko template: { name: templateName, data: $data }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div>',"dx-filtereditor-common":'\x3c!-- ko template: contentTemplateName --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: $data.leftPart && $data.leftPart.condition --\x3e <div class="criteria-operator-content"> \x3c!-- ko with: leftPart--\x3e \x3c!-- ko with: condition--\x3e \x3c!-- ko template: { name: templateName, data: $data }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e',"dx-filtereditor-function-lightweight":'<div class="criteria-operator-text dxd-filter-editor-text-color" data-bind="css: css"> <div class="criteria-operator-text dxd-filter-editor-text-color" data-bind="text: displayType"></div> <div data-bind="service: { name: \'createChangeValueType\' }"></div> </div>',"dx-filtereditor-function":'<div class="criteria-operator-group"> <div class="criteria-operator-group-item"> <div class="criteria-operator-action" data-bind="dxclick: function() { $data.remove && $data.remove(); }"> <div class="criteria-operator-action-image dx-image-filtereditor-remove" data-bind="visible: !!$data.canRemove">\x3c!-- ko template: \'dxrd-svg-filtereditor-remove\' --\x3e\x3c!-- /ko --\x3e</div> </div> \x3c!-- ko template: { name: $data.leftPart.templateName, data: $data.leftPart }--\x3e \x3c!-- /ko --\x3e <div data-bind="service: { name: \'createChangeType\' }"></div> \x3c!-- ko foreach: rightPart --\x3e \x3c!-- ko template: { name: $data.templateName, data: $data }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div>',"dx-filtereditor-group":'<div class="criteria-operator-group"> <div class="criteria-operator-group-item"> <div class="criteria-operator-action" data-bind="dxclick: function() { $data.remove && $data.remove(); }"> <div class="criteria-operator-action-image dx-image-filtereditor-remove" data-bind="visible: !!$data.canRemove">\x3c!-- ko template: \'dxrd-svg-filtereditor-remove\' --\x3e\x3c!-- /ko --\x3e</div> </div> <div class="criteria-operator-item"> <div data-bind="service: { name: \'createChangeType\' }"></div> </div> <div data-bind="service: { name: \'createAddButton\' }"></div> </div> <div class="criteria-operator-content"> \x3c!-- ko foreach: operands --\x3e \x3c!-- ko template: { name: templateName, data: $data } --\x3e \x3c!-- /ko--\x3e \x3c!-- /ko --\x3e </div> </div>',"dx-filtereditor-in":'<div class="criteria-operator-group"> <div class="criteria-operator-group-item"> <div class="criteria-operator-action" data-bind="dxclick: function() { $data.remove && $data.remove(); }"> <div class="criteria-operator-action-image dx-image-filtereditor-remove" data-bind="visible: !!$data.canRemove">\x3c!-- ko template: \'dxrd-svg-filtereditor-remove\' --\x3e\x3c!-- /ko --\x3e</div> </div> \x3c!-- ko with: criteriaOperator--\x3e \x3c!-- ko template: { name: templateName, data: $data }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e <div data-bind="service: { name: \'createChangeType\' }"></div> \x3c!-- ko if: $data.operands().length > 1--\x3e <div class="criteria-operator-item criteria-operator-text dxd-filter-editor-text-color">(</div> <div class="criteria-operator-item"> \x3c!-- ko foreach: $data.operands() --\x3e \x3c!-- ko template: { name: $data.templateName, data: $data }--\x3e \x3c!-- /ko --\x3e <div class="criteria-operator-item criteria-operator-text dxd-filter-editor-text-color">,</div> \x3c!-- /ko --\x3e </div> <div class="criteria-operator-item criteria-operator-text dxd-filter-editor-text-color">)</div> \x3c!-- /ko --\x3e \x3c!-- ko if: $data.operands().length == 1--\x3e \x3c!-- ko template: { name: $data.operands()[0].templateName, data: $data.operands()[0] }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e <div class="criteria-operator-action" data-bind="dxclick: addValue"> <div class="criteria-operator-action-image dx-image-filtereditor-add">\x3c!-- ko template: \'dxrd-svg-filtereditor-add\' --\x3e\x3c!-- /ko --\x3e</div> </div> </div> </div>',"dx-filtereditor-parameter":'<div class="criteria-operator-text dxd-filter-editor-text-color" data-bind="css: css"> <div data-bind="service: { name: \'createChangeParameter\' }"></div> \x3c!-- ko if: $data.canChange --\x3e <div data-bind="service: { name: \'createChangeValueType\' }"></div> \x3c!-- /ko --\x3e </div>',"dx-filtereditor-property":'<div class="criteria-operator-text dxd-filter-editor-text-color" data-bind="css: css"> <div data-bind="service: { name: \'createChangeProperty\' }"></div> \x3c!-- ko if: $data.canChange --\x3e <div data-bind="service: { name: \'createChangeValueType\' }"></div> \x3c!-- /ko --\x3e </div>',"dx-filtereditor-unary":'\x3c!-- ko if: $data.operand().reverse --\x3e \x3c!-- ko template: {name: $data.operand().templateName, data: $data.operand() }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko ifnot: $data.operand().reverse --\x3e <div class="criteria-operator-group"> <div class="criteria-operator-group-item"> <div class="criteria-operator-action" data-bind="dxclick: function() { $data.remove && $data.remove(); }"> <div class="criteria-operator-action-image dx-image-filtereditor-remove" data-bind="visible: !!$data.canRemove">\x3c!-- ko template: \'dxrd-svg-filtereditor-remove\' --\x3e\x3c!-- /ko --\x3e</div> </div> \x3c!-- ko with: operand--\x3e <div class="criteria-operator-item"> \x3c!-- ko template: { name: templateName, data: $data }--\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e <div data-bind="service: { name: \'createChangeType\' }"></div> </div> </div> \x3c!-- /ko --\x3e',"dx-filtereditor-not":"\x3c!-- ko with: operand--\x3e \x3c!-- ko template: { name: templateName, data: $data }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e","dx-filtereditor-value":'<div class="criteria-operator-item" data-bind="visible: isEditable"> \x3c!-- ko if: $data.items.length === 0 --\x3e \x3c!-- ko if: $data.specifics() === "string" || $data.specifics() === "guid" --\x3e <div class="criteria-operator-item-editor" data-bind="dxTextBox: { value: _value, onFocusOut: function() { isEditable(false); } }, focus: { on: isEditable }"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: $data.specifics() === "bool" --\x3e <div class="criteria-operator-item-editor" data-bind="focus: isEditable, dxLocalizedSelectBox: { dataSource: [ { val: \'True\', text: \'Yes\', localizationId: \'AnalyticsCoreStringId.ParametersPanel_True\' }, { val: \'False\', text: \'No\', localizationId: \'AnalyticsCoreStringId.ParametersPanel_False\' }], valueExpr: \'val\', displayExpr: \'text\', value: _value, onFocusOut: function() { isEditable(false); }, dropDownOptions: { container: $root.getPopupContainer($element) } }"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: $data.specifics() === "date" --\x3e <div class="criteria-operator-item-editor" data-bind="focus: isEditable, dxDateBox: { value: _value, closeOnValueChange: true, type: \'date\', onFocusOut: function() { isEditable(false); }, dropDownOptions: { container: $root.getPopupContainer($element) } }"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: $data.specifics() !== "string" && $data.specifics() !== "bool" && $data.specifics() !== "date" && $data.specifics() !== "guid" --\x3e <div class="criteria-operator-item-editor" data-bind="dxTextBox: getNumberEditorOptions(), focus: { on: isEditable }"></div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: $data.items.length > 0 && typeof $data.items[0] === "object" --\x3e <div class="criteria-operator-item-editor" data-bind="focus: isEditable, dxSelectBox: { value: _value, dataSource: dataSource, valueExpr: \'value\', displayExpr: \'display\', searchEnabled: true, onFocusOut: function() { isEditable(false); }}, dropDownOptions: { container: $root.getPopupContainer($element) }"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: $data.items.length > 0 && typeof $data.items[0] !== "object" --\x3e <div class="criteria-operator-item-editor" data-bind="focus: isEditable, dxSelectBox: { value: _value, dataSource: dataSource, acceptCustomValue: true, searchEnabled: true, onFocusOut: function() { isEditable(false); }, dropDownOptions: { container: $root.getPopupContainer($element) }}"></div> \x3c!-- /ko --\x3e </div> <div class="criteria-operator-text dxd-filter-editor-text-color criteria-operator-item-value dxd-filter-editor-value-back-color" data-bind="visible: !isEditable()"> <div class="criteria-operator-text dxd-filter-editor-text-color clickable" data-bind="text: value, click: function() { isEditable(true); }, css: { \'default\': $data.isDefaultDisplay() } "></div> <div data-bind="service: { name: \'createChangeValueType\' }"></div> </div>',"dx-filtereditor-popup":"<div class=\"dx-filtereditor dx-popup-general\" data-bind=\"dxPopup: { showTitle: true, width: '95%', height: '95%', title: options() && options().title(), visible: popupVisible, onShown: function() { $data.focusText() }, toolbarItems: buttonItems, showCloseButton: true, container: getPopupContainer($element), position: { of: getPopupContainer($element) } }\"> \x3c!-- ko template: 'dx-filtereditor-content' --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- ko template: 'dx-filtereditor-content-popups' --\x3e \x3c!-- /ko --\x3e","dx-filtereditor-create":'<div class="criteria-operator-action" data-bind="dxclick: showPopup"> <div class="criteria-operator-action-image dx-image-filtereditor-add">\x3c!-- ko template: \'dxrd-svg-filtereditor-add\' --\x3e\x3c!-- /ko --\x3e</div> </div>',"dx-filtereditor-change":'<div class="criteria-operator-text dxd-filter-editor-text-color clickable" data-bind="text: target.displayType, dxclick: showPopup, css: target.css"></div>',"dx-filtereditor-changeParameter":'<div class="criteria-operator-text dxd-filter-editor-text-color clickable " data-bind="text: target.parameterName(), dxclick: showPopup, css: { \'dxd-state-selected\': target.isSelected }"></div>',"dx-filtereditor-changeProperty":'<div class="criteria-operator-text dxd-filter-editor-text-color clickable" data-bind="text: target.displayName, dxclick: showPopup, css: { \'dxd-state-selected\': target.isSelected }"></div>',"dx-filtereditor-changeValueType":'<div class="criteria-operator-action" data-bind="dxclick: showPopup"> <div class="criteria-operator-action-image-edit dx-image-filtereditor-edit">\x3c!-- ko template: \'dxrd-svg-filtereditor-edit\' --\x3e\x3c!-- /ko --\x3e</div> </div>',"dx-filtereditor-content-popups":"<div class=\"dx-selectbox-popup-wrapper dx-dropdownlist-popup-wrapper dx-filtereditor-criteriaoperator-popup dx-dropdowneditor-overlay\" data-bind=\"dxPopupWithAutoHeight: { width: '170px', height: '300px', focusStateEnabled: false, position: $data.rtl ? { my: 'right top', at: 'right bottom', of: popupService.target} : { my: 'left top', at: 'left bottom', of: popupService.target }, container: options().popupContainer, target: popupService.target, showTitle: false, showCloseButton: false, animation: {}, closeOnOutsideClick: true, shading: false, visible: popupService.visible }\"> \x3c!-- ko with: popupService--\x3e \x3c!-- ko with: data --\x3e \x3c!-- ko template: template--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>","dx-filtereditor-popup-common":'<div class="dx-widget" data-bind="dxScrollView: { showScrollbar: \'onHover\' }"> \x3c!-- ko foreach: data --\x3e \x3c!-- ko if: !$data.hidden --\x3e <div class="dx-filtereditor-popup-item dx-item dx-list-item dxd-list-item-back-color dxd-back-highlighted"> <span class="dx-item-content dx-list-item-content" data-bind="text: $data.displayText || $data.name, click: function() { $parent.click($data); } "></span> </div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>',"dx-filtereditor-popup-treelist":'<div class="dx-widget" data-bind="dxScrollView: { showScrollbar: \'onHover\' }"> <div class="dx-treelist-wrapper" data-bind="treelist: data"></div> </div>',"dx-format-string-list":'<div class="dx-format-string-list dxd-format-string-editor-border-color dxd-border-secondary"> <div data-bind="dxList: { items: $data.items, selectedItems: $data.selectedItems, onItemClick: $data.action, selectionMode: \'single\', activeStateEnabled: false }"> <div data-options="dxTemplate: { name: \'item\' }" class="dx-theme-border-color"> <div class="dx-image-filtereditor-remove" data-bind="click: $parent.removeItem, visible: $data.canRemove">\x3c!-- ko template: \'dxrd-svg-filtereditor-remove\' --\x3e\x3c!-- /ko --\x3e</div> <div class="dx-format-string-list-item" data-bind="text: $data.displayName"></div> </div> </div> </div>',"dx-format-string-edit-area":'<div class="dx-format-string-content-area-title dxd-text-primary" data-bind="text: getDisplayText(\'types\')"></div> <div class="dx-format-string-formats"> \x3c!-- ko template: { name: \'dx-format-string-list\', data: { items: patternList, action: setFormat, removeItem: removeCustomFormat, selectedItems: selectedFormats } } --\x3e \x3c!-- /ko --\x3e <div class="dx-format-string-customization"> <div class="dx-format-string-customization-add" data-bind="dxButton:{ onClick: addCustomFormat, text: getDisplayText(\'add\'), disabled: !canAddCustomFormat() }"></div> <div class="dx-format-string-customization-value dx-format-string-value dxd-back-primary" data-bind="dxTextBox: { value: formatResult, onInput: function(e) { updateInputText(\'formatResult\', e.component); } }"></div> </div> </div>',"dx-format-string-edit-area-general":'<div class="dx-format-string-content-area-title dxd-text-primary" data-bind="text: getDisplayText(\'prefix\')"></div> <div class="dx-format-string-customization-general-value dx-format-string-value" data-bind="dxTextBox: { value: formatPrefix, onInput: function(e) { updateInputText(\'formatPrefix\', e.component); } }"></div> <div class="dx-format-string-content-area-title dxd-text-primary" data-bind="text: getDisplayText(\'suffix\')"></div> <div class="dx-format-string-customization-general-value dx-format-string-value" data-bind="dxTextBox: { value: formatSuffix, onInput: function(e) { updateInputText(\'formatSuffix\', e.component); } }"></div>',"dx-format-string":'<div> <div class="no-margin-right" data-bind="dxEllipsisEditor: { value: value, disabled: disabled, buttonAction: function() { popupVisible(true); } }"></div> <div class="dx-format-string dx-popup-general" data-bind="dxPopup: { showTitle: true, width: \'95%\', height: \'95%\', minWidth: 650, title: getDisplayText(\'title\'), visible: popupVisible, toolbarItems: buttonItems, showCloseButton: true, container: getPopupContainer($element), position: { of: getPopupContainer($element) } }"> <div class="dx-format-string-content"> <div class="dx-format-string-content-area-left"> <div class="dx-format-string-content-area-title dxd-text-primary" data-bind="text: getDisplayText(\'category\')"></div> \x3c!-- ko template: { name: \'dx-format-string-list\', data: { items: types, action: setType, selectedItems: selectedTypes } } --\x3e \x3c!-- /ko --\x3e </div> <div class="dx-format-string-content-area-right"> \x3c!-- ko if: !isGeneralType --\x3e \x3c!-- ko template: \'dx-format-string-edit-area\' --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: isGeneralType --\x3e \x3c!-- ko template: \'dx-format-string-edit-area-general\' --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e <div class="dx-format-string-preview-area" data-bind="css: { \'dx-format-general\': isGeneralType }"> <div class="dx-format-string-preview-area-caption dxd-text-primary" data-bind="text: getDisplayText(\'preview\')"></div> <div class="dx-format-string-preview-value dxd-format-string-editor-border-color dxd-text-primary dxd-back-primary dxd-border-secondary"> <span class="dx-format-string-preview-value-inner" data-bind="text: previewString"></span> </div> </div> </div> </div> </div> </div>',"dx-treelist-item-actions":'\x3c!-- ko foreach: actions --\x3e \x3c!-- ko if: $data.templateName --\x3e \x3c!-- ko template: templateName --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: !$data.templateName --\x3e <div class="dx-treelist-action" data-bind="dxButtonWithTemplate: { onClick: function() { clickAction($parent); }, icon: ko.unwrap($data.imageTemplateName), iconClass: $data.imageClassName, visible: (ko.unwrap($data.visible) == undefined) || ko.unwrap($data.visible), disabled: $data.disabled && $data.disabled() }, attr: { title: $data.displayText && $data.displayText() || text }"></div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e',"dx-treelist-edit-action":"<div class=\"dx-treelist-action-edit dx-accordion-button\" data-bind=\"dxButtonWithTemplate: { icon: 'dxrd-svg-operations-edit', iconClass: 'dx-image-edit', onClick: function() { $parent.collapsed(!$parent.collapsed()); } }, visible: $parent.hasContent, attr: { title: $data.displayText() }\"></div>","dx-treelist-item-actions-with-edit":"\x3c!-- ko template: { name: 'dx-treelist-edit-action', data: treeListEditAction() } --\x3e \x3c!-- /ko --\x3e \x3c!-- ko template: 'dx-treelist-item-actions' --\x3e \x3c!-- /ko --\x3e","dx-treelist-item-ellipsis":'<div class="dx-treelist-item dxd-list-item-back-color dxd-back-highlighted" data-bind="styleunit: padding, click: renderNext"> <div class="dx-treelist-collapsedbutton"></div> <div class="dx-treelist-caption"> <div class="dx-treelist-selectedcontent"> <div class="dx-treelist-text-wrapper"> <div class="dx-treelist-ellipsis-text dxd-text-accented dxd-hyperlink-color" data-bind="text: $data.text()"></div> </div> </div> </div> </div>',"dx-treelist-item":'<div data-bind="visible: visible"> \x3c!-- ko if: hasContent --\x3e \x3c!-- ko template: "dx-treelist-accordion-item" --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko ifnot: hasContent --\x3e \x3c!-- ko template: "dx-treelist-header-item" --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>',"dx-treelist-accordion-item":'<div data-bind="dxdAccordionExt: { collapsed: collapsed, lazyContentRendering: true }"> \x3c!-- ko template: "dx-treelist-header-item" --\x3e \x3c!-- /ko --\x3e <div class="dx-fieldset dx-accordion-content dxd-back-primary"> \x3c!-- ko with: data --\x3e \x3c!-- ko template: { name: contenttemplate } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div>',"dx-treelist-header-item":'<div class="dx-treelist-item dxd-list-item-back-color dxd-back-highlighted" data-bind="event: { dblclick: function() { $data.dblClickHandler ? $data.dblClickHandler($data) : $data.toggleCollapsed() } }, styleunit: padding, css: { \'dx-treelist-item-selected dxd-state-selected\': isSelected() || isMultiSelected() }"> \x3c!-- ko if: $data.hasItems--\x3e <div class="dx-treelist-collapsedbutton" data-bind="css: nodeImageClass, template: \'dxrd-svg-collapsed\', click: toggleCollapsed"></div> \x3c!-- /ko --\x3e \x3c!-- ko ifnot: $data.hasItems--\x3e <div class="dx-treelist-collapsedbutton"></div> \x3c!-- /ko --\x3e <div class="dx-treelist-caption"> \x3c!-- ko if: actions && actions.length > 0 --\x3e <div class="dx-treelist-action-container" data-bind="visible: isSelected"> \x3c!-- ko template: actionsTemplate() --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e \x3c!-- ko if: isDraggable --\x3e <div class="dx-treelist-selectedcontent" data-bind="click: toggleSelected, draggable: dragDropHandler"> \x3c!-- ko template: { name: \'dx-treelist-header-item-caption-content\' } --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e \x3c!-- ko ifnot: isDraggable --\x3e <div class="dx-treelist-selectedcontent" data-bind="click: toggleSelected"> \x3c!-- ko template: { name: \'dx-treelist-header-item-caption-content\' } --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e </div> </div>',"dx-treelist-item-text-content":'<div class="dx-treelist-text-wrapper"> \x3c!--ko if: treeListController.searchEnabled --\x3e <div class="dx-treelist-text dx-highlighted-search-text" data-bind="searchHighlighting: { text: text, textToSearch: treeListController.textToSearch, searchOptions: treeListController.searchOptions }, attr: { title: text }"></div> \x3c!-- /ko --\x3e \x3c!--ko ifnot: treeListController.searchEnabled --\x3e <div class="dx-treelist-text" data-bind="text: text, attr: { title: text }"></div> \x3c!-- /ko --\x3e </div>',"dx-treelist-header-item-caption-content":'<div class="dx-treelist-image" data-bind="css: $data.imageClassName, template: {name: $data.imageTemplateName, if: !!ko.unwrap($data.imageTemplateName)}, attr: { title: text }"> </div> \x3c!-- ko template: { name: \'dx-treelist-item-text-content\' } --\x3e \x3c!-- /ko --\x3e',"dx-treelist-item-with-hover":'<div data-bind="visible: visible"> \x3c!-- ko if: hasContent --\x3e \x3c!-- ko template: "dx-treelist-accordion-item-with-hover" --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko ifnot: hasContent --\x3e \x3c!-- ko template: "dx-treelist-header-item-with-hover" --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>',"dx-treelist-accordion-item-with-hover":'<div data-bind="dxdAccordionExt: { collapsed: collapsed, lazyContentRendering: true }"> \x3c!-- ko template: "dx-treelist-header-item-with-hover" --\x3e \x3c!-- /ko --\x3e <div class="dx-fieldset dx-accordion-content dxd-back-primary"> \x3c!-- ko with: data --\x3e \x3c!-- ko template: { name: contenttemplate } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div>',"dx-treelist-header-item-with-hover":'<div class="dx-background-inheritor dxd-back-highlighted dxd-state-selected"> <div class="dx-treelist-item dx-fontsize-reestablished dxd-list-item-back-color" data-bind="event: { dblclick: function() { $data.dblClickHandler ? $data.dblClickHandler($data) : $data.toggleCollapsed() }, mouseenter: mouseenter, mouseleave: mouseleave }, styleunit: padding, css: { \'dx-treelist-item-selected dxd-state-selected dxd-back-secondary\': isSelected() || isMultiSelected() }"> <div class="dx-treelist-collapsedbutton" data-bind="css: nodeImageClass, template: \'dxrd-svg-collapsed\', click: toggleCollapsed, style: { \'visibility\': hasItems ? \'visible\' : \'hidden\' }"></div> <div class="dx-treelist-caption"> \x3c!-- ko if: actions && actions.length > 0 --\x3e <div class="dx-treelist-action-container" data-bind="visible: $data.isSelected() || $data.isHovered()"> \x3c!-- ko template: actionsTemplate() --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e <div class="dx-treelist-selectedcontent" data-bind="click: toggleSelected, draggable: isDraggable ? dragDropHandler : null"> <div class="dx-treelist-image" data-bind="css: $data.imageClassName, template: {name: $data.imageTemplateName, if: !!ko.unwrap($data.imageTemplateName)}, attr: { title: text }"> </div> <div class="dx-treelist-text-wrapper"> <div class="dx-treelist-text" data-bind="text: text, attr: { title: text }"></div> </div> </div> </div> </div> </div>',"dx-treelist":"<div class=\"dx-treelist dxd-text-primary\"> \x3c!-- ko template: $data.visibleItems !== undefined ? 'dx-treelist-paginate' : 'dx-treelist-common' --\x3e \x3c!-- /ko --\x3e </div>","dx-treelist-search-panel":"<div class=\"dxrd-treelist-search-panel\" data-bind=\"dxTextBox: { mode: 'search', value:value, activeStateEnabled:false, focusStateEnabled:false, hoverStateEnabled:false, valueChangeEvent: 'keyup', showClearButton: true, placeholder: searchPlaceholder()}\"></div>","dx-treelist-common":"\x3c!-- ko foreach: items --\x3e \x3c!-- ko lazy: { resolver: resolver, innerBindings: { template: templateName } } --\x3e \x3c!-- /ko --\x3e <div data-bind=\"visible: !collapsed()\"> \x3c!-- ko template: { name: 'dx-treelist', data: $data } --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e","dx-treelist-paginate":"\x3c!-- ko foreach: visibleItems --\x3e \x3c!-- ko template: templateName --\x3e \x3c!-- /ko --\x3e <div data-bind=\"visible: !collapsed()\"> \x3c!-- ko template: { name: 'dx-treelist', data: $data } --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e","dxrd-borders":'<div class="dxrd-bordereditor" data-bind="dxBorderEditor: { value: value }"></div>',"dxrd-colorpicker":"<div data-bind=\"dxColorBox: { value: displayValue, editAlphaChannel: true, popupPosition: { collision: 'flipfit flipfit' }, disabled: disabled, dropDownOptions: { container: $root.getPopupContainer($element) } }\"></div>","dxrd-expressionstring":'\x3c!-- ko if: $data.value() --\x3e <div data-bind="dxExpressionEditor: getOptions({ options: value, fieldListProvider: $root.dataBindingsProvider, displayNameProvider: $root.displayNameProvider && $root.displayNameProvider() })"></div> \x3c!-- /ko --\x3e',"dxrd-field":'\x3c!-- ko displayNameExtender: { path: path, dataMember: value } --\x3e <div data-bind="dxFieldListPicker: { path: path, acceptCustomValue: true, value: value, displayValue: $displayName, itemsProvider: $root.dataBindingsProvider, treeListController: treeListController, disabled: disabled }"></div> \x3c!-- /ko --\x3e',"dxrd-filterstring":'\x3c!-- ko if: $data.value() --\x3e <div data-bind="dxFilterEditor: { options: value, fieldListProvider: $root.dataBindingsProvider, getDisplayNameByPath: $root.getDisplayNameByPath, displayNameProvider: $root.displayNameProvider && $root.displayNameProvider() }"></div> \x3c!-- /ko --\x3e',"dxrd-filterstringgroup":'\x3c!-- ko if: $data.value() --\x3e <div data-bind="dxFilterEditor: { options: value, fieldListProvider: $root.dataBindingsGroupProvider, getDisplayNameByPath: $root.getDisplayNameByPath, displayNameProvider: $root.displayNameProvider && $root.displayNameProvider() }"></div> \x3c!-- /ko --\x3e',"dxrd-formatstring":'<div data-bind="dxFormatEditor: { value: value, disabled: disabled, actions: $data.actions, customPatterns: $data.customPatterns }"></div>',"dxrd-guid":'<div data-bind="dxTextBox: getOptions({ value: value, disabled: disabled }), dxValidator: { validationRules: (validationRules || []) }"></div>',"dxrd-emptyHeader":" ","dxrd-objectEditorContent":"\x3c!-- ko if: $data.visible() && $data.editorCreated() --\x3e <div data-bind=\"template: { name: 'dx-propertieseditor', data: viewmodel }\"></div> \x3c!-- /ko --\x3e","dxrd-objectEditor":'<div data-bind="dxPropertyGrid: { target: ko.observable($data), level: $parent.level, textToSearch: $parent.textToSearch }"></div>',"dxrd-commonCollectionItem":'<div data-bind="dxPropertyGrid: { target: value, level: editor.level + 1, parentDisabled: editor.disabled }"></div>',"dxrd-objectVisitor":'\x3c!-- ko if: options --\x3e <div data-bind="treelist: options"></div> \x3c!-- /ko --\x3e',"dxd-snap-lines-holder":'<div class="dxd-snap-lines-holder"> <div class="dxd-snap-line dxd-snap-line-horizontal" data-bind="style: { transform: snapLineSurfaces[0].transform() }"></div> <div class="dxd-snap-line dxd-snap-line-horizontal" data-bind="style: { transform: snapLineSurfaces[1].transform() }"></div> <div class="dxd-snap-line dxd-snap-line-vertical" data-bind="style: { transform: snapLineSurfaces[2].transform() }"></div> <div class="dxd-snap-line dxd-snap-line-vertical" data-bind="style: { transform: snapLineSurfaces[3].transform() }"></div> </div>',"dxrd-surface-template-base":'\x3c!-- ko ifnot: isLoading --\x3e \x3c!-- ko with: surface --\x3e <div class="dxrd-surface-wrapper" data-bind="template: templateName, click: function(_, e) { $root.selection.clickHandler($data, e); e.stopPropagation(); }"> </div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: isLoading --\x3e <div class="dxrd-surface-wrapper"> <div style="text-align: center; padding-top: 25%;"> <div data-bind="dxLoadIndicator: { visible: isLoading() }"></div> </div> </div> \x3c!-- /ko --\x3e',"dxrd-designer":'<div data-bind="css: surfaceClass($element)"> <div class="dxrd-designer-wrapper dx-editors dxd-surface-back-color dxd-scrollbar-color" data-bind="visible: (!$data.designMode || designMode()), cssArray: [$data.rootStyle, { \'dx-rtl\' : $data.rtl, \'dx-ltr\': !$data.rtl }]"> \x3c!-- ko foreach: parts --\x3e \x3c!-- ko template: { name: templateName, data: model }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- ko if: ($data.addOns) --\x3e \x3c!-- ko foreach: addOns --\x3e \x3c!-- ko template: { name: templateName, data: model } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>',"dxrd-collectionactions-template":'<div class="dxrd-action-items-container"></div> <div class="dx-treelist-action" data-bind="dxButtonWithTemplate: { onClick: togglePopoverVisible, disabled: disabled, icon: ko.unwrap($data.imageTemplateName), iconClass: ko.unwrap($data.imageClassName) }, attr: { id: id, title: text }"></div> <div data-bind="dxPopup: { width: 235, height: \'auto\', position: { my: $root.rtl ? \'left top\': \'right top\', at: \'bottom\', of: (\'#\' + id) }, showTitle: false, showCloseButton: false, animation: {}, closeOnOutsideClick: true, container: ($data.getContainer || function(_e, selector) { return selector; })($element, \'.dxrd-action-items-container\'), shading: false, visible: popoverVisible }"> \x3c!-- ko foreach: actions --\x3e <div class="dxrd-action-item dxd-button-back-color dxd-state-normal dxd-back-highlighted" data-bind="dxclick: clickAction, css: { \'dxrd-disabled-button\': disabled }"> <div class="dxrd-action-item-image" data-bind="css: ko.unwrap($data.imageClassName), template: {name: ko.unwrap($data.imageTemplateName), if: !!ko.unwrap($data.imageTemplateName)}, attr: { title: $data.displayText && $data.displayText() || text }"> </div> </div> \x3c!-- /ko --\x3e </div>',"dxrd-menubutton-template-base":'<div class="dxrd-menu-container" style="position:relative; width:0; height:100%"></div> <div class="dxrd-menu-button dxd-toolbox-back-color dxd-border-primary dxd-back-primary2"> <div class="dxrd-menu-place" style="width:54px;"></div> <div class="dxrd-menu-button-image dxd-button-back-color dxd-state-normal dxd-back-highlighted" data-bind="dxclick: function(e) { if(stopPropagation) { stopPropagation = false; } else { toggleAppMenu() } }, template: \'dxrd-svg-menu-menu\', css: {\'dxd-state-active\': appMenuVisible }"></div> <div class="dxd-menu-back-color dxd-back-primary2" data-bind="dxPopup: { width: 250, height: \'100%\' , position: $data.rtl ? { my: \'right top\' , at: \'left top\' , offset: \'-10 0\' } : { my: \'left top\' , at: \'right top\' , offset: \'10 0\' }, showTitle: false, showCloseButton: false, container: getMenuPopupContainer($element), target: getMenuPopupTarget($element), animation: {}, closeOnOutsideClick: function(e) { var buttonClassName = \'dxrd-menu-button-image\'; var parentClassList = e.target.parentNode && e.target.parentNode.parentNode && e.target.parentNode.parentNode.classList; stopPropagation = (e.target.classList && e.target.classList.contains(buttonClassName)) || (parentClassList && parentClassList.contains(buttonClassName)); return true; }, shading: false, focusStateEnabled: false, visible: appMenuVisible }"> <div class="dxrd-menu-break dxd-popup-back-color dxd-back-primary2"></div> \x3c!-- ko foreach: actionLists.menuItems --\x3e <div class="dxrd-menu-item dxd-text-primary dxd-list-item-back-color dxd-back-highlighted" data-bind="dxclick: function(e) { if(disabled && !disabled() || !disabled) { $root.toggleAppMenu(); clickAction($root.model(), e); }}, css: { \'dxrd-disabled-button\': disabled }, visible: visible"> <div class="dxrd-menu-item-image" data-bind="css: ko.unwrap($data.imageClassName), template: {name: ko.unwrap($data.imageTemplateName), if: !!ko.unwrap($data.imageTemplateName)}, attr: { title: $data.displayText && $data.displayText() || text }"> </div> <div class="dxrd-menu-item-text" data-bind="text: $data.displayText && $data.displayText() || text, attr: { title: $data.displayText && $data.displayText() || text}"></div> <div class="dxrd-menu-item-separator" data-bind="visible: $data.hasSeparator"></div> </div> \x3c!-- /ko --\x3e </div> </div>',"dxrd-top-grid":'\x3c!-- ko if: popularVisible --\x3e <div class="dx-fieldset"> <div data-bind="dxdAccordion: { collapsed: collapsed }"> <div class="dxrd-group-header dx-accordion-header" data-bind="css: { \'dxrd-group-header-collapsed dxd-border-primary\': collapsed() }"> <div class="dx-collapsing-image" data-bind="template: \'dxrd-svg-collapsed\', css: { \'dx-image-expanded\': !collapsed() }" style="display:inline-block;"></div> <span class="dxrd-group-header-text" data-bind="text: $root.actionsGroupTitle()"></span> </div> <div class="dx-accordion-content dxd-back-primary"> \x3c!-- ko foreach: (contextActions || []) --\x3e \x3c!-- ko if: $data.templateName --\x3e \x3c!-- ko template: templateName --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: !$data.templateName --\x3e <div class="dxrd-properties-grid-action" data-bind="dxclick: function() { if($data.disabled && !$data.disabled() || !$data.disabled) { clickAction($root.editableObject()); } }, css: { \'dxrd-disabled-button\': $data.disabled && $data.disabled() }, visible: (ko.unwrap($data.visible) == undefined) || ko.unwrap($data.visible)"> <div class="dxrd-properties-grid-action-image dxd-button-back-color dxd-state-normal dxd-back-highlighted" data-bind="css: $data.imageClassName, template: {name: $data.imageTemplateName, if: !!ko.unwrap($data.imageTemplateName)}, attr: { title: $data.displayText && $data.displayText() || text }"> </div> </div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko with: popularProperties --\x3e <div style="position: relative" data-bind="template: { name: \'dx-propertieseditor\', data: $data }"></div> \x3c!-- /ko --\x3e </div> </div> </div> \x3c!-- /ko --\x3e',"dxrd-propertiestab":'<div class="dxrd-properties-wrapper" data-bind="visible: active() && visible()"> <div style="height:100%" class="dxd-text-primary"> <div class="dxrd-right-panel-header"> <span data-bind="text: text"></span> </div> \x3c!-- ko with: model --\x3e \x3c!-- ko if: $root.controlsStore.visible() --\x3e <div class="dx-property-grid-header"> <div class="dx-property-grid-header-content"> <div class="dx-property-grid-sorting-actions-group" data-bind="css: { \'dx-property-gread-search-collapsed\': isSearching }"> <div class="dxrd-properties-focused-item" data-bind="dxSelectBox: { dataSource: $root.controlsStore.dataSource, value: focusedItem, displayExpr: displayExpr, dropDownOptions: { container: $root.getPopupContainer($element) } }"></div> <div class="dx-property-grid-sorting-actions-container"> <div class="dx-property-grid-sorting-action dxd-button-back-color dxd-state-normal dxd-back-highlighted dxd-back-primary2" data-bind="css: { \'dxd-state-active dxd-state-no-hover\': !isSortingByGroups() }, dxButtonWithTemplate: { onClick: function() { $data.isSortingByGroups(false); }, icon: \'dxrd-svg-properties-sortingbyalphabet\', iconClass: \'image-sortingbyalphabet\' }"></div> <div class="dx-property-grid-sorting-action dxd-button-back-color dxd-state-normal dxd-back-highlighted dxd-back-primary2" data-bind="css: { \'dxd-state-active dxd-state-no-hover\': isSortingByGroups }, dxButtonWithTemplate: { onClick: function() { $data.isSortingByGroups(true); }, icon: \'dxrd-svg-properties-sortingbygroups\', iconClass: \'image-sortingbygroups\' }"></div> </div> </div> <div class="dx-property-grid-search-group dx-property-gread-search-collapsed" data-bind="css: { \'dx-property-gread-search-collapsed\': !isSearching() }"> <div class="dx-property-grid-sorting-action dxd-button-back-color dxd-state-normal dxd-back-highlighted dxd-back-primary2" data-bind="css: { \'dxd-state-active\': isSearching }, dxButtonWithTemplate: { onClick: switchSearchBox, icon: \'dxrd-svg-properties-search\', iconClass: \'image-search\' }"></div> <div class="dx-property-grid-search-box" data-bind="dxTextBox: { value: textToSearch, valueChangeEvent: \'keyup\', placeholder: searchPlaceholder(), showClearButton: true }, cacheElement: { action: function(element) { searchBox(element); } }"></div> </div> </div> </div> \x3c!-- /ko --\x3e <div class="dxrd-properties-grid dxd-border-primary" data-bind="dxScrollView: { showScrollbar: \'onHover\', useNative: false, scrollByThumb: true }, styleunit: { top: $root.controlsStore.visible() ? 80 : 40 }"> \x3c!-- ko template: { name: \'dxrd-top-grid\', data: { contextActions: $root.contextActions, popularProperties: $root.popularProperties, collapsed: ko.observable(false), popularVisible: $root.popularVisible() && isSortingByGroups(), actionsGroupTitle: $root.actionsGroupTitle } } --\x3e \x3c!-- /ko --\x3e <div data-bind="visible: isSortingByGroups"> \x3c!-- ko foreach: groups --\x3e <div class="dx-fieldset" data-bind="visible: visible"> <div data-bind="dxdAccordion: { collapsed: collapsed }"> <div class="dxrd-group-header dx-accordion-header" data-bind="css: { \'dxrd-group-header-collapsed dxd-border-primary\': collapsed() }"> <div class="dx-collapsing-image" data-bind="template: \'dxrd-svg-collapsed\', css: { \'dx-image-expanded\': !collapsed() }" style="display:inline-block;"></div> <span class="dxrd-group-header-text" data-bind="text: displayName()"></span> </div> <div class="dx-accordion-content dxd-back-primary"> \x3c!-- ko ifnot: editorsCreated --\x3e <div class="dx-accordion-content-loading-panel"> <div data-bind="dxLoadIndicator: { visible: !editorsCreated() }"></div> </div> \x3c!-- /ko --\x3e \x3c!-- ko if: $data.editorsRendered() --\x3e <div data-bind="visible: editorsCreated"> <div class="dx-editors"> \x3c!-- ko foreach: editors --\x3e \x3c!-- ko template: editorTemplate --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: ($index() === $parent.editors().length - 1 && $parent.editorsCreated(true)) --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div> \x3c!-- /ko --\x3e </div> </div> </div> \x3c!-- /ko --\x3e </div> <div class="dx-fieldset dxd-back-primary" data-bind="visible: !isSortingByGroups()"> <div data-bind="dxLoadIndicator: { visible: !allEditorsCreated() }"></div> \x3c!-- ko if: $data.editorsRendered() --\x3e <div data-bind="visible: allEditorsCreated"> <div class="dx-editors"> \x3c!-- ko foreach: $data.getEditors() --\x3e \x3c!-- ko template: editorTemplate --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: ($index() === $parent._editors().length - 1 && $parent.allEditorsCreated(true)) --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div> \x3c!-- /ko --\x3e </div> \x3c!-- ko template: \'dx-propertygrid-popupservice\' --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e </div> </div>',"dx-propertygrid-popupservice":"<div data-bind=\"dxPopup: { width: 250, height: 'auto', position: $data.rtl ? { my: 'left top', at: 'right top', of: popupService.target, collision: 'flipfit' } : { my: 'right top', at: 'left top', of: popupService.target, collision: 'flipfit' }, container: $root.getPopupContainer($element), target: popupService.target, showTitle: false, showCloseButton: false, animation: {}, closeOnOutsideClick: true, shading: false, visible: popupService.visible }\"> <div data-options=\"dxTemplate: { name: 'content' }\"> <div class=\"dxrd-editor-menu-caption dxd-text-primary\" data-bind=\"text: popupService.title, visible: popupService.title\"></div> <div class=\"dxd-button-back-color\" data-bind=\"dxMenu: { dataSource: popupService.actions, displayExpr: 'title', cssClass: 'dxrd-editor-menu', orientation: 'vertical', showFirstSubmenuMode: 'onHover', onSubmenuShowing: function(e) { e.submenu._overlay.option('container', $root.getPopupContainer($element)) } }\"> <div class=\"dxrd-editor-menu-item dxd-back-highlighted dxd-state-normal\" data-options=\"dxTemplate: { name: 'item' }\" data-bind=\"dxclick: action, css: { 'dxrd-editor-menu-item-separator dxd-border-primary': $parent.popupService.actions().length > 1 && $index === ($parent.popupService.actions().length - 1) }\"> <span class=\"dxd-text-primary dx-menu-item-text\" data-bind=\"attr: { title: title }, text: title\"></span> <div class=\"dx-menu-item-popout-container\" data-bind=\"visible: $data.items && $data.items.length\"><div class=\"dx-menu-item-popout\"></div></div> \x3c!--ko if: $data.customTemplate--\x3e \x3c!--ko template: $data.customTemplate--\x3e \x3c!--/ko--\x3e \x3c!--/ko--\x3e </div> </div> </div> </div>","dx-right-panel-lightweight":'<div class="dxrd-right-panel dx-shadow dxd-border-secondary dxd-property-grid-group-header-back-color dxd-back-primary2" data-bind="styleunit: { width: tabPanel.width }, css: tabPanel.cssClasses(), resizable: tabPanel.getResizableOptions($element, \'1px\', 325)"> \x3c!-- ko foreach: tabPanel.tabs --\x3e \x3c!-- ko lazy: { template: $data.template } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>',"dxrd-right-panel-template-base":'<div class="dx-shadow dxd-border-secondary" data-bind="styleunit: { width: tabPanel.headerWidth }, css: tabPanel.cssClasses({\'border\': !tabPanel.collapsed()})"> <div class="dxrd-right-panel-collapse dxd-back-primary dxd-button-back-color dxd-state-normal dxd-back-highlighted" data-bind="styleunit: { width: tabPanel.headerWidth }, css: tabPanel.cssClasses(), dxclick: function() { tabPanel.collapsed(!tabPanel.collapsed()); }, attr: { title: tabPanel.toggleCollapsedText }"> <div class="dxrd-right-panel-collapse-image" data-bind="css: tabPanel.toggleCollapsedImage().class, template: tabPanel.toggleCollapsedImage().template"></div> </div> <div class="dxrd-right-panel dxd-property-grid-group-header-back-color dxd-back-primary2" data-bind="styleunit: { width: tabPanel.width }, css: tabPanel.cssClasses(), resizable: tabPanel.getResizableOptions($element, \'50px\', 340)"> \x3c!-- ko foreach: tabPanel.tabs --\x3e \x3c!-- ko lazy: { template: $data.template } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> <div class="dxrd-right-tabs dxd-side-panel-tabs-back-color dxd-back-contrast" data-bind="css: tabPanel.cssClasses()"> \x3c!-- ko foreach: tabPanel.tabs --\x3e <div class="dxrd-tab-item dxd-side-panel-tab-back-color dxd-back-highlighted" data-bind="dxclick: function(s) { $parent.tabPanel.selectTab({ model: s }) }, css: { \'dxd-state-active dxd-state-no-hover\': active, \'dxrd-tab-item-disabled\': disabled }, attr: { title: text }, visible: visible"> <div class="dxrd-image-padding" data-bind="css: $data.imageClassName, template: {name: $data.imageTemplateName, if: !!ko.unwrap($data.imageTemplateName)}"> </div> </div> \x3c!-- /ko --\x3e </div> </div>',"dxrd-toolbar-template-base":'<div class="dxrd-toolbar-wrapper"> <div class="dxrd-toolbar" data-bind="template: {name: \'dxrd-toolbar-tmplt\', data: actionLists.toolbarItems }"></div> </div>',"dxrd-toolbar-tmplt":"\x3c!-- ko foreach: $data --\x3e \x3c!-- ko if: $data.templateName --\x3e \x3c!-- ko template: templateName --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: !$data.templateName --\x3e <div class=\"dxrd-toolbar-item\" data-bind=\"visible: visible\"> <div data-bind=\"template: {name: ko.unwrap($data.imageTemplateName), if: !!ko.unwrap($data.imageTemplateName)}, attr: { class: 'dxrd-toolbar-item-image dxd-button-back-color dxd-state-normal dxd-back-highlighted ' + (ko.unwrap($data.imageClassName) || ''), title: $data.displayText && $data.displayText() || text }, dxclick: function() { if((typeof $data.disabled === 'function') && !disabled() || !disabled) { clickAction($root.model && $root.model()); } }, css: {'dxrd-disabled-button': disabled, 'dxd-state-active': $data.selected }\"> </div> <div class=\"dxrd-toolbar-item-separator dxd-toolbar-separator-color dxd-border-secondary\" data-bind=\"visible: $data.hasSeparator\"></div> </div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e","dxrd-toolbox-template-base":'<div class="dxrd-toolbox-wrapper dxd-toolbox-back-color dxd-back-primary2" data-bind="dxScrollView: { showScrollbar: \'onHover\', scrollByContent: false, bounceEnabled: false, useNative: false, scrollByThumb: true }"> \x3c!-- ko foreach: toolboxItems --\x3e <div class="dxrd-toolbox-item" data-bind="attr: { title: displayName }"> <div class="dx-background-inheritor dxd-toolbox-item-back-color dxd-back-secondary"> <div class="dxrd-image-padding dx-fontsize-reestablished" data-bind="template: {name: $data.imageTemplateName, if: !!ko.unwrap($data.imageTemplateName)}, css: $data.imageClassName, draggable: $root.toolboxDragHandler"> </div> </div> </div> \x3c!-- /ko --\x3e </div>',"dxrd-zoom-select-template":'<div class="dxrd-toolbar-item-zoom" data-bind="visible: visible"> <div class="dxrd-toolbar-item-zoom-editor" data-bind="dxSelectBox: { items: zoomLevels, value: $data.zoom, displayExpr: function(val) { return Math.round((val || this.option(\'value\')) * 100) + \'%\'; }, displayCustomValue: true, acceptCustomValue: true, onCustomItemCreating: onCustomItemCreating, disabled: disabled, dropDownOptions: { container: $root.getPopupContainer($element) } }"></div> </div>',"dxrd-bordereditor":"<div class=\"bordereditor-content\"> \x3c!-- ko with: value--\x3e <div class=\"bordereditor-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dxrd-image-borders-none\" data-bind=\"template: 'dxrd-svg-properties-borders-none', css: { 'dxd-state-active': (!bottom() && !left() && !top() && !right()), 'dxrd-disabled-button': disabled }, click: function() { setNone() }\"></div> <div class=\"bordereditor-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dxrd-image-borders-all right-margin\" data-bind=\"template: 'dxrd-svg-properties-borders-all', css: { 'dxd-state-active': (bottom() && left() && top() && right()), 'dxrd-disabled-button': disabled }, click: function() { setAll() }\"></div> <div class=\"bordereditor-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dxrd-image-borders-left\" data-bind=\"template: 'dxrd-svg-properties-borders-left', css: { 'dxd-state-active': left(), 'dxrd-disabled-button': disabled }, click: function() { setValue('left') }\"></div> <div class=\"bordereditor-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dxrd-image-borders-top\" data-bind=\"template: 'dxrd-svg-properties-borders-top', css: { 'dxd-state-active': top(), 'dxrd-disabled-button': disabled }, click: function() { setValue('top') }\"></div> <div class=\"bordereditor-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dxrd-image-borders-right\" data-bind=\"template: 'dxrd-svg-properties-borders-right', css: { 'dxd-state-active': right(), 'dxrd-disabled-button': disabled }, click: function() { setValue('right') }\"></div> <div class=\"bordereditor-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dxrd-image-borders-bottom\" data-bind=\"template: 'dxrd-svg-properties-borders-bottom', css: { 'dxd-state-active': bottom(), 'dxrd-disabled-button': disabled }, click: function() { setValue('bottom') }\"></div> \x3c!-- /ko --\x3e</div>"});var __extends=this&&this.__extends||function(){var a=function(b,c){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])})(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c),b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),DevExpress;!function(a){!function(a){var b;!function(a){function b(a,c,d,e){if(void 0===d&&(d=[]),void 0===e&&(e=["surface"]),a&&void 0!==a){var f=[];for(var g in a)if(0!==g.indexOf("_")&&-1===e.indexOf(g)){var h=g;ko.isComputed(a[g])&&ko.isWriteableObservable(a["_"+g])&&(h="_"+h),-1!==d.indexOf(a[h])||ko.isComputed(a[h])||f.push(a[h])}c(f),d.push.apply(d,f),f.forEach(function(a){"object"==typeof(a=ko.unwrap(a))&&b(a,c,d,e)})}}function c(a){return!a.isModelReady||a.isModelReady()}a.propertiesVisitor=b,a.checkModelReady=c}(b=a.Internal||(a.Internal={}));!function(a){var c=function(a){function c(b,c,d){void 0===c&&(c=["surface"]);var e=a.call(this)||this;if(e._groupObservers=[],e._getInfoMethodName=null,e._groupPosition=-1,e._observers=[],e._subscriptions=[],e._visited=[],e._position=ko.observable(-1),e._lockedPosition=ko.observable(-1),e._inUndoRedo=!1,e.redoEnabled=ko.observable(!1),e.undoEnabled=ko.observable(!1),e.isIngroup=-1,e.isDirty=ko.computed({read:function(){return e._position()!==e._lockedPosition()},write:function(a){a?e._lockedPosition("forcibly marked as dirty"):e._lockedPosition(e._position())}}),e._model=ko.unwrap(b),e._getInfoMethodName=d,e._ignoredProperties=c,e._getInfoMethodName)ko.isSubscribable(b)?e._targetSubscription=e.subscribeProperty(b,!0):e._createDisposeFunction(b);else{var f=e.subscribe(e._model);if(ko.isSubscribable(b)){var g=b();e._targetSubscription=b.subscribe(function(a){e._removePropertiesSubscriptions(),e._inUndoRedo||(e.properyChanged({observable:b,propertyChanged:{oldVal:g,val:a}}),g=a),e._cleanSubscribtions(f),e._model=a,f=e.subscribe(e._model)})}}return e._disposables.push(e.isDirty),e}return __extends(c,a),c.tryGetUndoEngine=function(a){return a[c._disposeUndoEngineSubscriptionsName]&&a[c._disposeUndoEngineSubscriptionsName].instance},Object.defineProperty(c.prototype,"_modelReady",{get:function(){return b.checkModelReady(this._model)},enumerable:!0,configurable:!0}),c.prototype._disposeObserver=function(a){if(a.propertyChanged){var b=a.propertyChanged.val;b&&!b[c._disposeUndoEngineSubscriptionsName]&&b.dispose&&b.dispose()}else a.arrayChanges&&a.arrayChanges.forEach(function(a){if("added"===a.status){var b=a.value;b&&!b[c._disposeUndoEngineSubscriptionsName]&&b.dispose&&b.dispose()}})},c.prototype.properyChanged=function(a){var b=this;if(!this._inUndoRedo){var c=this._position()+1;if(c<this._observers.length){this._observers.splice(c,this._observers.length).forEach(function(a){Array.isArray(a)?a.reverse().forEach(function(a){return b._disposeObserver(a)}):b._disposeObserver(a)})}this._observers.push(a),this._position(c),this.undoEnabled(!0),this.redoEnabled(!1)}},c.prototype.visitProperties=function(a,b){var c=[];if(a&&b)for(var d=0;d<b.length;d++)if(b[d].modelName||b[d].editor||b[d].info){var e=this.validatePropertyName(a,b[d].propertyName);e&&(ko.isComputed(a[e])||(ko.isObservable(a[e])?c.push(this.subscribeProperty(a[e],!b[d].link)):c.push.apply([],this._createDisposeFunction(a[e],b[d].info))))}return c},c.prototype.undoChangeSet=function(a){if(a.propertyChanged)a.observable(a.propertyChanged.oldVal);else{for(var b=a.observable(),c=0;c<a.arrayChanges.length;c++)"added"===a.arrayChanges[c].status?b.splice(b.indexOf(a.arrayChanges[c].value),1):"deleted"===a.arrayChanges[c].status&&b.splice(a.arrayChanges[c].index,0,a.arrayChanges[c].value);ko.isObservable(a.observable)&&a.observable.valueHasMutated()}},c.prototype.redoChangeSet=function(a){if(a.propertyChanged)a.observable(a.propertyChanged.val);else{for(var b=a.observable(),c=0;c<a.arrayChanges.length;c++)"added"===a.arrayChanges[c].status?b.splice(a.arrayChanges[c].index,0,a.arrayChanges[c].value):"deleted"===a.arrayChanges[c].status&&b.splice(b.indexOf(a.arrayChanges[c].value),1);ko.isObservable(a.observable)&&a.observable.valueHasMutated()}},c.prototype._disposeChilds=function(a,b){if(a&&b)for(var c=0;c<b.length;c++)if(b[c].modelName||b[c].editor||b[c].info){var d=b[c].propertyName;if(0!==d.indexOf("_")){var e=d;if(ko.isWriteableObservable(a["_"+d])&&(e="_"+e),!ko.isComputed(a[e])){var f=ko.unwrap(a[e]);f&&"object"==typeof f&&(b[c].link||this._callDisposeFunction(f))}}}},c.prototype._createDisposeFunction=function(a,b){var d=this,e=[];if(a&&"object"==typeof a){var f=b||a[this._getInfoMethodName]&&a[this._getInfoMethodName]();f&&(a[c._disposeUndoEngineSubscriptionsName]?a[c._disposeUndoEngineSubscriptionsName].inc++:(a[c._disposeUndoEngineSubscriptionsName]={inc:1,instance:this},e=this.subscribe(a,f),a[c._disposeUndoEngineSubscriptionsName].func=function(){a[c._disposeUndoEngineSubscriptionsName].inc--,d._disposeChilds(a,f),0===a[c._disposeUndoEngineSubscriptionsName].inc&&(d._cleanSubscribtions(e),delete a[c._disposeUndoEngineSubscriptionsName])}))}return e},c.prototype._callDisposeFunction=function(a){if(a)if(Array.isArray(a))for(var b=0;b<a.length;b++)a[b][c._disposeUndoEngineSubscriptionsName]&&a[b][c._disposeUndoEngineSubscriptionsName].func();else a[c._disposeUndoEngineSubscriptionsName]&&a[c._disposeUndoEngineSubscriptionsName].func()},c.prototype._cleanSubscribtions=function(a){if(a)if(a.length)for(var b=0;b<a.length;b++)this._cleanSubscribtions(a[b]);else a.dispose&&a.dispose()},c.prototype.validatePropertyName=function(a,b){return(!this._ignoredProperties||this._ignoredProperties&&-1===this._ignoredProperties.indexOf(b))&&0!==b.indexOf("_")?ko.isWriteableObservable(a["_"+b])?"_"+b:b:null},c.prototype.subscribeProperty=function(a,b){var c=this;if(ko.isObservable(a)){var d=a();if(Array.isArray(d)){for(var e=0;e<a().length;e++)this._createDisposeFunction(a()[e]);return a.subscribe(function(b){if(c._modelReady){for(var d=b.filter(function(a){return"added"===a.status}),e=b.filter(function(a){return"deleted"===a.status}),f=0;f<e.length;f++)c._callDisposeFunction(e[f].value);for(var f=0;f<d.length;f++)c._createDisposeFunction(d[f].value);c.properyChanged({observable:a,arrayChanges:b})}},null,"arrayChange")}if(ko.isWriteableObservable(a))return b&&this._createDisposeFunction(a()),a.subscribe(function(e){c._modelReady&&(b&&c._callDisposeFunction(d),c.properyChanged({observable:a,propertyChanged:{oldVal:d,val:e}}),d=e,b&&c._createDisposeFunction(e))})}},c.prototype.subscribeProperties=function(a){var b=this;a.forEach(function(a){if(ko.isObservable(a)){var c=a();a.push?b._subscriptions.push(a.subscribe(function(c){b._modelReady&&(b._inUndoRedo||(b.properyChanged({observable:a,arrayChanges:c}),b.subscribe(c.map(function(a){return a.value}))))},null,"arrayChange")):ko.isWriteableObservable(a)&&b._subscriptions.push(a.subscribe(function(d){b._modelReady&&(b.properyChanged({observable:a,propertyChanged:{oldVal:c,val:d}}),c=a())}))}})},c.prototype.subscribe=function(a,c){var d=this;if(this._getInfoMethodName)return this.visitProperties(a,c||a&&a[this._getInfoMethodName]&&a[this._getInfoMethodName]());b.propertiesVisitor(a,function(a){d.subscribeProperties(a)},this._visited,this._ignoredProperties)},c.prototype._removePropertiesSubscriptions=function(){this._subscriptions.forEach(function(a){return a.dispose()}),this._subscriptions=[],this._visited=[]},c.prototype.dispose=function(){a.prototype.dispose.call(this),this.removeTargetSubscription()},c.prototype.removeTargetSubscription=function(){this._targetSubscription&&this._targetSubscription.dispose(),this.reset()},c.prototype.undoAll=function(){this.undoEnabled()&&(this.undo(),this.undoAll())},c.prototype.reset=function(){this._removePropertiesSubscriptions(),this.clearHistory()},c.prototype.clearHistory=function(){this._groupObservers=[],this._observers=[],this.redoEnabled(!1),this.undoEnabled(!1),this._inUndoRedo=!1,this._groupPosition=-1,this._position(-1),this._lockedPosition(this._position())},c.prototype.undo=function(a){var b=this;void 0===a&&(a=!1);try{if(this._inUndoRedo=!0,this.undoEnabled()){var c=this._observers[this._position()];c&&(Array.isArray(c)?c.reverse().forEach(function(a){return b.undoChangeSet(a)}):this.undoChangeSet(c),a&&this._observers.splice(this._position(),1),this._position(this._position()-1),this.undoEnabled(0!==this._observers.length&&this._position()>=0),this.redoEnabled(this._position()<this._observers.length-1))}}finally{this._inUndoRedo=!1}},c.prototype.redo=function(){var a=this;try{if(this._inUndoRedo=!0,this.redoEnabled()){var b=this._observers[this._position()+1];b&&(Array.isArray(b)?b.reverse().forEach(function(b){return a.redoChangeSet(b)}):this.redoChangeSet(b),this._position(this._position()+1),this.undoEnabled(0!==this._observers.length&&this._position()>=0),this.redoEnabled(this._position()+1<this._observers.length))}}finally{this._inUndoRedo=!1}},c.prototype._hasSessionChanges=function(){return 0===this.isIngroup&&this._observers.length>0},c.prototype.start=function(){0===++this.isIngroup&&(this._groupObservers=this._observers,this._observers=[],this._groupPosition=this._position(),this._position(-1),this._lockedPosition(this._position()))},c.prototype.end=function(){var a=this;if(-1===--this.isIngroup){if(this._observers.length>0){this._position(this._groupPosition+1);this._groupObservers.splice(this._position(),this._groupObservers.length-this._position(),this._observers).forEach(function(b){Array.isArray(b)?b.reverse().forEach(function(b){return a._disposeObserver(b)}):a._disposeObserver(b)})}else this._position(this._groupPosition);this._observers=this._groupObservers}},c._disposeUndoEngineSubscriptionsName="___dispose___UndoEngine___Subscriptions___",c}(a.Disposable);a.UndoEngine=c}(a.Utils||(a.Utils={}))}(a.Analytics||(a.Analytics={}))}(DevExpress||(DevExpress={})),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.UndoEngine","Analytics.Utils.UndoEngine"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.propertiesVisitor","Analytics.Utils.propertiesVisitor","Analytics.Internal.propertiesVisitor");var __extends=this&&this.__extends||function(){var a=function(b,c){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])})(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c),b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),DevExpress;!function(a){!function(b){var c;!function(a){var b=function(){function a(a,b){if(void 0===b&&(b=[]),this.pathParts=b,this.path="",this.fullPath=a,a)if(-1!==a.indexOf(".")){var c=a.split(".");this.id=this.ref=c[0],c.splice(0,1),this.path=c.join(".")}else this.id=this.ref=a}return a}();a.PathRequest=b}(c=b.Utils||(b.Utils={}));var d;!function(a){!function(a){var b=function(){function a(){}return a._getCharFromKeyCode=function(a){var b=0;return-1===navigator.userAgent.toLowerCase().indexOf("firefox")?b=a.keyCode:!1===a.ctrlKey&&(b=a.charCode),b?String.fromCharCode(b):null},a._getCaretPosition=function(a){var b,c,d,e,f,g=-1,h=-1;try{"number"==typeof a.selectionStart&&"number"==typeof a.selectionEnd?(g=a.selectionStart,h=a.selectionEnd):document.selection&&(c=document.selection.createRange())&&c.parentElement()==a&&(e=a.value.length,b=a.value.replace(/\r\n/g,"\n"),d=a.createTextRange(),d.moveToBookmark(c.getBookmark()),f=a.createTextRange(),f.collapse(!1),d.compareEndPoints("StartToEnd",f)>-1?g=h=e:(g=-d.moveStart("character",-e),g+=b.slice(0,g).split("\n").length-1,d.compareEndPoints("EndToEnd",f)>-1?h=e:(h=-d.moveEnd("character",-e),h+=b.slice(0,h).split("\n").length-1)))}catch(a){}return{start:g,end:h}},a._validate=function(a,b,c){var d,e,f,g;if(!/^(0|(-?(([1-9]\d*)|(0\.\d+)|([1-9]\d*\.\d+)|(\d*\.\d+[eE][+\-]?\d+))))$/.test(a))return!1;if(!c)return!0;var h="-"===a[0],i=h?a.substring(1):a;if(h&&!b)return!1;var j,k,l,m,n=h?b.substring(1):c;d=i.toLowerCase().split("e"),j=d[0],k=d[1],e=n.toLowerCase().split("e"),l=e[0],m=e[1];var o,p,q,r;f=j.split("."),o=f[0],p=f[1],g=l.split("."),q=g[0],r=g[1],o=(o||"").replace(/^0+/,""),q=(q||"").replace(/^0+/,"");var s=o.length;k&&(s+=parseInt(k));var t=q.length;return m&&(t+=parseInt(m)),s<t||!(s>t)&&(p=p||"0",r=r||"0",!(o+p>q+r))},a.validateWidgetValue=function(a,b,c){b(a.component.option("value"))||a.component.option("value",c)},a.getNumberEditorOptions=function(b,c,d){void 0===d&&(d={});var e=a.editors[b]||a.editors[c];return e?a.getValueEditorOptions(e.regExpEditing,function(b){return a._validate(b,e.minValue,e.maxValue)},"",d):d},a.getValueEditorOptions=function(b,c,d,e){var f=this;void 0===e&&(e={});var g={onFocusIn:function(b){a.validateWidgetValue(b,c,d),a._invokeStandardHandler(e,"onFocusIn",b)},onKeyPress:function(c){var d=a._getCharFromKeyCode(c.event);if(d){var f=$(c.element).find("input").eq(0),g=a._getCaretPosition(f.get(0)),h=f.val();g.start<0&&(g=h?h.length:0);var i=[h.slice(0,g.start),d,h.slice(g.end)].join("");b.test(i)||c.event.preventDefault(),f=null,a._invokeStandardHandler(e,"onKeyPress",c)}},onPaste:function(c){var d=c.event.originalEvent.clipboardData||window.clipboardData||{},f=d.getData&&d.getData("Text");if("string"==typeof f){var g=$(c.element).find("input").eq(0),h=a._getCaretPosition(g.get(0)),i=g.val();h.start<0&&(h.end=h.start=i?i.length:0);var j=[i.slice(0,h.start),f,i.slice(h.end)].join("");b.test(j)||c.event.preventDefault(),g=null,a._invokeStandardHandler(e,"onPaste",c)}},onValueChanged:function(b){b.value!==d&&f.validateWidgetValue(b,c,b.previousValue),a._invokeStandardHandler(e,"onValueChanged",b)}};return $.extend({},e,g)},a.isValid=function(b,c,d){var e=a.editors[b]||a.editors[c];return e.regExpEditing.test(d)&&a._validate(d,e.minValue,e.maxValue)},a._invokeStandardHandler=function(a,b,c){$.isFunction(a[b])&&a[b](c)},a.editors={integer:{regExpEditing:/^-?\d*$/},float:{regExpEditing:/^-?(\d+\.?\d*)?([eE][+\-]?\d+)?$/},"System.Byte":{regExpEditing:/^\d*$/,minValue:null,maxValue:"255"},"System.SByte":{regExpEditing:/^-?\d*$/,minValue:"-128",maxValue:"127"},"System.Int16":{regExpEditing:/^-?\d*$/,minValue:"-32768",maxValue:"32767"},"System.UInt16":{regExpEditing:/^\d*$/,minValue:null,maxValue:"65535"},"System.Int32":{regExpEditing:/^-?\d*$/,minValue:"-2147483648",maxValue:"2147483647"},"System.UInt32":{regExpEditing:/^\d*$/,minValue:null,maxValue:"4294967295"},"System.Int64":{regExpEditing:/^-?\d*$/,minValue:"-9223372036854775808",maxValue:"9223372036854775807"},"System.UInt64":{regExpEditing:/^\d*$/,minValue:null,maxValue:"18446744073709551615"},"System.Single":{regExpEditing:/^-?(\d+\.?\d*)?([eE][+\-]?\d*)?$/,minValue:"-3.40282347e+38",maxValue:"3.40282347e+38"},"System.Double":{regExpEditing:/^-?(\d+\.?\d*)?([eE][+\-]?\d*)?$/,minValue:"-1.7976931348623157e+308",maxValue:"1.7976931348623157e+308"},"System.Decimal":{regExpEditing:/^-?(\d+\.?\d*)?([eE][+\-]?\d*)?$/,minValue:"-79228162514264337593543950335",maxValue:"79228162514264337593543950335"}},a}();a.ValueEditorHelper=b}(a.Internal||(a.Internal={}))}(d=b.Widgets||(b.Widgets={}));!function(b){function f(a,b){var c=""+a;return d.Internal.ValueEditorHelper.isValid(this.value,"integer",c)?c:b}function g(a){var b=$.Deferred();try{var d=[],f=function(b,e){var f=$.Deferred();a.fieldListProvider.getItemByPath(new c.PathRequest(b)).done(function(a){return f.resolve()}).fail(function(d){b===e?f.reject():a.fieldListProvider.getItemByPath(new c.PathRequest([b.split(".")[0],e].join("."))).done(function(a){return f.resolve()}).fail(function(a){return f.reject()})}),d.push(f)},g=e.CriteriaOperator.parse(a.expression);e.Utils.criteriaForEach(g,function(b,c){if(b instanceof e.OperandProperty){var d=0===b.propertyName.indexOf("^.")?b.propertyName.substring(2):b.propertyName,g=d;-1===(a.rootItems||[]).indexOf(d.split(".")[0])&&c&&(g=d?[c,d].join("."):c),f(g,d)}else if(b instanceof e.OperandParameter){var h=b.parameterName,i="Parameters."+h;f(i,h)}},a.path),$.when.apply($,d).done(function(a){return b.resolve()}).fail(function(a){return b.reject()})}catch(a){b.reject()}return b.promise()}function h(a,b){var c=""+a;return d.Internal.ValueEditorHelper.isValid(this.value,"float",c)?c:b}function i(){return a.ui.themes.current()}function j(a){return a=a||i(),-1!==$.inArray(a,p)||($.inArray(a,o),!1)}function k(a,b,c){if(a&&!(a<=0)){var d=b.getCursorPosition(),e=c.lastIndexOf("(");"'"===c.charAt(e+1)&&e++,b.gotoLine(d.row+1,d.column-(c.length-1-e))}}function l(a){return!0===a.isList||"List"===a.specifics||"ListSource"===a.specifics}function m(a,b){return void 0===b&&(b=".dx-designer-viewport"),$(a).closest(b)}function n(a){return null==a||""===a}b.integerValueConverter=f,b.validateExpression=g,b.floatValueConverter=h;var o=["generic.light","generic.carmine","generic.greenmist","generic.softblue","generic.light.compact","generic.carmine.compact","generic.greenmist.compact","generic.softblue.compact"],p=["generic.dark","generic.contrast","generic.dark.compact","generic.darkmoon","generic.darkviolet","generic.contras.compact","generic.darkmoon.compact","generic.darkviolet.compact"];b.isDarkTheme=j,b.setCursorInFunctionParameter=k,b.isList=l,b.getParentContainer=m,b.isNullOrEmptyString=n}(b.Internal||(b.Internal={})),function(c){!function(c){c.ace=a.Analytics.Widgets.Internal.ace||window.ace,c.aceAvailable=!!c.ace,ko.bindingHandlers.dxAceEditor={init:function(a,d,e,f,g){var h,i=d(),j=i.value,k=i.editorContainer,l=!0,m=function(a,b){l=!1,a.getSession().setValue(b&&b.toString()||""),a.clearSelection(),a.getSession().getUndoManager().reset(),l=!0};if(c.ace){var n=void 0==i.options.showGutter||i.options.showGutter,o=i.additionalOptions,p=c.ace.require("ace/ext/language_tools");h=c.ace.edit(a);var q=(ko.observable(null),i.theme);q||(q=b.Internal.isDarkTheme()?"ace/theme/ambiance":"ace/theme/dreamweaver"),h.setTheme(q),h.$blockScrolling=1/0;var r=f.languageHelper.getLanguageMode(),s=h.getSession();s.gutterRenderer={getWidth:function(a,b,c){return b.toString().length*c.characterWidth},getText:function(a,b){return b+1}},s.setMode(r);var t,u,v,w=function(){h.completer&&h.completer.popup&&h.completer.popup.hide()};if(o){if(o.onChange){var x=null;t=function(a){null!==x&&clearTimeout(x),l&&(x=setTimeout(function(){j()!==s.getValue()&&o.onChange(s)},o&&o.changeTimeout||1e3))},s.on("change",t)}o.overrideEditorFocus&&(h.focus=function(a,b){h.textInput.getElement().focus()}),o.onFocus&&(u=function(){o.onFocus(s)},h.on("focus",u)),o.onBlur&&(w=function(){return h.completer&&h.completer.popup&&h.completer.popup.hide(),o.onBlur(s)}),o.onChangeAnnotation&&(v=function(a,b){o.onChangeAnnotation(b)},s.on("changeAnnotation",v))}h.on("blur",w);var y=f.languageHelper.createCompleters(h,g,f);if(p.setCompleters(y),h.setOptions(i.options),o&&"setUseWrapMode"in o&&h.getSession().setUseWrapMode(o.setUseWrapMode),n||h.renderer.setShowGutter(n),h.renderer.$gutter){var z=h.renderer.$gutter.className+" dxd-border-primary dxd-text-primary dxd-back-primary";h.renderer.$gutter.className=z}var A=h._defaultHandlers.guttermousemove;if(h._defaultHandlers.guttermousemove=function(b){var c=a.getBoundingClientRect();b.x=b.x-c.left,b.y=b.y-c.top,A(b)},ko.isSubscribable(j))var B=j.subscribe(function(a){a!==s.getValue()&&m(h,a),o&&o.onValueChange&&o.onValueChange(h)});m(h,ko.unwrap(j)),i.callbacks&&(i.callbacks.focus=function(){setTimeout(function(){h.textInput.getElement().focus()},10)}),b.Internal.addDisposeCallback(a,function(){B.dispose(),i.callbacks&&(i.callbacks.focus=$.noop),y.forEach(function(a){return a.dispose&&a.dispose()}),w&&h.off("blur",w),u&&h.off("focus",u),t&&s.off("change",t),v&&s.off("changeAnnotation",v)})}ko.isObservable(k)&&k(h)}}}(c.Internal||(c.Internal={})),ko.bindingHandlers.focus={init:function(a,c){var d=c().on||c(),e=d.subscribe(function(b){b&&setTimeout(function(){$(a).find(":input").focus()},1)});b.Internal.addDisposeCallback(a,function(){e.dispose()})}},ko.bindingHandlers.svgAttrs={update:function(a,b,c,d){a.setAttribute("xmlns","http://www.w3.org/2000/svg"),a.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink")}},function(a){function b(b){return a.functionDisplay.map(function(a){var c=b[a.display];return c?{display:a.display,category:a.category,localizationId:a.localizationId,items:$.extend({},a.items,c)}:a})}a.operatorNames=[{text:"+",image:"addition",descriptionStringId:"ExpressionEditorStringId.Operator_Plus"},{text:"-",image:"subtraction",descriptionStringId:"ExpressionEditorStringId.Operator_Minus"},{text:"*",image:"multiplication",descriptionStringId:"ExpressionEditorStringId.Operator_Multiply"},{text:"/",image:"division",descriptionStringId:"ExpressionEditorStringId.Operator_Divide"},{text:"%",image:"modulus",hasSeparator:!0,descriptionStringId:"ExpressionEditorStringId.Operator_Modulo"},{text:"()",image:"parenthesis",hasSeparator:!0},{text:"|",descriptionStringId:"ExpressionEditorStringId.Operator_BitwiseOr"},{text:"&",descriptionStringId:"ExpressionEditorStringId.Operator_BitwiseAnd"},{text:"^",descriptionStringId:"ExpressionEditorStringId.Operator_BitwiseXor"},{text:"==",image:"equal",descriptionStringId:"ExpressionEditorStringId.Operator_Equal"},{text:"!=",image:"not_equal",descriptionStringId:"ExpressionEditorStringId.Operator_NotEqual"},{text:"<",image:"less",descriptionStringId:"ExpressionEditorStringId.Operator_Less"},{text:"<=",image:"less_or_equal",descriptionStringId:"ExpressionEditorStringId.Operator_LessOrEqual"},{text:">=",image:"greater_or_equal",descriptionStringId:"ExpressionEditorStringId.Operator_GreaterOrEqual"},{text:">",hasSeparator:!0,image:"greater",descriptionStringId:"ExpressionEditorStringId.Operator_Greater"},{text:"In",descriptionStringId:"ExpressionEditorStringId.Operator_In"},{text:"Like",descriptionStringId:"ExpressionEditorStringId.Operator_Like"},{text:"Between",descriptionStringId:"ExpressionEditorStringId.Operator_Between"},{text:"And",image:"and",descriptionStringId:"ExpressionEditorStringId.Operator_And"},{text:"Or",image:"or",descriptionStringId:"ExpressionEditorStringId.Operator_Or"},{text:"Not",image:"not",descriptionStringId:"ExpressionEditorStringId.Operator_Not"}],a.functionDisplay=[{display:"Aggregate",localizationId:"DataAccessStringId.ExpressionEditor_FunctionCategory_Aggregate",category:"Aggregate",items:{Avg:[{paramCount:1,text:"[].Avg()",displayName:"Avg()",descriptionStringId:"ExpressionEditorStringId.Function_AvgAggregate"}],Count:[{paramCount:1,text:"[].Count()",displayName:"Count()",descriptionStringId:"ExpressionEditorStringId.Function_CountAggregate"}],Exists:[{paramCount:1,text:"[].Exists()",displayName:"Exists()",descriptionStringId:"ExpressionEditorStringId.Function_ExistsAggregate"}],Max:[{paramCount:1,text:"[].Max()",displayName:"Max()",descriptionStringId:"ExpressionEditorStringId.Function_MaxAggregate"}],Min:[{paramCount:1,text:"[].Min()",displayName:"Min()",descriptionStringId:"ExpressionEditorStringId.Function_MinAggregate"}],Single:[{paramCount:1,text:"[].Single()",displayName:"Single()",descriptionStringId:"ExpressionEditorStringId.Function_SingleAggregate"}],Sum:[{paramCount:1,text:"[].Sum()",displayName:"Sum()",descriptionStringId:"ExpressionEditorStringId.Function_SumAggregate"}]}},{display:"Date-Time",localizationId:"DataAccessStringId.ExpressionEditor_FunctionCategory_DateTime",items:{LocalDateTimeThisYear:[{paramCount:0,text:"LocalDateTimeThisYear()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeThisYear"}],LocalDateTimeThisMonth:[{paramCount:0,text:"LocalDateTimeThisMonth()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeThisMonth"}],LocalDateTimeLastMonth:[{paramCount:0,text:"LocalDateTimeLastMonth()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeLastMonth"}],LocalDateTimeLastWeek:[{paramCount:0,text:"LocalDateTimeLastWeek()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeLastWeek"}],LocalDateTimeLastYear:[{paramCount:0,text:"LocalDateTimeLastYear()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeLastYear"}],LocalDateTimeThisWeek:[{paramCount:0,text:"LocalDateTimeThisWeek()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeThisWeek"}],LocalDateTimeYesterday:[{paramCount:0,text:"LocalDateTimeYesterday()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeYesterday"}],LocalDateTimeToday:[{paramCount:0,text:"LocalDateTimeToday()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeToday"}],LocalDateTimeNow:[{paramCount:0,text:"LocalDateTimeNow()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeNow"}],LocalDateTimeTomorrow:[{paramCount:0,text:"LocalDateTimeTomorrow()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeTomorrow"}],LocalDateTimeDayAfterTomorrow:[{paramCount:0,text:"LocalDateTimeDayAfterTomorrow()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeDayAfterTomorrow"}],LocalDateTimeNextWeek:[{paramCount:0,text:"LocalDateTimeNextWeek()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeNextWeek"}],LocalDateTimeTwoMonthsAway:[{paramCount:0,text:"LocalDateTimeTwoMonthsAway()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeTwoMonthsAway"}],LocalDateTimeTwoYearsAway:[{paramCount:0,text:"LocalDateTimeTwoYearsAway()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeTwoYearsAway"}],LocalDateTimeTwoWeeksAway:[{paramCount:0,text:"LocalDateTimeTwoWeeksAway()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeTwoWeeksAway"}],LocalDateTimeNextMonth:[{paramCount:0,text:"LocalDateTimeNextMonth()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeNextMonth"}],LocalDateTimeNextYear:[{paramCount:0,text:"LocalDateTimeNextYear()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeNextYear"}],LocalDateTimeYearBeforeToday:[{paramCount:0,text:"LocalDateTimeYearBeforeToday()",descriptionStringId:"ExpressionEditorStringId.Function_LocalDateTimeYearBeforeToday"}],IsOutlookIntervalBeyondThisYear:null,IsOutlookIntervalLaterThisYear:null,IsOutlookIntervalLaterThisMonth:null,IsOutlookIntervalNextWeek:null,IsOutlookIntervalLaterThisWeek:null,IsOutlookIntervalTomorrow:null,IsOutlookIntervalToday:null,IsOutlookIntervalYesterday:null,IsOutlookIntervalEarlierThisWeek:null,IsOutlookIntervalLastWeek:null,IsOutlookIntervalEarlierThisMonth:null,IsOutlookIntervalEarlierThisYear:null,IsOutlookIntervalPriorThisYear:null,IsLastMonth:[{paramCount:1,text:"IsLastMonth()",descriptionStringId:"ExpressionEditorStringId.Function_IsLastMonth"}],IsLastYear:[{paramCount:1,text:"IsLastYear()",descriptionStringId:"ExpressionEditorStringId.Function_IsLastYear"}],IsNextMonth:[{paramCount:1,text:"IsNextMonth()",descriptionStringId:"ExpressionEditorStringId.Function_IsNextMonth"}],IsNextYear:[{paramCount:1,text:"IsNextYear()",descriptionStringId:"ExpressionEditorStringId.Function_IsNextYear"}],IsThisWeek:[{paramCount:1,text:"IsThisWeek()",descriptionStringId:"ExpressionEditorStringId.Function_IsThisWeek"}],IsThisMonth:[{paramCount:1,text:"IsThisMonth()",descriptionStringId:"ExpressionEditorStringId.Function_IsThisMonth"}],IsThisYear:[{paramCount:1,text:"IsThisYear()",descriptionStringId:"ExpressionEditorStringId.Function_IsThisYear"}],IsJanuary:[{paramCount:1,text:"IsJanuary()",descriptionStringId:"ExpressionEditorStringId.Function_IsJanuary"}],IsFebruary:[{paramCount:1,text:"IsFebruary()",descriptionStringId:"ExpressionEditorStringId.Function_IsFebruary"}],IsMarch:[{paramCount:1,text:"IsMarch()",descriptionStringId:"ExpressionEditorStringId.Function_IsMarch"}],IsApril:[{paramCount:1,text:"IsApril()",descriptionStringId:"ExpressionEditorStringId.Function_IsApril"}],IsMay:[{paramCount:1,text:"IsMay()",descriptionStringId:"ExpressionEditorStringId.Function_IsMay"}],IsJune:[{paramCount:1,text:"IsJune()",descriptionStringId:"ExpressionEditorStringId.Function_IsJune"}],IsJuly:[{paramCount:1,text:"IsJuly()",descriptionStringId:"ExpressionEditorStringId.Function_IsJuly"}],IsAugust:[{paramCount:1,text:"IsAugust()",descriptionStringId:"ExpressionEditorStringId.Function_IsAugust"}],IsSeptember:[{paramCount:1,text:"IsSeptember()",descriptionStringId:"ExpressionEditorStringId.Function_IsSeptember"}],IsOctober:[{paramCount:1,text:"IsOctober()",descriptionStringId:"ExpressionEditorStringId.Function_IsOctober"}],IsNovember:[{paramCount:1,text:"IsNovember()",descriptionStringId:"ExpressionEditorStringId.Function_IsNovember"}],IsDecember:[{paramCount:1,text:"IsDecember()",descriptionStringId:"ExpressionEditorStringId.Function_IsDecember"}],IsSameDay:[{paramCount:2,text:"IsSameDay(, )",descriptionStringId:"ExpressionEditorStringId.Function_IsSameDay"}],IsYearToDate:[{paramCount:1,text:"IsYearToDate()",descriptionStringId:"ExpressionEditorStringId.Function_IsYearToDate"}],DateDiffTick:[{paramCount:2,text:"DateDiffTick(, )",descriptionStringId:"ExpressionEditorStringId.Function_DateDiffTick"}],DateDiffSecond:[{paramCount:2,text:"DateDiffSecond(, )",descriptionStringId:"ExpressionEditorStringId.Function_DateDiffSecond"}],DateDiffMilliSecond:[{paramCount:2,text:"DateDiffMilliSecond(, )",descriptionStringId:"ExpressionEditorStringId.Function_DateDiffMilliSecond"}],DateDiffMinute:[{paramCount:2,text:"DateDiffMinute(, )",descriptionStringId:"ExpressionEditorStringId.Function_DateDiffMinute"}],DateDiffHour:[{paramCount:2,text:"DateDiffHour(, )",descriptionStringId:"ExpressionEditorStringId.Function_DateDiffHour"}],DateDiffDay:[{paramCount:2,text:"DateDiffDay(, )",descriptionStringId:"ExpressionEditorStringId.Function_DateDiffDay"}],DateDiffMonth:[{paramCount:2,text:"DateDiffMonth(, )",descriptionStringId:"ExpressionEditorStringId.Function_DateDiffMonth"}],DateDiffYear:[{paramCount:2,text:"DateDiffYear(, )",descriptionStringId:"ExpressionEditorStringId.Function_DateDiffYear"}],GetDate:[{paramCount:1,text:"GetDate()",descriptionStringId:"ExpressionEditorStringId.Function_GetDate"}],GetMilliSecond:[{paramCount:1,text:"GetMilliSecond()",descriptionStringId:"ExpressionEditorStringId.Function_GetMilliSecond"}],GetSecond:[{paramCount:1,text:"GetSecond()",descriptionStringId:"ExpressionEditorStringId.Function_GetSecond"}],GetMinute:[{paramCount:1,text:"GetMinute()",descriptionStringId:"ExpressionEditorStringId.Function_GetMinute"}],GetHour:[{paramCount:1,text:"GetHour()",descriptionStringId:"ExpressionEditorStringId.Function_GetHour"}],GetDay:[{paramCount:1,text:"GetDay()",descriptionStringId:"ExpressionEditorStringId.Function_GetDay"}],GetMonth:[{paramCount:1,text:"GetMonth()",descriptionStringId:"ExpressionEditorStringId.Function_GetMonth"}],GetYear:[{paramCount:1,text:"GetYear()",descriptionStringId:"ExpressionEditorStringId.Function_GetYear"}],GetDayOfWeek:[{paramCount:1,text:"GetDayOfWeek()",descriptionStringId:"ExpressionEditorStringId.Function_GetDayOfWeek"}],GetDayOfYear:[{paramCount:1,text:"GetDayOfYear()",descriptionStringId:"ExpressionEditorStringId.Function_GetDayOfYear"}],GetTimeOfDay:[{paramCount:1,text:"GetTimeOfDay()",descriptionStringId:"ExpressionEditorStringId.Function_GetTimeOfDay"}],Now:[{paramCount:0,text:"Now()",descriptionStringId:"ExpressionEditorStringId.Function_Now"}],UtcNow:[{paramCount:0,text:"UtcNow()",descriptionStringId:"ExpressionEditorStringId.Function_UtcNow"}],Today:[{paramCount:0,text:"Today()",descriptionStringId:"ExpressionEditorStringId.Function_Today"}],AddTimeSpan:[{paramCount:2,text:"AddTimeSpan(, )",descriptionStringId:"ExpressionEditorStringId.Function_AddTimeSpan"}],AddTicks:[{paramCount:2,text:"AddTicks(, )",descriptionStringId:"ExpressionEditorStringId.Function_AddTicks"}],AddMilliSeconds:[{paramCount:2,text:"AddMilliSeconds(, )",descriptionStringId:"ExpressionEditorStringId.Function_AddMilliSeconds"}],AddSeconds:[{paramCount:2,text:"AddSeconds(, )",descriptionStringId:"ExpressionEditorStringId.Function_AddSeconds"}],AddMinutes:[{paramCount:2,text:"AddMinutes(, )",descriptionStringId:"ExpressionEditorStringId.Function_AddMinutes"}],AddHours:[{paramCount:2,text:"AddHours(, )",descriptionStringId:"ExpressionEditorStringId.Function_AddHours"}],AddDays:[{paramCount:2,text:"AddDays(, )",descriptionStringId:"ExpressionEditorStringId.Function_AddDays"}],AddMonths:[{paramCount:2,text:"AddMonths(, )",descriptionStringId:"ExpressionEditorStringId.Function_AddMonths"}],AddYears:[{paramCount:2,text:"AddYears(, )",descriptionStringId:"ExpressionEditorStringId.Function_AddYears"}]}},{display:"Logical",localizationId:"DataAccessStringId.ExpressionEditor_FunctionCategory_Logical",items:{Iif:[{paramCount:3,text:"Iif(, , )",descriptionStringId:"ExpressionEditorStringId.Function_Iif"}],IsNull:[{paramCount:1,text:"IsNull()",descriptionStringId:"ExpressionEditorStringId.Function_IsNull"}],IsNullOrEmpty:[{paramCount:1,text:"IsNullOrEmpty()",descriptionStringId:"ExpressionEditorStringId.Function_IsNullOrEmpty"}]}},{display:"Math",localizationId:"DataAccessStringId.ExpressionEditor_FunctionCategory_Math",items:{Abs:[{paramCount:1,text:"Abs()",descriptionStringId:"ExpressionEditorStringId.Function_Abs"}],Sqr:[{paramCount:1,text:"Sqr()",descriptionStringId:"ExpressionEditorStringId.Function_Sqr"}],Cos:[{paramCount:1,text:"Cos()",descriptionStringId:"ExpressionEditorStringId.Function_Cos"}],Sin:[{paramCount:1,text:"Sin()",descriptionStringId:"ExpressionEditorStringId.Function_Sin"}],Atn:[{paramCount:1,text:"Atn()",descriptionStringId:"ExpressionEditorStringId.Function_Atn"}],Exp:[{paramCount:1,text:"Exp()",descriptionStringId:"ExpressionEditorStringId.Function_Exp"}],Log:[{paramCount:1,text:"Log()",descriptionStringId:"ExpressionEditorStringId.Function_Log"},{paramCount:2,text:"Log(, )",descriptionStringId:"ExpressionEditorStringId.Function_Log_2"}],Rnd:[{paramCount:0,text:"Rnd()",descriptionStringId:"ExpressionEditorStringId.Function_Rnd"}],Tan:[{paramCount:1,text:"Tan()",descriptionStringId:"ExpressionEditorStringId.Function_Tan"}],Power:[{paramCount:2,text:"Power(, )",descriptionStringId:"ExpressionEditorStringId.Function_Power"}],Sign:[{paramCount:1,text:"Sign()",descriptionStringId:"ExpressionEditorStringId.Function_Sign"}],Round:[{paramCount:1,text:"Round()",descriptionStringId:"ExpressionEditorStringId.Function_Round"},{paramCount:2,text:"Round(, )",descriptionStringId:"ExpressionEditorStringId.Function_Round_2"}],Ceiling:[{paramCount:1,text:"Ceiling()",descriptionStringId:"ExpressionEditorStringId.Function_Ceiling"}],Floor:[{paramCount:1,text:"Floor()",descriptionStringId:"ExpressionEditorStringId.Function_Floor"}],Max:[{paramCount:2,text:"Max(, )",descriptionStringId:"ExpressionEditorStringId.Function_Max"}],Min:[{paramCount:2,text:"Min(, )",descriptionStringId:"ExpressionEditorStringId.Function_Min"}],Acos:[{paramCount:1,text:"Acos()",descriptionStringId:"ExpressionEditorStringId.Function_Acos"}],Asin:[{paramCount:1,text:"Asin()",descriptionStringId:"ExpressionEditorStringId.Function_Asin"}],Atn2:[{paramCount:2,text:"Atn2(, )",descriptionStringId:"ExpressionEditorStringId.Function_Atn2"}],BigMul:[{paramCount:2,text:"BigMul(, )",descriptionStringId:"ExpressionEditorStringId.Function_BigMul"}],Cosh:[{paramCount:1,text:"Cosh()",descriptionStringId:"ExpressionEditorStringId.Function_Cosh"}],Log10:[{paramCount:1,text:"Log10()",descriptionStringId:"ExpressionEditorStringId.Function_Log10"}],Sinh:[{paramCount:1,text:"Sinh()",descriptionStringId:"ExpressionEditorStringId.Function_Sinh"}],Tanh:[{paramCount:1,text:"Tanh()",descriptionStringId:"ExpressionEditorStringId.Function_Tanh"}],ToInt:[{paramCount:1,text:"ToInt()",descriptionStringId:"ExpressionEditorStringId.Function_ToInt"}],ToLong:[{paramCount:1,text:"ToLong()",descriptionStringId:"ExpressionEditorStringId.Function_ToLong"}],ToFloat:[{paramCount:1,text:"ToFloat()",descriptionStringId:"ExpressionEditorStringId.Function_ToFloat"}],ToDouble:[{paramCount:1,text:"ToDouble()",descriptionStringId:"ExpressionEditorStringId.Function_ToDouble"}],ToDecimal:[{paramCount:1,text:"ToDecimal()",descriptionStringId:"ExpressionEditorStringId.Function_ToDecimal"}]}},{display:"String",localizationId:"DataAccessStringId.ExpressionEditor_FunctionCategory_Text",items:{Trim:[{paramCount:1,text:"Trim()",descriptionStringId:"ExpressionEditorStringId.Function_Trim"}],Len:[{paramCount:1,text:"Len()",descriptionStringId:"ExpressionEditorStringId.Function_Len"}],Substring:[{paramCount:3,text:"Substring('', , )",descriptionStringId:"ExpressionEditorStringId.Function_Substring_3"},{paramCount:2,text:"Substring('', )",descriptionStringId:"ExpressionEditorStringId.Function_Substring"}],Upper:[{paramCount:1,text:"Upper()",descriptionStringId:"ExpressionEditorStringId.Function_Upper"}],Lower:[{paramCount:1,text:"Lower()",descriptionStringId:"ExpressionEditorStringId.Function_Lower"}],Concat:[{paramCount:1/0,text:"Concat(, )",descriptionStringId:"ExpressionEditorStringId.Function_Concat"}],Ascii:[{paramCount:1,text:"Ascii('')",descriptionStringId:"ExpressionEditorStringId.Function_Ascii"}],Char:[{paramCount:1,text:"Char()",descriptionStringId:"ExpressionEditorStringId.Function_Char"}],ToStr:[{paramCount:1,text:"ToStr()",descriptionStringId:"ExpressionEditorStringId.Function_ToStr"}],Replace:[{paramCount:3,text:"Replace('','', '')",descriptionStringId:"ExpressionEditorStringId.Function_Replace"}],Reverse:[{paramCount:1,text:"Reverse('')",descriptionStringId:"ExpressionEditorStringId.Function_Reverse"}],Insert:[{paramCount:3,text:"Insert('', , '')",descriptionStringId:"ExpressionEditorStringId.Function_Insert"}],CharIndex:[{paramCount:2,text:"CharIndex('','')",descriptionStringId:"ExpressionEditorStringId.Function_CharIndex"},{paramCount:3,text:"CharIndex('','', )",descriptionStringId:"ExpressionEditorStringId.Function_CharIndex_3"}],Remove:[{paramCount:2,text:"Remove('', )",descriptionStringId:"ExpressionEditorStringId.Function_Remove"},{paramCount:3,text:"Remove('', , )",descriptionStringId:"ExpressionEditorStringId.Function_Remove_3"}],PadLeft:[{paramCount:2,text:"PadLeft(, )",descriptionStringId:"ExpressionEditorStringId.Function_PadLeft"},{paramCount:3,text:"PadLeft(, , '')",descriptionStringId:"ExpressionEditorStringId.Function_PadLeft_3"}],PadRight:[{paramCount:2,text:"PadRight(, )",descriptionStringId:"ExpressionEditorStringId.Function_PadRight"},{paramCount:3,text:"PadRight(, , '')",descriptionStringId:"ExpressionEditorStringId.Function_PadRight_3"}],StartsWith:[{paramCount:2,text:"StartsWith('', '')",descriptionStringId:"ExpressionEditorStringId.Function_StartsWith"}],EndsWith:[{paramCount:2,text:"EndsWith('', '')",descriptionStringId:"ExpressionEditorStringId.Function_EndsWith"}],Contains:[{paramCount:0,text:"Contains('', '')",descriptionStringId:"ExpressionEditorStringId.Function_Contains"}],Join:[{paramCount:1,text:"Join()",descriptionStringId:"ExpressionEditorStringId.Function_Join"},{paramCount:2,text:"Join(, '')",descriptionStringId:"ExpressionEditorStringId.Function_Join_2"}]}}],a.insertInFunctionDisplay=b}(c.Internal||(c.Internal={}))}(d=b.Widgets||(b.Widgets={}));var e;!function(b){function c(a){var b=[];for(var c in a)isNaN(c)&&b.push(c);return b}var d=function(){function a(a,b,c,d){this.tokenName=a,this.alphabet=b,this.startTerm=c,this.endTerm=d,this.tokenLength=0,this.isActiveState=!1,this.tokens=[]}return a.prototype._isSubline=function(a,b){for(var c=a+b.length-1<this.alphabet.length,d=a;d<a+b.length&&c;d++)c=this.alphabet[d]==b[d-a];return c},a.prototype._getToken=function(a){var b={type:this.tokenName,start:a-this.tokenLength+1,end:a+this.endTerm.length};return b.val=this.alphabet.substring(b.start,b.end),b},a.prototype.processTransitionFunction=function(a){this.isActiveState&&this.tokenLength++,this._isSubline(a,this.startTerm)&&!this.isActiveState?(this.isActiveState=!0,this.tokenLength++):this._isSubline(a,this.endTerm)&&(this.isActiveState=!1,this.tokens.push(this._getToken(a)),this.tokenLength=0)},a}();b.MachineState=d;var e=function(){function c(a){this.stringCriteria=a,this.machineStates=[],this.machineStates.push(new d("field",a,"[","]")),this.machineStates.push(new d("value",a,"'","'")),this.machineStates.push(new d("comment",a,"/*","*/")),this._inputStringCriteria=a}return c.prototype._tokenize=function(){for(var a=this,b=0;b<this.stringCriteria.length;b++)this.machineStates.forEach(function(c){a.machineStates.filter(function(a){return a!=c&&a.isActiveState}).length||c.processTransitionFunction(b)});var c=[];return this.machineStates.forEach(function(a){c=c.concat(a.tokens),a.tokens=[]}),c},c.prototype._replaceTokenToAnotherToken=function(b,c,d){var e=this.stringCriteria;return b=b.filter(function(a){return a.type==d}).sort(function(a){return a.start}).reverse(),b.forEach(function(b){e=a.Analytics.Internal.stringReplace(e,b.start,b.end-b.start,c)}),e},c.prototype.replaceCommentsToChar=function(a){return void 0===a&&(a=""),this._inputStringCriteria=this._replaceTokenToAnotherToken(this._tokenize(),a,"comment"),this},c.prototype.getCriteria=function(){return b.criteriaparser.parse(this._inputStringCriteria)},c}();b.CriteriaOperatorStateMachine=e;var f=function(){function a(){var a=this;this.type="Default",this.operands=null,this.changeValueType=function(b,c){var d=new b;return null!==c.index?a[c.name][c.index]=d:a[c.name]=d,d},this.changeValue=function(c,d,e){var f=d?new b.UnaryOperator(b.UnaryOperatorType.Minus,c):c;return null!==e.index?a[e.name][e.index]=f:a[e.name]=f,f},this.assignLeftPart=function(a){},this.assignRightPart=function(a){},this.assignType=function(b){a.operatorType=b},this.resetrightPart=function(a){}}return a.operators=function(a){return[].concat.apply([],a.map(function(a){return c(a).map(function(b){return{name:b,value:a[b],type:a}})}))},a.parse=function(a,b){return void 0===b&&(b=!1),a&&""!==a?b?new e(a).replaceCommentsToChar(" ").getCriteria():new e(a).replaceCommentsToChar().getCriteria():null},a.create=function(a){var c=null;switch(a.type){case b.BinaryOperatorType:c=new b.BinaryOperator(new b.OperandProperty,new b.OperandValue,a.value);break;case b.GroupOperatorType:c=new b.GroupOperator(a.value,[]);break;case b.FunctionOperatorType:c=new b.FunctionOperator(a.value,[new b.OperandProperty]);break;case b.BetweenOperator:c=new b.BetweenOperator(new b.OperandProperty,new b.OperandValue,new b.OperandValue);break;case b.InOperator:c=new b.InOperator(new b.OperandProperty,[new b.OperandValue]);break;case b.UnaryOperatorType:c=new b.UnaryOperator(a.value,new b.OperandProperty);break;case b.Aggregate:var d=new b.AggregateOperand(new b.OperandProperty,null,a.value,new b.GroupOperator(b.GroupOperatorType.And,[]));a.value===b.Aggregate.Exists?c=d:(a.value!==b.Aggregate.Count&&(d.aggregatedExpression=new b.OperandProperty),c=new b.BinaryOperator(d,new b.OperandValue,b.BinaryOperatorType.Equal));break;default:throw Error("Unsupported operator type")}return a.reverse?new b.UnaryOperator(b.UnaryOperatorType.Not,c):c},a.and=function(a,c){return b.GroupOperator.combine(b.GroupOperatorType.Or,[a,c])},a.or=function(a,c){return b.GroupOperator.combine(b.GroupOperatorType.Or,[a,c])},a.getNotValidRange=function(a,b){var c=0,d=b.split("\n"),e=d[1],f=d[2].length;0===e.indexOf("...")&&(e=e.split("...")[1]);var c=a.indexOf(e);return{start:c,end:c+f}},Object.defineProperty(a.prototype,"displayType",{get:function(){return this.operatorType},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"enumType",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"leftPart",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rightPart",{get:function(){return null},enumerable:!0,configurable:!0}),a.prototype.assignFrom=function(a,c){void 0===c&&(c=!1);var d=a;a instanceof b.UnaryOperator&&!(a.leftPart instanceof b.OperandProperty)&&(d=a.leftPart),c?this.assignLeftPart(d.leftPart):this.assignLeftPart(d),d.rightPart&&this.assignRightPart(d)},a.prototype.children=function(){var a=[];return this.leftPart&&a.push.apply(a,$.isArray(this.leftPart)?this.leftPart:[this.leftPart]),this.rightPart&&a.push.apply(a,$.isArray(this.rightPart)?this.rightPart:[this.rightPart]),a},a.prototype.accept=function(a){throw"Not implemented"},a}();b.CriteriaOperator=f}(e=b.Criteria||(b.Criteria={})),function(d){!function(d){function f(c,d,e){void 0===e&&(e=null);var e=e||c.text;return{caption:d,snippet:e,meta:b.Utils.getLocalization("function","DxDesignerStringId.CodeCompletion_Function"),tooltip:c.description||a.Analytics.Utils.getLocalization(c.text,c.descriptionStringId)||null,score:10,completer:{insertMatch:function(a,d){var f=a.completer.completions;if(f.filterText)for(var g,h=a.selection.getAllRanges(),i=0;g=h[i];i++)g.start.column-=f.filterText.length,a.session.remove(g);if("[]."===e.substr(0,3))for(var g,h=a.selection.getAllRanges(),i=0;g=h[i];i++)g.start.column-=2,"]."===a.session.getTextRange(g)&&(e=e.substr(3));a.insert(e),b.Internal.setCursorInFunctionParameter(c.paramCount,a,e)}}}}function g(a){return a.substring("["===a[0]?1:0,"]"===a[a.length-1]?a.length-1:a.length)}var h=function(a){function h(b){var c=a.call(this)||this;return c._options=b,c._contextPath=null,c._isInContext=function(){return null!==c._contextPath},c._getPath=function(){return c._contextPath?c._path()+"."+c._contextPath:c._path()},c.identifierRegexps=[/\./,/\[/],c._fieldListProvider=b.fieldListProvider,c._path=b.path,c._editor=b.editor,c._functions=ko.computed(function(){return ko.unwrap(b.functions)||d.functionDisplay}),c._rootItems=b.rootItems||[{name:"Parameters",needPrefix:!0}],c._disposables.push(c._functions),c}return __extends(h,a),h.prototype._previousSymbol=function(){var a=this._editor.getCursorPosition();return this._editor.session.getLine(a.row)[a.column-1]},h.prototype.beforeInsertMatch=function(a,b,c){var d=a.getCursorPosition();if("Parameters."===c)(b=b||!this._isInContext()&&a.session.getTokenAt(d.row,d.column))&&("support.variable.other"===b.type||"support.function"===b.type?a.session.remove({start:{column:b.start-1||0,row:d.row},end:{column:Math.max(b.start+b.value.length||0,d.column),row:d.row}}):"support.variable.parameter"===b.type?a.session.remove({start:{column:b.start||0,row:d.row},end:{column:Math.max(b.start+b.value.length+1||0,d.column),row:d.row}}):"text"===b.type&&"?"===b.value[b.value.length-1]&&a.session.remove({start:{column:b.start+b.value.length-1||0,row:d.row},end:{column:b.start+b.value.length||0,row:d.row}}));else{if(!(b=b||a.session.getTokenAt(d.row,d.column)))return;var e=null;"support.variable.other"===b.type||"support.function"===b.type?e=Math.max(b.start+b.value.length||0,d.column):"support.context.start"===b.type&&d.column<b.start+b.value.length&&(e=b.start+b.value.length-1||0),null!==e&&a.session.remove({start:{column:b.start||0,row:d.row},end:{column:e,row:d.row}})}},h.prototype.insertMatch=function(a,b,c){"Parameters."===b?a.insert("?"+c):a.insert("["+(b||"")+c+"]")},h.prototype.generateFieldDisplayName=function(a,b){return"Parameters."===a?"?"+b:"["+b+"]"},h.prototype._convertDataMemberInfoToCompletions=function(a,c,d){var e=this;return void 0===d&&(d=""),(a||[]).map(function(a){var f=e.generateFieldDisplayName(d,a.displayName);return{caption:a.displayName||a.name,snippet:f,meta:b.Internal.isList(a)&&b.Utils.getLocalization("list","DxDesignerStringId.CodeCompletion_List")||b.Utils.getLocalization("field","DxDesignerStringId.CodeCompletion_Field"),score:b.Internal.isList(a)&&200||100,completer:{insertMatch:function(b,f){e.beforeInsertMatch(b,c,d),e.insertMatch(b,d,e._options.getRealExpression?a.displayName||a.name:a.name)}}}})},h.prototype._combinePath=function(a){var b=this._getPath();if(a){var c=this._rootItems.filter(function(b){return 0===a.indexOf(b.name)})[0];b=c&&c.rootPath?[c.rootPath,a].join("."):[b,a].join(".")}return b},h.prototype._getParentPrefix=function(a){var b=this._editor.getCursorPosition().column-a.start-1,c=a.value.lastIndexOf(".",b),d=a.value.lastIndexOf("]",b);c=Math.max(d,c);var e="support.variable.other"===a.type||"support.context.start"===a.type?1:0,f=a.value.substring(e,c);return"["===f[0]&&(f=f.substr(1)),"]"===f[f.length-1]&&(f=f.substring(0,f.length-1)),f},h.prototype._getRealPath=function(a){var b=a.split("."),c=$.Deferred();return this._options.getRealExpression?this._options.getRealExpression(b[0],this.generateFieldDisplayName(null,b.splice(1).join("."))).done(function(a){a=a.slice(1,a.length-1),c.resolve(a&&[b[0],a].join(".")||b[0])}).fail(function(){c.resolve(a)}):c.resolve(a),c.promise()},h.prototype._getFields=function(a,b,d){var e=this;void 0===a&&(a=null),void 0===b&&(b=[]),void 0===d&&(d=!1);var f=$.Deferred(),g=void 0;return!a||"support.variable.other"!==a.type&&"support.function"!==a.type&&"support.context.start"!==a.type||(g=this._getParentPrefix(a)),this._getRealPath(this._combinePath(g)).done(function(i){var j=ko.unwrap(e._fieldListProvider).getItems(new c.PathRequest(i)).done(function(c){b.push.apply(b,e._convertDataMemberInfoToCompletions(h._cleanupFields(c),a,d?null:g&&g+"."))}),k=[j],l=[];g||e._rootItems.forEach(function(d){var f=d.rootPath||d.name;-1===l.indexOf(f)&&(l.push(f),k.push(ko.unwrap(e._fieldListProvider).getItems(new c.PathRequest(d.rootPath||d.name)).done(function(c){b.push.apply(b,e._convertDataMemberInfoToCompletions(h._cleanupFields(c),a,d.needPrefix?d.name+".":""))})))}),$.when(k).always(function(){f.resolve(b)})}),f.promise()},h._cleanupFields=function(a){return void 0===a&&(a=[]),a.filter(function(a){return"parameters"!==a.specifics&&"none"!==a.specifics})},h.prototype.getFunctionsCompletions=function(){var a=[];return ko.unwrap(this._functions).filter(function(a){return"Aggregate"!==a.category}).forEach(function(b){Object.keys(b.items).forEach(function(c){b.items[c]&&a.push(f(b.items[c][0],c))})}),a},h.prototype.getAggregateCompletions=function(){var a=[],b=ko.unwrap(this._functions).filter(function(a){return"Aggregate"===a.category})[0];return b&&Object.keys(b.items).forEach(function(c){b.items[c]&&a.push(f(b.items[c][0],c,c+"()"))}),a},h.prototype.getOperatorCompletions=function(a){return d.operatorNames.map(function(c){return{caption:c.text,snippet:a+c.text,meta:b.Utils.getLocalization("operator","DxDesignerStringId.CodeCompletion_Operator")}})},h.prototype._addFunctions=function(a){a.push.apply(a,this.getFunctionsCompletions())},h.prototype._addAggregates=function(a){a.push.apply(a,this.getAggregateCompletions())},h.prototype._addOperators=function(a,b){var c=/\s/.test(b[b.length-1])?"":" ";a.push.apply(a,this.getOperatorCompletions(c))},h.prototype._addParameterOperators=function(a,b){var d=this,e=$.Deferred(),f=ko.unwrap(this._fieldListProvider).getItems(new c.PathRequest("Parameters")).done(function(c){a.push.apply(a,d._convertDataMemberInfoToCompletions(c,b,"Parameters."))});return $.when(f).always(function(){e.resolve(a)}),e.promise()},h.prototype._getOperands=function(a){void 0===a&&(a=null);var b=[];return this._addFunctions(b),this._getFields(a,b)},h.prototype._getOperandsOrOperators=function(a,b,c){var d;try{e.CriteriaOperator.parse(b)}catch(a){d=a.hash}var f=b.trim(),g=f[f.length-1];if("?"===g&&" "!==b[b.length-1])this._addParameterOperators(c,a);else{if((d||!f)&&"]"!==g&&")"!==g)return this._getOperands();this._addOperators(c,b)}},h.prototype._findStartContextTokenPosition=function(a,b){for(var c=0,d=b;d>-1;d--)if("support.context.end"===a[d].type)c++;else if("support.context.start"===a[d].type){if(!(c>0))return d;c--}},h.prototype._findOpenedStartContext=function(a,b){for(var c=[],d=a.filter(function(a,c){return("support.context.start"===a.type||"support.context.end"===a.type)&&c<b}),e=0;e<d.length;e++)"support.context.start"===d[e].type?c.push(a.indexOf(d[e])):c.pop();return c},h.prototype._findOpenedAggregates=function(a,b){var c=[],d=a.filter(function(a,c){return"support.other.aggregate"===a.type&&c<b});if(d.length>0)for(var e=a[b],f=this._editor.getCursorPosition().column-(e&&e.start||0),g=d.length-1;g>-1;g--){var h=a.indexOf(d[g]),i=0,j=0,k=!1;if(h+1===b&&-1!==a[h+1].value.substr(0,f).indexOf("()")||h+1<b&&-1!==a[h+1].value.indexOf("()"))k=!0,b=h;else{for(var l=h;l<b;l++)if("("===a[l].value.trim()?i++:")"===a[l].value.trim()&&j++,i===j&&0!==i){k=!0;break}k||c.splice(0,0,h),b=h}}return c},h.prototype._getContextPath=function(a,b){var c=[],d=this._findOpenedAggregates(a,b),e=this._findOpenedStartContext(a,b),f=e.concat.apply(e,d).sort(function(a,b){return a-b});if(f.length>0)for(var h=0;h<f.length;h++)if("support.other.aggregate"===a[f[h]].type)if("support.context.end"===a[f[h]-1].type){var i=this._findStartContextTokenPosition(a,f[h]-2),j=g(a[i].value.match(/^\[(?:[^\]\)])*\]/)[0]);c.push(j)}else"support.variable.other"===a[f[h]-1].type&&c.push(g(a[f[h]-1].value));else{var j=g(a[f[h]].value.match(/^\[(?:[^\]\)])*\]/)[0]);c.push(j)}return c.filter(function(a){return!!a}).join(".")},h.prototype._getCompletions=function(a,b,c,d){var e,f=[],h=b.getTokenAt(c.row,c.column),i=a.session.getLine(c.row).substring(0,c.column),j=b.getTokens(c.row),k=h?h.index:-1;if(this._contextPath=this._getContextPath(j,k),h)if("support.context.start"===h.type){var l=this._editor.getCursorPosition().column-h.start===h.value.length;if(l){var m=[];this._addFunctions(m)}e=this._getFields(h,m,l)}else if("string.quoted.single"===h.type);else if(0===h.type.indexOf("support.variable"))e=this._getFields(h);else if("support.function"===h.type)e=this.defaultProcess(h,i.substring(0,h.start),f);else if("support.other.aggregate"===h.type){var n=j[k-1];this._addAggregates(f),n&&g(n.value).trim()&&(e=this._getFields({start:h.start-(n.value||"").length||0,value:n.value+h.value,type:"support.function"},f))}else 0!==h.type.indexOf("comment")&&(e=this.defaultProcess(h,i,f));else e=this._getOperands();return e?e.promise():$.Deferred().resolve(f).promise()},h.prototype.defaultProcess=function(a,b,c){return this._getOperandsOrOperators(a,b,c)},h.prototype.getCompletions=function(a,b,c,d,e){this._getCompletions(a,b,c,d).done(function(a){e(null,a)})},h.prototype.getDocTooltip=function(a){a.tooltip&&!a.docHTML&&(a.docHTML=[a.tooltip].join(""))},h}(c.Disposable);d.CodeCompletor=h,d.createFunctionCompletion=f}(d.Internal||(d.Internal={}))}(d=b.Widgets||(b.Widgets={})),function(a){!function(b){function c(b,d,e){void 0===e&&(e=""),d(b,e),b instanceof a.AggregateOperand&&(b.leftPart&&c(b.leftPart,d,e),b.leftPart&&b.leftPart.propertyName&&(e=e?[e,b.leftPart.propertyName].join("."):b.leftPart.propertyName)),b.children().forEach(function(a){return c(a,d,e)})}b.operatorTokens={Plus:"+",Minus:"-",Equal:"=",NotEqual:"<>",Greater:">",Less:"<",LessOrEqual:"<=",GreaterOrEqual:">="},b.criteriaForEach=c}(a.Utils||(a.Utils={}));var b=function(a){function b(b,c,d,e){void 0===b&&(b=""),void 0===c&&(c=-1),void 0===d&&(d=-1),void 0===e&&(e=0);var f=a.call(this)||this;return f.type="Property",f.propertyName=b,f.originalPropertyLength=e,f.startPosition={column:c,line:d},f}return __extends(b,a),Object.defineProperty(b.prototype,"displayType",{get:function(){return"["+this.propertyName+"]"},enumerable:!0,configurable:!0}),b.prototype.accept=function(a){return a.visitOperandProperty?a.visitOperandProperty(this):new b(this.propertyName)},b}(a.CriteriaOperator);a.OperandProperty=b}(e=b.Criteria||(b.Criteria={})),function(a){var b=function(){function a(a){this.displayNameProvider=a}return a.prototype._replaceNames=function(a,b,c){var f=this,g=$.Deferred();if(!b)return g.resolve("").promise();try{var h=e.CriteriaOperator.parse(b,!0)}catch(a){return g.reject().promise()}var i=[],j=[],k=new d.Internal.FilterEditorSerializer;if(e.Utils.criteriaForEach(h,function(b,d){if(b instanceof e.OperandProperty){var g=0===b.propertyName.indexOf("^."),h=g?b.propertyName.substring(2):b.propertyName;h=d?[d,h].join("."):h;var k=c?f.displayNameProvider.getDisplayNameByPath(a,h):f.displayNameProvider.getRealName(a,h);i.push(k.done(function(a){var c=g?"^."+a:a;c=d?c.split(".").slice(d.split(".").length).join("."):c,j.push({operand:b,convertedName:c})}))}}),0===i.length)g.resolve(b);else{var l=0,m=function(){if(!(++l<i.length)){for(var a=b.split("\n"),c=0;c<a.length;c++)for(var d=j.filter(function(a){return a.operand.startPosition.line===c}).sort(function(a,b){return a.operand.startPosition.column-b.operand.startPosition.column}),e=0,f=0;e<d.length;e++){var h=d[e].operand.startPosition.column,m=d[e].operand.propertyName,n=0;d[e].operand.originalPropertyLength!==m.length&&(n=d[e].operand.originalPropertyLength-k.serialize(d[e].operand,!1).length);var o=d[e].convertedName;!m||h<0||(a[c]=a[c].substring(0,h+f)+o+a[c].substring(h+m.length+n+f),f+=o.length-m.length-n)}g.resolve(a.join("\n"))}};i.forEach(function(a){return a.always(m)})}return g.promise()},a.prototype.toDisplayExpression=function(a,b){return this._replaceNames(a,b,!0)},a.prototype.toRealExpression=function(a,b){return this._replaceNames(a,b,!1)},a}();a.DisplayExpressionConverter=b}(b.Internal||(b.Internal={})),function(a){var c=function(){function b(){this._func=[]}return b.prototype.CriteriaOperator=function(){return new a.CriteriaOperator},b.prototype.BinaryOperator=function(a){return new h(a.left,a.right,a.operatorType)},b.prototype.FunctionOperator=function(a){return new l(a.operatorType,a.operands)},b.prototype.AggregateOperand=function(a){return new e(a.property,a.aggregatedExpression,a.aggregateType,a.condition)},b.prototype.GroupOperator=function(a){return new n(a.operation,a.operands)},b.prototype.InOperator=function(a){return new o(a.criteriaOperator,a.operands)},b.prototype.ConstantValue=function(a){return new j(a.value)},b.prototype.OperandValue=function(a){return new i(a.value)},b.prototype.OperandParameter=function(a){return new q(a.parameterName,a.value)},b.prototype.OperandProperty=function(b){return new a.OperandProperty(b.propertyName,b.startColumn,b.startLine,b.originalPropertyLength)},b.prototype.UnaryOperator=function(a){return new s(a.operatorType,a.operator)},b.prototype.BetweenOperator=function(a){return new f(a.property,a.begin,a.end)},b.prototype.JoinOperator=function(a){return new p(a.joinTypeName,a.condition,a.type,a.aggregated)},b.prototype.addListener=function(a){-1===this._func.indexOf(a)&&this._func.push(a)},b.prototype.removeListener=function(a){var b=this._func.indexOf(a);-1!==b&&this._func.splice(b,1)},b.prototype.process=function(a,b){var c=this.CriteriaOperator();switch(a){case"join":c=this.JoinOperator(b);break;case"between":c=this.BetweenOperator(b);break;case"property":c=this.OperandProperty(b);break;case"parameter":c=this.OperandParameter(b);break;case"value":c=this.OperandValue(b);break;case"in":c=this.InOperator(b);break;case"function":c=this.FunctionOperator(b);break;case"unary":c=this.UnaryOperator(b);break;case"group":c=this.GroupOperator(b);break;case"binary":c=this.BinaryOperator(b);break;case"const":c=this.ConstantValue(b);break;case"aggregate":c=this.AggregateOperand(b)}return this._func.forEach(function(d){c=d(c,{operatorType:a,options:b})}),c},b}();a.CriteriaOperatorPreprocessor=c,a.criteriaCreator=new c;var d;!function(a){a[a.Count=0]="Count",a[a.Exists=1]="Exists",a[a.Min=2]="Min",a[a.Max=3]="Max",a[a.Avg=4]="Avg",a[a.Sum=5]="Sum",a[a.Single=6]="Single"}(d=a.Aggregate||(a.Aggregate={}));var e=function(b){function c(d,e,f,g){var h=b.call(this)||this;return h.change=function(b,c){var d=null;return b.type===m&&(d=a.CriteriaOperator.create(b),b.type!==d.enumType?d.leftPart.assignFrom(c):d.assignFrom(c),h.condition=d),d},h.assignLeftPart=function(b){b.leftPart instanceof c?h.assignFrom(b.leftPart):a.CriteriaOperator instanceof c?(h.property=b.property,h.aggregatedExpression&&b.aggregatedExpression&&(h.aggregatedExpression=b.aggregatedExpression),h.condition=b.property):h.property=b.leftPart},h.type="Aggregate",h.property=d,g instanceof n?h.condition=g:g instanceof s&&g.operatorType===r.Not?g.operand instanceof n?h.condition=new s(r.Not,g.operand):h.condition=new s(r.Not,new n(m.And,g.operand?[g.operand]:[])):h.condition=new n(m.And,g?[g]:[]),h.operatorType=f,h.aggregatedExpression=e,h}return __extends(c,b),Object.defineProperty(c.prototype,"displayType",{get:function(){return d[this.operatorType]},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"enumType",{get:function(){return d},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"leftPart",{get:function(){return this.property},enumerable:!0,configurable:!0}),c.prototype.children=function(){var a=[];return this.condition&&a.push(this.condition),this.aggregatedExpression&&a.push(this.aggregatedExpression),a},c.prototype.accept=function(a){return a.visitAggregateOperand?a.visitAggregateOperand(this):new c(this.property&&this.property.accept(a),this.aggregatedExpression&&this.aggregatedExpression.accept(a),this.operatorType,this.condition&&this.condition.accept(a))},c}(a.CriteriaOperator);a.AggregateOperand=e;var f=function(a){function b(b,c,d){var e=a.call(this)||this;return e.resetRightPart=function(a){e.begin=new i(a),e.end=new i(a)},e.assignLeftPart=function(a){e.property=a.leftPart},e.assignRightPart=function(a){null!==a.rightPart.length&&void 0!==a.rightPart.length?a.rightPart.length?(e.begin=a.rightPart[0],e.end=a.rightPart.length>1?a.rightPart[1]:new i):(e.begin=new i,e.end=new i):(e.begin=a.rightPart,e.end=new i)},e.operatorType="Between",e.type="Between",e.property=b,e.begin=c||new i,e.end=d||new i,e}return __extends(b,a),Object.defineProperty(b.prototype,"leftPart",{get:function(){return this.property},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"rightPart",{get:function(){return[this.begin,this.end]},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"displayType",{get:function(){return"Between"},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"enumType",{get:function(){return b},enumerable:!0,configurable:!0}),b.prototype.accept=function(a){return a.visitBetweenOperator?a.visitBetweenOperator(this):new b(this.property&&this.property.accept(a),this.begin&&this.begin.accept(a),this.end&&this.end.accept(a))},b}(a.CriteriaOperator);a.BetweenOperator=f;var g;!function(a){a[a.Equal=0]="Equal",a[a.NotEqual=1]="NotEqual",a[a.Greater=2]="Greater",a[a.Less=3]="Less",a[a.LessOrEqual=4]="LessOrEqual",a[a.GreaterOrEqual=5]="GreaterOrEqual",a[a.Like=6]="Like",a[a.BitwiseAnd=7]="BitwiseAnd",a[a.BitwiseOr=8]="BitwiseOr",a[a.BitwiseXor=9]="BitwiseXor",a[a.Divide=10]="Divide",a[a.Modulo=11]="Modulo",a[a.Multiply=12]="Multiply",a[a.Plus=13]="Plus",a[a.Minus=14]="Minus"}(g=a.BinaryOperatorType||(a.BinaryOperatorType={}));var h=function(b){function c(c,d,e){var f=b.call(this)||this;return f.assignLeftPart=function(a){f.leftOperand=a.leftPart},f.assignRightPart=function(a){null!==a.rightPart.length&&void 0!==a.rightPart.length?a.rightPart.length&&(f.rightOperand=a.rightPart[0]):f.rightOperand=a.rightPart},f.type="Binary",f.leftOperand=c||new a.CriteriaOperator,f.rightOperand=d||new a.CriteriaOperator,f.operatorType=e,f}return __extends(c,b),Object.defineProperty(c.prototype,"leftPart",{get:function(){return this.leftOperand},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"rightPart",{get:function(){return this.rightOperand},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"displayType",{get:function(){return a.Utils.operatorTokens[g[this.operatorType]]||g[this.operatorType]},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"enumType",{get:function(){return g},enumerable:!0,configurable:!0}),c.prototype.accept=function(a){return a.visitBinaryOperator?a.visitBinaryOperator(this):new c(this.leftOperand&&this.leftOperand.accept(a),this.rightOperand&&this.rightOperand.accept(a),this.operatorType)},c}(a.CriteriaOperator);a.BinaryOperator=h;var i=function(a){function c(c){var d=a.call(this)||this;d.type="Value";var e=null!==c&&void 0!==c?c:"";return c&&c.length&&("'"===c[0]&&"'"===c[c.length-1]||b.Widgets.Internal.validateGuid(c))?e=d._processStringValue(c):c&&c.length&&"#"===c[0]&&"#"===c[c.length-1]?(e=c.slice(1,c.length-1),(e=b.Internal.parseDate(e))||(e=b.Internal.parseDate(c.slice(1,c.length-1)))):"true"!==String(c).toLowerCase()&&"false"!==String(c).toLowerCase()||(e="true"===String(c).toLowerCase()?"True":"False"),d.value=e,d}return __extends(c,a),c.prototype._processStringValue=function(a){var b=a.slice(1,a.length-1);return-1!==b.indexOf("''")&&(b=b.replace("''","'")),b},Object.defineProperty(c.prototype,"displayType",{get:function(){return this.value||"?"},enumerable:!0,configurable:!0}),c}(a.CriteriaOperator);a.OperandValue=i;var j=function(a){function b(b){return a.call(this,b)||this}return __extends(b,a),b.prototype.accept=function(a){return a.visitConstantValue?a.visitConstantValue(this):new b(this.value)},b}(i);a.ConstantValue=j;var k;!function(a){a[a.None=0]="None",a[a.Custom=1]="Custom",a[a.CustomNonDeterministic=2]="CustomNonDeterministic",a[a.Iif=3]="Iif",a[a.IsNull=4]="IsNull",a[a.IsNullOrEmpty=5]="IsNullOrEmpty",a[a.Trim=6]="Trim",a[a.Len=7]="Len",a[a.Substring=8]="Substring",a[a.Upper=9]="Upper",a[a.Lower=10]="Lower",a[a.Concat=11]="Concat",a[a.Ascii=12]="Ascii",a[a.Char=13]="Char",a[a.ToStr=14]="ToStr",a[a.Replace=15]="Replace",a[a.Reverse=16]="Reverse",a[a.Insert=17]="Insert",a[a.CharIndex=18]="CharIndex",a[a.Remove=19]="Remove",a[a.Abs=20]="Abs",a[a.Sqr=21]="Sqr",a[a.Cos=22]="Cos",a[a.Sin=23]="Sin",a[a.Atn=24]="Atn",a[a.Exp=25]="Exp",a[a.Log=26]="Log",a[a.Rnd=27]="Rnd",a[a.Tan=28]="Tan",a[a.Power=29]="Power",a[a.Sign=30]="Sign",a[a.Round=31]="Round",a[a.Ceiling=32]="Ceiling",a[a.Floor=33]="Floor",a[a.Max=34]="Max",a[a.Min=35]="Min",a[a.Acos=36]="Acos",a[a.Asin=37]="Asin",a[a.Atn2=38]="Atn2",a[a.BigMul=39]="BigMul",a[a.Cosh=40]="Cosh",a[a.Log10=41]="Log10",a[a.Sinh=42]="Sinh",a[a.Tanh=43]="Tanh",a[a.PadLeft=44]="PadLeft",a[a.PadRight=45]="PadRight",a[a.StartsWith=46]="StartsWith",a[a.EndsWith=47]="EndsWith",a[a.Contains=48]="Contains",a[a.ToInt=49]="ToInt",a[a.ToLong=50]="ToLong",a[a.ToFloat=51]="ToFloat",a[a.ToDouble=52]="ToDouble",a[a.ToDecimal=53]="ToDecimal",a[a.LocalDateTimeThisYear=54]="LocalDateTimeThisYear",a[a.LocalDateTimeThisMonth=55]="LocalDateTimeThisMonth",a[a.LocalDateTimeLastWeek=56]="LocalDateTimeLastWeek",a[a.LocalDateTimeThisWeek=57]="LocalDateTimeThisWeek",a[a.LocalDateTimeYesterday=58]="LocalDateTimeYesterday",a[a.LocalDateTimeToday=59]="LocalDateTimeToday",a[a.LocalDateTimeNow=60]="LocalDateTimeNow",a[a.LocalDateTimeTomorrow=61]="LocalDateTimeTomorrow",a[a.LocalDateTimeDayAfterTomorrow=62]="LocalDateTimeDayAfterTomorrow",a[a.LocalDateTimeNextWeek=63]="LocalDateTimeNextWeek",a[a.LocalDateTimeTwoWeeksAway=64]="LocalDateTimeTwoWeeksAway",a[a.LocalDateTimeNextMonth=65]="LocalDateTimeNextMonth",a[a.LocalDateTimeNextYear=66]="LocalDateTimeNextYear",a[a.IsOutlookIntervalBeyondThisYear=67]="IsOutlookIntervalBeyondThisYear",a[a.IsOutlookIntervalLaterThisYear=68]="IsOutlookIntervalLaterThisYear",a[a.IsOutlookIntervalLaterThisMonth=69]="IsOutlookIntervalLaterThisMonth",a[a.IsOutlookIntervalNextWeek=70]="IsOutlookIntervalNextWeek",a[a.IsOutlookIntervalLaterThisWeek=71]="IsOutlookIntervalLaterThisWeek",a[a.IsOutlookIntervalTomorrow=72]="IsOutlookIntervalTomorrow",a[a.IsOutlookIntervalToday=73]="IsOutlookIntervalToday",a[a.IsOutlookIntervalYesterday=74]="IsOutlookIntervalYesterday",a[a.IsOutlookIntervalEarlierThisWeek=75]="IsOutlookIntervalEarlierThisWeek",a[a.IsOutlookIntervalLastWeek=76]="IsOutlookIntervalLastWeek",a[a.IsOutlookIntervalEarlierThisMonth=77]="IsOutlookIntervalEarlierThisMonth",a[a.IsOutlookIntervalEarlierThisYear=78]="IsOutlookIntervalEarlierThisYear",a[a.IsOutlookIntervalPriorThisYear=79]="IsOutlookIntervalPriorThisYear",a[a.IsThisWeek=80]="IsThisWeek",a[a.IsThisMonth=81]="IsThisMonth",a[a.IsThisYear=82]="IsThisYear",a[a.DateDiffTick=83]="DateDiffTick",a[a.DateDiffSecond=84]="DateDiffSecond",a[a.DateDiffMilliSecond=85]="DateDiffMilliSecond",a[a.DateDiffMinute=86]="DateDiffMinute",a[a.DateDiffHour=87]="DateDiffHour",a[a.DateDiffDay=88]="DateDiffDay",a[a.DateDiffMonth=89]="DateDiffMonth",a[a.DateDiffYear=90]="DateDiffYear",a[a.GetDate=91]="GetDate",a[a.GetMilliSecond=92]="GetMilliSecond",a[a.GetSecond=93]="GetSecond",a[a.GetMinute=94]="GetMinute",a[a.GetHour=95]="GetHour",a[a.GetDay=96]="GetDay",a[a.GetMonth=97]="GetMonth",a[a.GetYear=98]="GetYear",a[a.GetDayOfWeek=99]="GetDayOfWeek",a[a.GetDayOfYear=100]="GetDayOfYear",a[a.GetTimeOfDay=101]="GetTimeOfDay",a[a.Now=102]="Now",a[a.UtcNow=103]="UtcNow",a[a.Today=104]="Today",a[a.AddTimeSpan=105]="AddTimeSpan",a[a.AddTicks=106]="AddTicks",a[a.AddMilliSeconds=107]="AddMilliSeconds",a[a.AddSeconds=108]="AddSeconds",a[a.AddMinutes=109]="AddMinutes",a[a.AddHours=110]="AddHours",a[a.AddDays=111]="AddDays",a[a.AddMonths=112]="AddMonths",a[a.AddYears=113]="AddYears",a[a.OrderDescToken=114]="OrderDescToken"}(k=a.FunctionOperatorType||(a.FunctionOperatorType={}));var l=function(b){function c(c,d){var e=b.call(this)||this;return e.toString=function(b){var c=(a.Utils.operatorTokens[e.displayType]||e.displayType)+"("+e.operands.map(function(a){return a.toString()}).join(", ")+")";return b?"Not "+c:c},e.assignLeftPart=function(a){e.operands=[a.leftPart]},e.assignRightPart=function(a){e.operatorType!==k.IsNullOrEmpty&&e.operatorType!==k.IsOutlookIntervalBeyondThisYear&&e.operatorType!==k.IsOutlookIntervalLaterThisYear&&e.operatorType!==k.IsOutlookIntervalLaterThisMonth&&e.operatorType!==k.IsOutlookIntervalNextWeek&&e.operatorType!==k.IsOutlookIntervalLaterThisWeek&&e.operatorType!==k.IsOutlookIntervalTomorrow&&e.operatorType!==k.IsOutlookIntervalToday&&e.operatorType!==k.IsOutlookIntervalYesterday&&e.operatorType!==k.IsOutlookIntervalEarlierThisWeek&&e.operatorType!==k.IsOutlookIntervalLastWeek&&e.operatorType!==k.IsOutlookIntervalEarlierThisMonth&&e.operatorType!==k.IsOutlookIntervalEarlierThisYear&&e.operatorType!==k.IsOutlookIntervalPriorThisYear&&(null!==a.rightPart.length&&void 0!==a.rightPart.length?a.rightPart.length?e.operands.push(a.rightPart[0]):e.operands.push(new i):e.operands.push(a.rightPart))},e.operands=[],e.type="Function",e.operatorType=c,d=d||[new a.CriteriaOperator],d.forEach(function(a){return e.operands.push(a)}),e}return __extends(c,b),Object.defineProperty(c.prototype,"leftPart",{get:function(){return this.operands[0]},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"rightPart",{get:function(){return this.operands.filter(function(a,b){return 0!==b})},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"displayType",{get:function(){return k[this.operatorType]||this.operatorType.toString()},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"enumType",{get:function(){return k},enumerable:!0,configurable:!0}),c.prototype.accept=function(a){return a.visitFunctionOperator?a.visitFunctionOperator(this):new c(this.operatorType,this.operands&&this.operands.map(function(b){return b.accept(a)}))},c}(a.CriteriaOperator);a.FunctionOperator=l;var m;!function(a){a[a.And=0]="And",a[a.Or=1]="Or"}(m=a.GroupOperatorType||(a.GroupOperatorType={}));var n=function(b){function c(f,j){var k=b.call(this)||this;return k.create=function(a,b,f){var j=new h(b,new i(""),g.Equal);return a?j=new c(m.And,[]):f&&"list"===f&&(j=new e(b,null,d.Exists,new c(m.And,[]))),k.operands.push(j),k.operands[k.operands.indexOf(j)]},k.change=function(b,c,d){void 0===d&&(d=!1);var e=k.operands.indexOf(c);if(-1===e)throw Error("dont have this element in operands collection");var f=a.CriteriaOperator.create(b);return b.type!==f.enumType?f.leftPart.assignFrom(c):f.assignFrom(c,d),k.operands[e]=f,c=null,k.operands[e]},k.remove=function(a){k.operands.splice(k.operands.indexOf(a),1)},k.assignLeftPart=function(a){k.operands=a.operands},k.operands=[],k.type="Group",k.operatorType=f,j=j||[new a.CriteriaOperator,new a.CriteriaOperator],j.forEach(function(a){return k.operands.push(a)}),k}return __extends(c,b),c.combine=function(b,d){var e=[];return(d||[]).forEach(function(a){a instanceof c&&a.operatorType===b?e.push.apply(e,a.operands):e.push(a)}),1===e.length?e[0]:a.criteriaCreator.process("group",{operands:e,operation:b})},c.prototype.children=function(){return this.operands},Object.defineProperty(c.prototype,"displayType",{get:function(){return m[this.operatorType]},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"enumType",{get:function(){return m},enumerable:!0,configurable:!0}),c.prototype.accept=function(a){return a.visitGroupOperator?a.visitGroupOperator(this):new c(this.operatorType,this.operands&&this.operands.map(function(b){return b.accept(a)}))},c}(a.CriteriaOperator);a.GroupOperator=n;var o=function(b){function c(c,d){var e=b.call(this)||this;return e.assignLeftPart=function(a){e.criteriaOperator=a.leftPart},e.assignRightPart=function(a){e.operands=[].concat(a.rightPart)},e.operatorType="In",e.type="In",e.operands=[],e.criteriaOperator=c||new a.CriteriaOperator,(d||[]).forEach(function(a){return e.operands.push(a)}),e}return __extends(c,b),Object.defineProperty(c.prototype,"leftPart",{get:function(){return this.criteriaOperator},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"rightPart",{get:function(){return this.operands},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"displayType",{get:function(){return"In"},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"enumType",{get:function(){return c},enumerable:!0,configurable:!0}),c.prototype.accept=function(a){return a.visitInOperator?a.visitInOperator(this):new c(this.criteriaOperator&&this.criteriaOperator.accept(a),this.operands&&this.operands.map(function(b){return b.accept(a)}))},c}(a.CriteriaOperator);a.InOperator=o;var p=function(b){function c(a,c,d,e){var f=b.call(this)||this;return f.type="Join",f.joinTypeName=a,f.condition=c,f.operatorType=d,f.aggregatedExpression=e,f}return __extends(c,b),c.joinOrAggregate=function(b,c,d,e){return null===b||b.propertyName.length<2||"<"!=b.propertyName[0]||">"!=b.propertyName[b.propertyName.length-1]?a.criteriaCreator.process("aggregate",{property:b,aggregatedExpression:e,aggregateType:d,condition:c}):a.criteriaCreator.process("join",{joinTypeName:b.propertyName.substring(1,b.propertyName.length-2),condition:c,type:d,aggregated:e})},c.prototype.accept=function(a){return a.visitJoinOperand?a.visitJoinOperand(this):new c(this.joinTypeName,this.condition&&this.condition.accept(a),this.operatorType,this.aggregatedExpression&&this.aggregatedExpression.accept(a))},c}(a.CriteriaOperator);a.JoinOperand=p;var q=function(a){function b(b,c){var d=a.call(this,c)||this;return d.type="Parameter",d.parameterName=b||"",d}return __extends(b,a),Object.defineProperty(b.prototype,"displayType",{get:function(){return"?"+this.parameterName},enumerable:!0,configurable:!0}),b.prototype.accept=function(a){return a.visitOperandParameter?a.visitOperandParameter(this):new b(this.parameterName,this.value)},b}(i);a.OperandParameter=q;var r;!function(a){a[a.Minus=0]="Minus",a[a.Plus=1]="Plus",a[a.BitwiseNot=2]="BitwiseNot",a[a.Not=3]="Not",a[a.IsNull=4]="IsNull"}(r=a.UnaryOperatorType||(a.UnaryOperatorType={}));var s=function(b){function c(c,d){var e=b.call(this)||this;return e.type="Unary",e.operand=d||new a.CriteriaOperator,e.operatorType=c,e}return __extends(c,b),Object.defineProperty(c.prototype,"leftPart",{get:function(){return this.operand},enumerable:!0,configurable:!0}),c.prototype.assignFrom=function(a){this.operatorType===r.Not?a instanceof c?this.operand.assignFrom(a.operand):this.operand.assignFrom(a):this.operand=a instanceof c?a.operand.leftPart:a.leftPart||a},Object.defineProperty(c.prototype,"displayType",{get:function(){return r[this.operatorType]},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"enumType",{get:function(){return r},enumerable:!0,configurable:!0}),c.prototype.accept=function(a){return a.visitUnaryOperator?a.visitUnaryOperator(this):new c(this.operatorType,this.operand&&this.operand.accept(a))},c}(a.CriteriaOperator);a.UnaryOperator=s}(e=b.Criteria||(b.Criteria={})),function(d){function f(a,b){return ko.computed(function(){var c=ko.unwrap(a),d=ko.unwrap(b);return d?{getItems:function(a){var b=$.Deferred();return c.getItems(a).done(function(a){b.resolve(a.filter(function(a){return a.name!==d}))}).fail(function(){return b.reject()}),b.promise()},getValues:function(a){return c.getValues(a)}}:c})}var g;!function(e){var f=function(c){function d(a,d,f,g){var h=c.call(this)||this;h.searchPlaceholder=function(){return b.Internal.searchPlaceholder()},h._categories=ko.observableArray([]),h.toolBox=[],h.description=ko.observable(),h._defaultClick=a,e.operatorNames.filter(function(a){return!!a.descriptionStringId}).forEach(function(a){return h._initDescription(a)});var i=ko.computed(function(){return f()&&ko.unwrap(f().functions)||e.functionDisplay}),j=ko.computed(function(){return i().map(function(a){return h._createFunctionsCategoryItem(a.items,b.Utils.getLocalization(a.display,a.localizationId))})}),k=function(){return[h._createFieldsCategory(g,d),h._createConstantCategory(),h._createFunctionsCategory(j),h._createOperatorsCategory(e.operatorNames)]},l=ko.observable(null),m=function(){var a=h._categories()[0].content;l()&&l().isSelected(!1),l(a),a.isSelected(!0)},n=function(b){h._disposeCategories();var c=k();b&&b.customizeCategories&&b.customizeCategories(h,c,a),h._categories(c),m()};return h.resetCategoriesSelection=m,[i,j].forEach(function(a){return h._disposables.push(a)}),h._disposables.push(f.subscribe(function(a){n(a)})),n(f()),h._disposables.push(h.showDescription=ko.computed(function(){return l()&&l().showDescription})),h.toolBox=[h._generateTab(h._categories,"dx-expressioneditor-categories","170px",function(a){if(a.data&&a.data.selectedItem&&a.data.selectedItem()&&-1!==a.data.items.indexOf(a.data.selectedItem())){var b=a.data.selectedItem();h.description(h._localizedExpressionEditorItem(b))}else h.description(void 0);l()!==a&&(l().isSelected(!1),a.isSelected(!0),l(a))}),h._generateTab(l,"dx-expressioneditor-selectedcontent",ko.computed(function(){return h.showDescription()?"248px":"435px"}),function(a){h.description(h._localizedExpressionEditorItem(a))},h._defaultClick),h._generateTab(h.description,"dx-expressioneditor-description",void 0,void 0,void 0,h.showDescription)],h}return __extends(d,c),d.prototype._generateTab=function(a,b,c,d,e,f){return void 0===b&&(b=null),{templateName:b,width:c||"30%",content:a,click:d,dblclick:e,visible:f||!0}},d.prototype._localizedExpressionEditorItem=function(b){return a.Analytics.Utils.getLocalization(b.text,b.descriptionStringId)},d.prototype._initDescription=function(a){a.description=this._localizedExpressionEditorItem(a)},d.prototype._createFieldsCategory=function(a,c){return{displayName:b.Utils.getLocalization("Fields","AnalyticsCoreStringId.ExpressionEditor_ItemInfo_Fields"),content:{showDescription:!1,isSelected:ko.observable(!1),data:{fields:a,parameters:c},name:"dx-expressioneditor-fields"},dispose:function(){}}},d.prototype._createConstantCategory=function(){var a=[{text:"?",descriptionStringId:"ExpressionEditorStringId.Constant_Null"},{text:"False",descriptionStringId:"ExpressionEditorStringId.Constant_False"},{text:"True",descriptionStringId:"ExpressionEditorStringId.Constant_True"}];return e.createExpressionEditorCollectionToolOptions(a,"Constants","DataAccessStringId.ExpressionEditor_DocumentationCategory_Constants",!0)},d.prototype._createOperatorsCategory=function(a){return e.createExpressionEditorCollectionToolOptions(a,"Operators","DataAccessStringId.ExpressionEditor_DocumentationCategory_Operators",!0)},d.prototype._createFunctionsCategoryContent=function(a,b,c){return{showDescription:!0,isSelected:b,data:{textToSearch:a,items:c,availableItems:ko.observableArray(c),selectedItem:ko.observable(null)},name:"dx-expressioneditor-collection-function"}},d.prototype._createFunctionsCategoryItem=function(a,b){var c=this,d={display:b,isSelected:ko.observable(!1),data:[],name:"dx-expressioneditor-collection-function"};return $.map(a,function(a){a&&a.forEach(function(a){c._initDescription(a),d.data.push(a)})}),d},d.prototype._createFunctionsCategory=function(a){var c=ko.observable(""),d=[],e=ko.observable(!1),f=null,g=ko.computed(function(){return[].concat.apply([],a().map(function(a){return a.data}))}),h=this._createFunctionsCategoryContent(c,e,g()),i={displayName:b.Utils.getLocalization("Functions","DataAccessStringId.ExpressionEditor_DocumentationCategory_Functions"),items:a,allItems:g,isSelected:e,content:h,collapsed:ko.observable(!0),updateContent:function(a,d){h.isSelected&&h.isSelected(!1),h.isSelected=d,h.isSelected(!0),h.data.items=a,h.data.availableItems(h.data.items.filter(function(a){return!!b.Internal.findMatchesInString(a.text,c())}))},templateName:"dx-expressioneditor-category-accordion",dispose:function(){d.forEach(function(a){return a.dispose()}),d.splice(0,d.length)}};return d.push(g),d.push(c.subscribe(function(a){f&&clearTimeout(f),f=setTimeout(function(){i.content.data.availableItems(i.content.data.items.filter(function(c){return!!b.Internal.findMatchesInString(c.text,a)}))},150)})),i},d.prototype._disposeCategories=function(){this._categories().forEach(function(a){return a.dispose&&a.dispose()})},d.prototype.dispose=function(){c.prototype.dispose.call(this),this._disposeCategories()},d}(c.Disposable);e.Tools=f,e.treeListEditAction={templateName:"dx-treelist-edit-action",imageClassName:"",text:"Edit",clickAction:$.noop,displayText:function(){return a.Analytics.Utils.getLocalization("Edit","AnalyticsCoreStringId.Group_Edit")}};var g=function(){function a(){}return a.prototype.createRootItem=function(a,b,c,d){return new j(a,b,c,d)},a.prototype.createItem=function(a,b,c,d,e){return new i(a,b,c,d,e)},a}();e.DefaultTreeListItemFactory=g;var h=function(){function a(a,b,d){this._availableItemsCount=a,this.padding=b,this.pageSize=d,this.templateName="dx-treelist-item-ellipsis",this.collapsed=function(){return!0},this.visibleItems=function(){return[]},this.text=function(){return c.getLocalization("Show more...","AnalyticsCoreStringId.QueryBuilder_Tables_ShowMore")}}return a.prototype.renderNext=function(){this._availableItemsCount(this._availableItemsCount()+this.pageSize)},a}();e.TreeListEllipsisButton=h;var i=function(a){function f(c,d,e,f,g){void 0===d&&(d=[]),void 0===e&&(e=$.noop),void 0===f&&(f=!1),void 0===g&&(g=new b.Internal.CodeResolver);var h=a.call(this)||this;return h.resolver=g,h._rtl=!1,h._data=ko.observable(null),h._actions=ko.observable([]),h._isVisible=ko.observable(!0),h._pageSize=-1,h._actionsSubscription=null,h._iconName=function(){return(ko.unwrap(h.data&&h.data.icon||h.data&&h.data.specifics)||"default").toLowerCase()},h._nodeIsLocked=!1,h.level=-1,h.items=ko.observableArray(),h.collapsed=ko.observable(!0),h.isSelected=ko.observable(!1),h.isHovered=ko.observable(!1),h.isMultiSelected=ko.observable(!1),h._pageSize=c.pageSize||-1,h._path=d,h._rtl=f,h._factory=c.factory||new b.Widgets.Internal.DefaultTreeListItemFactory,h._treeListController=c.treeListController,h._templateName=c.templateName,h._onItemsVisibilityChanged=e,h.dragDropHandler=c.treeListController.dragDropHandler,h.getItems=function(){return h._loadItems(c)},h._initPaginate(),h.toggleSelected=function(a,b){(b.shiftKey||b.ctrlKey)&&h.selectedItems().length>0&&h._treeListController.canMultiSelect&&h._treeListController.canMultiSelect(h)?(c.selectedPath(""),h._treeListController.multiSelect(h,b.shiftKey,b.ctrlKey)):h._treeListController.canSelect(h)&&(c.treeListController.clickHandler&&c.treeListController.clickHandler(h),c.selectedPath(h.path))},c.treeListController.dblClickHandler&&(h.dblClickHandler=function(a){c.treeListController.dblClickHandler&&c.treeListController.dblClickHandler(a)}),h.toggleCollapsed=function(){h.hasItems&&(h.collapsed(!h.collapsed.peek()),h.collapsed.peek()||0!==h.items().length?(h.items().forEach(function(a){a._treeListController.hasItems(a.data)&&a._loadItems(c)}),e()):h._loadItems(c,!0).always(function(){e()}))},h.nodeImageClass=h._getNodeImageClassName(),h}return __extends(f,a),f.prototype._equal=function(a,b){var c=["innerActions","noDragable","dragData"];return b===a||Object.keys(b).filter(function(a){return-1===c.indexOf(a)}).every(function(c){return b[c]===a[c]})},f.prototype._getImageClassName=function(a){var b=this;return ko.computed(function(){return"dx-image-fieldlist-"+b._iconName()+(a?"":" dx-treelist-image-empty")})},f.prototype._getImageTemplateName=function(){var a=this;return ko.computed(function(){var b="dxrd-svg-fieldlist-"+a._iconName();return d.Internal.SvgTemplatesEngine.getExistingTemplate(b)})},f.prototype._getNodeImageClassName=function(){var a=this,b=ko.observable("dx-collapsing-image");return ko.computed({read:function(){return a.hasItems?a.collapsed()?"dx-collapsing-image":b():"dx-image-leaf-node"},write:function(a){b(a)}})},f.prototype._createItemsObj=function(a){for(var b={},c=0;c<a.length;c++)b[a[c].name]={item:a[c],index:c};return b},f.prototype._loadItems=function(a,b){var d=this;void 0===b&&(b=!1);var e=$.Deferred();this._loader&&this._loader.dispose(),this._disposables.reverse().forEach(function(a){return a.dispose&&a.dispose()}),this._disposables.splice(0);var f=ko.observable(),g=f.subscribe(function(c){c&&c.done(function(c){if(d.isDisposing)return void e.reject();for(var f=c,g=d.items.peek(),h=d._createItemsObj(f),i=!1,j=0,k=[].concat.apply([],g),l=0;l<k.length;l++)h[k[l].data.name]||(k[l].dispose(),g.splice(l-j,1),j++,i=!0);var m=d._createItemsObj(g),n=!1,o=!d._treeListController.showIconsForChildItems||d._treeListController.showIconsForChildItems(d);if(f.forEach(function(b,c){var e=m[b.name];if(e)d._equal(b,e.item.data)||(e.item.data=b),n||(n=e.index!==c);else{i=!0;var f=d._factory.createItem(a,d.pathParts,d._onItemsVisibilityChanged,d._rtl,d.resolver);f.data=b,f.level=d.level+1,f.parent=d,f.padding=d._applyPadding(d._rtl?"right":"left",20*f.level+12),f.imageClassName=f._getImageClassName(o),f.imageTemplateName=f._getImageTemplateName(),g.splice(c,0,f),m[b.name]={item:f,index:c}}}),n){var p=g.reduce(function(a,b,c){var d=Math.abs(c-(h[b.data.name]?h[b.data.name].index:-1));return!a||a.max<d?{max:d,index:c}:a},null).index,q=g[p];g.splice(p,1),g.splice(h[q.data.name]?h[q.data.name].index:-1,0,q),i=!0}i&&(d.items.valueHasMutated(),d._onItemsChanged()),d.items().forEach(function(c){d.collapsed()&&!b||!c._treeListController.hasItems(c.data)||c._loadItems(a)}),d.nodeImageClass(d.items.peek().some(function(a){return a.visible})?"dx-collapsing-image dx-image-expanded":"dx-image-leaf-node"),e.resolve(d.items.peek());var r=a.selectedPath.peek();if(r){var s=d.items.peek().filter(function(a){return 0===r.indexOf(a.path)})[0];s&&d._selectItem(s.name+r.substring(s.path.length))}})});return this._disposables.push({dispose:function(){g.dispose(),f(null)}}),this._disposables.push(this._loader=ko.computed(function(){f(a.itemsProvider.getItems(new c.PathRequest(d.path,d.pathParts)))})),e.promise()},f.prototype._onItemsChanged=function(){},f.prototype._getTemplateName=function(){return this._templateName||this.data&&this.data.templateName||"dx-treelist-item"},f.prototype._selectItem=function(a){var b=this;if(this.hasItems){var c=function(){b._find(a),b.collapsed.peek()&&b.toggleCollapsed()};0===this.items.peek().length?this.getItems().done(function(a){c()}):c()}},f.prototype._find=function(a){var b=a&&this.items.peek().filter(function(b){return a===b.name||0===a.indexOf(b.name)&&"."===a[b.name.length]})[0];b&&(a.length>b.name.length?b._selectItem(a.substr(b.name.length+1)):this._treeListController.select(b))},f.prototype._getItemsWithLock=function(){var a=this,b=$.Deferred();return this._nodeIsLocked?b.reject():(this._nodeIsLocked=!0,this.getItems().done(function(c){a._nodeIsLocked=!1,b.resolve(c)}).fail(function(){a._nodeIsLocked=!1,b.reject()}),b.promise())},f.prototype._visitNextNode=function(a,b,c){var d=this;if(a.data&&!a.data.specifics)throw new Error("Specific should be set");a.level>=6||(!a.data||a.treeListController.hasItems(a.data)?a._getItemsWithLock().done(function(a){a.forEach(function(a){b&&b(a),c&&c(a)||d._visitNextNode(a,b,c)})}):a.items().forEach(function(a){b&&b(a),c&&c(a)||d._visitNextNode(a,b,c)}))},f.prototype._applyPadding=function(a,b){var c={};return c["padding-"+a]=b,c},f.prototype._initPaginate=function(){var a=this;-1!==this._pageSize&&(this.maxItemsCount=ko.observable(this._pageSize),this.visibleItems=ko.computed(function(){if(0===a.items().length)return[];var b=a.items().filter(function(a){return a._isVisible.peek()});return b.length>a.maxItemsCount()&&(b=b.slice(0,a.maxItemsCount()),b.push(new h(a.maxItemsCount,b[0].padding,a._pageSize))),b}))},Object.defineProperty(f.prototype,"hasItems",{get:function(){return!this.data||this._treeListController.hasItems(this.data)&&this.items().some(function(a){return a.visible})},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"data",{get:function(){return this._data()},set:function(a){var b=this;this._data(a),this._actionsSubscription&&this._actionsSubscription.dispose(),this._actionsSubscription=ko.computed(function(){b._actions(b._treeListController&&b._treeListController.getActions?b._treeListController.getActions(b):[])})},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"name",{get:function(){return ko.unwrap(this.data&&this.data.name)},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"path",{get:function(){return this.pathParts.join(".")},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"pathParts",{get:function(){return this.name?(ko.unwrap(this._path)||[]).concat([this.name]):ko.unwrap(this._path)},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"text",{get:function(){return this.data&&this.data.displayName},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"templateName",{get:function(){return this._getTemplateName()},enumerable:!0,configurable:!0}),f.prototype.actionsTemplate=function(){return this.data&&ko.unwrap(this.data.actionsTemplate)||"dx-treelist-item-actions-with-edit"},f.prototype.treeListEditAction=function(){return e.treeListEditAction},f.prototype.walkOnTree=function(a,b){this._visitNextNode(this,a,b),-1!=this._pageSize&&this.items.valueHasMutated()},Object.defineProperty(f.prototype,"hasContent",{get:function(){return this.data&&this.data.contenttemplate},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"actions",{get:function(){return this._actions()},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"isDraggable",{get:function(){return this.data&&this.data.dragData?!this.data.dragData.noDragable:!!this._treeListController.isDraggable&&this._treeListController.isDraggable(this)},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"treeListController",{get:function(){return this._treeListController},enumerable:!0,configurable:!0}),f.prototype.dispose=function(){a.prototype.dispose.call(this),this._actions([]),this.visibleItems&&this.visibleItems.dispose(),this._actionsSubscription&&this._actionsSubscription.dispose(),this.disposeObservableArray(this.items),this.resetObservableArray(this.items),this.parent=null},Object.defineProperty(f.prototype,"visible",{get:function(){return!(this.data&&this._treeListController.itemsFilter&&!this._treeListController.itemsFilter(this.data,this.path))&&this._isVisible()},enumerable:!0,configurable:!0}),f.prototype.setVisible=function(a){this._isVisible(a),a&&this.parent&&!this.parent.visible&&this.parent.setVisible(!0)},f.prototype.mouseenter=function(){this.isHovered(!0)},f.prototype.mouseleave=function(){this.isHovered(!1)},f.prototype.selectedItems=function(){return this._treeListController.selectedItems&&this._treeListController.selectedItems()||[]},f}(c.Disposable);e.TreeListItemViewModel=i;var j=function(a){function b(b,c,d,e){void 0===c&&(c=[]),void 0===d&&(d=$.noop),void 0===e&&(e=!1);var f=a.call(this,b,c,d,e)||this;return f._options=b,f._selectedPathSubscription=null,f.resolver.done(function(){d()}),f._selectedPathSubscription=b.selectedPath.subscribe(function(a){f._selectItem(f.path?a.substr(f.path.length+1):a)}),f._selectItem(f.path?f.path+"."+b.selectedPath():b.selectedPath()),f}return __extends(b,a),b.prototype.dispose=function(){a.prototype.dispose.call(this),this._selectedPathSubscription&&(this._selectedPathSubscription.dispose(),this._selectedPathSubscription=null)},b.prototype._onItemsChanged=function(){this._options.expandRootItems&&this.items().forEach(function(a){a.collapsed(!1)})},b}(i);e.TreeListRootItemViewModel=j;var k=function(){function a(){this.selectedItem=null}return a.prototype.dispose=function(){this.selectedItem=null},a.prototype.itemsFilter=function(a){return!0},a.prototype.hasItems=function(a){return"none"!==a.specifics&&("List"===a.specifics||"ListSource"===a.specifics||!0===a.isList)},a.prototype.canSelect=function(a){return!a.hasItems},a.prototype.select=function(a){this.canSelect(a)&&(this.selectedItem&&this.selectedItem.isSelected(!1),this.selectedItem=a,a.isSelected(!0))},a}();e.TreeListController=k;var l=function(){function b(){this.globalMatch=!0,this.canUseRegex=!1,this.caseSensitive=!1,this.searchMode=a.Analytics.Internal.SearchMode.contains,this.searchTimeout=500,this.searchExpr="displayName",this.searchBoxTemplate="dx-treelist-searchbox"}return b}();e.TreeListSearchOptions=l;var m=function(c){function d(){var a=c.call(this)||this;a.searchTimeout=500,a._roots=[],a.searchPlaceholder=function(){return b.Internal.searchPlaceholder()};var d=ko.observable(""),e=null;return a._disposables.push(a.value=ko.computed({read:function(){return d()},write:function(b){clearTimeout(e),e=setTimeout(function(){d(b)},a.searchTimeout)}})),a._disposables.push(a.value.subscribe(function(b){return a.valueChanged(b)})),a}return __extends(d,c),d.createController=function(b,c,e,f){void 0===e&&(e=d),void 0===f&&(f="dx-treelist-search-panel");var g=new e,h=$(b),i=[];c.forEach(function(a){a&&(a.root=a.root||ko.observable(),i.push(a.root.subscribe(function(a){g.addController(a),g.valueChanged("")})))});var j=a.Analytics.Widgets.Internal.getTemplate(f);h.addClass("dxrd-treelist-search-panel-container").addClass("dxd-border-primary"),h.children().remove(),h.append(j),ko.cleanNode(h.children()[0]),ko.applyBindings(g,h.children()[0]);var k=function(){g&&g.dispose(),i.forEach(function(a){return a.dispose()}),ko.utils.domNodeDisposal.removeDisposeCallback(b,k)};ko.utils.domNodeDisposal.addDisposeCallback(b,k)},d.prototype.valueChanged=function(b){var c=this;this._roots.forEach(function(d){d.walkOnTree(function(e){if(b){var f=a.Analytics.Internal.findMatchesInString(e.data[d.treeListController.searchOptions.searchExpr],b,d.treeListController.searchOptions);e.setVisible(!!f),f&&c._collapseTreeBranch(e),f&&e.treeListController.textToSearch(b)}},function(a){return!b&&(a.setVisible(!0),a.treeListController.textToSearch(b),0==a.items().length)})})},d.prototype._collapseTreeBranch=function(a){a.parent&&(a.parent.collapsed()&&a.parent.toggleCollapsed(),this._collapseTreeBranch(a.parent))},d.prototype.addController=function(a){this._roots=this._roots.filter(function(a){return!a.isDisposing}),a.treeListController.textToSearch=a.treeListController.textToSearch||ko.observable(""),-1===this._roots.indexOf(a)&&this._roots.push(a),this.searchTimeout=Math.max.apply(Math,this._roots.map(function(a){return a.treeListController.searchOptions.searchTimeout}))||500},d}(c.Disposable);e.TreeListSearchViewModel=m;var n=function(a){function b(b,c,d){var e=a.call(this)||this;return e.fieldName=b,e.putSelectionHandler=c,e.selectionHandler=d,e}return __extends(b,a),b.prototype.itemsFilter=function(a){return"none"!==a.specifics&&"ReportItems"!==a.name},b.prototype.select=function(b){this.selectionHandler?this.selectionHandler(b):a.prototype.select.call(this,b)},b.prototype.getActions=function(a){var b=this;return[{clickAction:function(c){return b.putSelectionHandler(a,$(c))}}]},b.prototype.canSelect=function(a){return!0},b}(k);e.ExpressionEditorTreeListController=n;var o=function(a){function b(b,c,d){var e=a.call(this)||this;return e.customFilter=b,e.putSelectionHandler=c,e.selectionHandler=d,e}return __extends(b,a),b.prototype.itemsFilter=function(a){return"none"!==a.specifics&&(!this.customFilter||this.customFilter(a))},b.prototype.select=function(a){this.selectionHandler(a)},b.prototype.getActions=function(a){var b=this;return[{clickAction:function(c){a&&!a.hasItems&&b.putSelectionHandler(a.path,$(c))}}]},b.prototype.canSelect=function(a){return!0},b}(k);e.ExpressionEditorParametersTreeListController=o}(g=d.Internal||(d.Internal={})),function(a){function c(a,c,d,e){return{displayName:b.Utils.getLocalization(c,d),content:{showDescription:e,isSelected:ko.observable(!1),data:{items:a,selectedItem:ko.observable(null)},name:"dx-expressioneditor-collection"},dispose:function(){}}}function d(a,b,c,d){if(!c||!a)return b;var e=ko.observable(b());c.toDisplayExpression(a(),b()).done(function(a){e(a)}).fail(function(){e(b())});var f=b.subscribe(function(b){c.toDisplayExpression(a(),b).done(function(a){e(a)}).fail(function(){e(b)})}),g=a.subscribe(function(a){c.toDisplayExpression(a,b()).done(function(a){e(a)}).fail(function(a){e(b())})}),h=ko.pureComputed({read:function(){return e()},write:function(d){e(d),c.toRealExpression(a(),d).done(function(a){b(a)}).fail(function(){b(d)})}});return d&&[h,f,g].forEach(function(a){return d.push(a)}),h}a.RangeSpecific="range",a.createExpressionEditorCollectionToolOptions=c,a.wrapExpressionValue=d}(g=d.Internal||(d.Internal={}));var h=function(c){function d(d,h,i,j,k,l){void 0===i&&(i=ko.observable(!1)),void 0===j&&(j=!1),void 0===l&&(l=ko.observable(!1));var m=c.call(this)||this;if(m.options=d,m._displayNameProvider=k,m.popupVisible=l,m._updateTextAreaValue=function(a,b){var c=m._getTextArea(b),d=m.textAreaValue().toString(),e=c&&c.selectionStart||d.length,f=" "==d[e-1]?(a.val||a.text||a)+" ":" "+(a.val||a.text||a)+" ";if(m.textAreaValue([d.slice(0,e),f,d.slice(e)].join("")),c&&c.setSelectionRange){c.focus();var g=e+(-1!==f.indexOf("(")?f.indexOf("(")+1:f.length);c.setSelectionRange(g,g)}},m._updateAceValue=function(a,c){var d=m.editorContainer(),e=d.getCursorPosition(),f=e.row,g=e.column,h=(a.val||a.text||a)+" ";g&&" "!==d.getSession().getValue().split("\n")[f][g-1]&&(h=" "+h),d.insert(h),d.focus(),b.Internal.setCursorInFunctionParameter(a.paramCount,d,h)},m._updateValue=function(a,b){m.aceAvailable?m._updateAceValue(a,$(b)):m._updateTextAreaValue(a,$(b))},m.patchFieldName=function(a){return a},m._parametersPutSelectionHandler=function(a,b){var c=a.split("."),d="?"+m.patchFieldName(c[c.length-1]);m._updateValue(d,b)},m._fieldsPutSelectionHandler=function(a,b){var c=m.koOptions.peek().path.peek(),d=a.substring(c.length+1),e="["+m.patchFieldName(d)+"]";m._displayNameProvider?m.displayExpressionConverter.toDisplayExpression(c,e).done(function(a){m._updateValue(a,b)}).fail(function(){m._updateValue(e,b)}):m._updateValue(e,b)},m.aceAvailable=g.aceAvailable,m.title=function(){return a.Analytics.Utils.getLocalization("Expression Editor","AnalyticsCoreStringId.ExpressionEditor_ExpressionCaption")},m.value=ko.observable(""),m.textAreaValue=ko.observable(""),m.languageHelper={getLanguageMode:function(){return"ace/mode/criteria"},createCompleters:function(a,b,c){var d=ko.computed(function(){return c.koOptions()&&ko.unwrap(c.koOptions().path)||""}),e=ko.computed(function(){return c.koOptions()&&ko.unwrap(c.koOptions().functions)||[]}),f=new g.CodeCompletor({editor:a,bindingContext:b,fieldListProvider:c.fieldListProvider,path:d,functions:e,rootItems:c.options.rootItems,getRealExpression:function(a,b){return m.displayExpressionConverter&&m.displayExpressionConverter.toRealExpression(a,b)||$.Deferred().resolve(b).promise()}});return[d,e].forEach(function(a){return f._disposables.push(a)}),[f]}},m.aceOptions={showLineNumbers:!1,showPrintMargin:!1,enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,showFoldWidgets:!1,highlightActiveLine:!1},m.additionalOptions={onChange:function(a){var b=a.getValue();try{var c=e.CriteriaOperator.parse(b);m.koOptions().validate&&m.isValid(m.koOptions().validate(c)),a.clearAnnotations()}catch(b){var d=b.hash&&b.hash.line||0,f=b.message.split("\n"),g=f[1]+"\n"+f[2];a.setAnnotations([{row:d,column:0,text:g,type:"error"}])}}},m.callbacks={focus:$.noop},m.koOptions=ko.observable(null),m.editorContainer=ko.observable(),m.isValid=ko.observable(!0),m.buttonItems=[],m.rtl=!1,m.modelValueValid=ko.computed(function(){return!m.koOptions()||!m.koOptions().isValid||m.koOptions().isValid()}),m.getPopupContainer=b.Internal.getParentContainer,m.koOptions(d),m.patchFieldName=function(a){return m.koOptions().patchFieldName&&m.koOptions().patchFieldName(a)||a},m.theme=m.koOptions()&&m.koOptions().theme,m._disposables.push(m.value=ko.computed({read:function(){var a=m.koOptions()&&ko.unwrap(m.koOptions().value);return a&&a.toString()||""},write:function(a){return m.koOptions()&&m.koOptions().value(a)}})),k&&d.path){m.displayExpressionConverter=new b.Internal.DisplayExpressionConverter(k);var n=ko.pureComputed(function(){return m.koOptions()&&m.koOptions().path&&m.koOptions().path()});m.displayValue=g.wrapExpressionValue(n,m.value,m.displayExpressionConverter,m._disposables),m._disposables.push(n)}else m.displayValue=m.value;m.rtl=j;var o=function(a,b){try{return e.CriteriaOperator.parse(a),m.isValid(!0),!0}catch(f){var c=e.CriteriaOperator.getNotValidRange(a,f.message),d=m._getTextArea(b&&b.element);d&&d.setSelectionRange(c.start,c.end),m.isValid(!1)}};m._disposables.push(m.popupVisible.subscribe(function(a){if(a)if(m.tools.resetCategoriesSelection&&m.tools.resetCategoriesSelection(),m.textAreaValue(m.displayValue()),m.aceAvailable){var b=m.editorContainer(),c=b&&b.getSession();c&&c.setValue(m.textAreaValue())}else o(m.value())}));var p=ko.computed(function(){return m.koOptions()&&m.koOptions().fieldName&&m.koOptions().fieldName()});m._disposables.push(m.fieldListProvider=f(h,p)),m.disabled=i;m.save=function(a){var b=m.textAreaValue();if(m.aceAvailable){var c=m.editorContainer(),d=c&&c.getSession();b=d&&d.getValue()}o(b,a)&&(m.displayValue(b),m.popupVisible(!1))};var q=null,r=function(a){ko.unwrap(a.data.type);q&&q.isSelected(!1),q=a,a.isSelected(!0)},s=ko.pureComputed(function(){return m.koOptions()&&m.koOptions().path&&m.koOptions().path()&&m._createToolsOptions(m.koOptions().path(),m.fieldListProvider(),new g.ExpressionEditorTreeListController(p,function(a,b){m._fieldsPutSelectionHandler(a.path,b)},r))});m.parametersTreeListController=new g.ExpressionEditorParametersTreeListController(m._parametersCustomFilter,m._parametersPutSelectionHandler,r);var t=ko.pureComputed(function(){return m._createToolsOptions("",m.fieldListProvider(),m.parametersTreeListController)});return m._disposables.push(m.tools=new g.Tools(m._updateValue,t,m.koOptions,s)),m._createMainPopupButtons(),[p,s,t].forEach(function(a){return m._disposables.push(a)}),m}return __extends(d,c),d.prototype.dispose=function(){c.prototype.dispose.call(this),this.koOptions(null),this.options=null},d.prototype._createMainPopupButtons=function(){var b=this;this.buttonItems=[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:a.Analytics.Utils.getLocalization("Save",a.Analytics.Internal.StringId.DataAccessBtnOK),onClick:function(a){b.save(a)}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:a.Analytics.Utils.getLocalization("Cancel",a.Analytics.Internal.StringId.DataAccessBtnCancel),onClick:function(){b.popupVisible(!1)}}}]},d.prototype._getTextArea=function(a){return a&&a.parents(".dx-expressioneditor").find(":input")[0]},d.prototype._createToolsOptions=function(a,b,c){return{itemsProvider:b,selectedPath:ko.observable(""),path:a,templateName:"dx-ee-treelist-item",treeListController:c,rtl:this.rtl}},d.prototype._parametersCustomFilter=function(a){return"parameters"===a.specifics||a.specifics===g.RangeSpecific||!b.Internal.isList(a)},d.prototype.onShown=function(){this.callbacks.focus()},d}(c.Disposable);d.ExpressionEditor=h,ko.bindingHandlers.dxExpressionEditor={init:function(c,d,e,f,g){var i=$(c);i.children().remove(),$(c).addClass("dx-popup-general");var j=d(),k=j.editorTemplateName||"dx-expressioneditor",l=a.Analytics.Widgets.Internal.getTemplate(k),i=i.append(l),m=null,n=new h(ko.unwrap(j.options),j.fieldListProvider,f.disabled,$(c).closest(".dx-rtl").length>0,j.displayNameProvider,j.popupVisible);ko.isSubscribable(j.options)&&(m=j.options.subscribe(function(a){a&&n.koOptions(a)}));var o=i.children()[0];ko.applyBindings(n,o);var p=function(){n.dispose(),n=null,m&&m.dispose()};return b.Internal.addDisposeCallback(c,p),{controlsDescendantBindings:!0}}};var i;!function(b){var d=function(c){function d(a,b,d,e){var f=c.call(this)||this;return f.canRemove=!0,f.operatorType=ko.observable(null),f.templateName="dx-filtereditor-common",f.isSelected=ko.observable(!1),f.operatorClass="criteria-operator-item-operator dxd-filter-editor-operator-back-color dxd-filter-editor-text-color",f.popupService=b.popupService||{visible:ko.observable(!1)},f.model=a,f.helper=b.helper,f.fieldListProvider=d,f.path=e,f.parent=b,f.operatorType(a.operatorType),f._disposables.push(f.operatorType.subscribe(function(a){f.model.assignType(a)})),f}return __extends(d,c),d.prototype._createLeftPartProperty=function(a){var c=this;if(a instanceof e.OperandProperty)var d=this.createChildSurface(a);else{var d=this.createChildSurface(a),f=Object.keys(this.helper.filterEditorOperators).reduce(function(a,b){return"_common"!==b&&"integer"===a&&c.helper.filterEditorOperators[b].filter(function(a){return c.operatorType()===a.value&&c.reverse===a.reverse&&c.model.enumType===a.type}).length>0&&(a=b),a},"integer");d.specifics=d.specifics||ko.observable(f)}return d.canChange=!1,d.canRemove=!1,d instanceof b.AggregateOperandSurface?(this.specifics=ko.computed(function(){return d.aggregatedExpression()&&d.aggregatedExpression().specifics()||"integer"}),this.dataType=ko.computed(function(){return d.aggregatedExpression()&&d.aggregatedExpression().dataType()||"integer"}),this._disposables.push(this.specifics),this._disposables.push(this.dataType)):(this.specifics=d.specifics,this.dataType=d.dataType),d},d.prototype.createChildSurface=function(a,b,c){return new this.helper.mapper[a.type](a,this,this.fieldListProvider,b||this.path)},d.prototype.getDisplayType=function(){var b=this,c=this.items.filter(function(a){return b.operatorType()===a.value&&b.reverse===a.reverse&&b.model.enumType===a.type})[0];return c&&c.name&&(c.displayText||a.Analytics.Utils.getLocalization(c.name,c.localizationId))||this.operatorType&&this.operatorType()||""},Object.defineProperty(d.prototype,"items",{get:function(){return this.helper.filterEditorOperators[this.specifics()]||this.helper.filterEditorOperators._common},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"displayType",{get:function(){return this.getDisplayType()},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"leftPart",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"rightPart",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"css",{get:function(){return this.operatorClass+(this.isSelected()?" selected":"")},enumerable:!0,configurable:!0}),d.prototype.change=function(a,b){!b&&a&&this.model.enumType===a.type&&this.reverse===a.reverse&&a.type!==e.FunctionOperatorType?this.operatorType(a.value):this.parent.change(a,this),this.helper.onChange()},d.prototype.remove=function(a){this.parent.remove(this),this.helper.onChange()},d}(c.Disposable);b.CriteriaOperatorSurface=d}(i=d.Filtering||(d.Filtering={})),function(a){var b=function(){function a(a,b,c,d,e){var f=this;this.showPopup=function(a,b){f._popupService.subscription&&f._popupService.subscription.dispose(),f._popupService.title(""),f.target.isSelected(!0),f._updateActions(f.target),f._popupService.target(b),setTimeout(function(){f._popupService.visible(!0)},10)},this.popupContentTemplate="dx-filtereditor-popup-common",this.target=a,this._action=c,this.propertyName=d,this._popupService=b,this.popupContentTemplate=e||this.popupContentTemplate}return a.prototype._updateActions=function(a){var b=this;this._popupService.data(null),a&&(this._popupService.subscription=this._popupService.visible.subscribe(function(a){b.target.isSelected(a)}),this._popupService.viewModel=a,this._popupService.data({data:ko.unwrap(a[this.propertyName]),template:this.popupContentTemplate,click:function(c){a[b._action](c),b._popupService.visible(!1)}}))},a}();a.FilterEditorAddOn=b;var d;!function(a){a[a.Left=0]="Left",a[a.Right=1]="Right",a[a.Unary=2]="Unary"}(d=a.CriteriaSurfaceValidatorState||(a.CriteriaSurfaceValidatorState={}));var f=function(){function a(){}return a.prototype.customValidate=function(a,b){return!1},a.prototype.checkLeftPart=function(a){return a instanceof e.OperandProperty||this.customValidate(a,d.Left)},a.prototype._checkRightPart=function(a){return a instanceof e.OperandProperty||a instanceof e.OperandParameter||a instanceof e.OperandValue||a instanceof e.ConstantValue||a instanceof e.UnaryOperator&&this._checkRightPart(a.operand)||this.customValidate(a,d.Right)},a.prototype.checkRightPart=function(a){if(Array.isArray(a)){for(var b=0;b<a.length;b++)if(!this._checkRightPart(a[b]))return!1;return!0}return this._checkRightPart(a)},a.prototype.aggregateIsValid=function(a){return this.checkLeftPart(a.leftPart)&&this.validateModel(a.condition)&&(!a.aggregatedExpression||(a.aggregatedExpression instanceof e.OperandProperty||this.validateModel(a.aggregatedExpression)))},a.prototype.commonOperandValid=function(a){return a.leftPart instanceof e.AggregateOperand?this.validateModel(a.leftPart):this.checkLeftPart(a.leftPart)&&this.checkRightPart(a.rightPart)},a.prototype.groupIsValid=function(a){for(var b=0;b<a.operands.length;b++)if(!this.validateModel(a.operands[b]))return!1;return!0},a.prototype.unaryIsValid=function(a){return a.operand instanceof e.OperandProperty||this.validateModel(a.operand)||this.customValidate(a.operand,d.Unary)},a.prototype.validateModel=function(a){return a instanceof e.AggregateOperand?this.aggregateIsValid(a):a instanceof e.GroupOperator?this.groupIsValid(a):a instanceof e.UnaryOperator?this.unaryIsValid(a):this.commonOperandValid(a)},a}();a.CriteriaSurfaceValidator=f;var g=function(){function b(a,b){void 0===a&&(a=e.Utils.operatorTokens),this.custom=b,this.operatorTokens=a}return b.prototype.serializeGroupOperand=function(a,b){var c=this,d=a.operands.map(function(a){return a instanceof e.GroupOperator?"("+c.serialize(a)+")":c.serialize(a)}).filter(function(a){return""!==a&&"()"!==a}).join(" "+(this.operatorTokens[a.displayType]||a.displayType)+" ");return b&&d?"Not("+d+")":d},b.prototype.serializeAggregateOperand=function(a,b){var c=a.operatorType===e.Aggregate.Exists?"":"."+e.Aggregate[a.operatorType],d=a.condition?this.serialize(a.condition):"";return this.serialize(a.property)+"["+d+"]"+c+(a.operatorType!==e.Aggregate.Exists?"("+(a.aggregatedExpression&&this.serialize(a.aggregatedExpression)||"")+")":"")},b.prototype.serializeOperandProperty=function(a){return a.displayType},b.prototype.serializeOperandValue=function(b){var d=b.value;return null===d||void 0===d||!$.isNumeric(d)&&"true"!==String(d).toLowerCase()&&"false"!==String(d).toLowerCase()?d&&b.value instanceof Date?"#"+c.serializeDate(d)+"#":"integer"===b.specifics||"integer"===b.specifics?d||"?":a.validateGuid(d)?"{"+d+"}":(-1!==d.indexOf("'")&&(d=d.replace("'","''")),d?"'"+d+"'":"?"):"string"===b.specifics?"'"+d+"'":"guid"===b.specifics&&a.validateGuid(d)?"{"+d+"}":d},b.prototype.serializeOperandParameter=function(a){return a.displayType},b.prototype.serializeBetweenOperator=function(a,b){var c=this.serialize(a.property)+" "+a.displayType+"("+this.serialize(a.begin)+", "+this.serialize(a.end)+")";return b?"Not "+c:c},b.prototype.serializeInOperator=function(a,b){var c=this,d=this.serialize(a.criteriaOperator)+" "+a.displayType+"("+a.operands.map(function(a){return c.serialize(a)}).join(", ")+")";return b?"Not "+d:d},b.prototype.serializeBinaryOperator=function(a,b){if(a.operatorType===e.BinaryOperatorType.Like){var c=b?" Not ":" ";return this.serialize(a.leftOperand)+c+(this.operatorTokens[a.displayType]||a.displayType)+" "+this.serialize(a.rightOperand)}return(b?"Not ":"")+this.serialize(a.leftOperand)+" "+(this.operatorTokens[a.displayType]||a.displayType)+" "+this.serialize(a.rightOperand)},b.prototype.serializeUnaryOperator=function(a,b){if(a.operatorType===e.UnaryOperatorType.IsNull){var c=b?" Not ":" ";return this.serialize(a.operand)+" Is"+c+"Null"}if(a.operatorType===e.UnaryOperatorType.Not)return this.serialize(a.operand,!0);var d=(this.operatorTokens[a.displayType]||a.displayType)+this.serialize(a.operand);return b?"Not "+d:d},b.prototype.serializeFunctionOperator=function(a,b){var c=this,d=(this.operatorTokens[a.displayType]||a.displayType)+"("+a.operands.map(function(a){return c.serialize(a)}).join(", ")+")";return b?"Not "+d:d},b.prototype.serialize=function(a,b){if(void 0===b&&(b=!1),a instanceof e.AggregateOperand)return this.serializeAggregateOperand(a,b);if(a instanceof e.BetweenOperator)return this.serializeBetweenOperator(a,b);if(a instanceof e.BinaryOperator)return this.serializeBinaryOperator(a,b);if(a instanceof e.ConstantValue)return this.serializeOperandValue(a);if(a instanceof e.FunctionOperator)return this.serializeFunctionOperator(a,b);if(a instanceof e.GroupOperator)return this.serializeGroupOperand(a,b);if(a instanceof e.InOperator)return this.serializeInOperator(a,b);if(a instanceof e.OperandParameter)return this.serializeOperandParameter(a);if(a instanceof e.OperandProperty)return this.serializeOperandProperty(a);if(a instanceof e.OperandValue)return this.serializeOperandValue(a);if(a instanceof e.UnaryOperator)return this.serializeUnaryOperator(a,b);if(this.custom)return this.custom(a,b);throw Error("Undefined type criteria operator")},b.prototype.deserialize=function(a){return this.deserializeOperand(e.CriteriaOperator.parse(a))},b.prototype.deserializeOperand=function(a){if(a instanceof e.GroupOperator)return a;if(a instanceof e.UnaryOperator&&a.operatorType===e.UnaryOperatorType.Not){var b=a.operand;return b instanceof e.GroupOperator?a:new e.UnaryOperator(e.UnaryOperatorType.Not,new e.GroupOperator(e.GroupOperatorType.And,b?[b]:[]))}return new e.GroupOperator(e.GroupOperatorType.And,a?[a]:[])},b}();a.FilterEditorSerializer=g;var h=function(a){function b(b){var c=a.call(this)||this;return c.selectedItem=b,c}return __extends(b,a),b.prototype.itemsFilter=function(a){return!0},b.prototype.hasItems=function(a){return"none"!==a.specifics&&"List"!==a.specifics&&!0===a.isList},b.prototype.canSelect=function(a){return!a.data.isList||!0===a.data.isList&&"List"===a.data.specifics},b.prototype.select=function(a){this.canSelect(a)&&(this.selectedItem(a.data),a.isSelected(!0))},b}(a.TreeListController);a.FilterEditorTreeListController=h}(g=d.Internal||(d.Internal={})),function(d){var f=function(a){function b(b,c,d,f){var g=a.call(this,b,c,d,f)||this;g.contentTemplateName="dx-filtereditor-aggregate",g.property=ko.observable(null),g.aggregatedExpression=ko.observable(null),g.condition=ko.observable(null),g.property(g._createLeftPartProperty(b.property));var h=ko.computed(function(){return g.path()+"."+g.property().propertyName()});g._disposables.push(h),b.aggregatedExpression&&(g.aggregatedExpression(g.createChildSurface(b.aggregatedExpression,h)),g.templateName="dx-filtereditor-aggregate-common"),b.operatorType===e.Aggregate.Count&&(g.templateName="dx-filtereditor-aggregate-common");var i=g.createChildSurface(b.condition,h);return i.canRemove=!1,i instanceof q&&(i.operand().canRemove=!1),g.condition(i),g.change=function(b,c){if(c){var d=g.model.change(b,c.model),f=g.createChildSurface(d,h);f.canRemove=!1,f instanceof q&&(f.operand().canRemove=!1),g.condition(f)}else g.operatorType()===e.Aggregate.Exists||g.operatorType()===e.Aggregate.Count?g.parent.change(b,g):!b||b.value!==e.Aggregate.Exists&&b.value!==e.Aggregate.Count?a.prototype.change.call(g,b,c):g.parent.change(b,g);g.helper.onChange()},g}return __extends(b,a),Object.defineProperty(b.prototype,"leftPart",{get:function(){return this.property&&this.property()},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"rightPart",{get:function(){return this.aggregatedExpression()},enumerable:!0,configurable:!0}),b.prototype.dispose=function(){this.property().dispose(),this.condition().dispose(),this.aggregatedExpression()&&this.aggregatedExpression().dispose(),a.prototype.dispose.call(this)},b}(d.CriteriaOperatorSurface);d.AggregateOperandSurface=f;var h=function(a){function b(b,c,d,e){var f=a.call(this,b,c,d,e)||this;return f.property=ko.observable(null),f.end=ko.observable(null),f.begin=ko.observable(null),f.contentTemplateName="dx-filtereditor-between",f.property(f._createLeftPartProperty(b.property)),f.begin(f.createChildSurface(b.begin)),f.end(f.createChildSurface(b.end)),f}return __extends(b,a),Object.defineProperty(b.prototype,"leftPart",{get:function(){return this.property&&this.property()},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"rightPart",{get:function(){return[this.begin(),this.end()]},enumerable:!0,configurable:!0}),b.prototype.dispose=function(){this.property().dispose(),this.begin().dispose(),this.end().dispose(),a.prototype.dispose.call(this)},b}(d.CriteriaOperatorSurface);d.BetweenOperandSurface=h;var i=function(a){function b(b,c,d,e){var f=a.call(this,b,c,d,e)||this;return f.contentTemplateName="dx-filtereditor-binary",f.leftOperand=ko.observable(null),f.rightOperand=ko.observable(null),f.leftOperand(f._createLeftPartProperty(b.leftOperand)),f.rightOperand(f.createChildSurface(b.rightOperand)),f}return __extends(b,a),Object.defineProperty(b.prototype,"leftPart",{get:function(){return this.leftOperand()},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"rightPart",{get:function(){return this.rightOperand()},enumerable:!0,configurable:!0}),b.prototype.dispose=function(){this.leftOperand().dispose(),this.rightOperand().dispose(),a.prototype.dispose.call(this)},b}(d.CriteriaOperatorSurface);d.BinaryOperandSurface=i;var j=function(a){function b(b,c,d,e){var f=a.call(this,b,c,d,e)||this;return f.canChange=!0,f.canRemove=!1,f.changeValueType=function(a){var b=f.getRealParent(f.parent),c=f.getRealProperty(f),d=f.getPropertyName(b,c),e=b.model.changeValueType(a.instance,d);null!==d.index?(b[d.name]()[d.index].dispose(),b[d.name].splice(d.index,1,b.createChildSurface(e))):(b[d.name]().dispose(),b[d.name](b.createChildSurface(e))),f.helper.onChange()},f}return __extends(b,a),b.prototype.getRealParent=function(a){return a instanceof q?this.getRealParent(a.parent):a},b.prototype.getRealProperty=function(a){return a.parent instanceof q?this.getRealProperty(a.parent):a},b.prototype.getPropertyName=function(a,b){var c=null,d=null;return $.each(a,function(a,e){if(Array.isArray(ko.unwrap(e))&&ko.isObservable(e)){var f=ko.unwrap(e).indexOf(b);if(f>-1)return c=f,void(d=a)}else if(b===ko.unwrap(e)&&ko.isObservable(e))return void(d=a)}),{index:c,name:d}},b.prototype.getConvertableParameters=function(a){return this.helper.parameters()?this.helper.parameters().filter(function(b){var c=b.specifics&&b.specifics.toLocaleLowerCase();return null!=c&&null!=a&&(c===a||("default"===a||("string"===a||"float"===a&&"integer"===c)))}):[]},Object.defineProperty(b.prototype,"changeTypeItems",{get:function(){var a=[{name:"Value",instance:e.OperandValue,localizationId:"AnalyticsCoreStringId.FilterEditor_Operand_Type_Value"}];return this.helper.canChoiceProperty&&a.push({name:"Property",instance:e.OperandProperty,localizationId:"AnalyticsCoreStringId.FilterEditor_Operand_Type_Property"}),this.helper.canChoiceParameters&&(this.getConvertableParameters(this.parent.specifics()).length>0||this.helper.canCreateParameters)&&a.push({name:"Parameter",instance:e.OperandParameter,localizationId:"AnalyticsCoreStringId.FilterEditor_Operand_Type_Parameter"}),a.forEach(g.initDisplayText),a},enumerable:!0,configurable:!0}),b}(d.CriteriaOperatorSurface);d.OperandSurfaceBase=j;var k=function(b){function c(a,c,d,e){var f=b.call(this,a,c,d,e)||this;if(f.canRemove=!0,f.contentTemplateName="dx-filtereditor-function",f.operands=ko.observableArray([]),0===a.operands.length)f.specifics=c instanceof q?c.parent.specifics:c.specifics,f.contentTemplateName="dx-filtereditor-function-lightweight",f.canRemove=!1;else{f.operands.push(f._createLeftPartProperty(a.operands[0]));for(var g=1;g<a.operands.length;g++)f.operands.push(f.createChildSurface(a.operands[g]))}return f}return __extends(c,b),Object.defineProperty(c.prototype,"leftPart",{get:function(){return this.operands&&this.operands()[0]},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"rightPart",{get:function(){return this.operands&&this.operands().filter(function(a,b){return 0!==b})},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"displayType",{get:function(){var b=this,c=this.items.filter(function(a){return b.operatorType()===a.value&&b.reverse===a.reverse&&b.model.enumType===a.type})[0];return c&&c.name?c.displayText||a.Analytics.Utils.getLocalization(c.name,c.localizationId):isNaN(parseInt(this.operatorType()))?this.operatorType()||"":e.FunctionOperatorType[this.operatorType()]},enumerable:!0,configurable:!0}),c.prototype.dispose=function(){this.operands().forEach(function(a){return a.dispose()}),b.prototype.dispose.call(this)},c}(j);d.FunctionOperandSurface=k;var l=function(a){function b(b,c,d,e){var f=a.call(this,b,c,d,e)||this;return f.templateName="dx-filtereditor-group",f.operatorClass="criteria-operator-item-group dxd-filter-editor-group-back-color dxd-filter-editor-text-color",f.operands=ko.observableArray([]),f.createItems=null,f.createItems=[{name:"Add group",value:!0,localizationId:"StringId.FilterMenuGroupAdd"},{name:"Add condition",value:!1,localizationId:"StringId.FilterMenuConditionAdd"}],f.createItems.forEach(g.initDisplayText),f.operands((b.operands||[]).map(function(a){return f.createChildSurface(a)})),f.specifics=ko.observable("group"),f}return __extends(b,a),b.prototype.change=function(b,c){if(c){var d=c.specifics()||"integer",e=this.helper.filterEditorOperators[d]||this.helper.filterEditorOperators._common;if(!b){var g=e.filter(function(a){return c.operatorType()===a.value&&c.reverse===a.reverse&&c.model.enumType===a.type})[0];b=g||e[0]}var h=this.model.change(b,c.model,c.leftPart instanceof f&&"list"!==c.leftPart.leftPart.specifics()),i=this.operands().indexOf(c),j=this.createChildSurface(h);this.operands()[i].dispose(),this.operands.splice(i,1,j)}else a.prototype.change.call(this,b,c);this.helper.onChange()},b.prototype.remove=function(a){a?(this.model.remove(a.model),this.operands.remove(a),a.dispose()):(this.parent.remove(this),this.dispose()),this.helper.onChange()},b.prototype.create=function(a){var b=this.model.create(a.value,new e.OperandProperty);this.operands.push(this.createChildSurface(b)),this.helper.onChange()},Object.defineProperty(b.prototype,"rightPart",{get:function(){return this.operands()},enumerable:!0,configurable:!0}),b.prototype.dispose=function(){this.operands().forEach(function(a){return a.dispose()}),a.prototype.dispose.call(this)},b}(d.CriteriaOperatorSurface);d.GroupOperandSurface=l;var m=function(a){function b(b,c,d,f){var g=a.call(this,b,c,d,f)||this;return g.contentTemplateName="dx-filtereditor-in",g.operands=ko.observableArray([]),g.criteriaOperator=ko.observable(null),g.criteriaOperator(g._createLeftPartProperty(b.criteriaOperator)),g.operands((b.operands||[]).map(function(a){return g.createChildSurface(a)})),g.addValue=function(){var a=new e.OperandValue(null);g.model.operands.push(a),g.operands.push(g.createChildSurface(a))},g}return __extends(b,a),Object.defineProperty(b.prototype,"leftPart",{get:function(){return this.criteriaOperator()},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"rightPart",{get:function(){return this.operands()},enumerable:!0,configurable:!0}),b.prototype.dispose=function(){this.criteriaOperator().dispose(),this.operands().forEach(function(a){return a.dispose()}),a.prototype.dispose.call(this)},b}(d.CriteriaOperatorSurface);d.InOperandSurface=m;var n=function(a){function b(b,c,d,e){var f=a.call(this,b,c,d,e)||this;return f.changeParameter=function(a){f.model.parameterName=a.name,f.parameterName(a.name),f.helper.onChange()},f.operatorClass="criteria-operator-item-parameter dxd-filter-editor-parameter-back-color dxd-filter-editor-text-color",f.parameterName=ko.observable(""),f.templateName="dx-filtereditor-parameter",f.specifics=c.specifics,f.parameterName(b.parameterName),f}return __extends(b,a),Object.defineProperty(b.prototype,"items",{get:function(){return this.getConvertableParameters(this.specifics())},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"displayType",{get:function(){return null},enumerable:!0,configurable:!0}),b}(j);d.OperandParameterSurface=n;var o=function(a){function b(b,c,d,e){var f=a.call(this,b,c,d,e)||this;f._displayName=ko.observable(""),f.propertyName=ko.observable(""),f.specifics=ko.observable("integer"),f.dataType=ko.observable(""),f.valueType=ko.observable(""),f.changeProperty=function(a){f.fieldsOptions().selected(a)},f.templateName="dx-filtereditor-property",f.operatorClass="criteria-operator-item-field dxd-filter-editor-field-back-color dxd-filter-editor-field-back-color dxd-filter-editor-text-color",f.propertyName(b.propertyName);var g=f.helper.generateTreelistOptions(d,e);return g.options&&g.subscription?(f.fieldsOptions=g.options,f._disposables.push(g.subscription)):f.fieldsOptions=g,f._disposables.push(f.fieldsOptions().selectedPath.subscribe(function(a){var b=f.fieldsOptions().selectedPath().substr(f.path&&f.path().length>0?f.path().length+1:0);f.propertyName(b),f.model.propertyName=b,f.popupService.visible(!1)})),f._disposables.push(f.fieldsOptions().selected.subscribe(function(a){f._updateDisplayName(e,f.propertyName(),a.displayName);var b=a.specifics.toLowerCase();0===b.indexOf("calc")&&(b=b.split("calc")[1]),f.specifics()===b&&f.dataType()===a.dataType||(f.specifics(b),f.dataType(a.dataType),f.parent.change()),f.helper.onChange()})),f.fieldsOptions().selectedPath(f.path&&ko.unwrap(f.path)?[ko.unwrap(f.path),f.propertyName()].join("."):f.propertyName()),f._updateSpecifics(),f._disposables.push(f.displayName=ko.computed(function(){return f._displayName()||f.propertyName()})),f}return __extends(b,a),b.prototype._updateDisplayName=function(a,b,c){var d=this;this.helper.getDisplayPropertyName?this.helper.getDisplayPropertyName(ko.unwrap(a),b).done(function(a){d._displayName(a)}):this._displayName(c)},b.prototype._updateSpecifics=function(){var a=this,b=this.propertyName().split("."),d=b.pop();ko.unwrap(this.fieldsOptions).itemsProvider&&ko.unwrap(this.fieldsOptions).itemsProvider.getItems(new c.PathRequest([this.path()].concat(b).join("."))).done(function(b){var c=b.filter(function(a){return"List"!==a.specifics&&!a.isList});!a.propertyName()&&c.length>0&&(a.model.propertyName=c[0].name,a.propertyName(c[0].name),d=c[0].name);var e=b.filter(function(a){return a.name===d})[0];if(e){var f=e.specifics.toLowerCase();0===f.indexOf("calc")&&(f=f.split("calc")[1]),a.specifics(f),a.dataType(e.dataType),a._updateDisplayName(a.path,a.propertyName(),e.displayName)}})},Object.defineProperty(b.prototype,"items",{get:function(){return this.fieldsOptions},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"displayType",{get:function(){return null},enumerable:!0,configurable:!0}),b}(j);d.OperandPropertySurface=o;var p=function(d){function f(f,g,h,i){var j=d.call(this,f,g,h,i)||this;j._value=ko.observable(null),j._updateDate=function(a){"date"===a?this._value()instanceof Date||this._value(new Date((new Date).setHours(0,0,0,0))):this._value("")},j.changeValue=function(){var a=j.getRealParent(j.parent),b=j.getRealProperty(j),c=j.getPropertyName(a,b),d=a.model.changeValue(j.model,j.reverse,c);null!==c.index?(a[c.name]()[c.index].dispose(),a[c.name].splice(c.index,1,a.createChildSurface(d))):(a[c.name]().dispose(),a[c.name](a.createChildSurface(d)))},j.dataType=ko.observable(""),j.values=ko.observable([]),j.isEditable=ko.observable(!1),j.templateName="dx-filtereditor-value",j.getNumberEditorOptions=function(){return a.Analytics.Widgets.Internal.ValueEditorHelper.getNumberEditorOptions(j.dataType(),j.specifics(),{value:j._value,onFocusOut:function(){j.isEditable(!1)}})};var k=null;return j._disposables.push(j.dataSource=ko.computed(function(){return k&&k.dispose(),k=new a.data.DataSource({store:j.values(),paginate:j.values().length>200,pageSize:100})})),g instanceof q?(j.specifics=g.parent.specifics,j.dataType=g.parent.dataType,g.model.operatorType===e.UnaryOperatorType.Minus&&(j.reverse=!0)):(j.specifics=g.specifics,j.dataType=g.dataType),j._disposables.push(j.specifics.subscribe(function(a){f.specifics=a,j._updateDate(a)})),j._value(f.value),j._disposables.push(j._value.subscribe(function(a){j.model.value=a,j.helper.onChange()})),b.Internal.isNullOrEmptyString(j._value())&&j._updateDate(j.specifics()),j._disposables.push(j.value=ko.computed({read:function(){var b=j._value();if(b instanceof Date&&(b=a.Analytics.Internal.formatDate(b)),j.items.length>0){var c=j.items.filter(function(a){return a.value===b})[0];if(c)return c.display}return j.reverse&&(b="-"+b),null!==b&&void 0!==b&&""!==b?b:j.getDefaultValue()},write:function(a){a>0&&!j.reverse||a<0&&j.reverse?j._value(a):(a>0&&j.reverse||a<0&&!j.reverse)&&(j.reverse=!j.reverse,j._value(a<0?(""+a).substring(1):a),j.changeValue())}})),j._disposables.push(ko.computed(function(){var a=ko.unwrap(h);a&&a.getValues&&j.parent.leftPart instanceof o&&j.parent.leftPart.propertyName()&&a.getValues(new c.PathRequest(ko.unwrap(j.path)+"."+j.parent.leftPart.propertyName())).done(function(a){j.values(a)})})),f.specifics=j.specifics(),j}return __extends(f,d),Object.defineProperty(f.prototype,"items",{get:function(){return this.values()},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"displayType",{get:function(){return null},enumerable:!0,configurable:!0}),f.prototype.isDefaultDisplay=function(){return this.value()===this.getDefaultValue()},f.prototype.getDefaultValue=function(){return f._defaultValue?f._defaultValue:f._defaultValue=b.Utils.getLocalization("Enter a value","StringId.FilterEmptyEnter")},f}(j);d.OperandValueSurface=p;var q=function(a){function b(b,c,d,f){var g=a.call(this,b,c,d,f)||this;g.contentTemplateName="dx-filtereditor-unary",g.operand=ko.observable(null);var h=g.createChildSurface(b.operand);return b.operatorType===e.UnaryOperatorType.Not?(g.templateName="dx-filtereditor-not",h.reverse=!0,g.specifics=h.specifics):(h.dispose(),h=g._createLeftPartProperty(b.operand)),g.operand(h),g}return __extends(b,a),Object.defineProperty(b.prototype,"leftPart",{get:function(){var a=this.operand();return this.operand()&&this.operand().reverse&&this.operand().leftPart&&(a=this.operand().leftPart),a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"rightPart",{get:function(){return this.operand()&&this.operand().reverse?this.operand().rightPart:null},enumerable:!0,configurable:!0}),b.prototype.dispose=function(){this.operand().dispose(),a.prototype.dispose.call(this)},b}(d.CriteriaOperatorSurface);d.UnaryOperandSurface=q}(i=d.Filtering||(d.Filtering={})),function(b){function c(b){b.displayText=a.Analytics.Utils.getLocalization(b.name,b.localizationId)}b.initDisplayText=c}(g=d.Internal||(d.Internal={}));var j=function(){function b(a){this.rtl=!1,this.parameters=ko.observable([]),this.canSelectLists=!0,this.canCreateParameters=!1,this.canChoiceParameters=!0,this.canChoiceProperty=!0,this.criteriaTreeValidator=new g.CriteriaSurfaceValidator,this.filterEditorOperators={_common:[{name:"Equals",insertVal:"==",value:e.BinaryOperatorType.Equal,type:e.BinaryOperatorType,localizationId:"StringId.FilterClauseEquals"},{name:"Does not equal",hidden:!0,reverse:!0,value:e.BinaryOperatorType.Equal,type:e.BinaryOperatorType,localizationId:"StringId.FilterClauseDoesNotEqual"},{name:"Does not equal",insertVal:"!=",value:e.BinaryOperatorType.NotEqual,type:e.BinaryOperatorType,localizationId:"StringId.FilterClauseDoesNotEqual"},{name:"Equals",reverse:!0,hidden:!0,value:e.BinaryOperatorType.NotEqual,type:e.BinaryOperatorType,localizationId:"StringId.FilterClauseEquals"},{name:"Is greater than",insertVal:">",value:e.BinaryOperatorType.Greater,type:e.BinaryOperatorType,localizationId:"StringId.FilterClauseGreater"},{name:"Is less than or equal to",hidden:!0,reverse:!0,value:e.BinaryOperatorType.Greater,type:e.BinaryOperatorType,localizationId:"StringId.FilterClauseGreater"},{name:"Is greater than or equal to",insertVal:">=",value:e.BinaryOperatorType.GreaterOrEqual,type:e.BinaryOperatorType,localizationId:"StringId.FilterClauseGreaterOrEqual"},{name:"Is less than",hidden:!0,reverse:!0,value:e.BinaryOperatorType.GreaterOrEqual,type:e.BinaryOperatorType,localizationId:"StringId.FilterClauseLess"},{name:"Is less than",insertVal:"<",value:e.BinaryOperatorType.Less,type:e.BinaryOperatorType,localizationId:"StringId.FilterClauseLess"},{name:"Is greater than or equal to",reverse:!0,hidden:!0,value:e.BinaryOperatorType.Less,type:e.BinaryOperatorType,localizationId:"StringId.FilterClauseGreaterOrEqual"},{name:"Is less than or equal to",insertVal:"<=",value:e.BinaryOperatorType.LessOrEqual,type:e.BinaryOperatorType,localizationId:"StringId.FilterClauseLessOrEqual"},{name:"Is greater than",reverse:!0,hidden:!0,value:e.BinaryOperatorType.LessOrEqual,type:e.BinaryOperatorType,localizationId:"StringId.FilterClauseGreater"},{name:"Is between",value:"Between",insertVal:"Between(, )",paramCount:1,type:e.BetweenOperator,localizationId:"StringId.FilterClauseBetween"},{name:"Is not between",value:"Between",insertVal:"Between(, )",paramCount:1,type:e.BetweenOperator,reverse:!0,localizationId:"StringId.FilterClauseNotBetween"}],string:[],guid:[],integer:[],float:[],date:[],list:[],group:[]},this.onChange=function(){},this.onEditorFocusOut=function(a){},this.onSave=function(a){},this.onClosing=function(){},this.handlers={create:function(a,b){return{data:new g.FilterEditorAddOn(a,b,"create","createItems"),templateName:"dx-filtereditor-create"}},change:function(a,b){return{data:new g.FilterEditorAddOn(a,b,"change","items"),templateName:"dx-filtereditor-change"}},changeProperty:function(a,b){return{data:new g.FilterEditorAddOn(a,b,"changeProperty","items","dx-filtereditor-popup-treelist"),templateName:"dx-filtereditor-changeProperty"}},changeValueType:function(a,b){return{data:new g.FilterEditorAddOn(a,b,"changeValueType","changeTypeItems"),templateName:"dx-filtereditor-changeValueType"}},changeParameter:function(a,b){return{data:new g.FilterEditorAddOn(a,b,"changeParameter","items"),templateName:"dx-filtereditor-changeParameter"}}},this.mapper={Aggregate:i.AggregateOperandSurface,Property:i.OperandPropertySurface,Parameter:i.OperandParameterSurface,Value:i.OperandValueSurface,Group:i.GroupOperandSurface,Between:i.BetweenOperandSurface,Binary:i.BinaryOperandSurface,Function:i.FunctionOperandSurface,In:i.InOperandSurface,Unary:i.UnaryOperandSurface,Default:i.CriteriaOperatorSurface},this.serializer=a||new g.FilterEditorSerializer,this.filterEditorOperators.string=[].concat(this.filterEditorOperators._common,[{name:"Contains",insertVal:"Contains(, )",value:e.FunctionOperatorType.Contains,type:e.FunctionOperatorType,localizationId:"StringId.FilterClauseContains"},{name:"Does not contain",value:e.FunctionOperatorType.Contains,type:e.FunctionOperatorType,reverse:!0,localizationId:"StringId.FilterClauseDoesNotContain"},{name:"Begins with",insertVal:"StartsWith(, )",value:e.FunctionOperatorType.StartsWith,type:e.FunctionOperatorType,localizationId:"StringId.FilterClauseBeginsWith"},{name:"Ends with",insertVal:"StartsWith(, )",value:e.FunctionOperatorType.EndsWith,type:e.FunctionOperatorType,localizationId:"StringId.FilterClauseEndsWith"},{name:"Is like",insertVal:"Like",value:e.BinaryOperatorType.Like,type:e.BinaryOperatorType,localizationId:"StringId.FilterClauseLike"},{name:"Is not like",insertVal:"Not Like",value:e.BinaryOperatorType.Like,type:e.BinaryOperatorType,reverse:!0,localizationId:"StringId.FilterClauseNotLike"},{name:"Is any of",value:"In",insertVal:"In()",paramCount:1,type:e.InOperator,localizationId:"StringId.FilterClauseAnyOf"},{name:"Is none of",value:"In",type:e.InOperator,reverse:!0,localizationId:"StringId.FilterClauseNoneOf"},{name:"Is blank",insertVal:"IsNullOrEmpty()",value:e.FunctionOperatorType.IsNullOrEmpty,type:e.FunctionOperatorType,localizationId:"StringId.FilterClauseIsNullOrEmpty"},{name:"Is not blank",insertVal:"Not IsNullOrEmpty()",value:e.FunctionOperatorType.IsNullOrEmpty,type:e.FunctionOperatorType,reverse:!0,localizationId:"StringId.FilterClauseIsNotNullOrEmpty"}]),this.filterEditorOperators.guid=this.filterEditorOperators.string,this.filterEditorOperators.integer=[].concat(this.filterEditorOperators._common,[{name:"Is null",insertVal:"Is Null",value:e.UnaryOperatorType.IsNull,type:e.UnaryOperatorType,localizationId:"StringId.FilterClauseIsNull"},{name:"Is not null",insertVal:"Is Not Null",value:e.UnaryOperatorType.IsNull,type:e.UnaryOperatorType,reverse:!0,localizationId:"StringId.FilterClauseIsNotNull"},{name:"Is any of",value:"In",insertVal:"In()",paramCount:1,type:e.InOperator,localizationId:"StringId.FilterClauseAnyOf"},{name:"Is none of",value:"In",type:e.InOperator,reverse:!0,localizationId:"StringId.FilterClauseNoneOf"}]),this.filterEditorOperators.float=this.filterEditorOperators.integer,this.filterEditorOperators.date=[].concat(this.filterEditorOperators._common,[{name:"Is null",insertVal:"Is Null",value:e.UnaryOperatorType.IsNull,type:e.UnaryOperatorType,localizationId:"StringId.FilterClauseIsNull"},{name:"Is not null",insertVal:"Is Not Null",value:e.UnaryOperatorType.IsNull,type:e.UnaryOperatorType,reverse:!0,localizationId:"StringId.FilterClauseIsNotNull"},{name:"Is any of",value:"In",insertVal:"In()",type:e.InOperator,localizationId:"StringId.FilterClauseAnyOf"},{name:"Is none of",value:"In",type:e.InOperator,reverse:!0,localizationId:"StringId.FilterClauseNoneOf"},{name:"Is beyond this year",insertVal:"IsOutlookIntervalBeyondThisYear()",value:e.FunctionOperatorType.IsOutlookIntervalBeyondThisYear,type:e.FunctionOperatorType,localizationId:"StringId.FilterCriteriaToStringFunctionIsOutlookIntervalBeyondThisYear"},{name:"Is later this year",insertVal:"IsOutlookIntervalLaterThisYear()",value:e.FunctionOperatorType.IsOutlookIntervalLaterThisYear,type:e.FunctionOperatorType,localizationId:"StringId.FilterCriteriaToStringFunctionIsOutlookIntervalLaterThisYear"},{name:"Is later this month",insertVal:"IsOutlookIntervalLaterThisMonth()",value:e.FunctionOperatorType.IsOutlookIntervalLaterThisMonth,type:e.FunctionOperatorType,localizationId:"StringId.FilterCriteriaToStringFunctionIsOutlookIntervalLaterThisMonth"},{name:"Is next week",insertVal:"IsOutlookIntervalNextWeek()",value:e.FunctionOperatorType.IsOutlookIntervalNextWeek,type:e.FunctionOperatorType,localizationId:"StringId.FilterCriteriaToStringFunctionIsOutlookIntervalNextWeek"},{name:"Is later this week",insertVal:"IsOutlookIntervalLaterThisWeek()",value:e.FunctionOperatorType.IsOutlookIntervalLaterThisWeek,type:e.FunctionOperatorType,localizationId:"StringId.FilterCriteriaToStringFunctionIsOutlookIntervalLaterThisWeek"},{name:"Is tomorrow",insertVal:"IsOutlookIntervalTomorrow()",value:e.FunctionOperatorType.IsOutlookIntervalTomorrow,type:e.FunctionOperatorType,localizationId:"StringId.FilterCriteriaToStringFunctionIsOutlookIntervalTomorrow"},{name:"Is today",insertVal:"IsOutlookIntervalToday()",value:e.FunctionOperatorType.IsOutlookIntervalToday,type:e.FunctionOperatorType,localizationId:"StringId.FilterCriteriaToStringFunctionIsOutlookIntervalToday"},{name:"Is yesterday",insertVal:"IsOutlookIntervalYesterday()",value:e.FunctionOperatorType.IsOutlookIntervalYesterday,type:e.FunctionOperatorType,localizationId:"StringId.FilterCriteriaToStringFunctionIsOutlookIntervalYesterday"},{name:"Is earlier this week",insertVal:"IsOutlookIntervalEarlierThisWeek()",value:e.FunctionOperatorType.IsOutlookIntervalEarlierThisWeek,type:e.FunctionOperatorType,localizationId:"StringId.FilterCriteriaToStringFunctionIsOutlookIntervalEarlierThisWeek"},{name:"Is last week",insertVal:"IsOutlookIntervalLastWeek()",value:e.FunctionOperatorType.IsOutlookIntervalLastWeek,type:e.FunctionOperatorType,localizationId:"StringId.FilterCriteriaToStringFunctionIsOutlookIntervalLastWeek"},{name:"Is earlier this month",insertVal:"IsOutlookIntervalEarlierThisMonth()",value:e.FunctionOperatorType.IsOutlookIntervalEarlierThisMonth,type:e.FunctionOperatorType,localizationId:"StringId.FilterCriteriaToStringFunctionIsOutlookIntervalEarlierThisMonth"},{name:"Is earlier this year",insertVal:"IsOutlookIntervalEarlierThisYear()",value:e.FunctionOperatorType.IsOutlookIntervalEarlierThisYear,type:e.FunctionOperatorType,localizationId:"StringId.FilterCriteriaToStringFunctionIsOutlookIntervalEarlierThisYear"},{name:"Is prior this year",insertVal:"IsOutlookIntervalPriorThisYear()",value:e.FunctionOperatorType.IsOutlookIntervalPriorThisYear,type:e.FunctionOperatorType,localizationId:"StringId.FilterCriteriaToStringFunctionIsOutlookIntervalPriorThisYear"}]),this.filterEditorOperators.list=[{name:"Exists",value:e.Aggregate.Exists,insertVal:"Exists()",type:e.Aggregate,localizationId:"StringId.FilterAggregateExists"},{name:"Count",value:e.Aggregate.Count,insertVal:"Count()",type:e.Aggregate,localizationId:"StringId.FilterAggregateCount"},{name:"Max",value:e.Aggregate.Max,insertVal:"Max()",type:e.Aggregate,localizationId:"StringId.FilterAggregateMax"},{name:"Min",value:e.Aggregate.Min,insertVal:"Min()",type:e.Aggregate,localizationId:"StringId.FilterAggregateMin"},{name:"Sum",value:e.Aggregate.Sum,insertVal:"Sum()",type:e.Aggregate,localizationId:"StringId.FilterAggregateSum"},{name:"Avg",value:e.Aggregate.Avg,insertVal:"Avg()",type:e.Aggregate,localizationId:"StringId.FilterAggregateAvg"}],this.filterEditorOperators.group=[{name:"And",insertVal:"And",value:e.GroupOperatorType.And,type:e.GroupOperatorType,localizationId:"StringId.FilterGroupAnd"},{name:"Or",insertVal:"Or",value:e.GroupOperatorType.Or,type:e.GroupOperatorType,localizationId:"StringId.FilterGroupOr"},{name:"Not And",value:e.GroupOperatorType.And,reverse:!0,type:e.GroupOperatorType,localizationId:"StringId.FilterGroupNotAnd"},{name:"Not Or",value:e.GroupOperatorType.Or,reverse:!0,type:e.GroupOperatorType,localizationId:"StringId.FilterGroupNotOr"}],this._initDisplayText()}return b.prototype._initDisplayText=function(){var a=this;Object.keys(this.filterEditorOperators).forEach(function(b){a.filterEditorOperators[b].forEach(g.initDisplayText)})},b.prototype.registrateOperator=function(b,c,d,e,f,g){if(void 0===f&&(f=!1),this.filterEditorOperators[b]){if(!c[d]){var h=0,i=0;$.each(c,function(a,b){i=parseInt(a),!isNaN(i)&&h<i&&(h=i)}),h++,c[h]=d,c[d]=h}var j={name:e,value:c[d],type:c,reverse:f,displayText:a.Analytics.Utils.getLocalization(e,g)};this.filterEditorOperators[b].push(j)}},b.prototype.generateTreelistOptions=function(a,b){var c=this,d=ko.observable(null),e=ko.observable(null);return{subscription:ko.computed(function(){d({itemsProvider:ko.unwrap(a),selectedPath:ko.observable(""),selected:e,path:ko.unwrap(b),treeListController:new g.FilterEditorTreeListController(e),rtl:c.rtl})}),options:d}},b}();d.FilterEditorHelper=j,d.DefaultFilterEditorHelper=j,function(a){var b=function(b){function c(a){var c=b.call(this,a)||this,d=new j,f=[],g=[],h=[];return Object.keys(d.filterEditorOperators).forEach(function(a){d.filterEditorOperators[a].forEach(function(a){if(a.insertVal){var b=a.name,c=a.insertVal,d=a.paramCount;a.type===e.FunctionOperatorType&&0===f.filter(function(a){return a.name===b}).length?f.push({name:b,insertVal:c}):a.type===e.Aggregate&&0===g.filter(function(a){return a.name===b}).length?g.push({name:b,insertVal:c}):a.type!==e.Aggregate&&a.type!==e.FunctionOperatorType&&0===h.filter(function(a){return a.name===b}).length&&h.push({name:b,insertVal:c,paramCount:d})}})}),c.filterEditorAvailable={operators:h,aggregate:g,functions:f},c}return __extends(c,b),c.prototype.getFunctionsCompletions=function(){var b=[];return this.filterEditorAvailable.functions.forEach(function(c){b.push(a.createFunctionCompletion({text:c.name,paramCount:c.insertVal.split(",").length},c.insertVal,c.insertVal))}),b},c.prototype.getAggregateCompletions=function(){var b=[];return this.filterEditorAvailable.aggregate.forEach(function(c){b.push(a.createFunctionCompletion({text:c.name,paramCount:0},c.insertVal,c.insertVal))}),b},c.prototype.getOperatorCompletions=function(b){var c=[];return this.filterEditorAvailable.operators.forEach(function(d){c.push(d.insertVal.match(new RegExp("[(][^()]*[)]","g"))?a.createFunctionCompletion({text:d.name,paramCount:d.paramCount||d.insertVal.split(",").length},d.insertVal,d.insertVal):{caption:d.insertVal,snippet:b+d.insertVal,meta:"operator"})}),c},c}(a.CodeCompletor);a.FilterEditorCodeCompletor=b}(g=d.Internal||(d.Internal={}));var k=function(c){function d(d,e,f,h){void 0===f&&(f=!1);var i=c.call(this)||this;i.options=d,i._displayNameProvider=h,i._advancedMode=ko.observable(!1),i.textFocused=ko.observable(!1),i.aceAvailable=g.aceAvailable,i.languageHelper={getLanguageMode:function(){return"ace/mode/criteria"},createCompleters:function(a,b,c){var d=ko.computed(function(){return i.path&&i.path()}),e=new g.FilterEditorCodeCompletor({editor:a,bindingContext:b,fieldListProvider:c.fieldListProvider(),path:d,getRealExpression:function(a,b){return i.displayExpressionConverter&&i.displayExpressionConverter.toRealExpression(a,b)||$.Deferred().resolve(b).promise()}});return e._disposables.push(d),[e]}},i.aceOptions={showLineNumbers:!1,showPrintMargin:!1,enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,showGutter:!1},i.additionalOptions={onChange:function(a){return i.onValueChange(a.getValue())},changeTimeout:200,onFocus:function(a){return i.onFocus()},onBlur:function(a){return i.onBlur()}},i.editorContainer=ko.observable(),i.textVisible=ko.observable(!1),i.getPopupContainer=function(a){return b.Internal.getParentContainer(a,i.options().popupContainer)},i.timeout=null,i.animationTimeout=null,i.advancedMode=ko.computed({read:function(){return i._advancedMode()},write:function(a){i.timeout&&clearTimeout(i.timeout),i.animationTimeout&&clearTimeout(i.animationTimeout),a?(i.textVisible(!0),i.timeout=setTimeout(function(){i._advancedMode(!0),i.focusText()},1),i.animationTimeout=setTimeout(function(){i.editorContainer()&&i.editorContainer().resize&&i.editorContainer().resize()},210)):(i._advancedMode(!1),i.timeout=setTimeout(function(){i.textVisible(!1)},200))}}),i.invalidMessage=function(){return a.Analytics.Utils.getLocalization("Cannot create a tree for this expression","AnalyticsCoreStringId.FilterEditor_TreeCreationError")},i.advancedModeText=function(){return a.Analytics.Utils.getLocalization("Advanced Mode","AnalyticsCoreStringId.FilterEditor_AdvancedMode")},i.operandSurface=ko.observable(null),i.operand=null,i.popupVisible=ko.observable(!1),i.buttonItems=[],i.popupService=new b.Internal.PopupService,i.rtl=f,d()&&d().helper&&(d().helper.rtl=f),i._disposables.push(i.disabled=ko.computed(function(){return ko.unwrap(i.options()&&i.options().disabled())})),i.value=ko.observable(""),i.displayExpressionConverter=h&&new b.Internal.DisplayExpressionConverter(h),i.save=function(){if(i.helper.onSave(i.value()),i.operandSurface()&&i.isSurfaceValid()){var a=d().helper.serializer.serialize(i.operand,!1);i.options().value(a)}else i.options().value(i.value());i.popupVisible(!1)},i.displayValue=g.wrapExpressionValue(i.path,i.value,i.displayExpressionConverter,i._disposables);var j=ko.computed({read:function(){var a=i.options();return a&&a.value()},write:function(a){var b=i.options();b&&b.value(a)}});i.modelDisplayValue=g.wrapExpressionValue(i.path,j,i.displayExpressionConverter,i._disposables),i.fieldListProvider=e,i.modelValueIsValid=ko.computed(function(){return d()&&i._validateValue(d().value())}),i.isValid=ko.computed(function(){return i._validateValue(i.value())}),i.isSurfaceValid=ko.computed(function(){try{return i.options()&&i.isValid()&&i.options().helper.criteriaTreeValidator.validateModel(i.options().helper.serializer.deserialize(i.value()))}catch(a){return!1}}),i._disposables.push(j),i._disposables.push(i.modelValueIsValid),i._disposables.push(i.isValid),i._disposables.push(i.isSurfaceValid),i._disposables.push(i.popupVisible.subscribe(function(a){a?(i.value(i.options().value()),i.isSurfaceValid()?(i.operand=i._generateOperand(i.value()),i.operandSurface(i._generateSurface(i.operand))):(i.textVisible(!0),i._advancedMode(!0),i.editorContainer()&&i.focusText()),d().helper.onChange=function(){i.value(d().helper.serializer.serialize(i.operand,!1))}):(i.helper.onClosing(),i.value(null),i.operandSurface()&&i.operandSurface().dispose(),i.operandSurface(null),i.operand=null)})),i.createAddButton=function(a){return d().helper.handlers.create(a,i.popupService)},i.createChangeType=function(a){return d().helper.handlers.change(a,i.popupService)},i.createChangeProperty=function(a){return d().helper.handlers.changeProperty(a,i.popupService)},i.createChangeParameter=function(a){return d().helper.handlers.changeParameter(a,i.popupService)},i.createChangeValueType=function(a){return d().helper.handlers.changeValueType(a,i.popupService)};var k=ko.computed(function(){return!i.isValid()});return i._disposables.push(k),i._disposables.push(i.advancedMode),i._createMainPopupButtons(k),i}return __extends(d,c),d.prototype._createMainPopupButtons=function(b){var c=this;this.buttonItems=[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:a.Analytics.Utils.getLocalization("Save","StringId.OK"),disabled:b,onClick:function(){c.save()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:a.Analytics.Utils.getLocalization("Cancel","StringId.Cancel"),onClick:function(){c.popupVisible(!1)}}},{toolbar:"bottom",location:"before",widget:"dxCheckBox",options:{value:c.advancedMode,text:c.advancedModeText()}}]},d.prototype._generateOperand=function(a){return this.options().helper.serializer.deserialize(a)},d.prototype._generateSurface=function(a){var b=null;b=a instanceof e.UnaryOperator?this.options().helper.mapper.Unary:this.options().helper.mapper.Group;var c=new b(a,this,this.fieldListProvider,this.path);return c.canRemove=!1,c instanceof i.UnaryOperandSurface&&(c.operand().canRemove=!1),c},d.prototype._validateValue=function(a){try{return!(!this.options()||!this.options().helper)&&(this.options().helper.serializer.deserialize(a),!0)}catch(a){return!1}},d.prototype.change=function(a,b){this.operand=e.CriteriaOperator.create(a),this.operand.assignFrom(b.model);var a=null;a=this.operand instanceof e.UnaryOperator?this.options().helper.mapper.Unary:this.options().helper.mapper.Group;var b=new a(this.operand,this,this.fieldListProvider,this.path);b.canRemove=!1,b instanceof i.UnaryOperandSurface&&(b.operand().canRemove=!1),this.operandSurface(b)},Object.defineProperty(d.prototype,"helper",{get:function(){return this.options()&&this.options().helper},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"path",{get:function(){return this.options()&&this.options().path},enumerable:!0,configurable:!0}),d.prototype.dispose=function(){c.prototype.dispose.call(this),this.operandSurface()&&this.operandSurface().dispose()},d.prototype.onInput=function(a,b){var c=this;this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){c.onValueChange(a.component.option("text"))},200)},d.prototype.onFocus=function(){this.textFocused(!0)},d.prototype.onBlur=function(){this.textFocused(!1),this.helper.onEditorFocusOut(this.operand)},d.prototype.cacheElement=function(b){this.editorContainer(a.ui.dxTextArea.getInstance(b.get(0)))},d.prototype.updateCriteria=function(){this.isSurfaceValid()&&(this.operand=this._generateOperand(this.value()),this.operandSurface()&&this.operandSurface().dispose(),this.operandSurface(this._generateSurface(this.operand)))},d.prototype.onValueChange=function(a){var b=this;this.displayValue()!==a&&(this.displayValue(a),this.displayExpressionConverter?this.displayExpressionConverter.toRealExpression(this.path(),a).done(function(a){b.value(a),b.updateCriteria()}).fail(function(){b.value(a),b.updateCriteria()}):this.updateCriteria())},d.prototype.focusText=function(){var a=function(a){setTimeout(function(b){a.renderer&&a.renderer.updateText(),a.focus()},1)};if(this.editorContainer())a(this.editorContainer());else var b=this.editorContainer.subscribe(function(c){b.dispose(),a(c)})},d}(c.Disposable);d.FilterEditor=k,ko.bindingHandlers.dxFilterEditor={init:function(c,d){$(c).children().remove(),$(c).addClass("dx-popup-general");var e=a.Analytics.Widgets.Internal.getTemplate("dx-filtereditor"),f=$(c).append(e),g=d(),h=ko.observable(ko.unwrap(g.fieldListProvider)),i=[];i.push(ko.computed(function(){h(g.options()&&g.options().itemsProvider?ko.unwrap(g.options().itemsProvider):ko.unwrap(g.fieldListProvider))})),i.push(ko.computed(function(){g.getDisplayNameByPath&&g.options()&&g.options().helper&&!g.options().helper.getDisplayPropertyName&&(g.options().helper.getDisplayPropertyName=g.getDisplayNameByPath)}));var j=new k(g.options,h,$(c).closest(".dx-rtl").length>0,g.displayNameProvider);return ko.applyBindingsToDescendants(j,f.children()[0]),b.Internal.addDisposeCallback(f.children()[0],function(){i.forEach(function(a){return a.dispose()}),j.dispose()}),{controlsDescendantBindings:!0}}};var l=function(a){function c(c,d,e,f,g){void 0===f&&(f=!1);var h=a.call(this,d,e,f,g)||this;h.element=c,h._contentMargins=20,h._topOffset=30,h._defaultActiveTextContentHeightPerc=25,h._defaultActiveTreeContentHeightPerc=75,h._currentActiveTextContentHeightPerc=h._defaultActiveTextContentHeightPerc,h._currentActiveTreeContentHeightPerc=h._defaultActiveTreeContentHeightPerc,h.plainContentHeightPerc=ko.observable("100%"),h.textContentHeightPerc=ko.observable(null),h.treeContentHeightPerc=ko.observable(null);var i=$(c),j=function(){var a=i.height();h.plainContentHeightPerc(100*(1-h._topOffset/a)+"%");var b=h._contentMargins/(a-h._topOffset)*100/2;h._currentActiveTextContentHeightPerc=h._defaultActiveTextContentHeightPerc-b,h._currentActiveTreeContentHeightPerc=h._defaultActiveTreeContentHeightPerc-b,h.advancedMode()&&(h.treeContentHeightPerc(h._currentActiveTreeContentHeightPerc),h.textContentHeightPerc(h._currentActiveTextContentHeightPerc))};return j(),h._disposables.push(h.advancedMode.subscribe(function(a){a?(h.treeContentHeightPerc(h._currentActiveTreeContentHeightPerc+"%"),h.textContentHeightPerc(h._currentActiveTextContentHeightPerc+"%")):(h.treeContentHeightPerc(null),h.textContentHeightPerc(null))})),window.addEventListener("resize",j),b.Internal.addDisposeCallback(c,function(){window.removeEventListener("resize",j),h.dispose()}),h}return __extends(c,a),c}(k);d.FilterEditorPlain=l,ko.components.register("dx-filtereditor-plain",{viewModel:{createViewModel:function(a,b){var c=new l(b.element,a.options,ko.observable(a.fieldListProvider),void 0,a.displayNameProvider);return c.popupVisible(!0),a.options().value.subscribe(function(){c.popupVisible(!1),c.popupVisible(!0)}),c}},template:g.getTemplate("dx-filtereditor-plain")}),ko.components.register("dx-filtereditor-advanced",{viewModel:{createViewModel:function(a,b){var c=new k(a.options,ko.observable(a.fieldListProvider),void 0,a.displayNameProvider);return c.advancedMode(!0),c.popupVisible(!0),a.options().value.subscribe(function(){c.popupVisible(!1),c.popupVisible(!0)}),c}},template:g.getTemplate("dx-filtereditor-advanced")}),ko.bindingHandlers.cacheElement={init:function(a,b,c,d,e){b().action($(a))}};var m=function(){function b(b,c,e,f){var g=this;this.popupContainer=".dx-designer-viewport",this.itemsProvider=null,this.resetValue=function(){g.value("")},this.title=ko.pureComputed({read:function(){var b=g._title();return a.Analytics.Utils.getLocalization(b.text,b.localizationId)},write:function(a){g._title({text:a})}}),this.value=b,this.path=c||ko.observable(""),this.disabled=e||ko.observable(!1),this.helper=new d.DefaultFilterEditorHelper,this._title=ko.observable(f||{text:a.Analytics.Utils.getLocalization("Filter Editor","DataAccessUIStringId.FiltersView")})}return b}();d.FilterStringOptions=m,function(a){a.formatStringStandardPatterns={DateTime:{type:"System.DateTime",value:new Date(Date.now()),patterns:[]},Number:{type:"System.Int32",value:"123456789",patterns:["#.00","#,#","0.E+0.0","0.e+0.0","n","n1","n2","e","e1","f","f1"]},Percent:{type:"System.Int32",value:"100",patterns:["0.00%","0%"]},Currency:{type:"System.Int32",value:"100",patterns:["$0.00","$0","c","c1","c2"]},Special:{type:"System.Int32",value:"123456789",patterns:["(###) ### - ####","### - ## - ####"]},General:{type:"System.String",value:"",patterns:["General format have no specific number format"]}}}(g=d.Internal||(d.Internal={}));var n=function(c){function d(a,d,e,f,h,i,j){var k=c.call(this)||this;k.currentType=ko.observable(),k.patternList=ko.observableArray([]),k.canAddCustomFormat=ko.observable(!1),k.formatPrefix=ko.observable(""),k.formatSuffix=ko.observable(""),k.previewString=ko.observable("Preview string"),k.formatResult=ko.observable(""),k.selectedFormats=ko.observable([]),k.selectedTypes=ko.observable([]),k.popupVisible=ko.observable(!1),k.localizationIdMap={title:{text:"FormatString Editor",localizationId:"AnalyticsCoreStringId.FormatStringEditor_Title"},category:{text:"Category",localizationId:"AnalyticsCoreStringId.Category"},preview:{text:"Preview",localizationId:"AnalyticsCoreStringId.TooltipButtons_Preview"},types:{text:"Types",localizationId:"AnalyticsCoreStringId.FormatStringEditor_Types"},add:{text:"Add",localizationId:"DataAccessUIStringId.Button_Add"},prefix:{text:"Prefix",localizationId:"AnalyticsCoreStringId.Prefix"},suffix:{text:"Suffix",localizationId:"AnalyticsCoreStringId.FormatStringEditor_Suffix"}},k.option("value",a),k.option("disabled",d||!1),k.option("rtl",i||!1),k.option("popupContainer",j||".dx-designer-viewport");var l=k;return k.popupService=new b.Internal.PopupService,k._standardPatternSource=e||g.formatStringStandardPatterns,k._customPatternSource=f||{},k.types=k._convertArray(Object.keys(k._standardPatternSource)),k._disposables.push(k.currentType.subscribe(function(a){l.isGeneralType?(l.formatResult(""),l.selectedFormats([])):l._updateFormatList()})),k.currentType(k.types[0].name),k._disposables.push(k.formatResult.subscribe(function(a){l._updateCanAddCustomFormat(a),l._updatePreview()})),k._disposables.push(k.formatPrefix.subscribe(function(a){l._updatePreview()})),k._disposables.push(k.formatSuffix.subscribe(function(a){l._updatePreview()})),k._disposables.push(k.popupVisible.subscribe(function(b){b&&(l._initEditor(a()),l.selectedTypes(l.types.filter(function(a){return a.name===l.currentType()})))})),k._createMainPopupButtons(),h&&h.updatePreview&&(k.updatePreview=h.updatePreview),k.setType=function(a){l.currentType(a.itemData.name),l._updateSelection()},k.setFormat=function(a){l.formatResult(a.itemData.name)},k.addCustomFormat=function(){l.formatResult()&&l.canAddCustomFormat()&&(l.customPatterns.push(l.formatResult()),l._updateFormatList(),l._scrollToBottom(),h&&h.saveCustomPattern(l.currentType(),l.formatResult()),l._updateSelection(l.patternList().length-1),l.canAddCustomFormat(!1))},k.removeCustomFormat=function(a){var b=l.selectedFormats()[0],c=l.patternList(),d=c.map(function(a){return a.name}).indexOf(a.name);l.customPatterns.splice(l.customPatterns.indexOf(a.name),1),l._updateFormatList(),h&&h.removeCustomPattern(l.currentType(),a.name),b.name===a.name?l._updateSelection(d===c.length-1?l.patternList().length-1:d):l.selectedFormats(l.patternList().filter(function(a){return a.name===b.name}))},k}return __extends(d,c),d.prototype.okAction=function(){var a=this.isGeneralType?this._getGeneralPreview("{0}"):this._wrapFormat();this.option("value",a),this.popupVisible(!1)},d.prototype._createMainPopupButtons=function(){var b=this;this.buttonItems=[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:a.Analytics.Utils.getLocalization("OK",a.Analytics.Internal.StringId.DataAccessBtnOK),onClick:function(){b.okAction()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:a.Analytics.Utils.getLocalization("Cancel",a.Analytics.Internal.StringId.DataAccessBtnCancel),onClick:function(){b.popupVisible(!1)}}}]},d.prototype._convertArray=function(b,c){return b.map(function(b){return{name:b,displayName:a.Analytics.Utils.getLocalization(b),canRemove:!!c}})},d.prototype._scrollToBottom=function(){var b=$(".dx-format-string .dx-format-string-formats").find(".dx-scrollview").filter(":visible"),c=a.ui.dxScrollView.getInstance(b.get(0));c&&c.scrollTo&&c.scrollTo(c.scrollHeight())},d.prototype._updateFormatList=function(){this.selectedFormats([]);var a=this._standardPatternSource[this.currentType()];this.patternList(this._convertArray(a.patterns).concat(this._convertArray(this.customPatterns,!0)))},d.prototype._updateSelection=function(a){var b=this.patternList()[a||0];b&&(this.selectedFormats([b]),this.formatResult(b.name))},d.prototype._updatePreview=function(){var a=this;if(this.isGeneralType)return void this.previewString(this._getGeneralPreview(void 0));var c=this._standardPatternSource[this.currentType()],d=this.updatePreview(c.value,c.type,this._wrapFormat());this._lastUpdatePreviewPromise=d,d.done(function(b){a._lastUpdatePreviewPromise===d&&a.previewString(b)}).fail(function(c){a._lastUpdatePreviewPromise===d&&a.previewString(b.Utils.getLocalization("Preview string is not available","AnalyticsCoreStringId.FormatStringEditor_PreviewNotAvailable_Text"))})},d.prototype._getGeneralPreview=function(a){return void 0===a&&(a="###"),this.formatPrefix()+a+this.formatSuffix()},d.prototype._wrapFormat=function(a){var b=a||this.formatResult();return b&&-1!==b.indexOf("{0:")?b:b?"{0:"+b+"}":""},d.prototype._updateCanAddCustomFormat=function(a){if(!a)return void this.canAddCustomFormat(!1);var b=!0;for(var c in this._standardPatternSource)if(!(b=-1===this._standardPatternSource[c].patterns.indexOf(a)))break;this.canAddCustomFormat(b?-1===this.customPatterns.indexOf(a):b)},d.prototype._initEditor=function(a){var b=this;if(!a)return void this.setType({itemData:this.types[0]});if(-1!==a.indexOf("{0}"))return this.currentType("General"),this.formatPrefix(a.substring(0,a.indexOf("{0}"))),void this.formatSuffix(a.substring(a.indexOf("{0}")+3));var c,d=a.indexOf("{0:"),e=a.indexOf("}",d),f=a.substring(d+3,e),g=function(){b.currentType(h),0===d&&e===a.length-1&&(b.selectedFormats(b.patternList().filter(function(a){return a.name===f})),b.formatResult(f),c=!0)};for(var h in this._standardPatternSource){if(-1!==this._standardPatternSource[h].patterns.indexOf(f)){g();break}var i=this._customPatternSource[this._standardPatternSource[h].type];if(i&&-1!==i.indexOf(f)){g();break}}c||(this.currentType(this.types[0].name),this.selectedFormats([]),this.formatResult(a))},d.prototype.updateInputText=function(a,b){this[a](b.option("text"))},d.prototype.option=function(a,b){return void 0!==b&&(ko.isObservable(this[a])?this[a](b):this[a]=b),ko.unwrap(this[a])},d.prototype.updatePreview=function(a,b,c){return $.Deferred().resolve(a||"preview string").promise()},Object.defineProperty(d.prototype,"customPatterns",{get:function(){var a=this._standardPatternSource[this.currentType()];return this._customPatternSource[a.type]=this._customPatternSource[a.type]||[]},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"isGeneralType",{get:function(){return"General"===this.currentType()},enumerable:!0,configurable:!0}),d.prototype.getDisplayText=function(b){return a.Analytics.Utils.getLocalization(this.localizationIdMap[b].text,this.localizationIdMap[b].localizationId)},d.prototype.getPopupContainer=function(a){return $(a).closest(this.option("popupContainer"))},d}(c.Disposable);d.FormatStringEditor=n,ko.bindingHandlers.dxFormatEditor={init:function(c,d){$(c).children().remove(),$(c).addClass("dx-popup-general");var e=a.Analytics.Widgets.Internal.getTemplate("dx-format-string"),f=$(c).append(e),g=d(),h=new n(g.value,g.disabled,g.standardPatterns,g.customPatterns||a.Reporting&&a.Reporting.Designer&&a.Reporting.Designer.Utils.formatStringEditorCustomSet,g.actions||a.Reporting&&a.Reporting.Designer&&a.Reporting.Designer.Internal.FormatStringService.actions,g.rtl,g.popupContainer);return ko.applyBindings(h,f.children()[0]),b.Internal.addDisposeCallback(c,function(){h.dispose()}),{controlsDescendantBindings:!0}}},function(b){var c=function(a){function b(b,c){return a.call(this,b,c)||this}return __extends(b,a),b.prototype._setContentHeight=function(){this._$popupContent.css({height:"100%"})},b}(a.ui.dxPopup);b.dxPopupWithAutoHeight=c,a.registerComponent("dxPopupWithAutoHeight",c)}(g=d.Internal||(d.Internal={}))}(d=b.Widgets||(b.Widgets={})),function(a){function d(b,c,d,e,f,g){a.addDisposeCallback(c,function(){b.dispose()}),setTimeout(function(){var a=!1;ko.computed({read:function(){!a&&ko.bindingHandlers.html.init&&(ko.bindingHandlers.html.init(c,function(){return b.content},e,f,g),a=!0),ko.bindingHandlers.html.update&&ko.bindingHandlers.html.update(c,function(){return b.update(d()),b.content},e,f,g)},disposeWhenNodeIsRemoved:c})},1)}a.cloneHtmlBinding=d;var e=function(a){function c(b){var c=a.call(this)||this;return c._$spanProtect=$("<span>"),c._$spanSearch=$("<span>").addClass("dx-datagrid-search-text"),c.content=ko.observable(""),c._options=b,ko.isSubscribable(c._options.text)&&c._disposables.push(c._options.text.subscribe(function(a){c._update()})),c._disposables.push(c._options.textToSearch.subscribe(function(a){c._update()})),c._update(),c}return __extends(c,a),c.prototype._update=function(){this.content(this._getHighlightContent(ko.unwrap(this._options.text),ko.unwrap(this._options.textToSearch),ko.unwrap(this._options.searchOptions)))},c.prototype.update=function(a){this._options=a,this._update()},c.prototype._getHighlightContent=function(a,c,d){var e=this,f=c,g=a;if(f){var h=b.Internal.findMatchesInString(g,f,d);if(h){var i="",j=0,k=g;return h.forEach(function(a,b){var c=k.indexOf(a),d=g.substr(j,c);k=k.substr(c+a.length),d&&(e._$spanProtect.text(d),i+=e._$spanProtect[0].outerHTML),e._$spanSearch.text(a),i+=e._$spanSearch[0].outerHTML,j=g.length-k.length,b===h.length-1&&k&&(e._$spanProtect.text(k),i+=e._$spanProtect[0].outerHTML)}),i}}return this._$spanProtect.text(g),g=this._$spanProtect[0].outerHTML},c}(c.Disposable);a.HighlightEngine=e,ko.bindingHandlers.searchHighlighting={init:function(a,b,c,f,g){d(new e(b()),a,b,c,f,g)}}}(b.Internal||(b.Internal={})),function(b){!function(b){ko.bindingHandlers.treelist={init:function(c,d,e,f,g){var h,i=null,j=null,k=null,l=d(),m=ko.unwrap(l),n=function(){var b=ko.unwrap(l),d=$(c).closest(".dx-scrollview"),e=a.ui.dxScrollView.getInstance(d.get(0));e&&e.update(),b.onItemsVisibilityChanged&&b.onItemsVisibilityChanged()},o=function(d){h&&h.dispose();var e=d.treeListController||new b.TreeListController;if(d.treeListController=e,e.dragDropHandler=e.dragDropHandler||g.$root.fieldDragHandler,d.factory=d.factory||new b.DefaultTreeListItemFactory,d.itemsProvider=ko.unwrap(d.itemsProvider),d.pageSize=d.pageSize||-1,i&&i.dispose(),d&&d.itemsProvider){d.rtl||(d.rtl=$(c).closest(".dx-rtl").length>0),h=ko.computed(function(){var a=ko.unwrap(d.path);return Array.isArray(a)?a:a?a.split("."):[]}),i=d.factory.createRootItem(d,h,n,d.rtl);var f=d.templateHtml||a.Analytics.Widgets.Internal.getTemplate("dx-treelist");e.root&&(e.searchEnabled=!0,e.searchOptions=e.searchOptions||new b.TreeListSearchOptions,e.root(i));var l=$(c).html(f);j=g.createChildContext(i),ko.applyBindings(j,l.children()[0]),k&&ko.utils.domNodeDisposal.removeDisposeCallback(c,k),k=function(){i&&i.dispose(),i=null,p&&p.dispose(),h&&h.dispose(),k=null,ko.utils.domNodeDisposal.removeDisposeCallback(c,k)},ko.utils.domNodeDisposal.addDisposeCallback(c,k)}};o($.extend({},m));var p=null;return ko.isSubscribable(l)?p=l.subscribe(function(a){a&&o($.extend({},a))}):ko.isSubscribable(l.itemsProvider)&&(p=l.itemsProvider.subscribe(function(a){a&&o($.extend({},l))})),{controlsDescendantBindings:!0}}},ko.bindingHandlers.treeListSearchPanel={init:function(a,c,d,e,f){var g=c(),h=ko.unwrap(g.template),i=ko.unwrap(g.modelType),j=ko.unwrap(g.controllers);return Array.isArray(j)||(j=[j]),b.TreeListSearchViewModel.createController(a,j,i,h),{controlsDescendantBindings:!0}}}}(b.Internal||(b.Internal={}))}(d=b.Widgets||(b.Widgets={}))}(a.Analytics||(a.Analytics={}))}(DevExpress||(DevExpress={})),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.DisplayExpressionConverter","Analytics.Utils.DisplayExpressionConverter","Analytics.Internal.DisplayExpressionConverter"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.HighlightEngine","Analytics.Internal.HighlightEngine"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.Disposable","Analytics.Utils.Disposable"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.integerValueConverter","Analytics.Utils.integerValueConverter","Data.integerValueConverter","Analytics.Internal.integerValueConverter"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.floatValueConverter","Analytics.Utils.floatValueConverter","Data.floatValueConverter","Analytics.Internal.floatValueConverter"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.setCursorInFunctionParameter","Analytics.Internal.setCursorInFunctionParameter"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Utils.isList","Analytics.Utils.isList","Analytics.Internal.isList"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.PathRequest","Analytics.Utils.PathRequest"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.ace","Analytics.Widgets.ace","Analytics.Widgets.Internal.ace"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.aceAvailable","Analytics.Widgets.aceAvailable","Analytics.Widgets.Internal.aceAvailable"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.CodeCompletor","Analytics.Widgets.CodeCompletor","Analytics.Widgets.Internal.CodeCompletor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.createFunctionCompletion","Analytics.Widgets.createFunctionCompletion","Analytics.Widgets.Internal.createFunctionCompletion"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.functionDisplay","Analytics.Widgets.Internal.functionDisplay"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.operatorNames","Analytics.Widgets.Internal.operatorNames"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.Tools","Analytics.Widgets.Internal.Tools"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.ExpressionEditorTreeListController","Analytics.Widgets.ExpressionEditorTreeListController","Analytics.Widgets.Internal.ExpressionEditorTreeListController"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.ExpressionEditorParametersTreeListController","Analytics.Widgets.ExpressionEditorParametersTreeListController","Analytics.Widgets.Internal.ExpressionEditorParametersTreeListController"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.wrapExpressionValue","Analytics.Widgets.wrapExpressionValue","Analytics.Widgets.Internal.wrapExpressionValue"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.ExpressionEditor","Analytics.Widgets.ExpressionEditor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.FilterEditorAddOn","Analytics.Widgets.Internal.FilterEditorAddOn"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.FilterEditorCodeCompletor","Analytics.Widgets.Internal.FilterEditorCodeCompletor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.initDisplayText","Analytics.Widgets.initDisplayText","Analytics.Widgets.Internal.initDisplayText"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.FilterEditorHelper","Analytics.Widgets.FilterEditorHelper"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.DefaultFilterEditorHelper","Analytics.Widgets.DefaultFilterEditorHelper"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.FilterEditorSerializer","Analytics.Widgets.Internal.FilterEditorSerializer"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.FilterEditorTreeListController","Analytics.Widgets.FilterEditorTreeListController","Analytics.Widgets.Internal.FilterEditorTreeListController"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.CriteriaSurfaceValidatorState","Analytics.Widgets.Internal.CriteriaSurfaceValidatorState"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.CriteriaSurfaceValidator","Analytics.Widgets.Internal.CriteriaSurfaceValidator"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.AggregateOperandSurface","Analytics.Widgets.AggregateOperandSurface","Analytics.Widgets.Filtering.AggregateOperandSurface"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.BetweenOperandSurface","Analytics.Widgets.BetweenOperandSurface","Analytics.Widgets.Filtering.BetweenOperandSurface"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.BinaryOperandSurface","Analytics.Widgets.BinaryOperandSurface","Analytics.Widgets.Filtering.BinaryOperandSurface"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.CriteriaOperatorSurface","Analytics.Widgets.CriteriaOperatorSurface","Analytics.Widgets.Filtering.CriteriaOperatorSurface"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.FunctionOperandSurface","Analytics.Widgets.FunctionOperandSurface","Analytics.Widgets.Filtering.FunctionOperandSurface"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.GroupOperandSurface","Analytics.Widgets.GroupOperandSurface","Analytics.Widgets.Filtering.GroupOperandSurface"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.InOperandSurface","Analytics.Widgets.InOperandSurface","Analytics.Widgets.Filtering.InOperandSurface"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.OperandParameterSurface","Analytics.Widgets.OperandParameterSurface","Analytics.Widgets.Filtering.OperandParameterSurface"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.OperandPropertySurface","Analytics.Widgets.OperandPropertySurface","Analytics.Widgets.Filtering.OperandPropertySurface"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.OperandSurfaceBase","Analytics.Widgets.OperandSurfaceBase","Analytics.Widgets.Filtering.OperandSurfaceBase"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.OperandValueSurface","Analytics.Widgets.OperandValueSurface","Analytics.Widgets.Filtering.OperandValueSurface"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.UnaryOperandSurface","Analytics.Widgets.UnaryOperandSurface","Analytics.Widgets.Filtering.UnaryOperandSurface"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.FilterEditor","Analytics.Widgets.FilterEditor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.FilterStringOptions","Analytics.Widgets.FilterStringOptions"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.FormatStringEditor","Analytics.Widgets.FormatStringEditor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.formatStringStandardPatterns","Analytics.Widgets.Internal.formatStringStandardPatterns"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.dxPopupWithAutoHeight","Analytics.Widgets.Internal.dxPopupWithAutoHeight"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.ValueEditorHelper","Analytics.Widgets.Internal.ValueEditorHelper"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.TreeListController","Analytics.Widgets.TreeListController","Analytics.Widgets.Internal.TreeListController"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.treeListEditAction","Analytics.Widgets.treeListEditAction","Analytics.Widgets.Internal.treeListEditAction"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.TreeListItemViewModel","Analytics.Widgets.TreeListItemViewModel","Analytics.Widgets.Internal.TreeListItemViewModel"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Widgets.TreeListRootItemViewModel","Analytics.Widgets.TreeListRootItemViewModel","Analytics.Widgets.Internal.TreeListRootItemViewModel"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.Aggregate","Analytics.Criteria.Aggregate"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.AggregateOperand","Analytics.Criteria.AggregateOperand"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.BetweenOperator","Analytics.Criteria.BetweenOperator"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.BinaryOperatorType","Analytics.Criteria.BinaryOperatorType"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.BinaryOperator","Analytics.Criteria.BinaryOperator"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.ConstantValue","Analytics.Criteria.ConstantValue"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.CriteriaOperator","Analytics.Criteria.CriteriaOperator"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.FunctionOperatorType","Analytics.Criteria.FunctionOperatorType"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.FunctionOperator","Analytics.Criteria.FunctionOperator"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.GroupOperatorType","Analytics.Criteria.GroupOperatorType"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.GroupOperator","Analytics.Criteria.GroupOperator"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.InOperator","Analytics.Criteria.InOperator"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.JoinOperand","Analytics.Criteria.JoinOperand"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.OperandParameter","Analytics.Criteria.OperandParameter"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.OperandProperty","Analytics.Criteria.OperandProperty"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.UnaryOperatorType","Analytics.Criteria.UnaryOperatorType"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.UnaryOperator","Analytics.Criteria.UnaryOperator"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.OperandValue","Analytics.Criteria.OperandValue"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.CriteriaOperatorPreprocessor","Analytics.Criteria.CriteriaOperatorPreprocessor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.criteriaCreator","Analytics.Criteria.criteriaCreator"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.operatorTokens","Analytics.Criteria.Utils.operatorTokens"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"JS.Data.criteriaForEach","Analytics.Criteria.Utils.criteriaForEach");var criteriaparser=function(){function a(){this.yy={}}var b=function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},c=[1,7],d=[1,6],e=[1,30],f=[1,8],g=[1,9],h=[1,10],i=[1,11],j=[1,25],k=[1,12],l=[1,13],m=[1,14],n=[1,15],o=[1,16],p=[1,17],q=[1,18],r=[1,19],s=[1,20],t=[1,21],u=[1,22],v=[1,23],w=[1,24],x=[1,27],y=[1,29],z=[1,28],A=[1,32],B=[1,33],C=[1,34],D=[1,35],E=[1,36],F=[1,37],G=[1,38],H=[1,39],I=[1,40],J=[1,41],K=[1,42],L=[1,43],M=[1,44],N=[1,45],O=[1,46],P=[1,47],Q=[1,48],R=[1,49],S=[1,50],T=[1,51],U=[1,52],V=[5,9,10,11,12,13,14,15,16,19,20,21,22,23,24,25,26,27,28,30,31,33,35,36,52],W=[5,9,10,11,12,13,14,15,16,19,20,21,22,23,24,25,26,27,28,30,31,33,35,36,51,52,53,55,56,57],X=[1,60],Y=[5,14,15,16,19,20,21,22,23,24,25,26,27,28,30,31,33,35,36,52],Z=[5,27,28,30,36,52],$=[1,113],_=[1,114],aa=[1,108],ba=[1,110],ca=[1,111],da=[1,109],ea=[1,112],fa=[5,9,10,11,12,13,14,15,16,19,20,21,22,23,24,25,26,27,28,30,31,33,35,36,37,52,60],ga=[5,11,12,14,15,16,19,20,21,22,23,24,25,26,27,28,30,31,33,35,36,52],ha=[5,19,20,25,26,27,28,30,31,36,52],ia=[5,19,20,21,22,23,24,25,26,27,28,30,31,36,52],ja=[30,36],ka={trace:function(){},yy:{},symbols_:{error:2,expressions:3,exp:4,EOF:5,const:6,propertyWithAgg:7,parameter:8,"*":9,"/":10,"+":11,"-":12,"%":13,"|":14,"&":15,"^":16,"!":17,"~":18,OP_EQ:19,OP_NE:20,OP_GT:21,OP_LT:22,OP_GE:23,OP_LE:24,OP_LIKE:25,NOT:26,AND:27,OR:28,"(":29,")":30,IS:31,NULL:32,OP_IN:33,arguments:34,OP_BETWEEN:35,",":36,NAME_LATIN:37,AGG_MIN:38,AGG_MAX:39,AGG_COUNT:40,AGG_AVG:41,AGG_SUM:42,AGG_EXISTS:43,AGG_SINGLE:44,STRING:45,NUMBER:46,OBJECT:47,BOOLEAN:48,GUID:49,property:50,"[":51,"]":52,".":53,agg:54,FIELD_END:55,CH:56,ESC_CH:57,FIELD_START:58,paramName:59,NAME_SOFT:60,"?":61,commaseparated:62,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",9:"*",10:"/",11:"+",12:"-",13:"%",14:"|",15:"&",16:"^",17:"!",18:"~",19:"OP_EQ",20:"OP_NE",21:"OP_GT",22:"OP_LT",23:"OP_GE",24:"OP_LE",25:"OP_LIKE",26:"NOT",27:"AND",28:"OR",29:"(",30:")",31:"IS",32:"NULL",33:"OP_IN",35:"OP_BETWEEN",36:",",37:"NAME_LATIN",38:"AGG_MIN",39:"AGG_MAX",40:"AGG_COUNT",41:"AGG_AVG",42:"AGG_SUM",43:"AGG_EXISTS",44:"AGG_SINGLE",45:"STRING",46:"NUMBER",47:"OBJECT",48:"BOOLEAN",49:"GUID",51:"[",52:"]",53:".",55:"FIELD_END",56:"CH",57:"ESC_CH",58:"FIELD_START",60:"NAME_SOFT",61:"?"},productions_:[0,[3,2],[4,1],[4,1],[4,1],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,4],[4,2],[4,3],[4,3],[4,3],[4,3],[4,4],[4,3],[4,7],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[7,6],[7,5],[7,3],[7,4],[7,3],[7,1],[7,4],[54,3],[54,1],[54,3],[54,1],[54,4],[54,4],[54,3],[54,4],[54,4],[54,4],[50,2],[50,2],[50,2],[50,3],[50,3],[50,1],[50,1],[50,1],[59,1],[59,1],[59,2],[59,2],[8,2],[8,1],[34,2],[34,3],[62,1],[62,3]],performAction:function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 1:return f[h-1];case 2:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("const",{value:f[h]});break;case 3:case 4:case 41:case 42:case 43:case 44:case 45:this.$=f[h];break;case 5:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.Multiply});break;case 6:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.Divide});break;case 7:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.Plus});break;case 8:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.Minus});break;case 9:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.Modulo});break;case 10:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.BitwiseOr});break;case 11:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.BitwiseAnd});break;case 12:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.BitwiseXor});break;case 13:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("unary",{operatorType:DevExpress.Analytics.Criteria.UnaryOperatorType.Minus,operator:f[h]});break;case 14:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("unary",{operatorType:DevExpress.Analytics.Criteria.UnaryOperatorType.Plus,operator:f[h]});break;case 15:case 25:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("unary",{operatorType:DevExpress.Analytics.Criteria.UnaryOperatorType.Not,operator:f[h]});break;case 16:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("unary",{operatorType:DevExpress.Analytics.Criteria.UnaryOperatorType.BitwiseNot,operator:f[h]});break;case 17:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.Equal});break;case 18:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.NotEqual});break;case 19:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.Greater});break;case 20:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.Less});break;case 21:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.GreaterOrEqual});break;case 22:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.LessOrEqual});break;case 23:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-2],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.Like});break;case 24:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("unary",{operatorType:DevExpress.Analytics.Criteria.UnaryOperatorType.Not,operator:DevExpress.Analytics.Criteria.criteriaCreator.process("binary",{left:f[h-3],right:f[h],operatorType:DevExpress.Analytics.Criteria.BinaryOperatorType.Like})});break;case 26:this.$=DevExpress.Analytics.Criteria.GroupOperator.combine(DevExpress.Analytics.Criteria.GroupOperatorType.And,[f[h-2],f[h]]);break;case 27:this.$=DevExpress.Analytics.Criteria.GroupOperator.combine(DevExpress.Analytics.Criteria.GroupOperatorType.Or,[f[h-2],f[h]]);break;case 28:case 64:case 79:this.$=f[h-1];break;case 29:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("unary",{operatorType:DevExpress.Analytics.Criteria.UnaryOperatorType.IsNull,operator:f[h-2]});break;case 30:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("unary",{operatorType:DevExpress.Analytics.Criteria.UnaryOperatorType.Not,operator:DevExpress.Analytics.Criteria.criteriaCreator.process("unary",{operatorType:DevExpress.Analytics.Criteria.UnaryOperatorType.IsNull,operator:f[h-3]})});break;case 31:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("in",{criteriaOperator:f[h-2],operands:f[h]});break;case 32:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("between",{property:f[h-6],begin:f[h-3],end:f[h-1]});break;case 33:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("function",{operatorType:DevExpress.Analytics.Criteria.FunctionOperatorType[f[h-1]]||f[h-1],operands:f[h]});break;case 34:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("function",{operatorType:DevExpress.Analytics.Criteria.FunctionOperatorType.Min,operands:f[h]});break;case 35:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("function",{operatorType:DevExpress.Analytics.Criteria.FunctionOperatorType.Max,operands:f[h]});break;case 36:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("function",{operatorType:DevExpress.Analytics.Criteria.FunctionOperatorType.Count||"Count",operands:f[h]});break;case 37:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("function",{operatorType:DevExpress.Analytics.Criteria.FunctionOperatorType.Avg||"Avg",operands:f[h]});break;case 38:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("function",{operatorType:DevExpress.Analytics.Criteria.FunctionOperatorType.Sum||"Sum",operands:f[h]});break;case 39:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("function",{operatorType:DevExpress.Analytics.Criteria.FunctionOperatorType.Exists||"Exists",operands:f[h]});break;case 40:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("function",{operatorType:DevExpress.Analytics.Criteria.FunctionOperatorType.Single||"Single",operands:f[h]});break;case 46:this.$=null;break;case 47:this.$=DevExpress.Analytics.Criteria.JoinOperand.joinOrAggregate(DevExpress.Analytics.Criteria.criteriaCreator.process("property",{propertyName:f[h-5].name,startColumn:f[h-5].col,startLine:f[h-5].line,originalPropertyLength:g[h-5].last_column-g[h-5].first_column+1}),f[h-3],f[h].type,f[h].expr);break;case 48:this.$=DevExpress.Analytics.Criteria.JoinOperand.joinOrAggregate(DevExpress.Analytics.Criteria.criteriaCreator.process("property",{propertyName:f[h-4].name,startColumn:f[h-4].col,startLine:f[h-4].line,originalPropertyLength:g[h-4].last_column-g[h-4].first_column+1}),null,f[h].type,f[h].expr);break;case 49:this.$=DevExpress.Analytics.Criteria.JoinOperand.joinOrAggregate(DevExpress.Analytics.Criteria.criteriaCreator.process("property",{propertyName:f[h-2].name,startColumn:f[h-2].col,startLine:f[h-2].line,originalPropertyLength:g[h-2].last_column-g[h-2].first_column}),null,f[h].type,f[h].expr);break;case 50:this.$=DevExpress.Analytics.Criteria.JoinOperand.joinOrAggregate(DevExpress.Analytics.Criteria.criteriaCreator.process("property",{propertyName:f[h-3].name,startColumn:f[h-3].col,startLine:f[h-3].line,originalPropertyLength:g[h-3].last_column-g[h-3].first_column+1}),f[h-1],DevExpress.Analytics.Criteria.Aggregate.Exists,null);break;case 51:this.$=DevExpress.Analytics.Criteria.JoinOperand.joinOrAggregate(DevExpress.Analytics.Criteria.criteriaCreator.process("property",{propertyName:f[h-2].name,startColumn:f[h-2].col,startLine:f[h-2].line,originalPropertyLength:g[h-2].last_column-g[h-2].first_column+1}),null,DevExpress.Analytics.Criteria.Aggregate.Exists,null);break;case 52:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("property",{propertyName:f[h].name,startColumn:f[h].col,startLine:f[h].line,originalPropertyLength:g[h].last_column-g[h].first_column});break;case 53:this.$=DevExpress.Analytics.Criteria.JoinOperand.joinOrAggregate(DevExpress.Analytics.Criteria.criteriaCreator.process("property",{}),null,f[h].type,f[h].expr);break;case 54:case 55:this.$={type:DevExpress.Analytics.Criteria.Aggregate.Count};break;case 56:case 57:this.$={type:DevExpress.Analytics.Criteria.Aggregate.Exists};break;case 58:this.$={type:DevExpress.Analytics.Criteria.Aggregate.Avg,expr:f[h-1]};break;case 59:this.$={type:DevExpress.Analytics.Criteria.Aggregate.Sum,expr:f[h-1]};break;case 60:this.$={type:DevExpress.Analytics.Criteria.Aggregate.Single,expr:DevExpress.Analytics.Criteria.criteriaCreator.process("property",{propertyName:"This"})};break;case 61:this.$={type:DevExpress.Analytics.Criteria.Aggregate.Single,expr:f[h-1]};break;case 62:this.$={type:DevExpress.Analytics.Criteria.Aggregate.Min,expr:f[h-1]};break;case 63:this.$={type:DevExpress.Analytics.Criteria.Aggregate.Max,expr:f[h-1]};break;case 65:this.$={name:f[h-1].name+f[h],line:f[h-1].line,col:f[h-1].col};break;case 66:this.$={name:f[h-1].name+f[h].substr(1),line:f[h-1].line,col:f[h-1].col};break;case 67:this.$={name:f[h-2].name+".",line:f[h-2].line,col:f[h-2].col};break;case 68:this.$={name:f[h-2].name+"."+f[h],line:f[h-2].line,col:f[h-2].col};break;case 69:this.$={name:"",line:g[h].first_line-1,col:g[h].first_column+1};break;case 70:this.$={name:f[h],line:g[h].first_line-1,col:g[h].first_column};break;case 71:this.$={name:"^",line:g[h].first_line-1,col:g[h].first_column};break;case 72:case 73:this.$=f[h];break;case 74:case 75:this.$=f[h-1]+f[h];break;case 76:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("parameter",{parameterName:f[h]});break;case 77:this.$=DevExpress.Analytics.Criteria.criteriaCreator.process("value",{});break;case 78:this.$=[];break;case 80:this.$=[f[h]];break;case 81:this.$=f[h-2].concat(f[h])}},table:[{3:1,4:2,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{1:[3]},{5:[1,31],9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,27:Q,28:R,31:S,33:T,35:U},b(V,[2,2]),b(V,[2,3]),b(V,[2,4]),{4:53,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:54,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:55,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:56,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:57,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:58,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},b(W,[2,70],{34:59,29:X}),{29:X,34:61},{29:X,34:62},{29:X,34:63},{29:X,34:64},{29:X,34:65},{29:X,34:66},{29:X,34:67},b(V,[2,41]),b(V,[2,42]),b(V,[2,43]),b(V,[2,44]),b(V,[2,45]),b(V,[2,46]),b(V,[2,52],{51:[1,68],53:[1,69],55:[1,70],56:[1,71],57:[1,72]}),{52:[1,73]},b(V,[2,77],{59:74,37:[1,75],60:[1,76]}),b(W,[2,69]),b(W,[2,71]),{1:[2,1]},{4:77,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:78,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:79,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:80,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:81,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:82,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:83,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:84,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:85,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:86,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:87,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:88,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:89,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:90,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:91,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{25:[1,92]},{4:93,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:94,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{26:[1,96],32:[1,95]},{29:X,34:97},{29:[1,98]},b(V,[2,13]),b(V,[2,14]),b(V,[2,15]),b(Y,[2,16],{9:A,10:B,11:C,12:D,13:E}),b(Z,[2,25],{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,31:S,33:T,35:U}),{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,27:Q,28:R,30:[1,99],31:S,33:T,35:U},b(V,[2,33]),{4:102,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,30:[1,100],32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z,62:101},b(V,[2,34]),b(V,[2,35]),b(V,[2,36]),b(V,[2,37]),b(V,[2,38]),b(V,[2,39]),b(V,[2,40]),{4:103,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,52:[1,104],58:y,61:z},{37:[1,107],38:$,39:_,40:aa,41:ba,42:ca,43:da,44:ea,54:105,58:[1,106]},b(W,[2,64]),b(W,[2,65]),b(W,[2,66]),{53:[1,115]},b(V,[2,76],{37:[1,116],60:[1,117]}),b(fa,[2,72]),b(fa,[2,73]),b(V,[2,5]),b(V,[2,6]),b(ga,[2,7],{9:A,10:B,13:E}),b(ga,[2,8],{9:A,10:B,13:E}),b(V,[2,9]),b([5,14,19,20,21,22,23,24,25,26,27,28,30,31,33,35,36,52],[2,10],{9:A,10:B,11:C,12:D,13:E,15:G,16:H}),b(Y,[2,11],{9:A,10:B,11:C,12:D,13:E}),b([5,14,16,19,20,21,22,23,24,25,26,27,28,30,31,33,35,36,52],[2,12],{9:A,10:B,11:C,12:D,13:E,15:G}),b(ha,[2,17],{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,21:K,22:L,23:M,24:N,33:T,35:U}),b(ha,[2,18],{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,21:K,22:L,23:M,24:N,33:T,35:U}),b(ia,[2,19],{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,33:T,35:U}),b(ia,[2,20],{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,33:T,35:U}),b(ia,[2,21],{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,33:T,35:U}),b(ia,[2,22],{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,33:T,35:U}),b(ha,[2,23],{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,21:K,22:L,23:M,24:N,33:T,35:U}),{4:118,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},b(Z,[2,26],{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,31:S,33:T,35:U}),b([5,28,30,36,52],[2,27],{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,27:Q,31:S,33:T,35:U}),b(V,[2,29]),{32:[1,119]},b(V,[2,31]),{4:120,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},b(V,[2,28]),b(V,[2,78]),{30:[1,121],36:[1,122]},b(ja,[2,80],{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,27:Q,28:R,31:S,33:T,35:U}),{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,27:Q,28:R,31:S,33:T,35:U,52:[1,123]},b(V,[2,51],{53:[1,124]}),b(V,[2,49]),b(W,[2,67]),b(W,[2,68]),b(V,[2,55],{29:[1,125]}),b(V,[2,57],{29:[1,126]}),{29:[1,127]},{29:[1,128]},{29:[1,129]},{29:[1,130]},{29:[1,131]},{38:$,39:_,40:aa,41:ba,42:ca,43:da,44:ea,54:132},b(fa,[2,74]),b(fa,[2,75]),b(ha,[2,24],{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,21:K,22:L,23:M,24:N,33:T,35:U}),b(V,[2,30]),{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,27:Q,28:R,31:S,33:T,35:U,36:[1,133]},b(V,[2,79]),{4:134,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},b(V,[2,50],{53:[1,135]}),{38:$,39:_,40:aa,41:ba,42:ca,43:da,44:ea,54:136},{30:[1,137]},{30:[1,138]},{4:139,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:140,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:142,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,30:[1,141],32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:143,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},{4:144,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},b(V,[2,53]),{4:145,6:3,7:4,8:5,11:c,12:d,16:e,17:f,18:g,26:h,29:i,32:j,37:k,38:l,39:m,40:n,41:o,42:p,43:q,44:r,45:s,46:t,47:u,48:v,49:w,50:26,51:x,58:y,61:z},b(ja,[2,81],{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,27:Q,28:R,31:S,33:T,35:U}),{38:$,39:_,40:aa,41:ba,42:ca,43:da,44:ea,54:146},b(V,[2,48]),b(V,[2,54]),b(V,[2,56]),{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,27:Q,28:R,30:[1,147],31:S,33:T,35:U},{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,27:Q,28:R,30:[1,148],31:S,33:T,35:U},b(V,[2,60]),{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,27:Q,28:R,30:[1,149],31:S,33:T,35:U},{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,27:Q,28:R,30:[1,150],31:S,33:T,35:U},{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,27:Q,28:R,30:[1,151],31:S,33:T,35:U},{9:A,10:B,11:C,12:D,13:E,14:F,15:G,16:H,19:I,20:J,21:K,22:L,23:M,24:N,25:O,26:P,27:Q,28:R,30:[1,152],31:S,33:T,35:U},b(V,[2,47]),b(V,[2,58]),b(V,[2,59]),b(V,[2,61]),b(V,[2,62]),b(V,[2,63]),b(V,[2,32])],defaultActions:{31:[2,1]},parseError:function(a,b){if(!b.recoverable){var c=new Error(a);throw c.hash=b,c}this.trace(a)},parse:function(a){var b=this,c=[0],d=[null],e=[],f=this.table,g="",h=0,i=0,j=0,k=2,l=1,m=e.slice.call(arguments,1),n=Object.create(this.lexer),o={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(o.yy[p]=this.yy[p]);n.setInput(a,o.yy),o.yy.lexer=n,o.yy.parser=this,void 0===n.yylloc&&(n.yylloc={});var q=n.yylloc;e.push(q);var r=n.options&&n.options.ranges;"function"==typeof o.yy.parseError?this.parseError=o.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var s,t,u,v,w,x,y,z,A,B=function(){var a;return a=n.lex()||l,"number"!=typeof a&&(a=b.symbols_[a]||a),a},C={};;){if(u=c[c.length-1],this.defaultActions[u]?v=this.defaultActions[u]:(null!==s&&void 0!==s||(s=B()),v=f[u]&&f[u][s]),void 0===v||!v.length||!v[0]){var D="";A=[];for(x in f[u])this.terminals_[x]&&x>k&&A.push("'"+this.terminals_[x]+"'");D=n.showPosition?"Parse error on line "+(h+1)+":\n"+n.showPosition()+"\nExpecting "+A.join(", ")+", got '"+(this.terminals_[s]||s)+"'":"Parse error on line "+(h+1)+": Unexpected "+(s==l?"end of input":"'"+(this.terminals_[s]||s)+"'"),this.parseError(D,{text:n.match,token:this.terminals_[s]||s,line:n.yylineno,loc:q,expected:A})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+u+", token: "+s);switch(v[0]){case 1:c.push(s),d.push(n.yytext),e.push(n.yylloc),c.push(v[1]),s=null,t?(s=t,t=null):(i=n.yyleng,g=n.yytext,h=n.yylineno,q=n.yylloc,j>0&&j--);break;case 2:if(y=this.productions_[v[1]][1],C.$=d[d.length-y],C._$={first_line:e[e.length-(y||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(y||1)].first_column,last_column:e[e.length-1].last_column},r&&(C._$.range=[e[e.length-(y||1)].range[0],e[e.length-1].range[1]]),void 0!==(w=this.performAction.apply(C,[g,i,h,o.yy,v[1],d,e].concat(m))))return w;y&&(c=c.slice(0,-1*y*2),d=d.slice(0,-1*y),e=e.slice(0,-1*y)),c.push(this.productions_[v[1]][0]),d.push(C.$),e.push(C._$),z=f[c[c.length-2]][c[c.length-1]],c.push(z);break;case 3:return!0}}return!0}},la=function(){return{EOF:1,parseError:function(a,b){if(!this.yy.parser)throw new Error(a);this.yy.parser.parseError(a,b)},setInput:function(a,b){return this.yy=b||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),b=new Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},test_match:function(a,b){var c,d,e;if(this.options.backtrack_lexer&&(e={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(e.yylloc.range=this.yylloc.range.slice(0))),d=a[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var f in e)this[f]=e[f];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,b,c,d;this._more||(this.yytext="",this.match="");for(var e=this._currentRules(),f=0;f<e.length;f++)if((c=this._input.match(this.rules[e[f]]))&&(!b||c[0].length>b[0].length)){if(b=c,d=f,this.options.backtrack_lexer){if(!1!==(a=this.test_match(c,e[f])))return a;if(this._backtrack){b=!1;continue}return!1}if(!this.options.flex)break}return b?!1!==(a=this.test_match(b,e[d]))&&a:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return a||this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},pushState:function(a){this.begin(a)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(a,b,c,d){switch(c){case 0:return this.begin("INITIAL"),51;case 1:return this.begin("INITIAL"),55;case 2:return 57;case 3:return 56;case 4:return"INVALID";case 5:return 45;case 6:return 49;case 7:return 47;case 8:return 46;case 9:case 10:return 48;case 11:break;case 12:return 35;case 13:return 33;case 14:return 26;case 15:return 31;case 16:return 32;case 17:return 9;case 18:return 10;case 19:return 12;case 20:return 11;case 21:return 16;case 22:return 18;case 23:return 20;case 24:return 17;case 25:return 13;case 26:return 20;case 27:return 23;case 28:return 24;case 29:return 21;case 30:return 22;case 31:return 28;case 32:return 27;case 33:return 41;case 34:return 39;case 35:return 38;case 36:return 44;case 37:return 40;case 38:return 43;case 39:return 42;case 40:case 41:return 19;case 42:return 25;case 43:return 27;case 44:return 28;case 45:return 15;case 46:return 14;case 47:return this.begin("fieldname"),58;case 48:return 52;case 49:return 29;case 50:return 30;case 51:return 53;case 52:return 36;case 53:return 61;case 54:return 37;case 55:return 60;case 56:return"INVALID";case 57:return 5}},rules:[/^(?:\]\s*\[)/i,/^(?:\])/i,/^(?:\\.)/i,/^(?:.)/i,/^(?:$)/i,/^(?:'(?:[^\']|(?:('').))*')/i,/^(?:\{[0-9A-Fa-f]{8}[-]?(?:[0-9A-Fa-f]{4}[-]?){3}[0-9A-Fa-f]{12}\})/i,/^(?:#(?:[^\\\#]|(?:\\.))*#)/i,/^(?:[0-9]+(\.[0-9]+([mfMF]{1})?|[bsiluBSILU]{1})?)/i,/^(?:True\b)/i,/^(?:False\b)/i,/^(?:\s+)/i,/^(?:Between\b)/i,/^(?:In\b)/i,/^(?:Not\b)/i,/^(?:Is\b)/i,/^(?:Null\b)/i,/^(?:\*)/i,/^(?:\/)/i,/^(?:-)/i,/^(?:\+)/i,/^(?:\^)/i,/^(?:~)/i,/^(?:!=)/i,/^(?:!)/i,/^(?:%)/i,/^(?:<>)/i,/^(?:>=)/i,/^(?:<=)/i,/^(?:>)/i,/^(?:<)/i,/^(?:\|\|)/i,/^(?:&&)/i,/^(?:Avg\b)/i,/^(?:Max\b)/i,/^(?:Min\b)/i,/^(?:Single\b)/i,/^(?:Count\b)/i,/^(?:Exists\b)/i,/^(?:Sum\b)/i,/^(?:==)/i,/^(?:=)/i,/^(?:Like\b)/i,/^(?:And\b)/i,/^(?:Or\b)/i,/^(?:&)/i,/^(?:\|)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:\()/i,/^(?:\))/i,/^(?:\.)/i,/^(?:,)/i,/^(?:\?)/i,/^(?:\w[\w\d]*)/i,/^(?:[_\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376-\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06E5-\u06E6\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4-\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E46\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\d_\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376-\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06E5-\u06E6\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4-\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E46\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{fieldname:{rules:[0,1,2,3,4],inclusive:!1},INITIAL:{rules:[5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57],inclusive:!0}}}}();return ka.lexer=la,a.prototype=ka,ka.Parser=a,new a}();if(DevExpress.JS.Data.criteriaparser=criteriaparser,DevExpress.Analytics.Criteria.criteriaparser=criteriaparser,window.ace){var _define=window.ace.define||define;_define("ace/mode/criteria",["require","exports","module","ace/lib/oop","ace/mode/text"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("./text").Mode,f=a("./criteria_highlight_rules").CriteriaHighlightRules,g=function(){this.HighlightRules=f};d.inherits(g,e),b.Mode=g}),_define("ace/mode/criteria_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("./text_highlight_rules").TextHighlightRules,f=a("./doc_comment_highlight_rules").DocCommentHighlightRules,g=function(){this.$rules={start:[{token:"comment",start:"/\\*",end:"\\*/"},{token:"constant.other",regex:/(?:#(?:[^\\\#]|(?:\\.))*#?)|(?:\{[-0-9A-Fa-f]*\}?)/},{token:"string.quoted.single",regex:/N?'(?:\\.|[^'\\])*'?/},{token:"constant.numeric",regex:/[+\-]?\.?\d[\d.]*/i},{token:"support.other.aggregate",regex:/\.([a-zA-Z_]\w*)?/},{token:"keyword.operator",regex:/[+\-*\/%|&^<>]|==|!=|<=|>=|In|Like|Between|And|Or|Not/i},{token:"constant.language",regex:/True|False/i},{token:"support.context.start",regex:/\[(?:[^\]\)])*\]\[/},{token:"support.variable.other",regex:/\[(?:[^\]\)\,])*\]?/},{token:"support.variable.parameter",regex:/\?\w+/},{token:"support.context.end",regex:/\]/},{token:"support.function",regex:/[_\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376-\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06E5-\u06E6\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4-\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E46\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\d_\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376-\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06E5-\u06E6\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4-\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E46\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*/}],comment:[{token:"comment",regex:"\\*\\/",next:"no_regex"},{defaultToken:"comment"}]},this.embedRules(f,"doc-",[f.getEndRule("start")]),this.normalizeRules()};d.inherits(g,e),b.CriteriaHighlightRules=g})}var __extends=this&&this.__extends||function(){var a=function(b,c){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])})(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c),b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),DevExpress;!function(a){!function(b){var c;!function(b){function c(a){return ko.observable(void 0===a||null===a?null:parseFloat(a))}function f(a){var b=d.getShortTypeName(a),c=this.valuesArray&&this.valuesArray.filter(function(a){return a.value==b})[0];return ko.observable(this.values&&void 0!==this.values[b]||c?b:a)}function g(a){return ko.observable(void 0!==a?"true"===String(a).toLowerCase():a)}function h(a){var b=(a||"").split(","),c=ko.observable(a);if(3===b.length)c=ko.observable("rgb("+b.join(", ")+")");else if(4===b.length){var d=Math.round(parseFloat(b[0])/255*100)/100;b.shift(),b.push(d.toString()),c=ko.observable("rgba("+b.join(", ")+")")}return c}function i(a){return Math.round(a).toString()}function j(b){var c=a.Analytics.Utils.colorToString(b).split(",");return(parseInt(c[0])<<24)+(parseInt(c[1])<<16)+(parseInt(c[2])<<8)+parseInt(c[3])}function k(a,b){void 0===b&&(b=!0);var c=Math.round(a>>16&255),d=Math.round(a>>8&255),e=Math.round(255&a);if(b){return h([Math.round(a>>24&255),c,d,e].join(", "))()}return h([c,d,e].join(", "))()}function l(a){var b=(a||"").split(", "),c=a;if(3===b.length)b[0]=b[0].split("(")[1],b[2]=b[2].split(")")[0],c=b.join(",");else if(4===b.length){var d=Math.round(255*parseFloat(b[3]));b.pop(),b[0]=b[0].split("(")[1],c=d.toString()+","+b.join(",")}return c}var m=function(){function a(){this.controlsMap={}}return a.prototype.getControlInfo=function(a){return this.controlsMap[a]||null},a.prototype.getControlType=function(a){var b=d.getTypeNameFromFullName(a["@ControlType"]||"");return this.controlsMap[b]?b:"Unknown"},a.prototype.createControl=function(a,b,c){var d=this.getControlType(a);return new(this.controlsMap[d]&&this.controlsMap[d].type||e.ElementViewModel)(a,b,c)},a.prototype.registerControl=function(a,b){void 0!==b.isToolboxItem&&(b.nonToolboxItem=!b.isToolboxItem),Object.defineProperty(b,"isToolboxItem",{get:function(){return!b.nonToolboxItem},set:function(a){b.nonToolboxItem=!a},enumerable:!0,configurable:!0}),this.controlsMap[a]=b,this.controlsMap[a].info=$.extend(!0,[],b.info)},a.prototype._getPropertyInfo=function(a,b,c){var d=a.filter(function(a){return a.displayName===b[c]||a.propertyName===b[c]||a.modelName===b[c]})[0];if(c===b.length-1)return d||null;if(d.info)return this._getPropertyInfo(d.info,b,c+1);if(d.from){var e=null;try{e=d.from({})}catch(a){return null}var f=e.getInfo&&e.getInfo();if(f)return this._getPropertyInfo(f,b,c+1)}return null},a.prototype.getPropertyInfo=function(a,b){var c=b;return $.isArray(b)||(c=b.split(".")),this._getPropertyInfo(this.controlsMap[a].info,c,0)},a}();b.ControlsFactory=m,b.floatFromModel=c,b.fromEnum=f,b.parseBool=g,b.colorFromString=h,b.saveAsInt=i,b.colorToInt=j,b.intToColor=k,b.colorToString=l}(c=b.Utils||(b.Utils={}));var d;!function(d){var e=function(){function a(){}return a.prototype.initActions=function(a){this.actions=a,this.actions.forEach(function(a){a.disabled||(a.disabled=ko.observable(!1))})},a.prototype.getActions=function(a){return this.condition(a)?(this.setDisabled&&this.setDisabled(a),this.actions):[]},a.prototype.condition=function(a){return!0},a}();d.BaseActionsProvider=e;var f=function(){function a(){}return a.generateUri=function(a,b){return a=a||"",a&&"/"===a[a.length-1]&&b&&"/"===b[0]?a+b.substring(1):a+b},a}();d.RequestHelper=f;var g=function(e){function g(b,c){var d=e.call(this)||this;return d._options=b,d._customEventRaiser=c,d._templateHtml=a.Analytics.Widgets.Internal.getTemplate("dxrd-designer"),d}return __extends(g,e),g.prototype.dispose=function(){e.prototype.dispose.call(this),this.sender&&this.sender instanceof c.Disposable&&this.sender.dispose(),this.removeProperties()},g.prototype._fireEvent=function(a,b){if(this._customEventRaiser)return void this._customEventRaiser(a,b);this._options&&this._options.callbacks&&this._options.callbacks[a]&&this._options.callbacks[a](this.sender,b)},g.prototype._getServerActionUrl=function(a,b){return f.generateUri(a,b)},g.prototype._getAvailableEvents=function(a,b){var c=this,d=a;return b&&this._options.callbacks[b]?Object.keys(a).forEach(function(e){d[e]=c._options.callbacks[b][e]||a[e]}):Object.keys(a).forEach(function(b){d[b]=c._options.callbacks[b]||a[b]}),d},g.prototype._getLocalizationRequest=function(){var a=$.Deferred(),c=this._options.requestOptions;if(c.getLocalizationAction){var d=this._getServerActionUrl(c.host,c.getLocalizationAction);$.getJSON(d).fail(function(c,d,e){try{b.Internal._processError(e.message,$.Deferred(),c,d)}finally{a.reject()}}).done(function(b){a.resolve(b)})}else a.resolve();return a.promise()},g.prototype._createDisposeFunction=function(a){var b=this;d.addDisposeCallback(a,function(){b.dispose()})},g}(c.Disposable);d.JSDesignerBindingCommon=g}(d=b.Internal||(b.Internal={}));var e;!function(a){var b=function(){function a(a,b,c,d){void 0===a&&(a=0),void 0===b&&(b=0),void 0===c&&(c=0),void 0===d&&(d=0),this.left=ko.observable(0),this.top=ko.observable(0),this.width=ko.observable(0),this.height=ko.observable(0),this.className="dxrd-drag-helper-item",this.left(a),this.top(b),this.width(c),this.height(d)}return a}();a.Rectangle=b}(e=b.Elements||(b.Elements={})),function(a){var d=function(b){function c(a,c,d,f,g){var h=b.call(this)||this;return h._size=new e.Size(0,0),h.alwaysAlt=!1,h.surface=a,h.selection=c,h.snapHelper=f,h.dragHelperContent=g,h.stopDrag=function(a,b,c){d().start(),h.doStopDrag(a,b,c),d().end(),f&&f.deactivateSnapLines()},h}return __extends(c,b),c.prototype.dispose=function(){b.prototype.dispose.call(this),this.surface=null,this.selection=null,this.snapHelper=null,this.dragHelperContent=null},c.prototype._getAbsoluteSurfacePosition=function(a){return{left:a.position.left-a.delta.left,top:a.position.top-a.delta.top}},c.prototype.addControl=function(b,c,d){var e=c.width&&c.width()||c._width&&c._width(),f=c.underCursor();if(f.x<e){c.getControlModel().addChild(b);var g=a.findSurface(b);if(!g)return;var h=d.width(),i=d.height(),j=f.x+h>e?e-h-1:f.x;g.rect({left:j,top:Math.max(f.y,0),width:h,height:i}),this.selection.initialize(g)}},c.prototype.recalculateSize=function(b){var c=ko.unwrap(this.surface);this._size.width(a.unitsToPixel(ko.unwrap(b.width)*c.dpi()/100,c.measureUnit(),c.zoom())),this._size.height(a.unitsToPixel(ko.unwrap(b.height)*c.dpi()/100,c.measureUnit(),c.zoom()))},c.prototype.helper=function(a,b){this.snapHelper&&this.snapHelper.updateSnapLines(this.selection.dropTarget||null)},c.prototype.startDrag=function(a){},c.prototype.drag=function(a,b){var c=!0!==a.altKey;if(this.selection.dropTarget){var d=this.selection.dropTarget.getControlModel().getMetaData().isContainer?this.selection.dropTarget:this.selection.dropTarget.parent||this.selection.dropTarget,e=d.locked,f=ko.dataFor(a.target).getControlModel&&ko.dataFor(a.target).getControlModel(),g=f&&f.getMetaData()||ko.dataFor(a.target).info;g&&g.canDrop&&(e=e||!g.canDrop(d,f)),e?(this.snapHelper&&this.snapHelper.deactivateSnapLines(),c=!1,this.dragHelperContent&&this.dragHelperContent.isLocked(!0)):this.dragHelperContent&&this.dragHelperContent.isLocked(!1)}if(c){var h=this._getAbsoluteSurfacePosition(b),i=this.snapHelper&&this.snapHelper.activateSnapLines({left:h.left,top:h.top,right:h.left+this._size.width(),bottom:h.top+this._size.height()});b.position.left-=i.left,b.position.top-=i.top}},c.prototype.doStopDrag=function(a,b,c){},c.started=ko.observable(!1),c}(c.Disposable);a.DragDropHandler=d;var f=function(){function a(a,b){var c=this;this._selection=a,this._undoEngine=b,this.shortcutMap={27:function(a){return c.processEsc(),!0},37:function(a){return c.moveSelectedControls(!0,!0,-1),!0},38:function(a){return c.moveSelectedControls(!0,!1,-1),!0},39:function(a){return c.moveSelectedControls(!1,!0,1),!0},40:function(a){return c.moveSelectedControls(!1,!1,1),!0}}}return a.prototype.processShortcut=function(a){var b=this.shortcutMap[a.keyCode];return!!b&&b(a)},a.prototype.processEsc=function(){var a=this._selection.focused()&&this._selection.focused().parent;a&&this._selection.focused(a)},a.prototype.moveSelectedControls=function(a,b,c){var d=this._selection.focused();if(!(!d||d&&d.getControlModel().getMetaData().isCopyDeny)){this._undoEngine&&this._undoEngine().start();var e,f,g,h=1,i=b?"left":"top",j=b?"width":"height";d.rect&&(e=d.rect()[i],f=d.rect()[i]+d.rect()[j],this._selection.selectedItems.filter(function(a){return!a.locked}).forEach(function(a){var b=a.rect()[i];b<e&&(e=b)}),this._selection.selectedItems.filter(function(a){return!a.locked}).forEach(function(a){var b=a.rect()[i]+a.rect()[j];b>f&&(f=b)}),a&&e<=0||!d.parent.rect||!a&&f.toFixed(5)>=d.parent.rect()[j]||(this._selection.selectedItems.filter(function(a){return!a.locked}).filter(function(a){return!!a.rect}).forEach(function(b){var d={},e=b.rect()[i],f=b.rect()[j],k=b.parent.rect()[j];g=e+c*h,(a&&g>=0||!a&&g+f<=k)&&(d[i]=g),!a&&g+f>k&&(d[i]=k-f),a&&g<0&&e>0&&(d[i]=0),b.rect(d)}),this._undoEngine&&this._undoEngine().end()))}},a}();a.KeyboardHelper=f;var g=function(){function a(a){this._handlers=[],this._targetElement=a}return Object.defineProperty(a.prototype,"_activeHandler",{get:function(){return this._handlers.length>0?this._handlers[this._handlers.length-1]:null},enumerable:!0,configurable:!0}),a.prototype._removeHandler=function(a){var b=this._handlers.indexOf(a);b<0||(this._handlers.splice(b,1),b===this._handlers.length&&(this._targetElement.off("keydown",a),this._activeHandler&&this._targetElement.on("keydown",this._activeHandler)))},a.prototype.bindHandler=function(a,c){var d=this;this._activeHandler&&this._targetElement.off("keydown",this._activeHandler),this._handlers.push(c),this._targetElement.on("keydown",c),b.Internal.addDisposeCallback(a,function(){d._removeHandler(c)})},a}();a.KeyDownHandlersManager=g,ko.bindingHandlers.cssArray={update:function(a,b,c,d,e){for(var f=ko.utils.unwrapObservable(b()),g=0;g<f.length;g++)ko.bindingHandlers.css.update(a,function(){return f[g]})}},ko.bindingHandlers.selectable={init:function(a,c,d,e,f){var g=c(),h=$(a),i=ko.unwrap(g.selection),j=$.extend({filter:".dxd-selectable",distance:1},ko.unwrap(g),{selecting:function(a,b){var c={control:ko.dataFor(b.selecting),cancel:!1,ctrlKey:a.ctrlKey};i.selecting(c),c.cancel&&$(b.selecting).removeClass("ui-selecting")},start:function(a,b){i.clickHandler(null,a),i.started=!0,a.stopPropagation()},stop:function(){i.started=!1,i.applySelection()},unselecting:function(a,b){i.unselecting(ko.dataFor(b.unselecting))}});h.selectable(j);var k=[],l=function(a,b){a&&ko.isSubscribable(a)&&k.push(a.subscribe(function(a){h.selectable("option",b,a)}))};l(i.disabled,"disabled"),l(g.zoom,"zoom"),b.Internal.addDisposeCallback(a,function(){h.data("ui-selectable")&&h.selectable("destroy"),h=null,l=null,k.forEach(function(a){return a.dispose()})})}},ko.bindingHandlers.updateTop={init:function(a,c,d,e,f){var g=c(),h=$(a),i=function(b){var c=a.getBoundingClientRect().height/a.offsetHeight,d=0===b||b?b:h.prev().position().top/c+h.prev().outerHeight();h.css("top",d+"px")},j=g.subscribe(function(a){i(a)});i(g()),b.Internal.addDisposeCallback(a,function(){j.dispose()})}},ko.bindingHandlers.draggable={init:function(b,c,d,e,f){var g=c();if(g){var h,i,j,k=$(b),l=k.closest(".dx-designer"),m=g.containment||".dxrd-ghost-container",n={left:0,top:0},o=function(a){a.delta={left:i.left-j.left,top:i.top-j.top},a.scroll={left:h.scrollLeft()-n.left,top:h.scrollTop()-n.top}},p=$.extend({},ko.unwrap(g),{start:function(b,c){a.DragDropHandler.started(!0);k.data("ui-draggable");h=l.find(".dxrd-viewport"),i=l.find(".dxrd-ghost-container").offset(),j=l.find(m).offset(),n.left=h.scrollLeft(),n.top=h.scrollTop(),g.startDrag&&g.startDrag(ko.dataFor(b.currentTarget||b.toElement))},stop:function(b,c){o(c),g.stopDrag(c,ko.dataFor(b.target),b),a.DragDropHandler.started(!1)},drag:function(a,b){o(b),g.drag&&g.drag(a,b)},helper:function(a){g.helper&&g.helper(ko.dataFor(a.currentTarget||a.toElement),a);var b=l.find(".dxrd-drag-helper-source").clone().css({display:"block"});return b.prependTo(l.find(p.containment)),ko.applyBindings(f.$root,b[0]),b}});p.containment=l.find(p.containment),k.draggable(p),a.addDisposeCallback(b,function(){k.data("ui-draggable")&&k.draggable("destroy")})}}};var h="dxd-track-cursor";ko.bindingHandlers.trackCursor={init:function(a,c,d,e,f){var g=$(a);g.addClass(h);var i=c(),j=null,k=(c().dropTarget,c().subscriptionTarget,document.body),l=document.documentElement,m=function(b){f.$root.selection.started&&f.$root.resizeHandler.started||(j=a.getBoundingClientRect(),i().isNotDropTarget||(f.$root.selection.dropTarget=ko.dataFor(a),b.stopPropagation()))},n=function(a){i($.extend(i(),{isOver:!0}))},o=function(a){f.$root.selection.dropTarget=null,i($.extend(i(),{isOver:!1}))},p=function(b){if(!f.$root.selection.started||!f.$root.resizeHandler.started){j=a.getBoundingClientRect();var c=window.pageYOffset||l.scrollTop||k.scrollTop,d=window.pageXOffset||l.scrollLeft||k.scrollLeft,e=l.clientTop||k.clientTop||0,g=l.clientLeft||k.clientLeft||0,h=b.pageY-(j.top+c-e),m=b.pageX-(j.left+d-g);i($.extend(i(),{x:m,y:h}))}};g.bind("mousemove",p),g.bind("mouseenter",n),g.bind("mouseover",m),g.bind("mouseleave",o),g.bind("dragover",function(a){p(a.originalEvent)}),b.Internal.addDisposeCallback(a,function(){g.unbind("dragover",function(a){p(a.originalEvent)}),g.unbind("mousemove",p),g.unbind("mouseover",m),g.unbind("mouseleave",o),g.unbind("mouseenter",n),g.removeClass(h)})}},ko.bindingHandlers.templates={init:function(a,b){var c=$(b()).text(),d=$(c);return $(a).append(d),{controlsDescendantBindings:!0}}},ko.bindingHandlers.zoom={update:function(b,c){for(var d=ko.unwrap(c()||{}),e=0;e<a.cssTransform.length;e++)b.style[a.cssTransform[e]]="scale("+d+")";$(b).addClass("dxrd-transform-origin-left-top")}},ko.bindingHandlers.keyDownActions=function(){var c=new a.KeyDownHandlersManager($(window));return{init:function(a,d){var e=d(),f=function(a){e.processShortcut(ko.unwrap(e.toolbarItems),a)};if(ko.isSubscribable(e.enabled)){var g=e.enabled.subscribe(function(b){b&&c.bindHandler(a,f)});b.Internal.addDisposeCallback(a,function(){return g.dispose()})}ko.unwrap(e.enabled)&&c.bindHandler(a,f)}}}(),ko.extenders.dxdnum=function(a,b){return a.subscribe(function(c){b.max?a(Math.min(c,b.max)):b.min&&a(Math.max(c,b.min))}),a};var i=function(a){function b(b,c,d,e,f){var g=a.call(this,c,d,e,f)||this;return g.position=b,g}return __extends(b,a),b}(e.Rectangle);a.DragHelperControlRectangle=i;var j=function(a){function b(b){var c=a.call(this)||this;return c.controls=ko.observableArray([]),c.customData=ko.observable({}),c.isLocked=ko.observable(!1),c._selectionProvider=b,c}return __extends(b,a),Object.defineProperty(b.prototype,"_isEmpty",{get:function(){return 0===this.controls().length},enumerable:!0,configurable:!0}),b.prototype.reset=function(){this.controls([]),this.customData({})},b.prototype.update=function(a){var b=this;if(this.left(a.absolutePosition.x()),this.top(a.absolutePosition.y()),this.width(a.rect().width),this.height(a.rect().height),this._isEmpty){var c=[];this._selectionProvider.selectedItems.forEach(function(b,d){b.locked||b.parent!==a.parent||c.push(new i(d))}),this.controls(c)}this.controls().forEach(function(a){var c=b._selectionProvider.selectedItems[a.position];a.left(c.absolutePosition.x()-b.left()),a.top(c.absolutePosition.y()-b.top()),a.width(c.rect().width),a.height(c.rect().height)})},b.prototype.setContent=function(a,b){void 0===b&&(b=null),this._isEmpty&&this.controls([a]),this.left(a.left()),this.top(a.top()),this.width(a.width()),this.height(a.height()),this.customData(b)},b}(e.Rectangle);a.DragHelperContent=j;var k=function(b){function c(a,c,d,e,f){var g=b.call(this,a,c,d,e,f)||this;return g.cursor="move",g.containment=".dxrd-ghost-container",g.helper=function(a){b.prototype.helper.call(g,a),-1===g.selection.selectedItems.indexOf(a)&&g.selection.updateSelection(a),f.update(a),g._size.width(f.width()),g._size.height(f.height())},g}return __extends(c,b),c.prototype.adjustDropTarget=function(a){for(var b=a;null!=b;){if(b.selected&&b.selected()){a=b.parent;break}b=b.parent}return a},c.prototype.startDrag=function(a){this.selection.swapFocusedItem(a);var b=this.selection.focused(),c=b.rect().left+b.underCursor().x,d=b.rect().top+b.underCursor().y;this.selection.selectedItems.filter(function(a){return!a.locked}).forEach(function(a){a.parent===b.parent&&(a.underCursor().offsetX=a.rect().left-c,a.underCursor().offsetY=a.rect().top-d)})},c.prototype.drag=function(a,c){c.position.left+=c.scroll.left,c.position.top+=c.scroll.top,b.prototype.drag.call(this,a,c)},c.prototype.getLocation=function(a,b){var c=a.underCursor().x+b.underCursor().offsetX,d=a.underCursor().y+b.underCursor().offsetY;return{left:c>0?c:0,top:d>0?d:0}},c.prototype.ajustLocation=function(a,b){b.rect(this.getLocation(a,b))},c.prototype.doStopDrag=function(b,c){if(this.dragHelperContent.reset(),this.selection.dropTarget){var d=this.selection.dropTarget.getControlModel(),e=d.getNearestParent(d).surface,f=this.selection.focused(),g=this.adjustDropTarget(e),h=f.getControlModel(),i=h.getNearestParent(g.getControlModel()),g=i&&a.findSurface(i),j=g!==f.parent;if(!g||!g.canDrop())return;var k=this._getAbsoluteSurfacePosition(b);g.underCursor().x=k.left-(g.absolutePosition&&g.absolutePosition.x()||0)-f.underCursor().offsetX,g.underCursor().y=k.top-(g.absolutePosition&&g.absolutePosition.y()||0)-f.underCursor().offsetY;var l=(b.position.left,b.position.top,this.selection.selectedItems.filter(function(a){return!a.locked&&a.parent===f.parent}).map(function(a){return a.getControlModel()}).filter(function(a){return a.getMetaData().canDrop(g,a)}));if(j){for(var m=0;m<l.length;m++)l[m].surface.rect({top:0,left:0});h.parentModel().removeChilds(l),i.addChilds(l);for(var m=0;m<l.length;m++)this.ajustLocation(g,l[m].surface);this.selection.focused(f),this.selection.selectItems(l.map(function(a){return a.surface}))}else{for(var m=0;m<l.length;m++)this.ajustLocation(g,l[m].surface);this.selection.expectClick=!0}}},c.prototype.create=function(a,b){ko.dataFor(a.target).locked&&$(this).draggable("disable")},c}(d);a.SelectionDragDropHandler=k;var l=function(b){function c(a,c,d,e,f,g){var h=b.call(this,a,c,d,e,f)||this;return h.cursor="arrow",h._controlsFactory=g,h.containment=".dxrd-designer",h.cursorAt={top:0,left:0},h}return __extends(c,b),c.prototype.helper=function(a){b.prototype.helper.call(this,a);var c=a,d=e.Size.fromString(c.info["@SizeF"]||c.info.size||"100,23");this.recalculateSize(d),this.dragHelperContent.setContent(new e.Rectangle(0,0,this._size.width(),this._size.height()))},c.prototype.doStopDrag=function(b,c){if(this.dragHelperContent.reset(),this.selection.dropTarget){var d=c,e=this._controlsFactory.createControl($.extend({},d.info),null),f=e.getNearestParent(this.selection.dropTarget.getControlModel()),g=a.findSurface(f);if(!g||!g.canDrop())return;var h=this._getAbsoluteSurfacePosition(b);g.underCursor().x=h.left-(g.absolutePosition&&g.absolutePosition.x()||0),g.underCursor().y=h.top-(g.absolutePosition&&g.absolutePosition.y()||0),(this.surface().isFit&&this.surface().isFit(g)||g.underCursor().isOver)&&this.addControl(e,g,this._size)}},c}(d);a.ToolboxDragDropHandler=l}(d=b.Internal||(b.Internal={}));var f;!function(a){var c=function(a){function b(b,c,d,e){var f=a.call(this,b,c,d,e)||this;return f._disposables.push(f.displayValue=ko.pureComputed({read:function(){var a=ko.unwrap(f.value);if(a&&"transparent"===a.toLowerCase())return"rgba(0,0,0,0)";if(/^rgba\s*\((\s*[a-f\d]+\s*,){3}\s*[a-f\d]+\s*\)$/i.test(a))return a;var b=document.createElement("div");return b.style.backgroundColor=a,b.style.backgroundColor||"rgba(0,0,0,1)"},write:function(a){f.value(a)}})),f}return __extends(b,a),b}(a.Editor);a.ColorPickerEditor=c;var d=function(a){function b(b,c,d,f){var g=a.call(this,b,c,d,f)||this;return g.path=ko.pureComputed(function(){return g._model()&&g._model().getPath&&g._model().getPath(g.name)||""}),g.treeListController=new e.TreeListController,g._disposables.push(g.path),g._disposables.push(g.treeListController),g}return __extends(b,a),b}(a.Editor);a.FieldListEditor=d;var e;!function(a){var b=function(){function a(){this.selectedItem=null,this.suppressActions=!0}return a.prototype.dispose=function(){this.selectedItem=null},a.prototype.itemsFilter=function(a){return"parameters"!==a.specifics&&("List"===a.specifics||"ListSource"===a.specifics||!0===a.isList||"none"===a.specifics)},a.prototype.hasItems=function(a){return"none"!==a.specifics},a.prototype.canSelect=function(a){return this.hasItems(a.data)&&!!a.path&&("List"===a.data.specifics||"ListSource"===a.data.specifics)||"none"===a.data.specifics},a.prototype.select=function(a){this.canSelect(a)&&(this.selectedItem&&this.selectedItem.isSelected(!1),this.selectedItem=a,a.isSelected(!0))},a}();a.DataMemberTreeListController=b}(e=a.Internal||(a.Internal={}));var f=function(a){function b(b,c,d,f){var g=a.call(this,b,c,d,f)||this;return g.treeListController=new e.DataMemberTreeListController,g._disposables.push(g.treeListController),g}return __extends(b,a),b}(d);a.DataMemberEditor=f,function(b){function c(a,c){return{header:"dx-number-editor",editorType:function(d){function e(a,b,c,e){return d.call(this,a,b,c,e)||this}return __extends(e,d),e.prototype.getOptions=function(e){var f=d.prototype.getOptions.call(this,e);return b.ValueEditorHelper.getNumberEditorOptions(a,c,f)},e}(d)}}var d=function(a){function c(){return null!==a&&a.apply(this,arguments)||this}return __extends(c,a),c.prototype._getEditorValidationRules=function(){return(a.prototype._getEditorValidationRules.call(this)||[]).concat(this.editorOptions.showClearButton&&ko.unwrap(this.editorOptions.showClearButton)?[]:b.requiredValidationRules)},c}(a.Editor);b.RequiredNullableEditor=d,b.createNumericEditor=c}(e=a.Internal||(a.Internal={})),a.coreEditorTemplates={guid:{header:"dxrd-guid",editorType:a.GuidEditor},date:{header:"dx-date",editorType:e.RequiredNullableEditor},borders:{header:"dxrd-borders"},objecteditorCustom:{custom:"dxrd-objectEditorContent",editorType:a.PropertyGridEditor},field:{header:"dxrd-field",editorType:d},dataMember:{header:"dxrd-field",editorType:f},filterEditor:{header:"dxrd-filterstring"},formatEditor:{header:"dxrd-formatstring"},expressionEditor:{header:"dxrd-expressionstring"},customColorEditor:{header:"dxrd-colorpicker",editorType:c},sbyte:e.createNumericEditor("System.SByte","integer"),decimal:e.createNumericEditor("System.Decimal","float"),int64:e.createNumericEditor("System.Int64","integer"),int32:e.createNumericEditor("System.Int32","integer"),int16:e.createNumericEditor("System.Int16","integer"),single:e.createNumericEditor("System.Single","float"),double:e.createNumericEditor("System.Double","float"),byte:e.createNumericEditor("System.Byte","integer"),uint16:e.createNumericEditor("System.UInt16","integer"),uint32:e.createNumericEditor("System.UInt32","integer"),uint64:e.createNumericEditor("System.UInt64","integer")},a.editorTemplates=b.Internal.extend(a.editorTemplates,a.coreEditorTemplates)}(f=b.Widgets||(b.Widgets={})),function(a){var e=function(a){function b(b,c,e){var f=a.call(this)||this;f._createSurface=function(a){return a.surface||new(a.getControlFactory().controlsMap[a.controlType].surfaceType)(a,f._context)},f.preInitProperties(b,c,e),f._control=b,f._context=c,b.surface=f,f._context&&d.createUnitProperties(b,f,e,f._context.measureUnit,f._context.zoom,function(a){f._disposables.push(a)}),f._x=f._x||ko.observable(0),f._y=f._y||ko.observable(0),f._width=f._width||ko.observable(0),f._height=f._height||ko.observable(0);var g=ko.pureComputed(function(){return f.container()});f._disposables.push(g),f._container=g(),f._disposables.push(g.subscribe(function(a){if(f._container!==a&&f.rtlLayout()){var b=f._getX();f._container=a,f._setX(b)}else f._container=a}));var h=ko.computed({read:function(){return f._getX()},write:function(a){f._setX(a)}}),i=f._y,j=f._width,k=f._height;f.position={top:i,left:h,width:j,height:k,lineHeight:k},f._disposables.push(h);var l=ko.observable();return f._disposables.push(ko.computed(function(){f._control.update()||l({top:i(),left:h(),right:h()+j(),bottom:i()+k(),width:j(),height:k()})})),f._disposables.push(f.rect=ko.pureComputed({read:function(){return l()},write:function(a){a=f.beforeRectUpdated(a),f._control.update(!0);try{void 0!==a.left?f._setX(a.left,a.width):void 0!==a.width&&f._setX(h(),a.width),void 0!==a.top&&i(a.top),void 0!==a.right&&void 0===a.left&&void 0===a.width&&j(a.right-h()),void 0!==a.bottom&&void 0===a.top&&k(a.bottom-i()),void 0!==a.right&&void 0!==a.left&&void 0===a.width&&j(a.right-a.left),void 0!==a.bottom&&void 0!==a.top&&k(a.bottom-a.top),void 0!==a.width&&j(a.width),void 0!==a.height&&k(a.height)}finally{f._control.update(!1)}}})),f}return __extends(b,a),b.prototype._getX=function(){return this.rtlLayout()&&this._container?this._container.rect().width-this._x()-this._width():this._x()},b.prototype._setX=function(a,b){b=b||this._width(),this.rtlLayout()&&this._container?this._x(this._container.rect().width-a-b):this._x(a)},b.prototype.getRoot=function(){return this._context},b.prototype.preInitProperties=function(a,b,c){},b.prototype.container=function(){return this.parent},b.prototype.beforeRectUpdated=function(a){return a.left=a.left<0?0:a.left,a.top=a.top<0?0:a.top,a},b.prototype.rtlLayout=function(){return!!ko.unwrap(this._context.rtl)},b.prototype.getControlModel=function(){return this._control},b}(c.Disposable);a.SurfaceElementArea=e;var g=function(a){function b(b,c,e){var f=a.call(this,b,c,e)||this;if(f._countSelectedChildren=ko.observable(0),f.focused=ko.observable(!1),f.selected=ko.observable(!1),f.underCursor=ko.observable(new d.HoverInfo),f.allowMultiselect=!0,f.absolutePosition=new l(0,0),f.getControlModel=function(){return b},f.cssCalculator=new d.CssCalculator(b,c.rtl),f._getChildrenHolderName()&&b[f._getChildrenHolderName()]){var g=ko.observableArray();"controls"===f._getChildrenHolderName()?f._disposables.push(d.createObservableReverseArrayMapCollection(b[f._getChildrenHolderName()],g,f._createSurface)):f._disposables.push(d.createObservableArrayMapCollection(b[f._getChildrenHolderName()],g,f._createSurface)),f[f._getChildrenHolderName()]=g,f._disposables.push(f.isSelected=ko.pureComputed(function(){return!(!f.focused()&&!f.selected())||g().some(function(a){return a.isSelected()})}))}else f._disposables.push(f.isSelected=ko.pureComputed(function(){return f.focused()||f.selected()}));return f._disposables.push(f.css=ko.pureComputed(function(){return $.extend({},f.cssCalculator.fontCss(),f.cssCalculator.foreColorCss(),f.cssCalculator.backGroundCss(),f.cssCalculator.textAlignmentCss())})),f._disposables.push(f.contentCss=ko.pureComputed(function(){return $.extend({},f.cssCalculator.fontCss(),f.cssCalculator.foreColorCss(),f.cssCalculator.textAlignmentCss(),f.cssCalculator.angle(),f.cssCalculator.wordWrapCss(),f.cssCalculator.paddingsCss())})),f._disposables.push(ko.computed(function(){f.updateAbsolutePosition()})),f._disposables.push(f.absoluteRect=ko.pureComputed(function(){var a=f.rect(),b=f.absolutePosition.y(),c=f.absolutePosition.x();return{top:b,left:c,right:c+a.width,bottom:b+a.height,width:a.width,height:a.height}})),f.locked=!!b.lockedInUserDesigner&&b.lockedInUserDesigner(),f}return __extends(b,a),Object.defineProperty(b.prototype,"parent",{get:function(){return this.getControlModel().parentModel()&&this.getControlModel().parentModel().surface},enumerable:!0,configurable:!0}),b.prototype.checkParent=function(a){return this.parent===a},b.prototype._getChildrenHolderName=function(){return"controls"},b.prototype.getChildrenCollection=function(){return this._getChildrenHolderName()&&this[this._getChildrenHolderName()]||ko.observableArray([])},b.prototype.updateAbsolutePosition=function(){if(this.parent&&this.parent.absolutePosition){var a=this.parent.absolutePosition.x(),b=this.parent.absolutePosition.y(),c=a+this.rect().left,d=b+this.rect().top;this.absolutePosition.x(c),this.absolutePosition.y(d)}else this.absolutePosition.x(0),this.absolutePosition.y(0);this.afterUpdateAbsolutePosition()},b.prototype.canDrop=function(){return!this.locked&&this._control.getMetaData().isContainer},b.prototype.afterUpdateAbsolutePosition=function(){},b}(e);a.SurfaceElementBase=g;var h=function(a){function e(d,e,f){var g=a.call(this)||this;return g.actions=[],g.actionProviders=[],g.update=ko.observable(!1),g.preInitProperties(d,e,f),g.parentModel=ko.observable(e),g.controlType=g.controlType||g.getControlFactory().getControlType(d),f=f||new c.ModelSerializer,f.deserialize(g,d),g._disposables.push(g.displayName=ko.pureComputed(function(){var a=g.name&&g.name();return a||(a="unnamed "+g.controlType),a})),g.resetValue=function(a){g._resetProperty(a)},g.actions.push({action:g.resetValue,id:"dxd-reset",title:b.Utils.getLocalization("Reset","AnalyticsCoreStringId.PropertyGrid_PopupMenu_Reset"),visible:g.isResettableProperty,weight:1e3}),g}return __extends(e,a),e.prototype._resetProperty=function(a){if(this[a].resetValue)this[a].resetValue();else{var b=this.getPropertyDefaultValue(a);ko.isObservable(this[a])?this[a](b):d.copyObservables(b,this[a])}},e.prototype.getPropertyDefaultValue=function(a){var b=this.getPropertyInfo(a);return ko.unwrap(b&&(new c.ModelSerializer).deserializeProperty(b,{}))},e.prototype.getPropertyInfo=function(a){return this.getInfo().filter(function(b){return b.propertyName===a})[0]},e.prototype.getInfo=function(){return this.getControlFactory().controlsMap[this.controlType].info},e.prototype.createControl=function(a,b){return this.getControlFactory().createControl(a,this,b)},e.prototype.dispose=function(){a.prototype.dispose.call(this),this.surface&&this.surface.dispose()},e.prototype.preInitProperties=function(a,b,c){},e.prototype.getNearestParent=function(a){return a.getMetaData().isContainer?a:a.getNearestParent(a.parentModel())},e.prototype.getControlInfo=function(){return this.getControlFactory().controlsMap[this.controlType||"Unknown"]},e.prototype.getMetaData=function(){var a=this.controlType?this.controlType:"Unknown",b=this.getControlFactory().controlsMap[a];return{isContainer:b.isContainer||!1,isCopyDeny:b.isCopyDeny||!1,isDeleteDeny:b.isDeleteDeny||!1,canDrop:b.canDrop||function(){return!0},isPasteDeny:b.isPasteDeny||!b.isContainer}},e.prototype._hasModifiedValue=function(a){return this["_"+a]&&this["_"+a]()&&this.isPropertyModified(a)},e.prototype.createChild=function(a){var b=this.getControlFactory().createControl(a,this);return this.addChild(b),b},e.prototype.removeChilds=function(a){if(this.controls){for(var b=this.controls(),c=0;c<a.length;c++)b.splice(b.indexOf(a[c]),1);this.controls.valueHasMutated()}},e.prototype.addChilds=function(a){if(this.controls){for(var b=this.controls(),c=0;c<a.length;c++)b.splice(0,0,a[c]);this.controls.valueHasMutated()}},e.prototype.removeChild=function(a){this.controls&&this.controls.splice(this.controls().indexOf(a),1)},e.prototype.addChild=function(a){this.controls&&-1===this.controls().indexOf(a)&&(a.parentModel(this),this.controls.splice(0,0,a))},e.prototype.isPropertyVisible=function(a){return!0},e.prototype.isPropertyDisabled=function(a){return!1},e.prototype.isPropertyModified=function(a){var b=this["_"+a]?"_"+a:a;if(this[b].isPropertyModified)return this[b].isPropertyModified();if(this[b].isEmpty)return!this[b].isEmpty();var c=this.getPropertyDefaultValue(a),e=ko.unwrap(this[b]);return c instanceof Object?!d.compareObjects(c,e):c!==e},e.prototype.getControlFactory=function(){throw Error("Virtual method getControlFactory")},e.prototype.isResettableProperty=function(a){return-1===["name","size","location"].indexOf(a)},Object.defineProperty(e.prototype,"root",{get:function(){for(var a=this;a&&a.parentModel();)a=a.parentModel();return a},enumerable:!0,configurable:!0}),e.prototype.rtl=function(){return!1},e}(c.Disposable);a.ElementViewModel=h;var i=function(){function a(a,b,c,d){this.bottom=ko.observable(d),this.left=ko.observable(a),this.right=ko.observable(b),this.top=ko.observable(c)}return a.prototype.getInfo=function(){return j.paddingSerializationsInfo},a.prototype.isEmpty=function(){return this.toString()===a.defaultVal},a.fromString=function(b){void 0===b&&(b=a.defaultVal);var c=b.split(",");return new a(parseInt(c[0]),parseInt(c[1]),parseInt(c[2]),parseInt(c[3]))},a.prototype.toString=function(){return Math.round(this.left())+", "+Math.round(this.right())+", "+Math.round(this.top())+", "+Math.round(this.bottom())},a.defaultVal="100, 100, 100, 100",a.unitProperties=["left","right"],a}();a.Margins=i;var j;!function(a){a.left={propertyName:"left",modelName:"@Left",localizationId:"AnalyticsCoreStringId.PaddingInfo.Left",displayName:"Left",editor:f.editorTemplates.numeric},a.right={propertyName:"right",localizationId:"AnalyticsCoreStringId.PaddingInfo.Right",modelName:"@Right",displayName:"Right",editor:f.editorTemplates.numeric},a.top={propertyName:"top",localizationId:"AnalyticsCoreStringId.PaddingInfo.Top",modelName:"@Top",displayName:"Top",editor:f.editorTemplates.numeric},a.bottom={propertyName:"bottom",localizationId:"AnalyticsCoreStringId.PaddingInfo.Bottom",modelName:"@Bottom",displayName:"Bottom",editor:f.editorTemplates.numeric},a.all={propertyName:"all",localizationId:"AnalyticsCoreStringId.PaddingInfo.All",displayName:"All",editor:f.editorTemplates.numeric},a.paddingSerializationsInfo=[a.all,a.left,a.right,a.top,a.bottom]}(j=a.Metadata||(a.Metadata={}));var k=function(a){function b(b,c,d,e,f){void 0===b&&(b=ko.observable(null)),void 0===c&&(c=ko.observable(null)),void 0===d&&(d=ko.observable(null)),void 0===e&&(e=ko.observable(null)),void 0===f&&(f=ko.observable(100));var g=a.call(this)||this;g.left=b,g.right=c,g.top=d,g.bottom=e,g.dpi=f,["left","right","top","bottom"].forEach(function(a){g["_"+a]=ko.observable(g[a]()),g._disposables.push(g[a]=ko.computed({read:function(){return g["_"+a]()||0},write:function(b){g["_"+a](b)}}))});var h=ko.observable(!1),i=null;return g._disposables.push(g.all=ko.computed({read:function(){return h()?i:i=["right","top","bottom"].every(function(a){return g[a]()===g.left()})?g.left():null},write:function(a){h(!0),["left","right","top","bottom"].forEach(function(b){return g[b](a)}),h(!1)}})),g}return __extends(b,a),b.prototype.getInfo=function(){return j.paddingSerializationsInfo},b.prototype.resetValue=function(){var a=this;["left","right","top","bottom"].forEach(function(b){return a["_"+b](null)})},b.prototype.isEmpty=function(){var a=this;return["left","right","top","bottom"].map(function(b){return ko.unwrap(a["_"+b])}).every(function(a){return null===a})},b.prototype.applyFromString=function(a){if(a){var b=(a||"").split(",");this.left(parseInt(b[0])||0),this.right(parseInt(b[1])||0),this.top(parseInt(b[2])||0),this.bottom(parseInt(b[3])||0)}return this},b.from=function(a){return(new b).applyFromString(a)},b.prototype.toString=function(){if(!this.isEmpty())return this._toString()},b.prototype._toString=function(a){var b=this;return void 0===a&&(a=!1),["left","right","top","bottom"].map(function(a){return parseInt(ko.unwrap(b[a]))}).concat(this.dpi()).join(", ")},b.defaultVal="0, 0, 0, 0, 100",b.unitProperties=["left","right","top","bottom"],b}(c.Disposable);a.PaddingModel=k;var l=function(){function a(a,b){this.x=ko.observable(a),this.y=ko.observable(b)}return a.prototype.getInfo=function(){return d.locationFake},a.fromString=function(b){void 0===b&&(b="0, 0");var c=b.split(",");return new a(parseFloat(c[0]),parseFloat(c[1]))},a.prototype.toString=function(){return this.x()+", "+this.y()},a.unitProperties=["x","y"],a}();a.Point=l;var m=function(a){function b(b,d,e){var f=a.call(this)||this;return f.preInitProperties(b,d,e),e&&(f.getInfo=function(){return e}),d=d||new c.ModelSerializer,d.deserialize(f,b,e),f}return __extends(b,a),b.prototype.preInitProperties=function(a,b,c){},b}(c.Disposable);a.SerializableModel=m;var n=function(){function a(a,b){this.isPropertyDisabled=function(a){},this.height=ko.observable(b).extend({dxdnum:{min:2}}),this.width=ko.observable(a).extend({dxdnum:{min:2}})}return a.prototype.getInfo=function(){return d.sizeFake},a.fromString=function(b){void 0===b&&(b="0, 0");var c=b.split(",");return new a(parseFloat(c[0]),parseFloat(c[1]))},a.prototype.toString=function(){return this.width()+", "+this.height()},a.unitProperties=["width","height"],a}();a.Size=n}(e=b.Elements||(b.Elements={})),function(a){function b(a){var b=[];for(var d in a)if(!a[d].nonToolboxItem){var e={"@ControlType":d,displayName:a[d].displayName,index:a[d].toolboxIndex||0,canDrop:a[d].canDrop};if(a[d].size&&(e.size=a[d].size),a[d].defaultVal)for(var f in a[d].defaultVal)e[f]=a[d].defaultVal[f];b.push(new c.ToolboxItem(e))}return b.sort(function(a,b){return a.index-b.index})}function d(a){try{a.blur&&a.blur()}catch(a){document.body.blur()}}function e(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0;return("x"==a?b:3&b|8).toString(16)})}a.getToolboxItems=b,a.blur=d,a.guid=e}(d=b.Internal||(b.Internal={})),function(a){var b=function(){function a(){this.ajaxSettings={}}return a.prototype.sendRequest=function(a){return $.ajax($.extend({},this.ajaxSettings,a))},a}();a.AjaxSetup=b}(d=b.Internal||(b.Internal={})),function(a){a.ajaxSetup=new d.AjaxSetup}(c=b.Utils||(b.Utils={})),function(d){function g(a,b){if(b){if("Left"===a)return"Right";if("Right"===a)return"Left"}return a}function h(a){return a===d.ExpressionType}function i(a){return d.editorTypeMapper[a]||f.editorTemplates.text}function j(a){return a.split(",")[0].trim()}function k(a){var b=j(a),c=b.split(".");return c[c.length-1]}function l(a){if(!a)return"";var b=ko.unwrap(a.name)||ko.unwrap(a.displayName),d=a.displayType&&a.displayType()||a.controlType;if(a.getControlFactory){var e=a.getControlFactory().getControlInfo(d);e.displayName&&(d=e.displayName)}return b+(d?" ("+c.getLocalization(k(d))+")":"")}function m(a,b){void 0===b&&(b=!1);var c,a=j(a||"").split(".").join("_");return 0===a.indexOf("XR")?c=a.slice(2).toLowerCase():"DevExpress_XtraReports_UI_XtraReport"===a&&(c="master_report"),(b?"dxrd-svg-toolbox-":"dxrd-image-")+(c||a.toLowerCase())}function n(a,b,c){if(0===b.indexOf("XR"))b=b[2].toLowerCase()+b.slice(3);else{var d=b.indexOf("Band");-1!==d&&"SubBand"!==b&&(b=b.slice(0,d)+b.slice(d+4))}return o(c||a.map(function(a){return ko.unwrap(a.name)}),b)}function o(a,b){for(var c=1,d=b+c;a.filter(function(a){return a===d}).length>0;)c++,d=b+c;return d}function p(a){var c=b.Internal.Globalize;c&&a&&(a.cldrSupplemental&&c.load(a.cldrSupplemental),a.cldrData&&c.load(a.cldrData),a.currentCulture&&c.locale(a.currentCulture))}function q(a,b){a&&b&&(27===a.keyCode&&b.esc&&b.esc(),13===a.keyCode&&a.ctrlKey&&b.ctrlEnter&&b.ctrlEnter())}function r(a,b,c,e,f){var g=a,h=d.getErrorMessage(c);h&&h!==g&&(d._addErrorPrefix?g+=": "+h:g=h);try{f?f(g,c,e):d.NotifyAboutWarning(g)}finally{b.reject(c,e,a)}}function s(a){return a&&d._errorProcessor.handlers.push(a),{dispose:function(){a&&t(a)}}}function t(a){d._errorProcessor.handlers.splice(d._errorProcessor.handlers.indexOf(a),1)}function u(a){return a?a.surface:null}function v(a,b,c,d){var e={top:b.top+d.y,left:b.left+d.x,bottom:b.top+c.originalSize.height,right:b.left+c.originalSize.width};return 0!==d.x?e.left=a.snapPosition(e.left,!1):0!==d.width&&(e.right=a.snapPosition(b.left+c.size.width,!1)),0!==d.y?e.top=a.snapPosition(e.top,!0):0!==d.height&&(e.bottom=a.snapPosition(b.top+c.size.height,!0)),e}function w(a){return parseInt(a,10)||0}function x(a,b,c){var d=w(a.css("left")),e=w(a.css("top"));if(c.rtl()){var f=c.pageWidth()-c.margins.left()-a.width();d>f&&(d=f)}var g=a[0].getBoundingClientRect();return{top:e,left:d,width:g.width,height:g.height}}function y(a){return Math.min(a.scrollHeight,a.offsetHeight,a.clientHeight)+a.offsetTop}function z(a,b){return b&&(y(a)<y(b)?window:b)||window}function A(a,b,c){return void 0===c&&(c=!1),function(){var d=$(b).find(".dxrd-designer").eq(0),e=d.find(".dxrd-toolbox-wrapper:visible").outerWidth()||0,f=(d.find(".dxrd-right-panel:visible").outerWidth()||0)+(d.find(".dxrd-right-tabs:visible").outerWidth()||0),g=f+e,h=d.width()-g;d.find(".dxrd-surface-wrapper").eq(0).css({left:c?f:e,right:c?e:f,width:h,bottom:d.find(".dxrd-navigation-panel-wrapper:visible").outerHeight()||0}),a(h)}}function B(a){if(!a)return!1;var b="\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376-\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E-\\u066F\\u0671-\\u06D3\\u06D5\\u06E5-\\u06E6\\u06EE-\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4-\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B4\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F-\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC-\\u09DD\\u09DF-\\u09E1\\u09F0-\\u09F1\\u0A05-\\u0A0A\\u0A0F-\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32-\\u0A33\\u0A35-\\u0A36\\u0A38-\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2-\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0-\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F-\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32-\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C-\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99-\\u0B9A\\u0B9C\\u0B9E-\\u0B9F\\u0BA3-\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C60-\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0-\\u0CE1\\u0CF1-\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32-\\u0E33\\u0E40-\\u0E46\\u0E81-\\u0E82\\u0E84\\u0E87-\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA-\\u0EAB\\u0EAD-\\u0EB0\\u0EB2-\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065-\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE-\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5-\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183-\\u2184\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3006\\u3031-\\u3035\\u303B-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FD5\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A-\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7AD\\uA7B0-\\uA7B7\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5-\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB65\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40-\\uFB41\\uFB43-\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC";return new RegExp("^["+b+"_]["+b+"_\\d]*$").test(a)}function C(a){return a.replace(/[\W_]+/g,"_")}function D(a){var b=a.focused();a.selectedItems.forEach(function(a){var c=a.getControlModel(),d=c.parentModel();!a.getControlModel().getMetaData().isDeleteDeny&&d&&a!==b&&d.removeChild(c)}),b.getControlModel().parentModel().removeChild(b.getControlModel()),a.focused(E(b))}function E(a){var b=a.parent,c=b;if(b){var d=b.getChildrenCollection()(),e=d.indexOf(a);-1===e&&d.length>0?c=d[d.length-1]:d.length>1&&e===d.length-1?c=d[e-1]:d.length>1&&0===e?c=d[d.length-1]:d.length>1?c=d[d.length-1]:-1===e&&c.parent&&-1===c.parent.getChildrenCollection()().indexOf(c)&&(c=E(c))}return c}var F=function(b){function c(a,c,e){var f=b.call(this)||this;f.target=a,f.collectionNames=e,f._handlers=[],f._setText=!1,f._visitedCollections=[],f._subscriptions=[],f.added=function(a){f._setText=!0,f._collectControls(a),f._setText=!1},f.deleted=function(a){var b=f.allControls(),c=b.indexOf(a);b.splice(c,1),d.collectionsVisitor(a,function(a){a().forEach(function(a){b.splice(b.indexOf(a),1)})}),f.allControls.valueHasMutated()},f.allControls=ko.observableArray();var g=a;return ko.isSubscribable(a)&&(f._disposables.push(a.subscribe(function(a){f._visitedCollections=[];for(var b=0,c=f._subscriptions.length;b<c;b++)f._subscriptions[b].dispose();f._subscriptions=[],f.allControls([]),a&&f._collectControls(a)})),g=a.peek()),f._disposables.push(f.allControls.subscribe(function(a){for(var b=a.filter(function(a){return"added"===a.status}),c=0;c<b.length;c++)f._setName(b[c].value)},null,"arrayChange")),g&&f._collectControls(g),f._handlers.push.apply(f._handlers,c),f}return __extends(c,b),c.prototype.getNameProperty=function(a){return a.name},c.prototype._setName=function(a){var b=this,c=this.allControls().map(function(a){return ko.unwrap(b.getNameProperty(a))});if(!this.getNameProperty(a)()||c.filter(function(c){return c===b.getNameProperty(a)()}).length>1){var d=a.controlType||"Unknown",e=a.getControlInfo&&a.getControlInfo().defaultVal&&a.getControlInfo().defaultVal["@Text"],f=n(this.allControls(),d.split(".").pop(),c);this.getNameProperty(a)(f),!this._setText||!a.text||a.text()||null!==e&&void 0!==e||a.text(this.getNameProperty(a)())}},c.prototype.dispose=function(){b.prototype.dispose.call(this),this._subscriptions.forEach(function(a){return a.dispose()}),this._subscriptions.splice(0),this._visitedCollections.splice(0),this._handlers.splice(0),this.target=null,this.allControls([])},c.prototype._collectControls=function(b){var c=this,e=[b];d.collectionsVisitor(b,function(b,d){if(-1===c._visitedCollections.indexOf(b)){c._visitedCollections.push(b);var f=c._subscriptions;d instanceof a.Analytics.Utils.Disposable&&(f=d._disposables);var g=b.subscribe(function(a){a.forEach(function(a){void 0==a.moved&&(c[a.status]&&c[a.status](a.value),c._handlers.forEach(function(b){b[a.status]&&b[a.status](a.value)}))})},null,"arrayChange");f.push({dispose:function(){g.dispose(),g=null,c._visitedCollections.splice(c._visitedCollections.indexOf(b),1)}})}e.push.apply(e,b())},this.collectionNames),this.allControls.push.apply(this.allControls,e)},c.prototype.getControls=function(a){var b=ko.observableArray();return d.collectionsVisitor(a,function(a){b.push.apply(b,a())}),b},c}(c.Disposable);d.DesignControlsHelper=F,d.patchPositionByRTL=g;var G=function(){function a(a,b){var c=this;this._rtlLayout=b,this._control=a,this.borderCss=function(b){var d=c._getBorderWidth(a,b),e=a.borderDefault&&a.borderDefault(),f=a.borderColor&&a.borderColor()||"",g=a.borders&&a.borders()||"",h=a.borderDashStyle&&a.borderDashStyle()||"";return e?c.createBorders(h,d,f,g,e):c.createBorders(h,d,f,g)},this.backGroundCss=function(){return{backgroundColor:a.backColor&&a.backColor()||"transparent"}},this.foreColorCss=function(){return{color:"transparent"===(a.foreColor&&a.foreColor()||"transparent")?"black":a.foreColor()}},this.fontCss=function(){return c.createFont(a.font&&a.font()||"")},this.wordWrapCss=function(){return c.createWordWrap(ko.unwrap(a.wordWrap),ko.unwrap(a.multiline))},this.paddingsCss=function(){var b=ko.unwrap(a.paddingObj||a.padding)||e.PaddingModel.from(e.PaddingModel.defaultVal);return{paddingLeft:c._getPixelValueFromUnit(b.left(),a)+"px",paddingTop:c._getPixelValueFromUnit(b.top(),a)+"px",paddingRight:c._getPixelValueFromUnit(b.right(),a)+"px",paddingBottom:c._getPixelValueFromUnit(b.bottom(),a)+"px"}},this.textAlignmentCss=function(){var b=a.textAlignment&&a.textAlignment()||"";return $.extend(c.createVerticalAlignment(b),c.createHorizontalAlignment(b))},this.stroke=function(){return{stroke:"transparent"===(a.foreColor&&a.foreColor()||"transparent")?"black":a.foreColor()}},this.strokeWidth=function(){return{strokeWidth:a.lineWidth&&a.lineWidth()||""}},this.strokeWidthWithWidth=function(){return{strokeWidth:a.width&&a.width()||""}},this.strokeDashArray=function(){return{strokeDasharray:c.createStrokeDashArray(a.lineStyle&&a.lineStyle()||"",a.lineWidth&&a.lineWidth()||"")}},this.strokeDashArrayWithWidth=function(){return{strokeDasharray:c.createStrokeDashArray(a.lineStyle&&a.lineStyle()||"",a.width&&a.width()||"")}},this.crossBandBorder=function(b){return c.createBorder(a.borderDashStyleCrossband&&a.borderDashStyleCrossband()||"solid",c._getBorderWidth(a),a.borderColor&&a.borderColor()||"",a.borders&&a.borders()||"",b)},this.angle=function(){return c.createAngle(a.angle&&a.angle()||0)},this.cellBorder=function(b,d){return c.createControlBorder(a.borderDashStyle&&a.borderDashStyle()||"solid",c._getBorderWidth(a,d),a.borderColor&&a.borderColor()||"",a.borders&&a.borders()||"",b)},this.zipCodeFontCss=function(b){return c.createZipCodeFont(b||a.size.height())},this.zipCodeAlignment=function(){var a="TopLeft";return $.extend(c.createVerticalAlignment(a),c.createHorizontalAlignment(a))}}return a.prototype._getPixelValueFromUnit=function(a,b){return b.root&&b.root.measureUnit?d.unitsToPixel(a,b.root.measureUnit()):a},a.prototype._patchPosition=function(a){return g(a,this._rtlLayout())},a.prototype._getBorderWidth=function(a,b){return a.borderWidth&&Math.floor(a.borderWidth()*(b||1))||""},a.prototype.createBorder=function(a,b,c,d,e){var f={};d=d||"All",f={stroke:"Silver",strokeWidth:2};var g=this.createStrokeDashArray(a,b);return-1===d.indexOf(e)&&-1===d.indexOf("All")||(f.stroke=c,f.strokeWidth=b,f.strokeDasharray=g),f},a.prototype.createControlBorder=function(a,b,c,d,e,f){void 0===f&&(f="solid 1px Silver");var g={};return d=d||"",a="Dash"===a?"dashed":"Dot"===a?"dotted":"Double"===a?"double":"solid",-1!==d.indexOf(e)||-1!==d.indexOf("All")?g["border"+this._patchPosition(e)]=a+" "+b+"px "+c:g["border"+this._patchPosition(e)]=f,g},a.prototype.createBorders=function(b,c,d,e,f){void 0===f&&(f=a.DEFAULT_BORDER);var g=this.createControlBorder(b,c,d,e,"Left",f),h=this.createControlBorder(b,c,d,e,"Right",f),i=this.createControlBorder(b,c,d,e,"Top",f),j=this.createControlBorder(b,c,d,e,"Bottom",f);return $.extend({},g,h,i,j)},a.prototype.createZipCodeFont=function(a){var b={};return b.fontFamily="Impact",b.fontSize=a+"px",b},a.prototype.createFont=function(a){var b={};a=a||"";var c=a.split(",");if(b.fontFamily=c[0]?'"'+c[0]+'"':"",b.fontSize=c[1],c.length>2)for(var d=2;d<c.length;d++)-1!==c[d].indexOf("Bold")&&(b.fontWeight="Bold"),-1!==c[d].indexOf("Italic")&&(b.fontStyle="Italic"),-1!=c[d].indexOf("Underline")&&(b.textDecoration="Underline"),-1!=c[d].indexOf("Strikeout")&&(b.textDecoration=(b.textDecoration?b.textDecoration+" ":"")+"Line-through");return b.fontWeight||(b.fontWeight=""),b.fontStyle||(b.fontStyle=""),b.textDecoration||(b.textDecoration=""),b},a.prototype.createVerticalAlignment=function(a){var b={};return-1!==a.indexOf("Top")&&(b.verticalAlign="top"),-1!==a.indexOf("Middle")&&(b.verticalAlign="middle"),-1!==a.indexOf("Bottom")&&(b.verticalAlign="bottom"),b},a.prototype.createHorizontalAlignment=function(a){var b={};return-1!==a.indexOf("Left")&&(b.textAlign=g("Left",this._control.rtl()).toLowerCase()),-1!==a.indexOf("Right")&&(b.textAlign=g("Right",this._control.rtl()).toLowerCase()),-1!==a.indexOf("Center")&&(b.textAlign="center"),-1!==a.indexOf("Justify")&&(b.textAlign="justify"),b},a.prototype.createStrokeDashArray=function(a,b){return"Solid"===a?"":"Dot"===a?[b,2*b].join("px, ")+"px":"Dash"===a?[4*b,4*b].join("px, ")+"px":"DashDot"===a?[4*b,2*b,b,2*b].join("px, ")+"px":"DashDotDot"===a?[4*b,2*b,b,2*b,b,2*b].join("px, ")+"px":""},a.prototype.createWordWrap=function(a,b){var c={};return!1===a&&!1===b?(c["white-space"]="nowrap",c["word-wrap"]="normal"):!0===a&&!1===b?(c["word-wrap"]="break-word",c["white-space"]=""):!1===a&&!0===b?(c["word-wrap"]="normal",c["white-space"]="pre"):!0===a&&!0===b&&(c["white-space"]="pre-wrap",c["word-wrap"]="break-word"),c},a.prototype.createAngle=function(a){return a=-a,{"-webkit-transform":"rotate("+a+"deg)","-moz-transform":"rotate("+a+"deg)","-o-transform":"rotate("+a+"deg)","-ms-transform":"rotate("+a+"deg)",transform:"rotate("+a+"deg)"}},a.prototype.contentSizeCss=function(a,b,c,d,e){var f=this,g={top:1,left:1,right:1,bottom:1,width:1,height:1};d=d||this._control.borders&&this._control.borders()||"";var h=this._getBorderWidth(this._control,c);return["Left","Top","Right","Bottom"].forEach(function(a){var b=0;""==h||-1===d.indexOf(a)&&-1===d.indexOf("All")||(b+=h),e&&(b+=f._getPixelValueFromUnit(ko.unwrap(e[a.toLowerCase()]),f._control)*(c||1)),b&&(g[f._patchPosition(a).toLowerCase()]=b)}),g.width=a-g.left-g.right,g.height=b-g.top-g.bottom,g},a.DEFAULT_BORDER="none",a}();d.CssCalculator=G,d.ExpressionType="DevExpress.DataAccess.Expression",d.IsDataAccessExpression=h,d.editorTypeMapper={Enum:f.editorTemplates.combobox,"System.String":f.editorTemplates.text,"System.Guid":f.coreEditorTemplates.guid,"System.SByte":f.coreEditorTemplates.sbyte,"System.Decimal":f.coreEditorTemplates.decimal,"System.Int64":f.coreEditorTemplates.int64,"System.Int32":f.coreEditorTemplates.int32,"System.Int16":f.coreEditorTemplates.int16,"System.Single":f.coreEditorTemplates.single,"System.Double":f.coreEditorTemplates.double,"System.Byte":f.coreEditorTemplates.byte,"System.UInt16":f.coreEditorTemplates.uint16,"System.UInt32":f.coreEditorTemplates.uint32,"System.UInt64":f.coreEditorTemplates.uint64,"System.Boolean":f.editorTemplates.boolSelect,"System.DateTime":f.editorTemplates.date,"DevExpress.DataAccess.Expression":f.coreEditorTemplates.expressionEditor},d.getEditorType=i,d.getTypeNameFromFullName=j,d.getShortTypeName=k,d.getControlFullName=l,d.getImageClassName=m,d.getUniqueNameForNamedObjectsArray=n,d.getUniqueName=o,d.initGlobalize=p;var H=function(){function a(){this._x=0,this._y=0,this.isOver=!1}return Object.defineProperty(a.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a},enumerable:!0,configurable:!0}),a}();d.HoverInfo=H,d.processTextEditorHotKeys=q;var I=function(a){function b(b){var c=a.call(this)||this;c._showInline=ko.observable(!1),c.text=ko.observable();var d;return c._disposables.push(b.focused.subscribe(function(){c._showInline()&&d&&(d(c.text()),c._showInline(!1));var a=b.focused()&&b.focused().getControlModel();d=a&&(a.textEditableProperty||a.text)})),c._disposables.push(c.visible=ko.pureComputed({read:function(){return c._showInline()},write:function(a){c._showInline(a)}})),c.show=function(a){if(!c._showInline()){if((b.selectedItems?1===b.selectedItems.length:!!b.focused())&&d&&!b.focused().locked){if(c.text(d()),c._showInline(!0),a){var e=$(a).find("textarea")[0];e&&e.select()}}else c._showInline(!1)}},c.keypressAction=function(a){q(a.event,{esc:function(){c._showInline(!1)},ctrlEnter:function(){d(c.text()),c._showInline(!1)}})},c}return __extends(b,a),b}(c.Disposable);d.InlineTextEdit=I;var J=function(){function a(a,b){var c=this;this.selectedItem=null,this.itemsFilter=function(b){var c=b.name.split(".")[0];return!a||(-1!==a.indexOf(c)||$.isNumeric(c))},this.hasItems=function(a){var c=a.name.split(".")[0];return a.isList||!!b&&-1!==b.indexOf(c)},this.getActions=function(a){return a.data&&a.data.innerActions||[]},this.select=function(a){c.selectedItem&&c.selectedItem.isSelected(!1),c.selectedItem=a,a.isSelected(!0)},this.showIconsForChildItems=function(){return!0}}return a.prototype.dispose=function(){this.selectedItem=null},a.prototype.canSelect=function(a){return!0},a}();d.ObjectStructureTreeListController=J;var K=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;return b.selectedPath=ko.observable(""),b.selectedMember=ko.observable(),b}return __extends(b,a),b.prototype.getClassName=function(a){if(a.className&&a.className())return a.className();var b=/function (.{1,})\(/,c=b.exec(a.constructor.toString());return c&&c.length>1?c[1]:""},b.prototype.createItem=function(a,b,d,e){var f=a.getInfo&&a.getInfo(),g=f&&f.filter(function(a){return a.propertyName===b})[0],h=ko.unwrap(d);g&&null!==h&&"object"==typeof h&&e.push({name:b,displayName:c.getLocalization(g.displayName,g.localizationId),specifics:b,innerActions:h.innerActions,isList:!!h.push})},b.prototype.getMemberByPath=function(a,b){var c=b.split("."),d=a;return c.splice(0,1),c.forEach(function(a){d&&d[a]&&(d=ko.unwrap(d[a]))}),d},b.prototype.getObjectPropertiesForPath=function(a,b,c){var d=this.getMemberByPath(a,b),e=[];if(d)if(d.push)this.createArrayItem(d,e,c);else for(var f in d)this.createItem(d,f,d[f],e);return e},b.prototype.createArrayItem=function(a,b,c){for(var d=0;d<a.length;d++){var e=ko.unwrap(a[d]);b.push({name:c?c+"."+d.toString():d.toString(),displayName:ko.unwrap(e.displayName||e.name),specifics:this.getClassName(e),innerActions:e.innerActions,isList:!!e.push})}},b}(c.Disposable);d.ObjectStructureProviderBase=K;var L=function(a){function b(b,d,e,f){var g=a.call(this)||this;return g.path=ko.observable(""),g.getPathByMember=f,g.listPropertyNames=d||[],g.getItems=function(a){var d=$.Deferred();if(a.fullPath){var e=b.filter(function(b){return b.name===a.fullPath.split(".")[0]})[0];d.resolve(g.getObjectPropertiesForPath(ko.unwrap(e.model),a.fullPath,e.name))}else d.resolve((b||[]).map(function(a){return{name:a.name,displayName:c.getLocalization(a.displayName)||a.name,isList:!0,specifics:a.className,dragData:{noDragable:!0},data:ko.unwrap(a.data)}}));return d.promise()},g._disposables.push(g.selectedPath=ko.computed({read:function(){return e()?g.path.peek()?g.getPathByMember(e()).substr(g.path.peek().length+1):g.getPathByMember(e()):null},write:function(a){if(a){var c=g.path()?g.path().split(".")[0]:a.split(".")[0],d=b.filter(function(a){return a.name===c})[0];d&&e(g.getMemberByPath(ko.unwrap(d.model),g.path()?[g.path(),a].join("."):a))}else e(null)}})),g}return __extends(b,a),b.prototype.createArrayItem=function(a,b,c){for(var d=0;d<a.length;d++){var e=ko.unwrap(a[d]),f=!1;this.listPropertyNames.forEach(function(a){!f&&e[a]&&ko.unwrap(e[a]).length>0&&(f=!0)});var g=this.getClassName(e);b.push({name:c?c+"."+d.toString():d.toString(),displayName:ko.unwrap(e.displayName||e.name),specifics:g,isList:f,data:e,dragData:{noDragable:!("bands"===c&&("groupheaderband"===g||"groupfooterband"===g||"detailreportband"===g)||"controls"===c||"rows"===c||"cells"===c||"subBands"===c||"Styles"===c||"Formatting Rules"===c)}})}},b.prototype.createItem=function(a,b,c,d){(!(this.listPropertyNames.length>0)||this.listPropertyNames.indexOf(b)>-1)&&c&&c.push&&this.createArrayItem(ko.unwrap(c),d,b)},b}(K);d.ObjectExplorerProvider=L;var M=function(a){function b(b,d,e){var f=a.call(this)||this;return f.getItems=function(a){var g=$.Deferred();return a.fullPath?g.resolve(f.getObjectPropertiesForPath(ko.unwrap(b),a.fullPath)):g.resolve([{name:d||ko.unwrap(b.name),displayName:c.getLocalization(d||ko.unwrap(b.name),e),isList:!0,specifics:b.className&&b.className(),dragData:{noDragable:!0}}]),g.promise()},f._disposables.push(f.selectedPath.subscribe(function(a){f.selectedMember(ko.unwrap(f.getMemberByPath(ko.unwrap(b),a)))})),f}return __extends(b,a),b}(K);d.ObjectStructureProvider=M,d.papperKindMapper={A2:{width:1654,height:2339},A3:{width:1169,height:1654},A3Extra:{width:1268,height:1752},A3ExtraTransverse:{width:1268,height:1752},A3Rotated:{width:1654,height:1169},A3Transverse:{width:1169,height:1654},A4:{width:827,height:1169},A4Extra:{width:929,height:1268},A4Plus:{width:827,height:1299},A4Rotated:{width:1169,height:827},A4Small:{width:827,height:1169},A4Transverse:{width:827,height:1169},A5:{width:583,height:827},A5Extra:{width:685,height:925},A5Rotated:{width:827,height:583},A5Transverse:{width:583,height:827},A6:{width:413,height:583},A6Rotated:{width:583,height:413},APlus:{width:894,height:1402},B4:{width:984,height:1390},B4Envelope:{width:984,height:1390},B4JisRotated:{width:1433,height:1012},B5:{width:693,height:984},B5Envelope:{width:693,height:984},B5Extra:{width:791,height:1087},B5JisRotated:{width:1012,height:717},B5Transverse:{width:717,height:1012},B6Envelope:{width:693,height:492},B6Jis:{width:504,height:717},B6JisRotated:{width:717,height:504},BPlus:{width:1201,height:1917},C3Envelope:{width:1276,height:1803},C4Envelope:{width:902,height:1276},C5Envelope:{width:638,height:902},C65Envelope:{width:449,height:902},C6Envelope:{width:449,height:638},CSheet:{width:1700,height:2200},DLEnvelope:{width:433,height:866},DSheet:{width:2200,height:3400},ESheet:{width:3400,height:4400},Executive:{width:725,height:1050},Folio:{width:850,height:1300},GermanLegalFanfold:{width:850,height:1300},GermanStandardFanfold:{width:850,height:1200},InviteEnvelope:{width:866,height:866},IsoB4:{width:984,height:1390},ItalyEnvelope:{width:433,height:906},JapaneseDoublePostcard:{width:787,height:583},JapaneseDoublePostcardRotated:{width:583,height:787},JapanesePostcard:{width:394,height:583},Ledger:{width:1700,height:1100},Legal:{width:850,height:1400},LegalExtra:{width:927,height:1500},Letter:{width:850,height:1100},LetterExtra:{width:927,height:1200},LetterExtraTransverse:{width:927,height:1200},LetterPlus:{width:850,height:1269},LetterRotated:{width:1100,height:850},LetterSmall:{width:850,height:1100},LetterTransverse:{width:827,height:1100},MonarchEnvelope:{width:388,height:750},Note:{width:850,height:1100},Number10Envelope:{width:412,height:950},Number11Envelope:{width:450,height:1038},Number12Envelope:{width:475,height:1100},Number14Envelope:{width:500,height:1150},Number9Envelope:{width:388,height:888},PersonalEnvelope:{width:362,height:650},Prc16K:{width:575,height:846},Prc16KRotated:{width:575,height:846},Prc32K:{width:382,height:594},Prc32KBig:{width:382,height:594},Prc32KBigRotated:{width:382,height:594},Prc32KRotated:{width:382,height:594},PrcEnvelopeNumber1:{width:402,height:650},PrcEnvelopeNumber10:{width:1276,height:1803},PrcEnvelopeNumber10Rotated:{width:1803,height:1276},PrcEnvelopeNumber1Rotated:{width:650,height:402},PrcEnvelopeNumber2:{width:402,height:693},PrcEnvelopeNumber2Rotated:{width:693,height:402},PrcEnvelopeNumber3:{width:492,height:693},PrcEnvelopeNumber3Rotated:{width:693,height:492},PrcEnvelopeNumber4:{width:433,height:819},PrcEnvelopeNumber4Rotated:{width:819,height:433},PrcEnvelopeNumber5:{width:433,height:866},PrcEnvelopeNumber5Rotated:{width:866,height:433},PrcEnvelopeNumber6:{width:472,height:906},PrcEnvelopeNumber6Rotated:{width:906,height:472},PrcEnvelopeNumber7:{width:630,height:906},PrcEnvelopeNumber7Rotated:{width:906,height:630},PrcEnvelopeNumber8:{width:472,height:1217},PrcEnvelopeNumber8Rotated:{width:1217,height:472},PrcEnvelopeNumber9:{width:902,height:1276},PrcEnvelopeNumber9Rotated:{width:1276,height:902},Quarto:{width:846,height:1083},Standard10x11:{width:1e3,height:1100},Standard10x14:{width:1e3,height:1400},Standard11x17:{width:1100,height:1700},Standard12x11:{width:1200,height:1100},Standard15x11:{width:1500,height:1100},Standard9x11:{width:900,height:1100},Statement:{width:550,height:850},Tabloid:{width:1100,height:1700},TabloidExtra:{width:1169,height:1800},USStandardFanfold:{width:1488,height:1100}},d._addErrorPrefix=!0,d._processError=r,d._errorProcessor={handlers:[],call:function(a){for(var b=0;b<d._errorProcessor.handlers.length;b++)d._errorProcessor.handlers[b](a)}},d.processErrorEvent=s,ko.bindingHandlers.resizable={init:function(a,c,f,g,h){var i=c(),j=$(a),k=j.closest(".dx-designer"),l=null,m=null,n={north:"n",east:"e",south:"s",west:"w"},o=[],p=null,q=$.extend({handles:i.handles||"all",ghost:!1,stop:function(a,b){m.each(function(a,b){var c=ko.dataFor(b),d=ko.contextFor(b).$root.surface(),e=$(b),f=c.rect(),g=x(e,c,d);g={top:-1!==l.indexOf(n.north)?g.top:f.top,left:-1!==l.indexOf(n.west)?g.left:f.left,width:-1!==l.indexOf(n.east)||-1!==l.indexOf(n.west)?g.width:f.width,height:-1!==l.indexOf(n.south)||-1!==l.indexOf(n.north)?g.height:f.height},o.push(function(){c.rect(g),JSON.stringify(f)===JSON.stringify(g)&&e.css({left:f.left,top:f.top,width:f.width,height:f.height})}),e.removeData("originalPosition"),e.removeData("originalSize")}),o.forEach(function(a){return a()}),o=[],l=null,i.stopped(),i.started=!1,i.snapHelper&&i.snapHelper.deactivateSnapLines()},start:function(a){for(var b=a.originalEvent.target.classList,c=0;c<b.length;c++)"ui-resizable-handle"!==b[c]&&0===b[c].indexOf("ui-resizable-")&&(l=b[c].slice("ui-resizable-".length,b[c].length));i.started=!0,i.starting(),m=i.$selectedNodes||$(".dxrd-viewport .dxrd-selected").filter(":visible"),m.each(function(a,b){var c=$(b),d=b.getBoundingClientRect();c.data("originalPosition",{top:parseFloat(c.css("top")),left:parseFloat(c.css("left"))}),c.data("originalSize",{width:d.width,height:d.height})});var d=j.offset(),e=k.find(".dxrd-ghost-container").offset();p=e?{top:d.top-e.top,left:d.left-e.left}:d,i.snapHelper&&i.snapHelper.updateSnapLines(g)},resize:function(a,b){var c=b.size.width-b.originalSize.width,d=b.size.height-b.originalSize.height,f=b.position.left-b.originalPosition.left,g=b.position.top-b.originalPosition.top;if(i.forceResize&&i.forceResize({size:new e.Size(b.size.width,b.size.height),delta:{dx:f,dy:g,dw:c,dh:d}}),a.altKey)i.snapHelper&&i.snapHelper.deactivateSnapLines();else if(i.snapHelper&&1===m.length){var h=v(i.snapHelper,p,b,{x:f,y:g,width:c,height:d});i.snapHelper.activateSnapLines(h),j.css({left:b.originalPosition.left+h.left-p.left,top:b.originalPosition.top+h.top-p.top,width:h.right-h.left,height:h.bottom-h.top})}m.each(function(b,e){if(e!==a.target){var h=$(e),i=h.data("originalPosition"),j=h.data("originalSize");h.css({left:i.left+f,top:i.top+g,width:j.width+c,height:j.height+d})}})}},ko.unwrap(i)),r=null;i.disabled||(r=d.DragDropHandler.started.subscribe(function(a){j.resizable("option","disabled",a),a?j.children(".ui-resizable-handle").css("display","none"):j.children(".ui-resizable-handle").css("display","block")})),j.resizable(q),j.resizable().on("resize",function(a){a.stopPropagation()}),b.Internal.addDisposeCallback(a,function(){j.data("ui-resizable")&&j.resizable("destroy"),j=null,r&&r.dispose()})},update:function(a,b,c,d,e){var f=$(a),g=!(!ko.unwrap(b().disabled)&&!ko.unwrap(d.locked));f.resizable("option","disabled",g),f.resizable("option","minHeight",ko.unwrap(b().minimumHeight)||1),f.resizable("option","minWidth",ko.unwrap(b().minimumWidth)||1),ko.unwrap(b().handles)&&f.resizable("option","handles")!==ko.unwrap(b().handles)&&f.resizable("option","handles",ko.unwrap(b().handles));var h=ko.unwrap(b().maximumWidth);h&&f.resizable("option","maxWidth",h),g?f.children(".ui-resizable-handle").css("display","none"):f.children(".ui-resizable-handle").css("display","block")}};var N=function(a){function b(c,d){return void 0===d&&(d="name"),a.call(this,b._createOptions(c,d))||this}return __extends(b,a),b._sortItems=function(a,b){return a.sort(function(a,c){var d=ko.unwrap(a[b]),e=ko.unwrap(c[b]);if(d&&e){var f=d-e;return isNaN(f)?(d=d.toLowerCase?d.toLowerCase():d,e=e.toLowerCase?e.toLowerCase():e,d<e?-1:d>e?1:0):f}})},b._createOptions=function(a,b){return a=this._sortItems(a,b),{load:function(b){var c=[].concat(a);return b.take&&(c=c.splice(b.skip,b.take)),b.filter&&(c=c.filter(b.filter)),$.Deferred().resolve(c).promise()},byKey:function(b){if(a.some(function(a){return a===b}))return b}}},b}(a.data.CustomStore);d.CustomSortedArrayStore=N;var O=function(a){function b(b,c){void 0===c&&(c="name");return b instanceof Array&&N._sortItems(b,c),a.call(this,b)||this}return __extends(b,a),b}(a.data.ArrayStore);d.SortedArrayStore=O;var P=function(b){function c(c){var d=b.call(this)||this;d._filter=ko.observable(null);var e=null;return d._disposables.push(d.dataSource=ko.computed(function(){return e&&e.dispose(),e=new a.data.DataSource({store:new N(c()),paginate:!0,filter:d._filter(),pageSize:100})})),d._disposables.push(d.visible=ko.computed(function(){return c().length>0})),d}return __extends(c,b),c.prototype.setFilter=function(a){this._filter(a)},c.prototype.resetFilter=function(){this._filter(null)},c}(c.Disposable);d.ControlsStore=P,d.findSurface=u,d.getControlNewAbsolutePositionOnResize=v,d.getControlRect=x,d.minHeightWithoutScroll=y,d.chooseBetterPositionOf=z,d.updateSurfaceContentSize=A,d.validateName=B,d.replaceInvalidSymbols=C,d.nameValidationRules=[{type:"custom",validationCallback:function(a){return B(a.value)},message:a.Analytics.Utils.getLocalization("Name is required and should be a valid identifier.","AnalyticsCoreStringId.NameIsRequired_Error")}];var Q=function(){function a(){}return a.getInfo=function(a){var b=a.map(function(a){return a.getInfo()});return function(){for(var a=[],c=0;c<b[0].length;c++)b.filter(function(a){return a.filter(function(a){return a.propertyName===b[0][c].propertyName}).length>0}).length===b.length&&a.push(b[0][c]);return a}},a.isPropertyDisabled=function(a){return function(b){for(var c=0;c<a.length;c++)if(a[c].isPropertyDisabled(b))return!0;return!1}},a.isPropertyVisible=function(a){return function(b){for(var c=0;c<a.length;c++)if(!a[c].isPropertyVisible(b))return!1;return!0}},a.mergeProperty=function(a,b,c,d){var e=a[0][b],f=null;if(a.filter(function(a){return!!a[b]}).length===a.length&&!(f=d&&d(b,a,c)))if(ko.isObservable(e)&&!e.push){if(!a.every(function(a){return ko.isObservable(a[b])}))return f;var g=ko.observable(a.every(function(c){return a[0][b].peek()===c[b].peek()})?a[0][b].peek():null);f={result:g,subscriptions:[g.subscribe(function(d){c&&c().start(),a.forEach(function(a){a[b](d)}),c&&c().end()})]}}else"object"!=typeof e||$.isArray(e)||(f=this._merge(a.map(function(a){return a[b]}),c,d));return f},a._createProperty=function(a,b,c){if(c){if("object"==typeof c&&$.isEmptyObject(c))return;a[b]=c}},a._merge=function(a,b,c,d){var e=this,f={},g=[];if(["getInfo","isPropertyVisible","isPropertyDisabled"].forEach(function(b){a[0][b]&&e._createProperty(f,b,e[b](a))}),d){var h=f.isPropertyDisabled;f.isPropertyDisabled=function(a){return h&&h()||-1!==d.indexOf(a)}}if(f&&f.getInfo)f.getInfo().map(function(a){return a.propertyName}).forEach(function(d){var h=e.mergeProperty(a,d,b,c);h&&(g=[].concat.apply(g,h.subscriptions),e._createProperty(f,d,h.result))});else for(var i in a[0]){var j=this.mergeProperty(a,i,b,c);j&&(g=[].concat.apply(g,j.subscriptions),this._createProperty(f,i,j.result))}return{result:f,subscriptions:g}},a.mergeControls=function(a,b,c,d){var e=this._merge(a,b,c,d);return{result:$.extend(e.result,{controlType:"multiselect",displayName:ko.observable("")}),subscriptions:e.subscriptions}},a.getEditableObject=function(a,b,c){var d=this,e=ko.observable(null),f=[],g=a.focused.subscribe(function(a){e(a&&a.getControlModel())});return a._disposables&&(a._disposables.push(g),a._disposables.push({dispose:function(){f.forEach(function(a){return a.dispose()}),f.splice(0)}})),ko.pureComputed({read:function(){if(f.forEach(function(a){return a.dispose()}),f=[],a.selectedItems.length>1){var g=d.mergeControls(a.selectedItems.map(function(a){return a.getControlModel()}),b,c,a.ignoreMultiSelectProperties);return f=g.subscriptions,g.result}return e()},write:function(b){b&&b.surface?a.focused(b.surface):(a.updateSelection(null),e(b))}}).extend({deferred:!0})},a}();d.CombinedObject=Q;var R=function(a){function b(b){void 0===b&&(b=["name"]);var c=a.call(this)||this;return c.ignoreMultiSelectProperties=b,c._focused=ko.observable(null),c._selectedControls=ko.observableArray(),c._selectedControlsInner=[],c.focused=ko.pureComputed({read:function(){return c._focused()},write:function(a){a!==c._focused()&&(a&&(c._firstSelected=a),c.updateSelection(c._firstSelected))}}),c.dropTarget=null,c.expectClick=!1,c.disabled=ko.observable(!1),c._disposables.push(c.focused),c}return __extends(b,a),b.prototype.dispose=function(){this.reset(),a.prototype.dispose.call(this)},b.prototype._removeFromSelection=function(a){a.focused(!1),a.selected(!1),-1!==this._selectedControlsInner.indexOf(a)&&this._selectedControlsInner.splice(this._selectedControlsInner.indexOf(a),1)},b.prototype._setFocused=function(a){this._focused()&&this._removeFromSelection(this._focused()),this._focused(a),a&&(a.focused(!0),-1===this._selectedControlsInner.indexOf(a)&&this._selectedControlsInner.push(a),a.selected(!0))},b.prototype._resetTabPanelFocus=function(){document.activeElement&&0===$(document.activeElement).closest(".dxrd-surface").length&&d.blur(document.activeElement)},Object.defineProperty(b.prototype,"selectedItems",{get:function(){return this._selectedControls()},enumerable:!0,configurable:!0}),b.prototype.clear=function(){this.focused(null),this._selectedControls([])},b.prototype.reset=function(){this._focused(null),this._selectedControlsInner.splice(0),this._firstSelected=null,this._selectedControls([])},b.prototype.applySelection=function(){this._selectedControls(this._selectedControlsInner)},b.prototype.selectItems=function(a){this._selectedControlsInner=a,this._selectedControlsInner.forEach(function(a){a.focused()||a.selected(!0)}),this.applySelection()},b.prototype.updateSelection=function(a){this._selectedControlsInner.forEach(function(a){a.focused(!1),a.selected(!1)}),this._selectedControlsInner=[],this._setFocused(a),this.applySelection()},b.prototype.swapFocusedItem=function(a){this._focused()!==a&&(this._focused().focused(!1),this._focused(a),this._focused().focused(!0))},b.prototype.initialize=function(a){a=a||this.dropTarget,this._firstSelected=a&&a.focused?a:null,this.updateSelection(this._firstSelected)},b.prototype.clickHandler=function(a,b){if(void 0===b&&(b={ctrlKey:!1}),this.expectClick)return void(this.expectClick=!1);a=a||this.dropTarget,b.ctrlKey?(this.selectionWithCtrl(a),this.applySelection()):this._selectedControlsInner.length>1&&-1!==this._selectedControlsInner.indexOf(a)?this.swapFocusedItem(a):this._focused()!==a&&this.initialize(a),this._resetTabPanelFocus()},b.prototype.selecting=function(a){this._focused()?(a.cancel=!a.control.checkParent(this._firstSelected),a.cancel||(this._firstSelected&&this._firstSelected.focused()?this._setFocused(a.control):-1===this._selectedControlsInner.indexOf(a.control)&&(a.control.selected(!0),this._selectedControlsInner.push(a.control)))):this._setFocused(a.control)},b.prototype.unselecting=function(a){this._focused()===a?(this._setFocused(null),0===this._selectedControlsInner.length?this._setFocused(this._firstSelected):this._setFocused(this._selectedControlsInner[0])):this._removeFromSelection(a)},b.prototype.selectionWithCtrl=function(a){if(a&&a.allowMultiselect){var b=this._selectedControlsInner;0===b.length||1===b.length&&!b[0].allowMultiselect?this.initialize(a):-1===this._selectedControlsInner.indexOf(a)?(a.selected(!0),this._selectedControlsInner.push(a)):this._selectedControlsInner.length>1&&this.unselecting(a)}},b}(c.Disposable);d.SurfaceSelection=R,d.deleteSelection=D,d.findNextSelection=E;var S=function(){function a(){this._verticalSnapLines=[],this._horizontalSnapLines=[],this._snapTargetToIgnore=null}return a.prototype._appendSnapLine=function(a,b,c,e){var f={position:a,limitInf:b,limSup:c},g=d.binaryIndexOf(e,f,function(a,b){return a.position-b.position});g>-1?(e[g].limitInf=Math.min(e[g].limitInf,b),e[g].limSup=Math.max(e[g].limSup,c)):e.splice(~g,0,f)},a.prototype._collectSnaplines=function(a,b){var c=this;this._enumerateCollection(a,b,function(a,b){a!==c._snapTargetToIgnore&&(c._appendSnapLine(b.left,b.top,b.bottom,c._verticalSnapLines),c._appendSnapLine(b.right,b.top,b.bottom,c._verticalSnapLines),c._appendSnapLine(b.top,b.left,b.right,c._horizontalSnapLines),c._appendSnapLine(b.bottom,b.left,b.right,c._horizontalSnapLines),c._collectSnaplines(a,b))})},a.prototype._getCollection=function(a){return a.controls&&a.controls()},a.prototype._enumerateCollection=function(a,b,c){var d=this._getCollection(a);if(d)for(var e=0;e<d.length;e++){var f=d[e].rect&&d[e].rect();f&&c(d[e],{top:f.top+b.top,bottom:f.bottom+b.top,left:f.left+b.left,right:f.right+b.left})}},a.prototype.collectSnaplines=function(a,b){return this._snapTargetToIgnore=b,this._verticalSnapLines.splice(0),this._horizontalSnapLines.splice(0),this._collectSnaplines(a,{top:0,left:0}),{vertical:this._verticalSnapLines,horizontal:this._horizontalSnapLines}},a}();d.SnapLinesCollector=S;var T=function(){function a(b,c,d){void 0===b&&(b=null),void 0===c&&(c=a.snapTolerance),void 0===d&&(d=new S),this.snapLineSurfaces=[new U,new U,new U,new U],this.verticalSnapLines=[],this.horizontalSnapLines=[],this._surfaceContext=b,this._snapTolerance=c,this._snapLinesCollector=d}return a.prototype._findClosestSnapLine=function(a,b){var c,e={position:a,limitInf:0,limSup:0},f=d.binaryIndexOf(b,e,function(a,b){return a.position-b.position});if(f>-1)c={snapLine:b[f],distance:a-b[f].position};else{f=~f;var g=b[f]?a-b[f].position:Number.MAX_VALUE,h=b[f-1]?a-b[f-1].position:Number.MAX_VALUE;c=Math.abs(g)>Math.abs(h)?{snapLine:b[f-1],distance:h}:{snapLine:b[f],distance:g}}return c},a.prototype._getActiveSnapLines=function(a,b,c){var d=this._findClosestSnapLine(a,c),e=this._findClosestSnapLine(b,c),f={lines:[],distance:0};if(Math.abs(d.distance-e.distance)>=1){var g=Math.abs(d.distance)<Math.abs(e.distance)?d:e;Math.abs(g.distance)<=this._snapTolerance&&(f.lines=[g],f.distance=g.distance)}else Math.abs(d.distance)<=this._snapTolerance&&(f.lines=[d,e],f.distance=d.distance);return f},a.prototype.updateSnapLines=function(a){void 0===a&&(a=null),this.verticalSnapLines.splice(0),this.horizontalSnapLines.splice(0);var b=this._snapLinesCollector.collectSnaplines(this._surfaceContext(),a);this.verticalSnapLines.push.apply(this.verticalSnapLines,b.vertical),this.horizontalSnapLines.push.apply(this.horizontalSnapLines,b.horizontal)},a.prototype.deactivateSnapLines=function(){this.snapLineSurfaces[0].reset(),this.snapLineSurfaces[1].reset(),this.snapLineSurfaces[2].reset(),this.snapLineSurfaces[3].reset()},a.prototype.activateSnapLines=function(a){for(var b=this._getActiveSnapLines(a.left,a.right,this.verticalSnapLines),c=this._getActiveSnapLines(a.top,a.bottom,this.horizontalSnapLines),d=0;d<2;d++){var e=b.lines[d];if(e){var f=Math.min(e.snapLine.limitInf,a.top),g=Math.max(e.snapLine.limSup,a.bottom);a.top<e.snapLine.limitInf&&(f-=c.distance),a.bottom>e.snapLine.limSup&&(g-=c.distance),this.snapLineSurfaces[d].updatePosition({top:f,left:e.snapLine.position,height:g-f,width:1})}else this.snapLineSurfaces[d].reset()}for(var d=0;d<2;d++){var e=c.lines[d];if(e){var h=Math.min(e.snapLine.limitInf,a.left),i=Math.max(e.snapLine.limSup,a.right);a.left<e.snapLine.limitInf&&(h-=b.distance),a.right>e.snapLine.limSup&&(i-=b.distance),this.snapLineSurfaces[d+2].updatePosition({top:e.snapLine.position,left:h,width:i-h,height:1})}else this.snapLineSurfaces[d+2].reset()}return{left:b.distance,top:c.distance}},a.prototype.snapPosition=function(a,b){var c=this._findClosestSnapLine(a,b?this.horizontalSnapLines:this.verticalSnapLines);return c&&Math.abs(c.distance)<=this._snapTolerance?c.snapLine.position:a},a.snapTolerance=10,a}();d.SnapLinesHelper=T;var U=function(){function a(){this._position=ko.observable(a._blankPosition)}return a.prototype.transform=function(){var a=this._position();return"matrix("+a.width+", 0, 0, "+a.height+", "+a.left+", "+a.top+")"},a.prototype.updatePosition=function(a){this._position(a)},a.prototype.reset=function(){this.updatePosition(a._blankPosition)},a._blankPosition={top:0,left:0,width:0,height:0},a}();d.SnapLineSurface=U}(d=b.Internal||(b.Internal={}));var g;!function(a){a.ActionId={Cut:"dxd-cut",Copy:"dxd-copy",Paste:"dxd-paste",Delete:"dxd-delete",Undo:"dxd-undo",Redo:"dxd-redo",ZoomOut:"dxd-zoom-out",ZoomSelector:"dxd-zoom-selector",ZoomIn:"dxd-zoom-in"}}(g=b.Tools||(b.Tools={})),function(a){var b=function(a){function b(b){var c=a.call(this)||this;return c.toolbarItems=[],c.enabled=b||ko.observable(!0),c}return __extends(b,a),b.prototype.processShortcut=function(a,b){for(var c=0;c<a.length;c++)a[c].hotKey&&(a[c].disabled&&!a[c].disabled()||!a[c].disabled)&&($.isFunction(a[c].visible)?a[c].visible():a[c].visible)&&a[c].hotKey.ctrlKey===b.ctrlKey&&a[c].hotKey.keyCode===b.keyCode&&(a[c].clickAction(),b.preventDefault())},b.prototype.shouldIgnoreProcessing=function(a){if(a.altKey||!this.enabled.peek())return!0;var b=$(document.activeElement);return!!(b.is("textarea")||b.is(":input")&&-1!=["password","text","number"].indexOf(b.attr("type")))},b}(c.Disposable);a.ActionListsBase=b;var d=function(b){function d(d,e,h,i,j,k,l){void 0===l&&(l=ko.observable(.01));var m=b.call(this,j)||this;m.menuItems=[];var n=new f(e,k),o=[];if(e){var p=ko.computed(function(){return e.selectedItems.some(function(a){return a.locked})});m._disposables.push(p),m._keyboardHelper=new a.KeyboardHelper(e,h),o.push({id:g.ActionId.Cut,text:"Cut",displayText:function(){return c.getLocalization("Cut","AnalyticsCoreStringId.EditCut")},imageClassName:"dxrd-image-cut",imageTemplateName:"dxrd-svg-toolbar-cut",disabled:ko.pureComputed(function(){return!d()||!n.canCopy()||p()}),visible:!0,clickAction:function(){h().start(),n.cut(),h().end()},hotKey:{ctrlKey:!0,keyCode:"X".charCodeAt(0)}}),o.push({id:g.ActionId.Copy,text:"Copy",displayText:function(){return c.getLocalization("Copy","AnalyticsCoreStringId.Cmd_Copy")},imageClassName:"dxrd-image-copy",imageTemplateName:"dxrd-svg-toolbar-copy",disabled:ko.pureComputed(function(){return!d()||!n.canCopy()||p()}),visible:!0,clickAction:function(){n.copy()},hotKey:{ctrlKey:!0,keyCode:"C".charCodeAt(0)}}),o.push({id:g.ActionId.Paste,text:"Paste",displayText:function(){return c.getLocalization("Paste","AnalyticsCoreStringId.Cmd_Paste")},imageClassName:"dxrd-image-paste",imageTemplateName:"dxrd-svg-toolbar-paste",disabled:ko.pureComputed(function(){return!d()||!n.canPaste()||p()}),visible:!0,clickAction:function(){h().start(),n.paste(),h().end()},hotKey:{ctrlKey:!0,keyCode:"V".charCodeAt(0)}}),o.push({id:g.ActionId.Delete,text:"Delete",displayText:function(){return c.getLocalization("Delete","AnalyticsCoreStringId.Cmd_Delete")},imageClassName:"dxrd-image-delete",imageTemplateName:"dxrd-svg-toolbar-delete",disabled:ko.pureComputed(function(){return!e.focused()||(e.focused().getControlModel().getMetaData().isDeleteDeny||p())}),visible:!0,hotKey:{ctrlKey:!1,keyCode:46},clickAction:function(){h().start(),a.deleteSelection(e),h().end()}})}return o.push({id:g.ActionId.Undo,text:"Undo",displayText:function(){return c.getLocalization("Undo","AnalyticsCoreStringId.Undo")},imageClassName:"dxrd-image-undo",imageTemplateName:"dxrd-svg-toolbar-undo",disabled:ko.pureComputed(function(){return!d()||!h()||h()&&!h().undoEnabled()||e&&p()}),visible:!0,clickAction:function(){h().undo()},hotKey:{ctrlKey:!0,keyCode:"Z".charCodeAt(0)},hasSeparator:!0}),o.push({id:g.ActionId.Redo,text:"Redo",displayText:function(){return c.getLocalization("Redo","AnalyticsCoreStringId.Redo")},imageClassName:"dxrd-image-redo",imageTemplateName:"dxrd-svg-toolbar-redo",disabled:ko.pureComputed(function(){return!d()||!h()||h()&&!h().redoEnabled()||e&&p()}),visible:!0,clickAction:function(){h().redo()},hotKey:{ctrlKey:!0,keyCode:"Y".charCodeAt(0)}}),o.push({id:g.ActionId.ZoomOut,text:"Zoom Out",displayText:function(){return c.getLocalization("Zoom Out","AnalyticsCoreStringId.ZoomOut")},imageClassName:"dxrd-image-zoomout",imageTemplateName:"dxrd-svg-toolbar-zoomout",disabled:ko.pureComputed(function(){return!d()}),visible:!0,hotKey:{ctrlKey:!0,keyCode:109},zoomStep:l,clickAction:function(){d().zoom(Math.max(d().zoom()-l(),.01))},hasSeparator:!0}),o.push({id:g.ActionId.ZoomSelector,text:"Zoom 100%",displayText:function(){return c.getLocalization("Zoom 100%")},imageClassName:"dxrd-image-zoom",disabled:ko.pureComputed(function(){return!d()}),visible:!0,hotKey:{ctrlKey:!0,keyCode:187},clickAction:function(){d().zoom(1)},templateName:"dxrd-zoom-select-template",zoomLevels:ko.observableArray([5,2,1.5,1,.75,.5,.25]),zoom:ko.pureComputed({read:function(){return d()&&d().zoom()},write:function(a){d().zoom(a)}}),onCustomItemCreating:function(b){b.customItem=a.parseZoom(b.text)}}),o.push({id:g.ActionId.ZoomIn,text:"Zoom In",displayText:function(){return c.getLocalization("Zoom In","AnalyticsCoreStringId.ZoomIn")},imageClassName:"dxrd-image-zoomin",imageTemplateName:"dxrd-svg-toolbar-zoomin",disabled:ko.pureComputed(function(){return!d()}),visible:!0,hotKey:{ctrlKey:!0,keyCode:107},zoomStep:l,clickAction:function(){d().zoom(d().zoom()+l())}}),i&&i(o),o.forEach(function(a){for(var b in a)ko.isComputed(a[b])&&m._disposables.push(a[b]);m._registerAction("menu"===a.container?m.menuItems:ko.unwrap(m.toolbarItems),a)}),m}return __extends(d,b),d.prototype._registerAction=function(a,b){b.index?a.splice(b.index,0,b):a.push(b)},d.prototype.processShortcut=function(a,c){this.shouldIgnoreProcessing(c)||(this._keyboardHelper.processShortcut(c)?c.preventDefault():b.prototype.processShortcut.call(this,a,c))},d}(b);a.ActionLists=d,a.copyPasteStrategy={createChild:function(a,b){return a.createChild(b)},calculateDelta:function(a,b,c){return{x:a.rect().left-c.x(),y:a.rect().top-c.y()}}};var f=function(){function b(b,c){void 0===c&&(c=a.copyPasteStrategy);var d=this;this._copyPasteStrategy=c,this._copyInfo=ko.observable(null),this.hasPasteInfo=ko.pureComputed(function(){return null!==d._copyInfo()}),this._selectionProvider=b}return b.prototype.canCopy=function(){return null!==this._selectionProvider.focused()&&!this._selectionProvider.focused().getControlModel().getMetaData().isCopyDeny},b.prototype.canPaste=function(){var a=this._selectionProvider.focused();return null!==a&&this.hasPasteInfo()&&a.canDrop()&&!a.getControlModel().getMetaData().isPasteDeny},b.prototype.copy=function(){if(this.canCopy()){var a=new c.ModelSerializer,b={focused:this._selectionProvider.focused(),objects:$.map(this._selectionProvider.selectedItems,function(b){return a.serialize(b.getControlModel())})};this._copyInfo(b)}},b.prototype.cut=function(){var a=new c.ModelSerializer,b={focused:this._selectionProvider.focused(),objects:$.map(this._selectionProvider.selectedItems,function(b){return b.getControlModel().parentModel().removeChild(b.getControlModel()),a.serialize(b.getControlModel())})};this._copyInfo(b)},b.prototype.paste=function(){var b=this;if(this.canPaste()){var c=this._selectionProvider.focused(),d=c.getControlModel(),f=[];c===this._copyInfo().focused&&(c=c.parent,d=c.getControlModel()),d.getMetaData().isContainer||(c=c.parent,d=c.getControlModel());for(var g=new e.Point(Number.MAX_VALUE,Number.MAX_VALUE),h=new e.Point(-1,-1),i=0;i<this._copyInfo().objects.length;i++){var j=this._copyPasteStrategy.createChild(d,this._copyInfo().objects[i]),k=a.findSurface(j);if(k){var l=new e.Point(k.rect().left,k.rect().top),m=new e.Point(k.rect().left+k.rect().width,k.rect().top+k.rect().height);g.x()>=l.x()&&g.x(l.x()),h.x()<=m.x()&&h.x(m.x()),g.y()>=l.y()&&g.y(l.y()),h.y()<=m.y()&&h.y(m.y()),f.push(k)}}for(var n=new e.Point((c.rect().width-c._context.margins.right())/2-(h.x()-g.x())/2+(c.rtlLayout()?c._context.margins.right():0),c.rect().height/2-(h.y()-g.y())/2),i=0;i<f.length;i++){var o=this._copyPasteStrategy.calculateDelta(f[i],c,g);f[i].rect({left:n.x()+o.x,top:n.y()+o.y})}this._selectionProvider.initialize(),f.forEach(function(a){b._selectionProvider.selecting({control:a,cancel:!1})})}},b}();a.CopyPasteHandler=f}(d=b.Internal||(b.Internal={})),function(b){var c=function(b){function c(e){var f=b.call(this)||this;f.tabs=[],f.collapsed=ko.observable(!1),f.position=ko.observable(c.Position.Right),f.toggleCollapsedText=ko.pureComputed(function(){var b=f.collapsed()?"Open":"Collapse";return a.Analytics.Utils.getLocalization(b,"ASPxReportsStringId.SidePanel_"+b)}),f.cssClasses=function(a){return d.extend({"dxrd-tab-panel-left":f.position()===c.Position.Left,"dxrd-tab-panel-right":f.position()===c.Position.Right,"dxrd-tab-panel-empty":f.isEmpty()},a)};var g=e.tabs,h=e.autoSelectTab;e.rtl&&f.position(c.Position.Left);var i=f;f.tabs=g,g&&g.length?f._disposables.push(f.isEmpty=ko.computed(function(){return f.tabs.every(function(a){return!a.visible()})})):f.isEmpty=ko.observable(!0),f._disposables.push(ko.computed(function(){var a=g.filter(function(a){return a.visible()});0!==a.length?0===a.filter(function(a){return a.active.peek()}).length&&(a[0].active(!0),h&&f.collapsed(!0)):f.collapsed(!0)})),f._disposables.push(ko.computed(function(){var a=g.filter(function(a){return a.disabled()});if(0!==a.length&&0!==a.filter(function(a){return a.active.peek()}).length){a.forEach(function(a){return a.active(!1)});var b=g.filter(function(a){return!a.disabled.peek()&&a.visible.peek()})[0];b&&f.selectTab({model:b})}})),h&&f.tabs.forEach(function(a){f._disposables.push(a.active.subscribe(function(b){b&&f.selectTab({model:a})}))}),f.selectTab=function(a){var b=a.model;b.disabled()||(f.tabs.forEach(function(a){a.active(a===b)}),f.collapsed(!1))};var j=ko.observable(340);f._disposables.push(f.width=ko.pureComputed({read:function(){return f.collapsed()?0:j()},write:function(a){j(a)}})),f._disposables.push(f.headerWidth=ko.pureComputed(function(){return f.isEmpty()?0:50+(f.collapsed()?0:f.width())}));var k=f;return f.getResizableOptions=function(a,b,d){return f._resizableOptions&&f._resizableOptions.$element===a||(f._resizableOptions={starting:function(){$(a).css(k.position()===c.Position.Left?"right":"left","")},handles:k.position()===c.Position.Left?"e":"w",stopped:$.noop,stop:$.noop,resize:function(){$(a).css({left:k.position()===c.Position.Left?b:"",right:k.position()===c.Position.Left?"":b}),i.width($(a).width())},disabled:i.collapsed,zoom:1,minimumWidth:d,maximumWidth:1e3,$element:a},k._disposables.push(k.position.subscribe(function(b){$(a).resizable("option","handles",k.position()===c.Position.Left?"e":"w")}))),f._resizableOptions},f._disposables.push(f.toggleCollapsedImage=ko.pureComputed(function(){var a=f.collapsed()?"-expand":"-collapse";return{class:"dxrd-image-propertygrid"+a,template:"dxrd-svg-tabs"+a}})),f._disposables.push(f.toggleCollapsedText),f}return __extends(c,b),c.prototype.dispose=function(){b.prototype.dispose.call(this),this.disposeArray(this.tabs)},c.Position={Left:"Left",Right:"Right"},c}(b.Disposable);b.TabPanel=c;var e=function(a){function c(b){var c=a.call(this)||this;c.active=ko.observable(!1),c.visible=ko.observable(),c.disabled=ko.observable();var d=b.imageClassName||b.text.toLowerCase();c._text=b.text,c._localizationId=b.localizationId,c._disposables.push(c.imageClassName=ko.pureComputed(function(){return"dxrd-image-"+d})),c.imageTemplateName=b.imageTemplateName||f.Internal.SvgTemplatesEngine.getExistingTemplate("dxrd-svg-tabs-"+b.text.toLowerCase()),c.template=b.template,c._disposables.push(b.model);var e=b.visible,g=b.disabled;return c._disposables.push(c.visible=ko.pureComputed(function(){return void 0===e||e()})),c._disposables.push(c.disabled=ko.pureComputed(function(){return void 0!==g&&g()})),c._disposables.push(c.visible.subscribe(function(a){a||c.active(!1)})),e&&c._disposables.push(e),g&&c._disposables.push(g),c.model=b.model,c}return __extends(c,a),Object.defineProperty(c.prototype,"text",{get:function(){return b.getLocalization(this._text,this._localizationId)},enumerable:!0,configurable:!0}),c}(b.Disposable);b.TabInfo=e;var g=function(){function a(a){this.disabled=ko.observable(!1),this.info=a}return Object.defineProperty(a.prototype,"type",{get:function(){return d.getTypeNameFromFullName(this.info["@ControlType"])},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"imageClassName",{get:function(){return[d.getImageClassName(this.type),this.disabled()?"dxrd-disabled-button":""].join(" ")},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"imageTemplateName",{get:function(){var a=d.getImageClassName(this.type,!0);return f.Internal.SvgTemplatesEngine.getExistingTemplate(a)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"index",{get:function(){return this.info.index},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"displayName",{get:function(){return this.info.displayName||this.type},enumerable:!0,configurable:!0}),a}();b.ToolboxItem=g}(c=b.Utils||(b.Utils={})),function(d){function e(a,b,c){var d=b();return a.peek().forEach(function(a){var b=c(a);d.splice(0,0,b)}),b.valueHasMutated(),a.subscribe(function(a){var d=b(),e=d.length;a.forEach(function(a){"deleted"===a.status&&d.splice(d.indexOf(a.value.surface),1)}),a.forEach(function(a){"added"===a.status&&d.splice(e-a.index,0,c(a.value))}),b.valueHasMutated()},null,"arrayChange")}function f(a,b,c){var d=b();return a.peek().forEach(function(a){var b=c(a);d.push(b)}),b.valueHasMutated(),a.subscribe(function(a){var d=b().length,e=0,f=[];a.forEach(function(a){"deleted"===a.status&&(e++,a.index<d&&(d=a.index))}),a.forEach(function(a){"added"===a.status&&(a.index<d&&(d=a.index),f.push(c(a.value)))}),b.splice.apply(b,[d,e].concat(f))},null,"arrayChange")}function g(a,b,c){var e=[];return d.getPropertyValues(a).forEach(function(a){var b=c(a);e.push(b)}),d.knockoutArrayWrapper(e,function(a,c){if("beforeChange"!==c)if("arrayChange"===c)for(var d=0;d<a.length;d++)b!==a[d].value.parentModel()&&a[d].value.parentModel(b);else for(var d=0;d<a.length;d++)b!==a[d].parentModel()&&a[d].parentModel(b)})}function h(a,b,c,d){for(var d=d||0,e=d;e<a.length;e++){if((ko.isObservable(a[e][b])?a[e][b].peek():a[e][b])===c)return a[e]}return null}function i(a,b){for(var c=0;c<a.length;c++)if(b(a[c]))return a[c];return null}function j(a,b,c){for(var d=0,e=a.length-1;d<=e;){var f=e+d>>1,g=c(b,a[f]);if(g>0)d=f+1;else{if(!(g<0))return f;e=f-1}}return~d}function k(a,b){if(void 0===b&&(b=!1),b&&m(a),d.DEBUG)throw new Error(a);J.warn(a)}function l(a){return a&&a.responseJSON&&a.responseJSON.error?a.responseJSON.error:""}function m(b,c,e,f){void 0===c&&(c="error");var g=$(".dx-designer-viewport")[0];a.ui.notify({message:b,type:c,position:{of:d.chooseBetterPositionOf(document.documentElement,g),my:"bottom",at:"bottom",offset:"0 -10"},container:g,closeOnOutsideClick:!0,closeOnSwipe:!1,displayTime:e||("error"===c?6e4:3e3)})}function n(a,b,c){void 0===c&&(c=1);var d;return d="Test"===b||"Pixels"===b?1*a:"TenthsOfAMillimeter"===b?3.78*a/10:96*a/100,d*=c,Math.floor(1e4*d)/1e4}function o(a,b,c){var d;return d="Test"===b||"Pixels"===b?1*a:"TenthsOfAMillimeter"===b?a/3.78*10:a/96*100,d/=c,Math.round(1e4*d)/1e4}function p(a,b,c,d,e,f,g){var h=0;b[c]=ko.pureComputed({read:function(){var b=d(a)(),c=n(b,e.peek(),f());return Math.abs(c-h)>.2?h=c:h},write:function(b){if(!(Math.abs(b-h)<=.2)){h=b;var c=o(b,e.peek(),f());d(a)(c)}}}),g(b[c])}function q(a,b,c,d,e,f){if(c)for(var g in c)p(a,b,g,c[g],d,e,f)}function r(a,b){for(var c in a||{})ko.isObservable(a[c])?b[c](a[c]()):$.isFunction(a[c])||r(a[c],b[c])}function s(a,b){var c=a&&b&&!(a instanceof Array)&&!(b instanceof Array);if(c=c&&Object.getOwnPropertyNames(a).length===Object.getOwnPropertyNames(b).length)for(var d in a||{})if(0!==d.indexOf("_")&&("function"!=typeof a[d]||ko.isObservable(a[d]))){if(ko.isObservable(a[d]))c=ko.unwrap(a[d])===ko.unwrap(b[d]);else if(a[d]instanceof Array)if(b[d]instanceof Array&&a[d].length===b[d].length)for(var e=0;e<a[d].length&&!1!==(c=s(a[d][e],b[d][e]));e++);else c=!1;else c=a[d]instanceof Object?s(a[d],b[d]):a[d]===b[d];if(!1===c)break}return c}function t(a,b){return a+(b?"."+b:"")}function u(){var a=$("script[type='text/html']").map(function(a,b){if(b.src){var c=$.Deferred();return $.get(b.src).done(function(a){b.text=a,-1===a.indexOf('type="text/html"')&&-1===a.indexOf("type='text/html'")||$(document.body).append(a),c.resolve()}).fail(function(a,b,d){c.reject()}),c.promise()}});return $.when.apply($.when,a)}function v(a){return a<768?"xs":a<992?"sm":a<1200?"md":a<1380?"lg":"xl"}function w(b,e){b.dx=e||a,b.getLocalization=function(){return c.getLocalization.apply(a.Analytics,arguments)},b.getPopupContainer=d.getParentContainer,b.surfaceClass=function(a){return"dx-designer-viewport dx-designer-viewport-"+v(a.clientWidth)+" "+(d.getParentContainer(a,".dx-theme-generic").length?"":" dx-theme-generic")}}function x(a,b,e,f,g,h,i,j){void 0===i&&(i=function(a){return!a.success}),void 0===j&&(j=d.getErrorMessage);var k,l=$.Deferred();return void 0!==b&&void 0!==e&&(k={actionKey:b,arg:e}),c.ajaxSetup.sendRequest($.extend({},{type:"POST",data:k,url:a},h)).fail(function(b,c,e){if(g&&g())return void l.reject();d._errorProcessor.call({jqXHR:b,textStatus:c,errorThrown:e,getRequestDetails:function(){return k||a}}),d._processError(e,l,b,c,f)}).done(function(b,c,e){if(!b)return void l.reject();if(i(b)){if(g&&g())return void l.reject();d._errorProcessor.call({jqXHR:e,textStatus:c,data:b,errorThrown:j(e),getRequestDetails:function(){return k||a}}),d._processError("Internal Server Error",l,e,c,f)}else l.resolve(b.result)}),l.promise()}function y(a){return x(a.uri,a.action,a.arg,a.processErrorCallback,a.ignoreError,a.customOptions,a.isError,a.getErrorMessage)}function z(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];return a.length>1?x.apply(this,a):y(a[0])}function A(a){return G(a,function(a){delete a["@Ref"]}),a}function B(a){return[{id:d.DesignerBaseElements.MenuButton,templateName:d.DesignerBaseElements.MenuButton,model:a},{id:d.DesignerBaseElements.Toolbar,templateName:d.DesignerBaseElements.Toolbar,model:a},{id:d.DesignerBaseElements.Toolbox,templateName:d.DesignerBaseElements.Toolbox,model:a},{id:d.DesignerBaseElements.Surface,templateName:d.DesignerBaseElements.Surface,model:a},{id:d.DesignerBaseElements.RightPanel,templateName:d.DesignerBaseElements.RightPanel,model:a}]}function C(a,b){return function(c){c.forEach(function(c){if(!c.wrappedWith||-1===c.wrappedWith.indexOf(a)){var d=c.clickAction;c.clickAction=function(a){return b(a,d)},c.wrappedWith=c.wrappedWith||[],c.wrappedWith.push(a)}})}}function D(e,f,g,h,i,j,k,l,m,n,o,p,q){void 0===h&&(h={}),void 0===i&&(i=[]);var r=new d.DesignerContextGenerator(k).addModel(e).addSurface(f).addUndoEngine(n).getContext(),s=new d.CommonDesignerGenerator(r,k);return s.mapOnContext().addSelection(function(a){a.selection=l||new d.SurfaceSelection,a.snapHelper=new d.SnapLinesHelper(f,d.SnapLinesHelper.snapTolerance,p||new d.SnapLinesCollector),a.editableObject=d.CombinedObject.getEditableObject(a.selection,r.undoEngine,o).extend({throttle:1}),a.addDragDrop(function(b){b.dragHelperContent=new d.DragHelperContent(a.selection),b.dragDropStarted=d.DragDropHandler.started,b.addDragDropHandler("dragHandler",new d.SelectionDragDropHandler(r.surface,a.selection,r.undoEngine,a.snapHelper,b.dragHelperContent)),b.addDragDropHandler("toolboxDragHandler",new d.ToolboxDragDropHandler(r.surface,a.selection,r.undoEngine,a.snapHelper,b.dragHelperContent,g))}),a.addResize(function(b){b.handler={starting:function(){l.expectClick=!0,r.undoEngine().start()},stopped:function(){r.undoEngine().end(),setTimeout(function(){l.expectClick=!1},100)},disabled:d.DragDropHandler.started,snapHelper:a.snapHelper}})}).addToolboxItems(function(){return d.getToolboxItems(g.controlsMap)}).addIsLoading().addControlProperties(i,h,q).addPopularProperties(g).addControlsHelper(function(a){a.addControlsHelper(m).addControlsStore()}).addTabPanel(void 0,function(){return[new c.TabInfo({text:"Properties",template:"dxrd-propertiestab",model:s.getModel().propertyGrid,localizationId:"AnalyticsCoreStringId.Cmd_Properties",visible:ko.pureComputed(function(){return!!e()}),disabled:ko.pureComputed(function(){return s.getModel().propertyGrid.focusedItem()instanceof Array}).extend({throttle:100})})]}).addContextActions(function(a){a.actionProviders=[],a.createDefaultActions(s.getModel().editableObject,s.getModel().undoEngine)}).addMenu(function(a){a.appMenuVisible=ko.observable(!1),a.toggleAppMenu=function(){a.appMenuVisible(!a.appMenuVisible())},a.getMenuPopupContainer=function(a){return $(a).closest(".dxrd-menu-button").prev(".dxrd-menu-container")},a.getMenuPopupTarget=function(a){return $(a).closest(".dxrd-menu-button").find(".dxrd-menu-place")}}).addElement("inlineTextEdit",function(){return new d.InlineTextEdit(s.getModel().selection)}).addElement("actionsGroupTitle",function(){return function(){return b.Utils.getLocalization("Actions","AnalyticsCoreStringId.Actions")}}).addElement("updateFont",function(){return function(b){a.Analytics.Widgets.Internal.availableFonts($.extend(a.Analytics.Widgets.Internal.availableFonts(),b))}}).addElement("sortFont",function(){return function(){var b={},c=a.Analytics.Widgets.Internal.availableFonts.peek();Object.keys(c).sort(function(a,b){return a.localeCompare(b)}).forEach(function(a){return b[a]=c[a]}),a.Analytics.Widgets.Internal.availableFonts(b)}}).addElement("surfaceSize",function(){return ko.observable(0)}).addElement("popularVisible",function(){return ko.pureComputed(function(){return s.getModel().popularProperties._editors().some(function(a){return a.visible()})||s.getModel().contextActions().length>0})}).addActionList().addParts().getModel()}function E(a){var c=ko.unwrap(a);return"none"===c?b.Utils.getLocalization("none","DataAccessStringId.ParameterListEmpty"):"(none)"===c?"(none)"!==b.Utils.getLocalization("(none)","DxDesignerStringId.None")?b.Utils.getLocalization("(none)","DxDesignerStringId.None"):"("+b.Utils.getLocalization("none","DataAccessStringId.ParameterListEmpty")+")":c}function F(a){var b=Math.round(parseInt(a.replace("%","")))/100;return b?b>=5?5:b<=.1?.1:b:1}function G(a,b,c,d){if(void 0===c&&(c=[]),void 0===d&&(d=["surface","reportSource"]),-1===c.indexOf(a)&&a&&void 0!==a){var e=[];for(var f in a)-1===c.indexOf(a[f])&&0!==f.indexOf("_")&&-1===d.indexOf(f)&&e.push(a[f]);b(a),c.push(a);for(var g=0;g<e.length;g++)e[g]=ko.unwrap(e[g]),"object"==typeof e[g]&&G(e[g],b,c,d)}}function H(a,b,c,d){if(void 0===c&&(c=["controls","bands","subBands","crossBandControls","rows","cells","fields"]),void 0===d&&(d=[]),a&&void 0!==a){d.push(a);for(var e=0,f=c.length;e<f;e++)a[c[e]]&&(b(a[c[e]],a),(a[c[e]]()||[]).forEach(function(a){return H(a,b,c,d)}))}}d.createObservableReverseArrayMapCollection=e,d.createObservableArrayMapCollection=f,d.deserializeChildArray=g,d.getFirstItemByPropertyValue=h,d.findFirstItemMatchesCondition=i,d.find=i,d.binaryIndexOf=j;var I=function(){function a(a,b,c){var d=this;this._extenders=c,this.getItems=function(c){var e=$.Deferred(),f=[];return d._beforeFieldListCallback(c,f)?e.resolve(f):b&&!c.fullPath?(f.push.apply(f,$.map(b(),function(a){return{name:a.id||a.ref,displayName:a.name,isList:!0,specifics:a.specifics||"ListSource",dragData:{noDragable:!1}}})),d._afterFieldListCallBack(c,f),e.resolve(f)):(d._patchRequest(c,b),a(c).done(function(a){f.push.apply(f,a),d._afterFieldListCallBack(c,f),e.resolve(f)}).fail(function(a){return e.reject(a)})),e.promise()}}return a.prototype._patchRequest=function(a,b){if(b)for(var c=b.peek(),d=0;d<c.length;d++){if(c[d].id===a.id&&a.id)return void(a.ref=void 0);if(c[d].ref===a.ref&&a.ref)return void(a.id=void 0)}},a.prototype._beforeFieldListCallback=function(a,b){return!!this._extenders&&this._extenders.some(function(c){return c.beforeItemsFilled(a,b)})},a.prototype._afterFieldListCallBack=function(a,b){this._extenders&&this._extenders.forEach(function(c){c.afterItemsFilled&&c.afterItemsFilled(a,b)})},a}();d.FieldListProvider=I,d.NotifyType={info:"info",warning:"warning",error:"error",success:"success"};var J=function(a){var b=function(b){return function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];a&&$.isFunction(a[b])&&a[b].apply(a,arguments)}};return{info:b("info"),warn:b("warn"),error:b("error")}}(window.console);d.NotifyAboutWarning=k,d.getErrorMessage=l,d.ShowMessage=m,d.unitsToPixel=n,d.pixelToUnits=o,d.createUnitProperty=p,d.createUnitProperties=q,d.copyObservables=r,d.compareObjects=s,d.cssTransform=["-webkit-transform","-moz-transform","-ms-transform","-o-transform","transform"],d.DEBUG=!1,d.getFullPath=t,d.loadTemplates=u,d.getSizeFactor=v,d.appendStaticContextToRootViewModel=w,d._ajax=x,d._ajaxWithOptions=y,d.ajax=z,d.cutRefs=A,d.DesignerBaseElements={MenuButton:"dxrd-menubutton-template-base",Toolbar:"dxrd-toolbar-template-base",Toolbox:"dxrd-toolbox-template-base",Surface:"dxrd-surface-template-base",RightPanel:"dxrd-right-panel-template-base"},d.generateDefaultParts=B,d.createActionWrappingFunction=C,d.createDesigner=D,d.localizeNoneString=E,d.parseZoom=F,d.objectsVisitor=G,d.collectionsVisitor=H}(d=b.Internal||(b.Internal={})),function(b){!function(b){var c=function(a){function b(b,c){var d=a.call(this,b,$.extend(c,{showClearButton:!0}))||this;d._path=ko.observable(""),d._value=ko.observable(""),d._parentViewport=null,d._itemsProvider=ko.observable(null),d._defaultPosition=null;var e=$(b);return e.addClass("dx-fieldlistpicker"),d.option("path")&&d._path(d.option("path")),d.option("value")&&d._value(d.option("value")),d.option("itemsProvider")&&d._itemsProvider(d.option("itemsProvider")),d.option("valueChangeEvent","change"),d.option("openOnFieldClick",!1===d.option("acceptCustomValue")),d._parentViewport=e.parents(".dx-designer-viewport"),"displayValue"in c&&(d.option("displayValue",c.displayValue),d._setTitle(d.option("displayValue"))),d}return __extends(b,a),b.prototype._showDropDown=function(){if(this._popup){var a=$(this.element());this._popup.option("width",a.width());var b=$.extend(!0,{},this._defaultPosition,{boundary:this._parentViewport[0],boundaryOffset:"0 20",collision:"none flip"});this._popup.option("position",b),this._popup.option("height","auto"),this._popup.option("maxHeight",this._getMaxHeight()),this._popup.repaint(),$(this._popup.content())[0].style.height="auto",this._popup._renderPosition()}},b.prototype._getMaxHeight=function(){var a=$(this.element()),b=a.offset(),c=$(window).height(),d=Math.max(b.top,c-b.top-a.outerHeight());return Math.min(.5*c,d)},b.prototype._closeOutsideDropDownHandler=function(b,c){a.prototype._closeOutsideDropDownHandler.call(this,b,!0)},b.prototype._hideOnBlur=function(){return!1},b.prototype._popupConfig=function(){var b=this._options.integrationOptions.templates["dx-polymorph-widget"],c=a.prototype._popupConfig.call(this);return this._defaultPosition=c.position,$.extend(c,{container:this._parentViewport,contentTemplate:b&&b._template,closeOnOutsideClick:!0})},b.prototype._setTitle=function(a){this.option("openOnFieldClick")&&$(this.element()).attr("title",a)},b.prototype._optionChanged=function(b,c){var d=this,e=b.name||b,f=c||b.value;switch(e){case"value":a.prototype._optionChanged.apply(this,arguments),setTimeout($.proxy(function(){d.option("opened",!1)},this),50);break;case"path":this._path(f);break;case"itemsProvider":this._itemsProvider(f);break;case"displayValue":$(this._input()).val(f),this._setTitle(f);break;default:a.prototype._optionChanged.apply(this,arguments),"opened"===e&&f&&this._showDropDown()}},b.prototype._clearValueHandler=function(){$(this._input()).val(null),a.prototype._clearValueHandler.apply(this,arguments)},b.prototype._renderPopupContent=function(){var b=this;a.prototype._renderPopupContent.call(this);var c=ko.pureComputed({read:function(){return b._path()?b._path()+"."+b._value():b._value()},write:function(a){b._path()&&b._path().length>0?(b._value(a.substr(b._path().length+1)),b.option("value",b._value())):(b._value(a),b.option("value",b._value()))}}),d=$("<div>").addClass("dx-treelist-wrapper").get(0),e=this._createComponent(d,"dxScrollView",{scrollByThumb:!0}),f=this,g=$(e.content()),h=$(this.element());g.append($('<div data-bind="treelist: options"></div>')[0]);var i=ko.contextFor(h.get(0)),j=this.option("treeListController"),k=ko.computed(function(){return{itemsProvider:b._itemsProvider(),onItemsVisibilityChanged:function(){f._popup&&f._popup._renderPosition()},selectedPath:c,treeListController:j,path:b._path}}),l=i.createChildContext({options:k});ko.applyBindingsToDescendants(l,g.get(0)),$(this._popup.content()).append(d)},b}(a.ui.dxDropDownBox);b.dxFieldListPicker=c,a.registerComponent("dxFieldListPicker",c)}(b.Internal||(b.Internal={}))}(f=b.Widgets||(b.Widgets={})),function(d){ko.bindingHandlers.dxBorderEditor={init:function(b,c,d,f,g){$(b).children().remove();var h=a.Analytics.Widgets.Internal.getTemplate("dxrd-bordereditor"),i=$(b).append(h);return ko.applyBindings({value:new e(c(),f.disabled)},i.children()[0]),{controlsDescendantBindings:!0}}};var e=function(a){function b(b,c){void 0===c&&(c=ko.observable(!1));var d=a.call(this)||this;return d.left=ko.observable(!1),d.right=ko.observable(!1),d.top=ko.observable(!1),d.bottom=ko.observable(!1),d.disabled=c,d.value=b.value,d.updateModel(b.value()),d._disposables.push(b.value.subscribe(function(a){d.updateModel(a)})),d}return __extends(b,a),b.prototype._setAllValues=function(a){this.left(a),this.bottom(a),this.right(a),this.top(a)},b.prototype.setValue=function(a){this.disabled()||(this[a](!this[a]()),this.updateValue())},b.prototype.setAll=function(){this.disabled()||(this._setAllValues(!0),this.updateValue())},b.prototype.setNone=function(){this.disabled()||(this._setAllValues(!1),this.updateValue())},b.prototype.updateModel=function(a){var b=a||"None";-1!==b.indexOf("All")?this._setAllValues(!0):-1!==b.indexOf("None")?this._setAllValues(!1):(this.left(-1!==b.indexOf("Left")),this.top(-1!==b.indexOf("Top")),this.right(-1!==b.indexOf("Right")),this.bottom(-1!==b.indexOf("Bottom")))},b.prototype.updateValue=function(){var a=[];this.left()&&this.right()&&this.top()&&this.bottom()?a.push("All"):this.left()||this.right()||this.top()||this.bottom()?(this.left()&&a.push("Left"),this.right()&&a.push("Right"),this.top()&&a.push("Top"),this.bottom()&&a.push("Bottom")):a.push("None"),this.value(a.join(","))},b}(c.Disposable);d.BordersModel=e;var g=function(c){function e(e,f,g,h){void 0===g&&(g=0),void 0===h&&(h=!0);var i=c.call(this,e,f,g,void 0,void 0,ko.observable(""),h&&new d.PopupService)||this;i.focusedItem=ko.observable(),i.editorsRendered=ko.observable(!1),i.isSortingByGroups=ko.observable(!0),i.isSearching=ko.observable(!1),i.allEditorsCreated=ko.observable(!1),i.textToSearch=ko.observable(""),i._searchBox=null,i.searchPlaceholder=function(){return b.Internal.searchPlaceholder()},i.switchSearchBox=function(){i.isSearching()?(i.isSearching(!1),i.textToSearch("")):(i.isSearching(!0),i._searchBox&&i._searchBox.focus())},i.createGroups(f.groups),i.update(e()),i._disposables.push(i.focusedImageClassName=ko.pureComputed(function(){return b.Internal.getImageClassName(e()&&e().controlType)}));var j=i.isSortingByGroups.subscribe(function(a){a||(i.editorsRendered(!0),j.dispose())});i._disposables.push(j),i.focusedItem=e,i._disposables.push(e.subscribe(function(a){i.isSearching()&&!i.textToSearch()&&i.switchSearchBox()})),i.displayExpr=function(b){return a.Analytics.Internal.getControlFullName(b)};var k=null;return i._disposables.push(i.textToSearch.subscribe(function(a){k&&clearTimeout(k),k=setTimeout(function(){i._textToSearch(a),a&&i.groups.forEach(function(a){return a.collapsed()&&a.editors().some(function(a){return a.isSearchedProperty()})&&a.collapsed(!1)})},200)})),i}return __extends(e,c),e.prototype.getEditors=function(){var a=c.prototype.getEditors.call(this),b=a.map(function(a){return a.displayName()}).sort();return a.sort(function(a,c){return b.indexOf(a.displayName())-b.indexOf(c.displayName())}),a},e.prototype._update=function(a,b,d){return this.groups&&this.groups.forEach(function(a){0===a.editors().length&&a.recreate()}),c.prototype._update.call(this,a,b,d)},e.prototype.cleanEditors=function(){c.prototype.cleanEditors.call(this),this.groups.forEach(function(a){return a.resetEditors()})},e.prototype.dispose=function(){c.prototype.dispose.call(this),this.disposeArray(this.groups),this.disposeObservableArray(this._editors),this.resetObservableArray(this._editors),this.cleanSubscriptions(),this._searchBox=null,this.focusedItem=null},e.prototype.createGroups=function(a){var b=this;this.groups=Object.keys(a).map(function(c){return new h(c,a[c].info,function(a){return a.filter(function(a){return!!a.editor}).map(function(a){var c=b.findEditorByInfo(a);return c||(c=b.createEditor(a),b._editors.push(c),c)})},!0,a[c].displayName)}),this._disposables.push.apply(this._disposables,this.groups)},e.prototype.searchBox=function(b){this._searchBox=a.ui.dxTextBox.getInstance(b.get(0))},e}(f.ObjectProperties);d.ControlProperties=g;var h=function(a){function b(b,d,e,f,g){void 0===f&&(f=!0);var h=a.call(this)||this;if(h.editors=ko.observableArray([]).extend({deferred:!0}),h.editorsCreated=ko.observable(!1),h.editorsRendered=ko.observable(!1),h._displayName=b,h.displayName=g||function(){return c.getLocalization(b)},h._serializationsInfo=d,h.collapsed=ko.observable(f),f){var i=h.collapsed.subscribe(function(a){i.dispose(),h.editorsRendered(!0)});h._disposables.push(i)}return h.recreate=function(){h.editors(e(d))},h.editors(e(d)),h.visible=ko.computed(function(){return h.editors().some(function(a){return a.visible()})}),h._disposables.push(h.visible),h}return __extends(b,a),b.prototype.resetEditors=function(){this.disposeObservableArray(this.editors),this.resetObservableArray(this.editors)},b.prototype.dispose=function(){a.prototype.dispose.call(this),this.disposeObservableArray(this.editors),this.resetObservableArray(this.editors)},b.prototype.update=function(a){var b=this;this._viewModel=a,this.editors().forEach(function(a){a.update(b._viewModel)})},b}(c.Disposable);d.Group=h,d.sizeFake=[{propertyName:"height",displayName:"Height",localizationId:"AnalyticsCoreStringId.SizeF.Height",editor:f.editorTemplates.numeric,editorOptions:{min:2}},{propertyName:"width",displayName:"Width",localizationId:"AnalyticsCoreStringId.SizeF.Width",editor:f.editorTemplates.numeric,editorOptions:{min:2}}],d.locationFake=[{propertyName:"x",displayName:"X",editor:f.editorTemplates.numeric},{propertyName:"y",displayName:"Y",editor:f.editorTemplates.numeric}];var i=function(){function a(a,b){this._context=a,this._rtl=b}return a.prototype.addElement=function(a,b){return this._context[a]=b,this},a.prototype.addUndoEngine=function(a){return void 0===a&&(a=ko.observable(new c.UndoEngine(this._context.model))),this._context.undoEngine=a,this},a.prototype.addSurface=function(a){return this._context.surface=a,this},a.prototype.getContext=function(){return this._context},a}();d.DesignerContextGeneratorInternal=i;var j=function(){function a(a){this._rtl=a}return a.prototype.addModel=function(a){return new i({model:a},this._rtl)},a}();d.DesignerContextGenerator=j;var k=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return __extends(b,a),Object.defineProperty(b.prototype,"handler",{get:function(){return this._handler},set:function(a){this._disposables.push(a),this._handler=a},enumerable:!0,configurable:!0}),b.prototype.generate=function(){var a={};return this.handler&&(a.resizeHandler=this.handler),a},b}(c.Disposable);d.ResizeSettings=k;var l=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return __extends(b,a),b.prototype._actionUndoEngineWrappingFunction=function(a,b){return d.createActionWrappingFunction("WrapWithUndoEngine",function(a,c){b().start(),c(a),b().end()})(a)},Object.defineProperty(b.prototype,"actionProviders",{get:function(){return this._actionProviders},set:function(a){this._disposables.push.apply(this._disposables,a),this._actionProviders=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"actions",{get:function(){return this._actions},set:function(a){this._disposables.push(a),this._actions=a},enumerable:!0,configurable:!0}),b.prototype.createDefaultActions=function(a,b){var c=this;this.actions=ko.computed(function(){var d=a(),e=[];return c.actionProviders.forEach(function(a){e.push.apply(e,a.getActions(d))}),c._actionUndoEngineWrappingFunction(e,b),e})},b.prototype.generate=function(){var a={};return this.actionProviders&&(a.contextActionProviders=this.actionProviders),this.actions&&(a.contextActions=this.actions),a},b}(c.Disposable);d.ContextActionsSettings=l;var m=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;return b._model={},b}return __extends(b,a),Object.defineProperty(b.prototype,"dragHelperContent",{get:function(){return this._dragHelperContent},set:function(a){this._disposables.push(a),this._dragHelperContent=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"dragDropStarted",{get:function(){return this._dragDropStarted},set:function(a){this._disposables.push(a),this._dragDropStarted=a},enumerable:!0,configurable:!0}),b.prototype.addDragDropHandler=function(a,b){this._disposables.push(b),this._model[a]=b},b.prototype.generate=function(){var a=this._model;return this.dragHelperContent&&(a.dragHelperContent=this.dragHelperContent),this.dragDropStarted&&(a.dragDropStarted=this.dragDropStarted),a},b}(c.Disposable);d.DragDropSettings=m;var n=function(a){function b(b,c){var d=a.call(this)||this;return d._selection=b,d._context=c,d._model={},d}return __extends(b,a),b.prototype.generate=function(){var a=this._model;return this.controlsHelper&&(a.controlsHelper=this.controlsHelper),a},b.prototype.addControlsHelper=function(a){var b=this;return this.controlsHelper=a||new d.DesignControlsHelper(this._context.model,[{added:function(a){},deleted:function(a){a.surface===b._selection.focused()&&b._selection.focused(d.findNextSelection(a.surface))}}]),this._disposables.push(this.controlsHelper),this},b.prototype.addControlsStore=function(a){return a=a||new d.ControlsStore(this.controlsHelper.allControls),this._disposables.push(a),this._model.controlsStore=a,this},b}(c.Disposable);d.ControlsHelperSettings=n;var o=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;return b.stopPropagation=!1,b}return __extends(b,a),b.prototype.generate=function(){var a={};return this.appMenuVisible&&(a.appMenuVisible=this.appMenuVisible),this.toggleAppMenu&&(a.toggleAppMenu=this.toggleAppMenu),this.getMenuPopupContainer&&(a.getMenuPopupContainer=this.getMenuPopupContainer),this.getMenuPopupTarget&&(a.getMenuPopupTarget=this.getMenuPopupTarget),a.stopPropagation=this.stopPropagation,a},Object.defineProperty(b.prototype,"appMenuVisible",{get:function(){return this._appMenuVisible},set:function(a){this._disposables.push(a),this._appMenuVisible=a},enumerable:!0,configurable:!0}),b}(c.Disposable);d.MenuSettings=o;var p=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;return b._dragDropSettings=new m,b._resizeSettings=new k,b}return __extends(b,a),b.prototype.dispose=function(){this._editableObject(null),a.prototype.dispose.call(this),this.removeProperties()},Object.defineProperty(b.prototype,"selection",{get:function(){return this._selection},set:function(a){this._disposables.push(a),this._selection=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"snapHelper",{get:function(){return this._snapHelper},set:function(a){this._disposables.push(a),this._snapHelper=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"editableObject",{get:function(){return this._editableObject},set:function(a){this._disposables.push(a),this._editableObject=a},enumerable:!0,configurable:!0}),b.prototype.addDragDrop=function(a){a(this._dragDropSettings),this._disposables.push(this._dragDropSettings)},b.prototype.addResize=function(a){a(this._resizeSettings),this._disposables.push(this._resizeSettings)},b.prototype.generate=function(){var a={};return this.selection&&(a.selection=this.selection),this.snapHelper&&(a.snapHelper=this.snapHelper),this.editableObject&&(a.editableObject=this.editableObject),d.extend(a,this._dragDropSettings.generate(),this._resizeSettings.generate())},b}(c.Disposable);d.SelectionSettings=p;var q=function(a){function b(b,c){var d=a.call(this)||this;return d._context=b,d._rtl=c,d._model={},d._selectionSettings=new p,d._model.rtl=d._rtl,d._model.dispose=function(){d.dispose()},d}return __extends(b,a),b.prototype._createPopularProperties=function(a,b){var c=[];return b.forEach(function(b){var d=a.filter(function(a){return a.propertyName===b})[0];d&&c.push(d)}),c},b.prototype._resetModel=function(){var a=this;Object.keys(this._model).forEach(function(b){"dispose"!==b&&delete a._model[b]})},Object.defineProperty(b.prototype,"rtl",{get:function(){return this._rtl},set:function(a){this._rtl=a,this._model.rtl=a},enumerable:!0,configurable:!0}),b.prototype.dispose=function(){a.prototype.dispose.call(this),this._resetModel()},b.prototype.initializeContext=function(a){return this._context=a,this},b.prototype.getPropertyByName=function(a){return this._model[a]},b.prototype.addElement=function(a,b){return this._model[a]=b(),this._disposables.push(this._model[a]),this},b.prototype.mapOnContext=function(){return this._model.model=this._context.model,this._model.surface=this._context.surface,this._model.undoEngine=this._context.undoEngine,this},b.prototype.addSelection=function(a){return a(this._selectionSettings),this._disposables.push(this._selectionSettings),d.extend(this._model,this._selectionSettings.generate()),this},b.prototype.addPropertyGrid=function(a,b){return void 0===b&&(b="propertyGrid"),this._model[b]=a&&a(),this._disposables.push(this._model[b]),this},b.prototype.addControlProperties=function(a,b,c){var d=this;return this.addPropertyGrid(function(){return new g(d._model.editableObject,{groups:b,editors:a},null)})},b.prototype.addPopularProperties=function(a){var b=this;return this.addPropertyGrid(function(){return new f.ObjectProperties(ko.pureComputed(function(){var c={getInfo:function(){return[]}},d=b._model.editableObject();if(d){var e=a.controlsMap[d.controlType],f=b._createPopularProperties(e&&e.info||[],e&&e.popularProperties||[]);f.forEach(function(a){a.propertyName in d&&(c[a.propertyName]=d[a.propertyName])}),c.getInfo=function(){return f},c.root=d.root,c.actions=d.actions,c.actionProviders=d.actionProviders,c.getPath=function(a){return d.getPath&&d.getPath(a)||""},c.getModel=function(){return d},c.isPropertyModified=function(a){return!!d.isPropertyModified&&d.isPropertyModified(a)},c.getActionClassName=function(a){return d.getActionClassName?d.getActionClassName(a):""},c.getMenuBoxTemplate=function(a){return d.getMenuBoxTemplate?d.getMenuBoxTemplate(a):""},c.isPropertyVisible=function(a){return d.isPropertyVisible(a)},c.isPropertyHighlighted=function(a){return d.isPropertyHighlighted(a)},c.isPropertyDisabled=function(a){return!!d.isPropertyDisabled&&d.isPropertyDisabled(a)},c.isSame=function(a){return a===d}}return c}),void 0,void 0,void 0)},"popularProperties")},b.prototype.addToolboxItems=function(a){return this._model.toolboxItems=a&&a(),this},b.prototype.addTabPanel=function(a,b){void 0===b&&(b=function(){return[]});var d=a&&a()||new c.TabPanel({tabs:b(),rtl:this._rtl});return this._model.tabPanel=d,this._disposables.push(d),this},b.prototype.addIsLoading=function(a){return void 0===a&&(a=function(){return ko.observable(!0)}),this._model.isLoading=a(),this._disposables.push(this._model.isLoading),this},b.prototype.addControlsHelper=function(a){var b=new n(this._selectionSettings.selection,this._context);return a(b),this._disposables.push(b),d.extend(this._model,b.generate()),this},b.prototype.addMenu=function(a){var b=new o;return a(b),this._disposables.push(b),d.extend(this._model,b.generate()),this},b.prototype.addContextActions=function(a){var b=new l;return a(b),this._disposables.push(b),d.extend(this._model,b.generate()),this},b.prototype.addParts=function(a,b){void 0===a&&(a=function(a){return a}),void 0===b&&(b=!0);var c=[];return b&&(c=d.generateDefaultParts(this._model)),this._model.parts=a(c),this},b.prototype.getModel=function(){return this._model},b.prototype.addActionList=function(a){var b=a&&a()||new d.ActionLists(this._context.surface,this._selectionSettings.selection,this._context.undoEngine,function(){});return this._disposables.push(b),this._model.actionLists=b,this},b}(c.Disposable);d.CommonDesignerGenerator=q;var r={render:function(a){var b=$("<i />").addClass("dx-icon");a.model.iconClass?(b.addClass(a.model.iconClass),b.addClass("dx-icon-"+a.model.iconClass)):a.model.icon&&b.addClass(a.model.icon),a.model.icon&&b.attr("data-bind","template: '"+a.model.icon+"'");var c=b.get(0);$(a.container).append(c),ko.applyBindings(a.model,c)}},s=function(a){function b(b,c){return c.template=r,a.call(this,b,c)||this}return __extends(b,a),b.prototype._getContentData=function(){var b=a.prototype._getContentData.call(this);return ko.utils.extend(b,{iconClass:this.option("iconClass")})},b.prototype._optionChanged=function(b){switch(b.name){case"iconClass":this._updateContent(),this._updateAriaLabel();break;default:a.prototype._optionChanged.call(this,b)}},b}(a.ui.dxButton);d.dxButtonWithTemplate=s,a.registerComponent("dxButtonWithTemplate",s)}(d=b.Internal||(b.Internal={}))}(a.Analytics||(a.Analytics={}))}(DevExpress||(DevExpress={})),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.DragDropHandler","Analytics.Internal.DragDropHandler"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.DragHelperContent","Analytics.Internal.DragHelperContent"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.SelectionDragDropHandler","Analytics.Internal.SelectionDragDropHandler"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ToolboxDragDropHandler","Analytics.Internal.ToolboxDragDropHandler"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.SurfaceElementArea","Analytics.SurfaceElementArea","Analytics.Elements.SurfaceElementArea"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.SurfaceElementBase","Analytics.SurfaceElementBase","Analytics.Elements.SurfaceElementBase"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Disposable","Analytics.Utils.Disposable"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ElementViewModel","Analytics.ElementViewModel","Analytics.Elements.ElementViewModel"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.SerializableModel","Analytics.SerializableModel","Analytics.Elements.SerializableModel"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.CombinedObject","Analytics.Internal.CombinedObject"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.SurfaceSelection","Analytics.Internal.SurfaceSelection"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.SnapLinesCollector","Analytics.Internal.SnapLinesCollector"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.SnapLinesHelper","Analytics.Internal.SnapLinesHelper"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.CopyPasteHandler","Analytics.Internal.CopyPasteHandler"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.SnapLineSurface","Analytics.Internal.SnapLineSurface"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ActionId","Analytics.ActionId","Analytics.Tools.ActionId"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ActionListsBase","Analytics.Internal.ActionListsBase"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ActionLists","Analytics.Internal.ActionLists"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.KeyboardHelper","Analytics.Internal.KeyboardHelper"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.KeyDownHandlersManager","Analytics.Internal.KeyDownHandlersManager"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.TabPanel","Analytics.TabPanel","Analytics.Utils.TabPanel"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.TabInfo","Analytics.TabInfo","Analytics.Utils.TabInfo"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ToolboxItem","Analytics.ToolboxItem","Analytics.Utils.ToolboxItem"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ControlsFactory","Analytics.Utils.ControlsFactory"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.DesignControlsHelper","Analytics.Internal.DesignControlsHelper"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.CssCalculator","Analytics.Internal.CssCalculator"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.FieldListProvider","Analytics.Utils.FieldListProvider","Analytics.Internal.FieldListProvider"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.HoverInfo","Analytics.Internal.HoverInfo"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.InlineTextEdit","Analytics.Internal.InlineTextEdit"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Margins","Analytics.Margins","Analytics.Elements.Margins"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ObjectStructureTreeListController","Analytics.Internal.ObjectStructureTreeListController"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.DataMemberTreeListController","Analytics.Widgets.DataMemberTreeListController","Analytics.Widgets.Internal.DataMemberTreeListController"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ObjectStructureProviderBase","Analytics.Internal.ObjectStructureProviderBase"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ObjectExplorerProvider","Analytics.Internal.ObjectExplorerProvider"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ObjectStructureProvider","Analytics.Internal.ObjectStructureProvider"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Point","Analytics.Point","Analytics.Elements.Point"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Rectangle","Analytics.Rectangle","Analytics.Elements.Rectangle"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Size","Analytics.Size","Analytics.Elements.Size"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.SortedArrayStore","Analytics.Internal.SortedArrayStore"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ControlsStore","Analytics.Internal.ControlsStore"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.dxFieldListPicker","Analytics.Widgets.dxFieldListPicker","Analytics.Widgets.Internal.dxFieldListPicker"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.BaseActionsProvider","Analytics.Internal.BaseActionsProvider"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.createObservableArrayMapCollection","Analytics.Utils.createObservableArrayMapCollection","Analytics.Internal.createObservableArrayMapCollection"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.deserializeChildArray","Analytics.Utils.deserializeChildArray","Analytics.Internal.deserializeChildArray"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getFirstItemByPropertyValue","Analytics.Utils.getFirstItemByPropertyValue","Analytics.Internal.getFirstItemByPropertyValue"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.findFirstItemMatchesCondition","Analytics.Utils.findFirstItemMatchesCondition","Analytics.Internal.findFirstItemMatchesCondition"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.binaryIndexOf","Analytics.Utils.binaryIndexOf","Analytics.Internal.binaryIndexOf"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getEditorType","Analytics.Internal.getEditorType"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getTypeNameFromFullName","Analytics.Internal.getTypeNameFromFullName"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getShortTypeName","Analytics.Internal.getShortTypeName"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getControlFullName","Analytics.Internal.getControlFullName"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getImageClassName","Analytics.Internal.getImageClassName"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getUniqueNameForNamedObjectsArray","Analytics.Internal.getUniqueNameForNamedObjectsArray"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getUniqueName","Analytics.Internal.getUniqueName"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.initGlobalize","Analytics.Internal.initGlobalize"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.NotifyAboutWarning","Analytics.Utils.NotifyAboutWarning","Analytics.Internal.NotifyAboutWarning"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getErrorMessage","Analytics.Utils.getErrorMessage","Analytics.Internal.getErrorMessage"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ShowMessage","Analytics.Utils.ShowMessage","Analytics.Internal.ShowMessage"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.floatFromModel","Analytics.Utils.floatFromModel"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.fromEnum","Analytics.Utils.fromEnum"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.parseBool","Analytics.Utils.parseBool"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.colorFromString","Analytics.Utils.colorFromString"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.saveAsInt","Analytics.Utils.saveAsInt"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.colorToString","Analytics.Utils.colorToString"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer._processError","Analytics.Internal._processError"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.processErrorEvent","Analytics.Internal.processErrorEvent"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.deleteSelection","Analytics.Internal.deleteSelection"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.findNextSelection","Analytics.Internal.findNextSelection"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.findSurface","Analytics.Internal.findSurface"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getControlNewAbsolutePositionOnResize","Analytics.Internal.getControlNewAbsolutePositionOnResize"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getControlRect","Analytics.Internal.getControlRect"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.minHeightWithoutScroll","Analytics.Internal.minHeightWithoutScroll"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.chooseBetterPositionOf","Analytics.Internal.chooseBetterPositionOf"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.updateSurfaceContentSize","Analytics.Internal.updateSurfaceContentSize"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.unitsToPixel","Analytics.Utils.unitsToPixel","Analytics.Internal.unitsToPixel"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.pixelToUnits","Analytics.Utils.pixelToUnits","Analytics.Internal.pixelToUnits"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.createUnitProperty","Analytics.Utils.createUnitProperty","Analytics.Internal.createUnitProperty"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.createUnitProperties","Analytics.Utils.createUnitProperties","Analytics.Internal.createUnitProperties"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.validateName","Analytics.Internal.validateName"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.replaceInvalidSymbols","Analytics.Internal.replaceInvalidSymbols"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.propertiesVisitor","Analytics.Utils.propertiesVisitor","Analytics.Internal.propertiesVisitor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.objectsVisitor","Analytics.Utils.objectsVisitor","Analytics.Internal.objectsVisitor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.collectionsVisitor","Analytics.Utils.collectionsVisitor","Analytics.Internal.collectionsVisitor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.copyObservables","Analytics.Utils.copyObservables","Analytics.Internal.copyObservables"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.compareObjects","Analytics.Utils.compareObjects","Analytics.Internal.compareObjects"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getFullPath","Analytics.Utils.getFullPath","Analytics.Internal.getFullPath"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.loadTemplates","Analytics.Utils.loadTemplates","Analytics.Internal.loadTemplates"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.appendStaticContextToRootViewModel","Analytics.Utils.appendStaticContextToRootViewModel","Analytics.Internal.appendStaticContextToRootViewModel"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.ajax","Analytics.Utils.ajax","Analytics.Internal.ajax"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Internal.ajaxSetup","Analytics.Utils.ajaxSetup"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.checkModelReady","Analytics.Utils.checkModelReady","Analytics.Internal.checkModelReady"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.cutRefs","Analytics.Utils.cutRefs","Analytics.Internal.cutRefs"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.patchPositionByRTL","Analytics.Internal.patchPositionByRTL"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.generateDefaultParts","Analytics.Utils.generateDefaultParts","Analytics.Internal.generateDefaultParts"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.createActionWrappingFunction","Analytics.Utils.createActionWrappingFunction","Analytics.Internal.createActionWrappingFunction"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.createDesigner","Analytics.Utils.createDesigner","Analytics.Internal.createDesigner"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.localizeNoneString","Analytics.Utils.localizeNoneString","Analytics.Internal.localizeNoneString"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.find","Analytics.Utils.find","Analytics.Internal.find"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.copyPasteStrategy","Analytics.Internal.copyPasteStrategy"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.getToolboxItems","Analytics.getToolboxItems","Analytics.Internal.getToolboxItems"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.createObservableReverseArrayMapCollection","Analytics.Utils.createObservableReverseArrayMapCollection","Analytics.Internal.createObservableReverseArrayMapCollection"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.editorTypeMapper","Analytics.Internal.editorTypeMapper"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.NotifyType","Analytics.Utils.NotifyType","Analytics.Internal.NotifyType"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.papperKindMapper","Analytics.Internal.papperKindMapper"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer._errorProcessor","Analytics.Internal._errorProcessor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.nameValidationRules","Analytics.Internal.nameValidationRules"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.sizeFake","Analytics.Internal.sizeFake"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.locationFake","Analytics.Internal.locationFake"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.cssTransform","Analytics.Utils.cssTransform","Analytics.Internal.cssTransform"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.DEBUG","Analytics.Utils.DEBUG","Analytics.Internal.DEBUG"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.DesignerBaseElements","Analytics.Utils.DesignerBaseElements","Analytics.Internal.DesignerBaseElements"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.left","Analytics.left","Analytics.Elements.Metadata.left"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.right","Analytics.right","Analytics.Elements.Metadata.right"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.top","Analytics.top","Analytics.Elements.Metadata.top"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.bottom","Analytics.bottom","Analytics.Elements.Metadata.bottom"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.paddingSerializationsInfo","Analytics.paddingSerializationsInfo","Analytics.Elements.Metadata.paddingSerializationsInfo"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.coreEditorTemplates","Analytics.Widgets.coreEditorTemplates"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Widgets.RequiredNullableEditor","Analytics.Widgets.Internal.RequiredNullableEditor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.createNumericEditor","Analytics.Widgets.createNumericEditor","Analytics.Widgets.Internal.createNumericEditor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.PaddingModel","Analytics.PaddingModel","Analytics.Elements.PaddingModel"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.BordersModel","Analytics.Widgets.BordersModel","Analytics.Internal.BordersModel"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.ControlProperties","Analytics.Widgets.ControlProperties","Analytics.Internal.ControlProperties"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.Group","Analytics.Widgets.Group","Analytics.Internal.Group"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.ColorPickerEditor","Analytics.Widgets.ColorPickerEditor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.DataMemberEditor","Analytics.Widgets.DataMemberEditor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Designer.Widgets.FieldListEditor","Analytics.Widgets.FieldListEditor"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Widgets.dxButtonWithTemplate","Analytics.Internal.dxButtonWithTemplate"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Utils.DesignerContextGeneratorInternal","Analytics.Internal.DesignerContextGeneratorInternal"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Utils.DesignerContextGenerator","Analytics.Internal.DesignerContextGenerator"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Utils.ResizeSettings","Analytics.Internal.ResizeSettings"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Utils.ContextActionsSettings","Analytics.Internal.ContextActionsSettings"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Utils.DragDropSettings","Analytics.Internal.DragDropSettings"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Utils.ControlsHelperSettings","Analytics.Internal.ControlsHelperSettings"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Utils.MenuSettings","Analytics.Internal.MenuSettings"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Utils.SelectionSettings","Analytics.Internal.SelectionSettings"),DevExpress.Analytics.Internal._definePropertyByString(DevExpress,"Analytics.Utils.CommonDesignerGenerator","Analytics.Internal.CommonDesignerGenerator");