/*! * Licensed Materials - Property of IBM * IBM Cognos Products: Moser Client Library * (C) Copyright IBM Corp. 2017, 2022 * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,function(){return function(e){function t(n){if(r[n])return r[n].exports;var a=r[n]={exports:{},id:n,loaded:!1};return e[n].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var r={};return t.m=e,t.c=r,t.p="/dist",t(0)}([function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var r=0;r=0&&this.removeIndexedColumnAt(t)}},{key:"getObjectType",value:function(){return"Index"}},{key:"getFeatureList",value:function(e){var r=[];r.push(this.createFeature(!1,!1,!1,33,"isUnique",null));var n;return e&&(n=e.createIndexIndexedColumn().getClass()),r.push(this.createFeature(!0,!1,!0,34,"indexedColumn",n)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,r){switch(e){case 33:this.setIsUnique(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set",this).call(this,e,r)}}},{key:"_setList",value:function(e,r){switch(e){case 34:this.indexedColumn=r;break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setList",this).call(this,e,r)}}},{key:"get",value:function(e){switch(e){case 33:return this.isIsUnique();case 34:return this.getIndexedColumn();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"get",this).call(this,e)}}},{key:"basicGet",value:function(e){switch(e){case 33:return this.isIsUnique();case 34:return this.basicGetIndexedColumn();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"basicGet",this).call(this,e)}}},{key:"addAt",value:function(e,r,n){switch(e){case 34:this.addIndexedColumnAt(r,n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAt",this).call(this,e,r,n)}}},{key:"add",value:function(e,r){switch(e){case 34:this.addIndexedColumn(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}}},{key:"removeAt",value:function(e,r){switch(e){case 34:this.removeIndexedColumnAt(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeAt",this).call(this,e,r)}}},{key:"remove",value:function(e,r){switch(e){case 34:this.removeIndexedColumn(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this,e,r)}}}],[{key:"fromJSON",value:function(e,t){var r=t.createIndex(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=h,h.IndexedColumn=function(e){function t(){var e,r,n,o;a(this,t);for(var u=arguments.length,l=Array(u),s=0;sr.length&&(l=u.substring(0,u.length-r.length)+n,o.idForExpression=l),void t._updateExpressionForQueryItem(i,e,u,l)}return t._updateMDTVReference(i.basicGetMetadataTreeView(),r,n),e.idForExpression=n,void t._updateExpressionForGlobalCalculationFilter(i,e,r,n)}if("QuerySubject"==a){var i=f.default.getModuleObject(e);if(!i)return;t._updateMDTVReference(i.basicGetMetadataTreeView(),r,n),t._updateRelationshipListReference(i.basicGetRelationship(),r,n),t._updateQuerySubjectListReference(i.basicGetQuerySubject(),r,n);var s=e;return s.idForExpression=n,t.updateIdForExpression(s.basicGetItem(),n),void t._updateExpressionForQuerySubject(i,e,r,n)}if("QueryItem"==a){var s=t.getParentQuerySubject(e),i=f.default.getModuleObject(s);if(!i||!s)return;var c=s.identifier,p=e,u=p.basicGetIdForExpression(),l=null;null!=u&&u.length>r.length&&(l=u.substring(0,u.length-r.length)+n,p.idForExpression=l),t._updateItemNormalization(s.getItemNormalization(),r,n);var h=i.drillGroup;if(null!=l&&h)for(var y=0,d=h,v=d.length;y=0;--l)l!=u&&(o+="."),o+=a[l];e.idForExpression=o}}}}},{key:"isEmptyRef",value:function(e){return null==e||0===e.length||"none"==e||"None"==e||"NONE"==e}},{key:"getAllQueryItemsInItems",value:function(e){var r=[];if(!e)return r;for(var n=0,a=e,i=a.length;n1&&n==g[0]){g[0]=a;for(var b="",_=0;_-1)return!0;var a=e.getJoinOperation();return!!(a&&(n=a.basicGetQueryRef(),n&&n.indexOf(r)>-1))}},{key:"buildSpec",value:function(e,r,n,a,i,o){return"{"+t._wrapQuote("moserFunctionType")+":"+t._wrapQuote("extractIdentifiers")+","+t._buildExpressions(a)+","+t._buildFeedback(e,r,n,i,o)+"}"}},{key:"_buildExpressions",value:function(e){for(var r="",n=0;n0&&(r+=","),r+=t._wrapQuote(e[n]);return t._wrapQuote("expressions")+":["+r+"]"}},{key:"_buildFeedback",value:function(e,r,n,a,i){for(var o="",u=0;u0&&(o+=","),o+="{",o+=t._wrapSlashQuote("idForExpression"),o+=":",o+=t._wrapSlashQuote(i[u]),o+=",",o+=t._wrapSlashQuote("type"),o+=":",o+=t._wrapSlashQuote(a[u]),o+="}";return t._wrapQuote("feedback")+":"+t._wrapQuote("{"+t._wrapSlashQuote("idForExpression")+":"+t._wrapSlashQuote(e)+","+t._wrapSlashQuote("type")+":"+t._wrapSlashQuote(r)+","+t._wrapSlashQuote("newIdentifier")+":"+t._wrapSlashQuote(n)+","+t._wrapSlashQuote("expressions")+":["+o+"]}")}},{key:"_wrapQuote",value:function(e){return'"'+e+'"'}},{key:"_wrapSlashQuote",value:function(e){return'\\"'+e+'\\"'}},{key:"cleanQuerySubjectItemNormalization", value:function(e,t){var r=e.itemNormalization;if(!r)return!1;var n=r.itemNormalizationGroup;if(!n||0==n.length)return!1;if(0==t.length)return e.itemNormalization=null,!0;for(var a=!1,i=[],o=0,u=n,l=u.length;o=0;--b)t.indexOf(d[b].itemRef)>-1||(a=!0,d.splice(b,1));if(y=v?!(t.indexOf(v.itemRef)>-1):!d||0==d.length){a=!0;var _=h.identifier,m=h.parentGroupRef,O=n.indexOf(h);O>=0&&n.splice(O,1);for(var k=0,T=n,I=T.length;k-1&&(O=w.indexOf(_),O>=0&&w.splice(O,1),m))for(var A=0,P=m,R=P.length;A-1||w.push(j)}}}}return 0==n.length&&(a=!0,e.itemNormalization=null),a}},{key:"addQueryItemToItemNormalization",value:function(e,r,n){if((null==r.hidden||!r.hidden)&&e.itemNormalization&&e.itemNormalization.itemNormalizationGroup&&0!=e.itemNormalization.itemNormalizationGroup.length){var a=t._getJSONFunctionDef(r);if(a&&T.default.CALCULATED!=r.regularAggregate){var i=t._getSimplePrimaryKeyGroup(e.itemNormalization.itemNormalizationGroup);if(i){if(r.identifier==i.key.itemRef)return;if(i.attribute)for(var o=0,u=i.attribute,l=u.length;o1)return null;u++,l=n[l[0]].parentGroupRef}if(u!=e.length)return null}return r}},{key:"_getIdsFromPropertyJSONValue",value:function(e,r,n,a){if(!n)return!1;var i=n.basedOnMoserObjectId;if(null!=i&&0!==i.length&&!t._addQueryItemId(e,i,r,a))return!1;var o=n.basedOnMoserObject;if(null!=o&&0!==o.length&&!t._addQueryItemId(e,o,r,a))return!1;var u=n.elementOperands;if(u)for(var l=0,s=u,c=s.length;l=u)return n[0]=!0,a.push(t._generatePart(e,r-1,i)),o;var l=e.codePointAt(o);if(40==l)return n[0]=!1,o;if(46!=l)return n[0]=!0,a.push(t._generatePart(e,r-1,i)),o;var s=t._skipWhiteSpace(e,o+1);if(s>=u)return n[0]=!1,s;var c=e.codePointAt(s);return h.default.isLetter(c)||95==c?(a.push(t._generatePart(e,r-1,i)),t._skipIdentifier(e,s+1,n,a)):(n[0]=!1,s)}},{key:"_skipBracketName",value:function(e,r,n,a){var i=t._skipBracketPart(e,r),o=t._skipWhiteSpace(e,i),u=e.length;if(o>=u)return n[0]=!0,a.push(t._generatePart(e,r-1,i)),o;var l=e.codePointAt(o);if(40==l)return n[0]=!1,o;if(46!=l)return n[0]=!0,a.push(t._generatePart(e,r-1,i)),o;var s=t._skipWhiteSpace(e,o+1);if(s>=u)return n[0]=!1,s;var c=e.codePointAt(s);return 91!=c?(n[0]=!1,s):(a.push(t._generatePart(e,r-1,i)),t._skipBracketName(e,s+1,n,a))}},{key:"_skipWhiteSpace",value:function(e,r){for(var n=e.length,a=r;a=0&&(l+=t._generatePart(r,m,g))}}f=g,b||(l+=t._generatePart(r,y,f))}else if(91==p){var d=[!0],v=[],g=t._skipBracketName(r,f+1,d,v),b=!1;if(d[0]&&0!=v.length){var _=t._matchOp(v,e,s,a,o,!0,n);if(null!=_){l+=_,u=!0,b=!0;var m=t._getWhiteSpace(r,g-1);m>=0&&(l+=t._generatePart(r,m,g))}}f=g,b||(l+=t._generatePart(r,y,f))}else++f,l+=t._generatePart(r,y,f)}return u?l:null}},{key:"_getWhiteSpace",value:function(e,r){for(var n=-1,a=r;a>=0;--a){var i=e.codePointAt(a);if(!t._isWhiteSpace(i))break;n=a}return n}},{key:"_matchOp",value:function(e,r,n,a,i,o,u){return"Calculation"==a?"Calculation"!=r&&"Filter"!=r?null:t._matchGlobalCalcFilter(n,e,i,o):"QuerySubject"==a?"Calculation"!=r&&"Filter"!=r&&"QueryItem"!=r?null:t._matchQuerySubject(n,e,i,o):"QueryItem"==a?"Calculation"!=r&&"Filter"!=r&&"QueryItem"!=r?null:t._matchQueryItem(n,e,i,o,r,u):null}},{key:"_matchGlobalCalcFilter",value:function(e,t,r,n){if(1!=e.length||1!=t.length)return null;var a=t[0];return n&&(a=a.substring(1,a.length-1)),e[0]==a?n?"["+r+"]":r:null}},{key:"_matchQuerySubject",value:function(e,r,n,a){if(1!=e.length||0==r.length)return null;if(1==r.length){var i=r[0];if(a){i=i.substring(1,i.length-1);var o=i.split(new RegExp("\\."));if(o.length>1&&e[0]==o[0])return o[0]=n,"["+t._generateIdFromParts(o,0)+"]"}}else{var o=t._generateParts(r);if(o.length>1)if(a){var u="["+e[0]+"]";if(u==o[0])return o[0]="["+n+"]",t._generateIdFromParts(o,0)}else if(e[0]==o[0])return o[0]=n,t._generateIdFromParts(o,0)}return null}},{key:"_matchQueryItem",value:function(e,r,n,a,i,o){if(e.length<2)return null;if("Calculation"==i||"Filter"==i)return t._matchQueryItemByIdForExpr(e,r,n,a);if("QueryItem"==i){var u=o.split(new RegExp("\\."));if(e[0]!=u[0])return t._matchQueryItemByIdForExpr(e,r,n,a);var l=t._generateParts(r),s=l[0];if(a&&(s=s.substring(1,s.length-1)),e[0]!=s&&t._partsEquals(e,l,a,1)){var c=n.split(new RegExp("\\."));if(a)for(var f=0;f>10)+55296,r=(1023&e)+56320;return String.fromCharCode(t,r)}}]),e}();t.default=l},function(e,t){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r=this._str.length)){var e=this._str.charCodeAt(this._cur++);if(e>=55296&&e<=56319&&this._cur=56320&&t<=57343)return this._cur++,1024*(e-55296)+t-56320+65536}return e}}}]),e}();t.default=a},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r=t[a][0]&&e<=t[a][1])return!0;e>t[a][1]?r=a+1:n=a-1}while(r<=n);return!1}}]),t}(s.default);c.unicodeLetterRange=[[65,90],[97,122],[170,170],[181,181],[186,186],[192,214],[216,246],[248,543],[546,563],[592,685],[688,696],[699,705],[720,721],[736,740],[750,750],[890,890],[902,902],[904,904],[908,908],[910,929],[931,974],[976,983],[986,1011],[1024,1153],[1164,1220],[1223,1224],[1227,1228],[1232,1269],[1272,1273],[1329,1366],[1369,1369],[1377,1415],[1488,1514],[1520,1522],[1569,1594],[1600,1610],[1649,1747],[1749,1749],[1765,1766],[1786,1788],[1808,1808],[1810,1836],[1920,1957],[2309,2361],[2365,2365],[2384,2384],[2392,2401],[2437,2444],[2447,2448],[2451,2472],[2474,2480],[2482,2482],[2486,2489],[2524,2525],[2527,2529],[2544,2545],[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2649,2652],[2654,2654],[2674,2676],[2693,2699],[2701,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2749,2749],[2768,2768],[2784,2784],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2870,2873],[2877,2877],[2908,2909],[2911,2913],[2949,2954],[2958,2960],[2962,2965],[2969,2970],[2972,2972],[2974,2975],[2979,2980],[2984,2986],[2990,2997],[2999,3001],[3077,3084],[3086,3088],[3090,3112],[3114,3123],[3125,3129],[3168,3169],[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3294,3294],[3296,3297],[3333,3340],[3342,3344],[3346,3368],[3370,3385],[3424,3425],[3461,3478],[3482,3505],[3507,3515],[3517,3517],[3520,3526],[3585,3632],[3634,3635],[3648,3654],[3713,3714],[3716,3716],[3719,3720],[3722,3722],[3725,3725],[3732,3735],[3737,3743],[3745,3747],[3749,3749],[3751,3751],[3754,3755],[3757,3760],[3762,3763],[3773,3773],[3776,3780],[3782,3782],[3804,3805],[3840,3840],[3904,3911],[3913,3946],[3976,3979],[4096,4129],[4131,4135],[4137,4138],[4176,4181],[4256,4293],[4304,4342],[4352,4441],[4447,4514],[4520,4601],[4608,4614],[4616,4678],[4680,4680],[4682,4685],[4688,4694],[4696,4696],[4698,4701],[4704,4742],[4744,4744],[4746,4749],[4752,4782],[4784,4784],[4786,4789],[4792,4798],[4800,4800],[4802,4805],[4808,4814],[4816,4822],[4824,4846],[4848,4878],[4880,4880],[4882,4885],[4888,4894],[4896,4934],[4936,4954],[5024,5108],[5121,5740],[5743,5750],[5761,5786],[5792,5866],[6016,6067],[6176,6263],[6272,6312],[7680,7835],[7840,7929],[7936,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],[8025,8025],[8027,8027],[8029,8029],[8031,8061],[8064,8116],[8118,8124],[8126,8126],[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],[8319,8319],[8450,8450],[8455,8455],[8458,8467],[8469,8469],[8473,8477],[8484,8484],[8486,8486],[8488,8488],[8490,8493],[8495,8497],[8499,8505],[12293,12294],[12337,12341],[12353,12436],[12445,12446],[12449,12538],[12540,12542],[12549,12588],[12593,12686],[12704,12727],[13312,19893],[19968,40869],[40960,42124],[44032,55203],[63744,64045],[64256,64262],[64275,64279],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64433],[64467,64829],[64848,64911],[64914,64967],[65008,65019],[65136,65138],[65140,65140],[65142,65276],[65313,65338],[65345,65370],[65382,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500]],c.unicodeDigitRange=[[48,57],[1632,1641],[1776,1785],[2406,2415],[2534,2543],[2662,2671],[2790,2799],[2918,2927],[3047,3055],[3174,3183],[3302,3311],[3430,3439],[3664,3673],[3792,3801],[3872,3881],[4160,4169],[4969,4977],[6112,6121],[6160,6169],[65296,65305]],t.default=c},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r=0&&this.removeFkColumnAt(t)}},{key:"getObjectType",value:function(){return"ForeignKey"}},{key:"getFeatureList",value:function(e){var r,n=[];return e&&(r=e.createForeignKeyFkColumn().getClass()),n.push(this.createFeature(!0,!1,!0,220,"fkColumn",r)),Array.prototype.push.apply(n,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),n}},{key:"set",value:function(e,r){switch(e){default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set",this).call(this,e,r)}}},{key:"_setList",value:function(e,r){switch(e){case 220:this.fkColumn=r;break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setList",this).call(this,e,r)}}},{key:"get",value:function(e){switch(e){case 220:return this.getFkColumn();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"get",this).call(this,e)}}},{key:"basicGet",value:function(e){switch(e){case 220:return this.basicGetFkColumn();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"basicGet",this).call(this,e)}}},{key:"addAt",value:function(e,r,n){switch(e){case 220:this.addFkColumnAt(r,n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAt",this).call(this,e,r,n)}}},{key:"add",value:function(e,r){switch(e){case 220:this.addFkColumn(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}}},{key:"removeAt",value:function(e,r){switch(e){case 220:this.removeFkColumnAt(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeAt",this).call(this,e,r)}}},{key:"remove",value:function(e,r){switch(e){case 220:this.removeFkColumn(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this,e,r)}}}],[{key:"fromJSON",value:function(e,t){var r=t.createForeignKey(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=h,h.FkColumn=function(e){function t(){var e,r,n,o;a(this,t);for(var u=arguments.length,l=Array(u),s=0;s=0&&this.removeRefAt(t)}},{key:"addOriginalRefAt",value:function(e,t){this._addAtAndNotify(this.getOriginalRef(),e,t,60,!1,!1)}},{key:"addOriginalRef",value:function(e){this.addOriginalRefAt(this.getOriginalRef().length,e)}},{key:"removeOriginalRefAt",value:function(e){this._removeAtAndNotify(this.getOriginalRef(),e,60,!1)}},{key:"removeOriginalRef",value:function(e){var t=this.getOriginalRef().indexOf(e);t>=0&&this.removeOriginalRefAt(t)}},{key:"addColumnDependencyAt",value:function(e,t){this._addAtAndNotify(this.getColumnDependency(),e,t,57,!0,!1)}},{key:"addColumnDependency",value:function(e){this.addColumnDependencyAt(this.getColumnDependency().length,e)}},{key:"removeColumnDependencyAt",value:function(e){this._removeAtAndNotify(this.getColumnDependency(),e,57,!0)}},{key:"removeColumnDependency",value:function(e){var t=this.getColumnDependency().indexOf(e);t>=0&&this.removeColumnDependencyAt(t)}},{key:"addQueryItemAt",value:function(e,t){this._addAtAndNotify(this.getQueryItem(),e,t,28,!0,!0)}},{key:"addQueryItem",value:function(e){this.addQueryItemAt(this.getQueryItem().length,e)}},{key:"removeQueryItemAt",value:function(e){this._removeAtAndNotify(this.getQueryItem(),e,28,!0)}},{key:"removeQueryItem",value:function(e){var t=this.getQueryItem().indexOf(e);t>=0&&this.removeQueryItemAt(t)}},{key:"addFilterAt",value:function(e,t){for(var r=this.getFilter(),n=0;n=0&&this.removeFilterAt(t)}},{key:"addItemAt",value:function(e,t){this._addAtAndNotify(this.getItem(),e,t,3,!0,!1);var r=t.getQueryItem();r&&p.default.updatePropertyOverride(r,this,28,!0);var n=t.getItemHierarchy();n&&p.default.updatePropertyOverride(n,this,27,!0);var a=t.getNamedSet();a&&p.default.updatePropertyOverride(a,this,26,!0);var i=t.getFilter();i&&p.default.updatePropertyOverride(i,this,24,!0)}},{key:"addItem",value:function(e){this.addItemAt(this.getItem().length,e)}},{key:"removeItemAt",value:function(e){this._removeAtAndNotify(this.getItem(),e,3,!0)}},{key:"removeItem",value:function(e){var t=this.getItem().indexOf(e);t>=0&&this.removeItemAt(t)}},{key:"addSecurityFilterAt",value:function(e,t){this._addAtAndNotify(this.getSecurityFilter(),e,t,44,!0,!0)}},{key:"addSecurityFilter",value:function(e){this.addSecurityFilterAt(this.getSecurityFilter().length,e)}},{key:"removeSecurityFilterAt",value:function(e){this._removeAtAndNotify(this.getSecurityFilter(),e,44,!0)}},{key:"removeSecurityFilter",value:function(e){var t=this.getSecurityFilter().indexOf(e);t>=0&&this.removeSecurityFilterAt(t)}},{key:"getObjectType",value:function(){return"QuerySubject"}},{key:"getFeatureList",value:function(e){var r=[];r.push(this.createFeature(!0,!1,!1,36,"ref",null)),r.push(this.createFeature(!0,!1,!1,60,"originalRef",null)),r.push(this.createFeature(!1,!0,!1,58,"instanceType",y.default)),r.push(this.createFeature(!1,!0,!1,45,"generateSQL",v.default)),r.push(this.createFeature(!1,!1,!1,51,"useInJoinPath",null)),r.push(this.createFeature(!1,!1,!1,61,"numberOfRows",null)),r.push(this.createFeature(!1,!1,!1,53,"rowCount",null)),r.push(this.createFeature(!1,!0,!1,49,"querySubjectUsage",b.default)),r.push(this.createFeature(!1,!1,!1,55,"useLocalCache",null)),r.push(this.createFeature(!1,!0,!1,50,"selectListControl",m.default));var n;return e&&(n=e.createQuerySubjectColumnDependency().getClass()),r.push(this.createFeature(!0,!1,!0,57,"columnDependency",n)),e&&(n=e.createQueryItem().getClass()),r.push(this.createFeature(!0,!1,!0,28,"queryItem",n)),e&&(n=e.createFilter().getClass()),r.push(this.createFeature(!0,!1,!0,24,"filter",n)),e&&(n=e.createSqlQueryType().getClass()),r.push(this.createFeature(!1,!1,!0,56,"sqlQuery",n)),e&&(n=e.createQuerySubjectQueryOperation().getClass()),r.push(this.createFeature(!1,!1,!0,47,"queryOperation",n)),e&&(n=e.createQuerySubjectJoinOperation().getClass()),r.push(this.createFeature(!1,!1,!0,59,"joinOperation",n)),r.push(this.createFeature(!1,!0,!1,46,"sourceCategory",k.default)),e&&(n=e.createSortListType().getClass()),r.push(this.createFeature(!1,!1,!0,18,"sortList",n)),e&&(n=e.createItemType().getClass()),r.push(this.createFeature(!0,!1,!0,3,"item",n)),r.push(this.createFeature(!1,!0,!1,52,"classifier",I.default)),r.push(this.createFeature(!1,!1,!1,62,"dataCacheExpiry",null)),e&&(n=e.createItemNormalizationType().getClass()),r.push(this.createFeature(!1,!1,!0,54,"itemNormalization",n)),r.push(this.createFeature(!1,!1,!1,48,"shortcutTargetQuerySubjectRef",null)),e&&(n=e.createSecurityFilter().getClass()),r.push(this.createFeature(!0,!1,!0,44,"securityFilter",n)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,r){switch(e){case 45:this.setGenerateSQL(r);break;case 46:this.setSourceCategory(r);break;case 47:this.setQueryOperation(r);break;case 48:this.setShortcutTargetQuerySubjectRef(r);break;case 49:this.setQuerySubjectUsage(r);break;case 50:this.setSelectListControl(r);break;case 51:this.setUseInJoinPath(r);break;case 18:this.setSortList(r);break;case 52:this.setClassifier(r);break;case 53:this.setRowCount(r);break;case 54:this.setItemNormalization(r);break;case 55:this.setUseLocalCache(r);break;case 56:this.setSqlQuery(r);break;case 58:this.setInstanceType(r);break;case 59:this.setJoinOperation(r);break;case 61:this.setNumberOfRows(r);break;case 62:this.setDataCacheExpiry(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set",this).call(this,e,r)}}},{key:"_setList",value:function(e,r){switch(e){case 44:this.securityFilter=r;break;case 36:this.ref=r;break;case 3:this.item=r;break;case 57:this.columnDependency=r;break;case 24:this.filter=r;break;case 28:this.queryItem=r;break;case 60:this.originalRef=r;break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setList",this).call(this,e,r)}}},{key:"get",value:function(e){switch(e){case 44:return this.getSecurityFilter();case 45:return this.getGenerateSQL();case 46:return this.getSourceCategory();case 47:return this.getQueryOperation();case 48:return this.getShortcutTargetQuerySubjectRef();case 36:return this.getRef();case 49:return this.getQuerySubjectUsage();case 50:return this.getSelectListControl();case 51:return this.isUseInJoinPath();case 18:return this.getSortList();case 52:return this.getClassifier();case 53:return this.getRowCount();case 54:return this.getItemNormalization();case 3:return this.getItem();case 55:return this.isUseLocalCache();case 56:return this.getSqlQuery();case 57:return this.getColumnDependency();case 58:return this.getInstanceType();case 59:return this.getJoinOperation();case 24:return this.getFilter();case 28:return this.getQueryItem();case 60:return this.getOriginalRef();case 61:return this.getNumberOfRows();case 62:return this.getDataCacheExpiry();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"get",this).call(this,e)}}},{key:"basicGet",value:function(e){switch(e){case 44:return this.basicGetSecurityFilter();case 45:return this.getGenerateSQL();case 46:return this.getSourceCategory();case 47:return this.getQueryOperation();case 48:return this.getShortcutTargetQuerySubjectRef();case 36:return this.basicGetRef();case 49:return this.getQuerySubjectUsage();case 50:return this.getSelectListControl();case 51:return this.isUseInJoinPath();case 18:return this.getSortList();case 52:return this.getClassifier();case 53:return this.getRowCount();case 54:return this.getItemNormalization();case 3:return this.basicGetItem();case 55:return this.isUseLocalCache();case 56:return this.getSqlQuery();case 57:return this.basicGetColumnDependency();case 58:return this.getInstanceType();case 59:return this.getJoinOperation();case 24:return this.basicGetFilter();case 28:return this.basicGetQueryItem();case 60:return this.basicGetOriginalRef();case 61:return this.getNumberOfRows();case 62:return this.getDataCacheExpiry();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"basicGet",this).call(this,e)}}},{key:"addAt",value:function(e,r,n){switch(e){case 44:this.addSecurityFilterAt(r,n);break;case 36:this.addRefAt(r,n);break;case 3:this.addItemAt(r,n);break;case 57:this.addColumnDependencyAt(r,n);break;case 24:this.addFilterAt(r,n);break;case 28:this.addQueryItemAt(r,n);break;case 60:this.addOriginalRefAt(r,n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAt",this).call(this,e,r,n)}}},{key:"add",value:function(e,r){switch(e){case 44:this.addSecurityFilter(r);break;case 36:this.addRef(r);break;case 3:this.addItem(r);break;case 57:this.addColumnDependency(r);break;case 24:this.addFilter(r);break;case 28:this.addQueryItem(r);break;case 60:this.addOriginalRef(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}}},{key:"removeAt",value:function(e,r){switch(e){case 44:this.removeSecurityFilterAt(r);break;case 36:this.removeRefAt(r);break;case 3:this.removeItemAt(r);break;case 57:this.removeColumnDependencyAt(r);break;case 24:this.removeFilterAt(r);break;case 28:this.removeQueryItemAt(r);break;case 60:this.removeOriginalRefAt(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeAt",this).call(this,e,r)}}},{key:"remove",value:function(e,r){switch(e){case 44:this.removeSecurityFilter(r);break;case 36:this.removeRef(r);break;case 3:this.removeItem(r);break;case 57:this.removeColumnDependency(r);break;case 24:this.removeFilter(r);break;case 28:this.removeQueryItem(r);break;case 60:this.removeOriginalRef(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this,e,r)}}}],[{key:"fromJSON",value:function(e,t){var r=t.createQuerySubject(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t), r}}]),t}(c.default);t.default=R,R.ColumnDependency=function(e){function t(){var e,r,n,o;a(this,t);for(var u=arguments.length,l=Array(u),s=0;s=0&&this.removeKeyRefAt(t)}},{key:"getObjectType",value:function(){return"ColumnDependency"}},{key:"getFeatureList",value:function(e){var r=[];return r.push(this.createFeature(!1,!1,!1,36,"ref",null)),r.push(this.createFeature(!0,!1,!1,37,"keyRef",null)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,t){switch(e){case 36:this.setRef(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"_setList",value:function(e,t){switch(e){case 37:this.keyRef=t;break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"get",value:function(e){switch(e){case 36:return this.getRef();case 37:return this.getKeyRef();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"basicGet",value:function(e){switch(e){case 36:return this.getRef();case 37:return this.basicGetKeyRef();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"addAt",value:function(e,t,r){switch(e){case 37:this.addKeyRefAt(t,r);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"add",value:function(e,t){switch(e){case 37:this.addKeyRef(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"removeAt",value:function(e,t){switch(e){case 37:this.removeKeyRefAt(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"remove",value:function(e,t){switch(e){case 37:this.removeKeyRef(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"setReferencedObject",value:function(e){this._referencedObject=e}},{key:"getReferencedObject",value:function(){return this._referencedObject}},{key:"clone",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clone",this).call(this);return e.setReferencedObject(this._referencedObject),e}}],[{key:"fromJSON",value:function(e,t){var r=t.createQuerySubjectColumnDependency(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t),r}}]),t}(p.default),R.JoinOperation=function(e){function t(){var e,r,n,o;a(this,t);for(var u=arguments.length,l=Array(u),s=0;s=0&&this.removeQueryRefAt(t)}},{key:"addRelationshipAt",value:function(e,t){this._addAtAndNotify(this.getRelationship(),e,t,133,!0,!0)}},{key:"addRelationship",value:function(e){this.addRelationshipAt(this.getRelationship().length,e)}},{key:"removeRelationshipAt",value:function(e){this._removeAtAndNotify(this.getRelationship(),e,133,!0)}},{key:"removeRelationship",value:function(e){var t=this.getRelationship().indexOf(e);t>=0&&this.removeRelationshipAt(t)}},{key:"getObjectType",value:function(){return"JoinOperation"}},{key:"getFeatureList",value:function(e){var r=[];r.push(this.createFeature(!0,!1,!1,187,"queryRef",null));var n;return e&&(n=e.createRelationship().getClass()),r.push(this.createFeature(!0,!1,!0,133,"relationship",n)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,t){switch(e){default:throw new Error("The feature "+e+" is not valid.")}}},{key:"_setList",value:function(e,t){switch(e){case 133:this.relationship=t;break;case 187:this.queryRef=t;break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"get",value:function(e){switch(e){case 133:return this.getRelationship();case 187:return this.getQueryRef();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"basicGet",value:function(e){switch(e){case 133:return this.basicGetRelationship();case 187:return this.basicGetQueryRef();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"addAt",value:function(e,t,r){switch(e){case 133:this.addRelationshipAt(t,r);break;case 187:this.addQueryRefAt(t,r);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"add",value:function(e,t){switch(e){case 133:this.addRelationship(t);break;case 187:this.addQueryRef(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"removeAt",value:function(e,t){switch(e){case 133:this.removeRelationshipAt(t);break;case 187:this.removeQueryRefAt(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"remove",value:function(e,t){switch(e){case 133:this.removeRelationship(t);break;case 187:this.removeQueryRef(t);break;default:throw new Error("The feature "+e+" is not valid.")}}}],[{key:"fromJSON",value:function(e,t){var r=t.createQuerySubjectJoinOperation(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t),r}}]),t}(p.default),R.QueryOperation=function(e){function t(){var e,r,n,o;a(this,t);for(var u=arguments.length,l=Array(u),s=0;s=0&&this.removeQueryRefAt(t)}},{key:"getObjectType",value:function(){return"QueryOperation"}},{key:"getFeatureList",value:function(e){var r=[];return r.push(this.createFeature(!0,!1,!1,187,"queryRef",null)),r.push(this.createFeature(!1,!0,!1,185,"setOperation",w.default)),r.push(this.createFeature(!1,!0,!1,186,"duplicates",P.default)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,t){switch(e){case 185:this.setSetOperation(t);break;case 186:this.setDuplicates(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"_setList",value:function(e,t){switch(e){case 187:this.queryRef=t;break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"get",value:function(e){switch(e){case 185:return this.getSetOperation();case 186:return this.getDuplicates();case 187:return this.getQueryRef();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"basicGet",value:function(e){switch(e){case 185:return this.getSetOperation();case 186:return this.getDuplicates();case 187:return this.basicGetQueryRef();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"addAt",value:function(e,t,r){switch(e){case 187:this.addQueryRefAt(t,r);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"add",value:function(e,t){switch(e){case 187:this.addQueryRef(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"removeAt",value:function(e,t){switch(e){case 187:this.removeQueryRefAt(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"remove",value:function(e,t){switch(e){case 187:this.removeQueryRef(t);break;default:throw new Error("The feature "+e+" is not valid.")}}}],[{key:"fromJSON",value:function(e,t){var r=t.createQuerySubjectQueryOperation(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t),r}}]),t}(p.default)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r-1)return!0;if(this.propertyOverride.indexOf("NEW")>-1)return!1}for(var e=this._parent;e;){if("QuerySubject"==e.getObjectType()||"Folder"==e.getObjectType()||"FolderType"==e.getObjectType()){var t=e.basicGetPropertyOverride();if(t){if(t.indexOf("Imported")>-1)return!0;if(t.indexOf("NEW")>-1)return!1}}e=e.getParent()}return!1}},{key:"addPropertyAt",value:function(e,t){this._addAtAndNotify(this.getProperty(),e,t,87,!0,!1),v.default.propertyOverrideForPropertyType(this,t)}},{key:"addProperty",value:function(e){this.addPropertyAt(this.getProperty().length,e)}},{key:"removePropertyAt",value:function(e){this._removeAtAndNotify(this.getProperty(),e,87,!0)}},{key:"removeProperty",value:function(e){var t=this.getProperty().indexOf(e);t>=0&&this.removePropertyAt(t)}},{key:"addPropertyOverrideAt",value:function(e,t){for(var r=this.getPropertyOverride(),n=0;n=0&&this.removePropertyOverrideAt(t)}},{key:"getObjectType",value:function(){return"ObjectType"}},{key:"getFeatureList",value:function(e){var r=[];r.push(this.createFeature(!1,!1,!1,38,"identifier",null)),r.push(this.createFeature(!1,!1,!1,7,"description",null)),r.push(this.createFeature(!1,!1,!1,169,"label",null)),r.push(this.createFeature(!1,!1,!1,168,"comment",null)),r.push(this.createFeature(!1,!1,!1,170,"screenTip",null)),r.push(this.createFeature(!1,!1,!1,8,"hidden",null));var n;return e&&(n=e.createPropertyType().getClass()),r.push(this.createFeature(!0,!1,!0,87,"property",n)),r.push(this.createFeature(!0,!1,!1,166,"propertyOverride",null)),r.push(this.createFeature(!1,!0,!1,167,"editMode",b.default)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,r){switch(e){case 38:this.setIdentifier(r);break;case 8:this.setHidden(r);break;case 167:this.setEditMode(r);break;case 7:this.setDescription(r);break;case 168:this.setComment(r);break;case 169:this.setLabel(r);break;case 170:this.setScreenTip(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set",this).call(this,e,r)}}},{key:"_setList",value:function(e,r){switch(e){case 166:this.propertyOverride=r;break;case 87:this.property=r;break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setList",this).call(this,e,r)}}},{key:"get",value:function(e){switch(e){case 38:return this.getIdentifier();case 166:return this.getPropertyOverride();case 8:return this.isHidden();case 167:return this.getEditMode();case 87:return this.getProperty();case 7:return this.getDescription();case 168:return this.getComment();case 169:return this.getLabel();case 170:return this.getScreenTip();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"get",this).call(this,e)}}},{key:"basicGet",value:function(e){switch(e){case 38:return this.getIdentifier();case 166:return this.basicGetPropertyOverride();case 8:return this.isHidden();case 167:return this.getEditMode();case 87:return this.basicGetProperty();case 7:return this.getDescription();case 168:return this.getComment();case 169:return this.getLabel();case 170:return this.getScreenTip();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"basicGet",this).call(this,e)}}},{key:"addAt",value:function(e,r,n){switch(e){case 166:this.addPropertyOverrideAt(r,n);break;case 87:this.addPropertyAt(r,n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAt",this).call(this,e,r,n)}}},{key:"add",value:function(e,r){switch(e){case 166:this.addPropertyOverride(r);break;case 87:this.addProperty(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}}},{key:"removeAt",value:function(e,r){switch(e){case 166:this.removePropertyOverrideAt(r);break;case 87:this.removePropertyAt(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeAt",this).call(this,e,r)}}},{key:"remove",value:function(e,r){switch(e){case 166:this.removePropertyOverride(r);break;case 87:this.removeProperty(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this,e,r)}}}],[{key:"fromJSON",value:function(e,t){var r=t.createObjectType(),n=r.getFeatureList(t);return y.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=_},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r=0;--a){var i=e[a],o=i.getQueryItem();if(o&&o.getIdentifier()==n){e.splice(a,1);break}if(i.getFolder()){t._removeQueryItem$0(i.getFolder().basicGetItem(),r);var u=i.getFolder().basicGetItem();u&&0!=u.length||e.splice(a,1)}}}},{key:"removeQueryItem$1",value:function(e,r){t._removeQueryItem$0(e.basicGetItem(),r)}},{key:"getMeasures$0",value:function(e){var r=[];if(!e)return r;for(var n=0,a=e,i=a.length;n=0&&this.removeCmSearchPathAt(t)}},{key:"getObjectType",value:function(){return"SecurityObject"}},{key:"getFeatureList",value:function(e){var r=[];return r.push(this.createFeature(!1,!1,!1,210,"displayPath",null)),r.push(this.createFeature(!0,!1,!1,209,"cmSearchPath",null)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,t){switch(e){case 210:this.setDisplayPath(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"_setList",value:function(e,t){switch(e){case 209:this.cmSearchPath=t;break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"get",value:function(e){switch(e){case 209:return this.getCmSearchPath();case 210:return this.getDisplayPath();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"basicGet",value:function(e){switch(e){case 209:return this.basicGetCmSearchPath();case 210:return this.getDisplayPath();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"addAt",value:function(e,t,r){switch(e){case 209:this.addCmSearchPathAt(t,r);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"add",value:function(e,t){switch(e){case 209:this.addCmSearchPath(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"removeAt",value:function(e,t){switch(e){case 209:this.removeCmSearchPathAt(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"remove",value:function(e,t){switch(e){case 209:this.removeCmSearchPath(t);break;default:throw new Error("The feature "+e+" is not valid.")}}}],[{key:"fromJSON",value:function(e,t){var r=t.createSecurityFilterSecurityObject(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t),r}}]),t}(p.default)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r=0&&this.removeLinkAt(t)}},{key:"getObjectType",value:function(){return"Relationship"}},{key:"getFeatureList",value:function(e){var r=[];r.push(this.createFeature(!1,!1,!1,36,"ref",null)),r.push(this.createFeature(!1,!0,!1,58,"instanceType",y.default));var n;return e&&(n=e.createCardinalityType().getClass()),r.push(this.createFeature(!1,!1,!0,232,"left",n)),e&&(n=e.createCardinalityType().getClass()),r.push(this.createFeature(!1,!1,!0,234,"right",n)),r.push(this.createFeature(!1,!1,!1,43,"expression",null)),e&&(n=e.createRelationshipLink().getClass()),r.push(this.createFeature(!0,!1,!0,233,"link",n)),r.push(this.createFeature(!1,!0,!1,235,"joinFilterType",v.default)),r.push(this.createFeature(!1,!1,!1,236,"shortcutTargetRelationshipRef",null)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,r){switch(e){case 36:this.setRef(r);break;case 43:this.setExpression(r);break;case 232:this.setLeft(r);break;case 58:this.setInstanceType(r);break;case 234:this.setRight(r);break;case 235:this.setJoinFilterType(r);break;case 236:this.setShortcutTargetRelationshipRef(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set",this).call(this,e,r)}}},{key:"_setList",value:function(e,r){switch(e){case 233:this.link=r;break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setList",this).call(this,e,r)}}},{key:"get",value:function(e){switch(e){case 36:return this.getRef();case 43:return this.getExpression();case 232:return this.getLeft();case 58:return this.getInstanceType();case 233:return this.getLink();case 234:return this.getRight();case 235:return this.getJoinFilterType();case 236:return this.getShortcutTargetRelationshipRef();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"get",this).call(this,e)}}},{key:"basicGet",value:function(e){switch(e){case 36:return this.getRef();case 43:return this.getExpression();case 232:return this.getLeft();case 58:return this.getInstanceType();case 233:return this.basicGetLink();case 234:return this.getRight();case 235:return this.getJoinFilterType();case 236:return this.getShortcutTargetRelationshipRef();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"basicGet",this).call(this,e)}}},{key:"addAt",value:function(e,r,n){switch(e){case 233:this.addLinkAt(r,n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAt",this).call(this,e,r,n)}}},{key:"add",value:function(e,r){switch(e){case 233:this.addLink(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}}},{key:"removeAt",value:function(e,r){switch(e){case 233:this.removeLinkAt(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeAt",this).call(this,e,r)}}},{key:"remove",value:function(e,r){switch(e){case 233:this.removeLink(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this,e,r)}}},{key:"setReferencedObject",value:function(e){this._referencedObject=e}},{key:"getReferencedObject",value:function(){return this._referencedObject}},{key:"clone",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clone",this).call(this);return e.setReferencedObject(this._referencedObject),e}}],[{key:"fromJSON",value:function(e,t){var r=t.createRelationship(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=O,O.Link=function(e){function t(){var e,r,n,o;a(this,t);for(var u=arguments.length,l=Array(u),s=0;s-1&&(n=n.substring(i+1),e.setRef(n))}var o=t._getQueryItemById(n,r);if(!o){var u=t._getDefLinkByIdForExpression(n,r,!0);if(u){var l=u.getReferencedObject();l instanceof f.default&&(o=t.getQueryItemByIdAndQuerySubject(n,l,!0))}}e.setReferencedObject(o)}}},{key:"getFlattenedQuerySubjectList",value:function(e){var r=[];if(!e)return r;var n=t._getFlattenedBaseObjectTypeList(e);if(n)for(var a=0,i=n,o=i.length;a0){var i=t._getQuerySubjectById(a,r),o=t.getSecondPart(e);i&&null!=o&&o.length>0&&(n=t.getQueryItemByIdAndQuerySubject(o,i,!1))}return n}},{key:"getQueryItemListByIdExprListAndQuerySubject",value:function(e,r,n){var a=[];if(!r||!e||0==e.length)return a;var i={},o=r.basicGetItem();if(!o||0==o.length)return a;t._collectObjectByIdInItemList(o,i,n);for(var u=0,l=e,s=l.length;u[")>0}},{key:"getMoserObjectByIdForExpression",value:function(e,r){var n,a=r.basicGetMetadataTreeView();if(a)for(var i=0,o=a,u=o.length;i=0&&this.removeTaxonomyAt(t)}},{key:"addSplitDefinitionAt",value:function(e,t){this._addAtAndNotify(this.getSplitDefinition(),e,t,248,!0,!1)}},{key:"addSplitDefinition",value:function(e){this.addSplitDefinitionAt(this.getSplitDefinition().length,e)}},{key:"removeSplitDefinitionAt",value:function(e){this._removeAtAndNotify(this.getSplitDefinition(),e,248,!0)}},{key:"removeSplitDefinition",value:function(e){var t=this.getSplitDefinition().indexOf(e);t>=0&&this.removeSplitDefinitionAt(t)}},{key:"addItemAt",value:function(e,t){this._addAtAndNotify(this.getItem(),e,t,3,!0,!1);var r=t.getQueryItem();r&&p.default.updatePropertyOverride(r,this,28,!0);var n=t.getItemHierarchy();n&&p.default.updatePropertyOverride(n,this,27,!0);var a=t.getNamedSet();a&&p.default.updatePropertyOverride(a,this,26,!0);var i=t.getFilter();i&&p.default.updatePropertyOverride(i,this,24,!0)}},{key:"addItem",value:function(e){this.addItemAt(this.getItem().length,e)}},{key:"removeItemAt",value:function(e){this._removeAtAndNotify(this.getItem(),e,3,!0)}},{key:"removeItem",value:function(e){var t=this.getItem().indexOf(e);t>=0&&this.removeItemAt(t)}},{key:"getObjectType",value:function(){return"BaseQueryItemType"}},{key:"getFeatureList",value:function(e){var r=[];r.push(this.createFeature(!1,!1,!1,43,"expression",null)),r.push(this.createFeature(!1,!1,!1,36,"ref",null)),r.push(this.createFeature(!1,!0,!1,58,"instanceType",y.default)),r.push(this.createFeature(!1,!0,!1,77,"usage",v.default)),r.push(this.createFeature(!1,!1,!1,245,"format",null)),r.push(this.createFeature(!1,!1,!1,64,"datatype",null)),r.push(this.createFeature(!1,!1,!1,74,"nullable",null)),r.push(this.createFeature(!1,!0,!1,78,"regularAggregate",b.default)),r.push(this.createFeature(!1,!1,!1,250,"datatypeCategory",null)),r.push(this.createFeature(!1,!0,!1,75,"highlevelDatatype",m.default));var n;return e&&(n=e.createFacetType().getClass()),r.push(this.createFeature(!1,!1,!0,249,"facetDefinition",n)),e&&(n=e.createTaxonomyType().getClass()),r.push(this.createFeature(!0,!1,!0,246,"taxonomy",n)),e&&(n=e.createSplitType().getClass()),r.push(this.createFeature(!0,!1,!0,248,"splitDefinition",n)),r.push(this.createFeature(!1,!0,!1,46,"sourceCategory",k.default)),e&&(n=e.createItemType().getClass()),r.push(this.createFeature(!0,!1,!0,3,"item",n)),r.push(this.createFeature(!1,!0,!1,247,"aggregateMode",I.default)),r.push(this.createFeature(!1,!0,!1,244,"role",w.default)),e&&(n=e.createPromptInfoType().getClass()),r.push(this.createFeature(!1,!1,!0,251,"promptInfo",n)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,r){switch(e){case 43:this.setExpression(r);break;case 244:this.setRole(r);break;case 74:this.setNullable(r);break;case 46:this.setSourceCategory(r);break;case 75:this.setHighlevelDatatype(r);break;case 58:this.setInstanceType(r);break;case 77:this.setUsage(r);break;case 245:this.setFormat(r);break;case 247:this.setAggregateMode(r);break;case 36:this.setRef(r);break;case 64:this.setDatatype(r);break;case 78:this.setRegularAggregate(r);break;case 249:this.setFacetDefinition(r);break;case 250:this.setDatatypeCategory(r);break;case 251:this.setPromptInfo(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set",this).call(this,e,r)}}},{key:"_setList",value:function(e,r){switch(e){case 3:this.item=r;break;case 246:this.taxonomy=r;break;case 248:this.splitDefinition=r;break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setList",this).call(this,e,r)}}},{key:"get",value:function(e){switch(e){case 3:return this.getItem();case 43:return this.getExpression();case 244:return this.getRole();case 74:return this.isNullable();case 46:return this.getSourceCategory();case 75:return this.getHighlevelDatatype();case 58:return this.getInstanceType();case 77:return this.getUsage();case 245:return this.getFormat();case 246:return this.getTaxonomy();case 247:return this.getAggregateMode();case 36:return this.getRef();case 64:return this.getDatatype();case 248:return this.getSplitDefinition();case 78:return this.getRegularAggregate();case 249:return this.getFacetDefinition();case 250:return this.getDatatypeCategory();case 251:return this.getPromptInfo();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"get",this).call(this,e)}}},{key:"basicGet",value:function(e){switch(e){case 3:return this.basicGetItem();case 43:return this.getExpression();case 244:return this.getRole();case 74:return this.isNullable();case 46:return this.getSourceCategory();case 75:return this.getHighlevelDatatype();case 58:return this.getInstanceType();case 77:return this.getUsage();case 245:return this.getFormat();case 246:return this.basicGetTaxonomy();case 247:return this.getAggregateMode();case 36:return this.getRef();case 64:return this.getDatatype();case 248:return this.basicGetSplitDefinition();case 78:return this.getRegularAggregate();case 249:return this.getFacetDefinition();case 250:return this.getDatatypeCategory();case 251:return this.getPromptInfo();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"basicGet",this).call(this,e)}}},{key:"addAt",value:function(e,r,n){switch(e){case 3:this.addItemAt(r,n);break;case 246:this.addTaxonomyAt(r,n);break;case 248:this.addSplitDefinitionAt(r,n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAt",this).call(this,e,r,n)}}},{key:"add",value:function(e,r){switch(e){case 3:this.addItem(r);break;case 246:this.addTaxonomy(r);break;case 248:this.addSplitDefinition(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}}},{key:"removeAt",value:function(e,r){switch(e){case 3:this.removeItemAt(r);break;case 246:this.removeTaxonomyAt(r);break;case 248:this.removeSplitDefinitionAt(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeAt",this).call(this,e,r)}}},{key:"remove",value:function(e,r){switch(e){case 3:this.removeItem(r);break;case 246:this.removeTaxonomy(r);break;case 248:this.removeSplitDefinition(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this,e,r)}}},{key:"setReferencedObject",value:function(e){this._referencedObject=e}},{key:"getReferencedObject",value:function(){return this._referencedObject}},{key:"clone",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clone",this).call(this);return e.setReferencedObject(this._referencedObject),e}}]),t}(c.default);t.default=A},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r=0&&this.removeParameterMapEntryAt(t)}},{key:"getObjectType",value:function(){return"ParameterMap"}},{key:"getFeatureList",value:function(e){var r=[];r.push(this.createFeature(!1,!1,!1,94,"defaultValue",null)),r.push(this.createFeature(!1,!1,!1,92,"freshness",null)),r.push(this.createFeature(!1,!1,!1,90,"loadAsNeeded",null));var n;return e&&(n=e.createParameterMapParameterMapEntry().getClass()),r.push(this.createFeature(!0,!1,!0,91,"parameterMapEntry",n)),e&&(n=e.createParameterMapQueryItemMap().getClass()),r.push(this.createFeature(!1,!1,!0,93,"queryItemMap",n)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,r){switch(e){case 90:this.setLoadAsNeeded(r);break;case 92:this.setFreshness(r);break;case 93:this.setQueryItemMap(r);break;case 94:this.setDefaultValue(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set",this).call(this,e,r)}}},{key:"_setList",value:function(e,r){switch(e){case 91:this.parameterMapEntry=r;break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setList",this).call(this,e,r)}}},{key:"get",value:function(e){switch(e){case 90:return this.isLoadAsNeeded();case 91:return this.getParameterMapEntry();case 92:return this.getFreshness();case 93:return this.getQueryItemMap();case 94:return this.getDefaultValue();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"get",this).call(this,e)}}},{key:"basicGet",value:function(e){switch(e){case 90:return this.isLoadAsNeeded();case 91:return this.basicGetParameterMapEntry();case 92:return this.getFreshness();case 93:return this.getQueryItemMap();case 94:return this.getDefaultValue();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"basicGet",this).call(this,e)}}},{key:"addAt",value:function(e,r,n){switch(e){case 91:this.addParameterMapEntryAt(r,n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAt",this).call(this,e,r,n)}}},{key:"add",value:function(e,r){switch(e){case 91:this.addParameterMapEntry(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}}},{key:"removeAt",value:function(e,r){switch(e){case 91:this.removeParameterMapEntryAt(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeAt",this).call(this,e,r)}}},{key:"remove",value:function(e,r){switch(e){case 91:this.removeParameterMapEntry(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this,e,r)}}}],[{key:"fromJSON",value:function(e,t){var r=t.createParameterMap(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=h,h.ParameterMapEntry=function(e){function t(){var e,r,n,o;a(this,t);for(var u=arguments.length,l=Array(u),s=0;s=0&&this.removeSegmentAt(t)}},{key:"getObjectType",value:function(){return"DrillGroup"}},{key:"getFeatureList",value:function(e){var r,n=[];return e&&(r=e.createDrillGroupSegment().getClass()),n.push(this.createFeature(!0,!1,!0,203,"segment",r)),Array.prototype.push.apply(n,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),n}},{key:"set",value:function(e,r){switch(e){default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set",this).call(this,e,r)}}},{key:"_setList",value:function(e,r){switch(e){case 203:this.segment=r;break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setList",this).call(this,e,r)}}},{key:"get",value:function(e){switch(e){case 203:return this.getSegment();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"get",this).call(this,e)}}},{key:"basicGet",value:function(e){switch(e){case 203:return this.basicGetSegment();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"basicGet",this).call(this,e)}}},{key:"addAt",value:function(e,r,n){switch(e){case 203:this.addSegmentAt(r,n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAt",this).call(this,e,r,n)}}},{key:"add",value:function(e,r){switch(e){case 203:this.addSegment(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}}},{key:"removeAt",value:function(e,r){switch(e){case 203:this.removeSegmentAt(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeAt",this).call(this,e,r)}}},{key:"remove",value:function(e,r){switch(e){case 203:this.removeSegment(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this,e,r)}}}],[{key:"fromJSON",value:function(e,t){var r=t.createDrillGroup(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=d,d.Segment=function(e){function t(){var e,r,n,o;a(this,t);for(var u=arguments.length,l=Array(u),s=0;s=0&&this.removeUseAt(t)}},{key:"addUseSpecAt",value:function(e,t){this._addAtAndNotify(this.getUseSpec(),e,t,132,!0,!1)}},{key:"addUseSpec",value:function(e){this.addUseSpecAt(this.getUseSpec().length,e)}},{key:"removeUseSpecAt",value:function(e){this._removeAtAndNotify(this.getUseSpec(),e,132,!0)}},{key:"removeUseSpec",value:function(e){var t=this.getUseSpec().indexOf(e);t>=0&&this.removeUseSpecAt(t)}},{key:"addDataSourceAt",value:function(e,t){this._addAtAndNotify(this.getDataSource(),e,t,144,!0,!1)}},{key:"addDataSource",value:function(e){this.addDataSourceAt(this.getDataSource().length,e)}},{key:"removeDataSourceAt",value:function(e){this._removeAtAndNotify(this.getDataSource(),e,144,!0)}},{key:"removeDataSource",value:function(e){var t=this.getDataSource().indexOf(e);t>=0&&this.removeDataSourceAt(t)}},{key:"addQuerySubjectAt",value:function(e,t){this._addAtAndNotify(this.getQuerySubject(),e,t,143,!0,!0)}},{key:"addQuerySubject",value:function(e){this.addQuerySubjectAt(this.getQuerySubject().length,e)}},{key:"removeQuerySubjectAt",value:function(e){this._removeAtAndNotify(this.getQuerySubject(),e,143,!0)}},{key:"removeQuerySubject",value:function(e){var t=this.getQuerySubject().indexOf(e);t>=0&&this.removeQuerySubjectAt(t)}},{key:"addFilterAt",value:function(e,t){this._addAtAndNotify(this.getFilter(),e,t,24,!0,!0)}},{key:"addFilter",value:function(e){this.addFilterAt(this.getFilter().length,e)}},{key:"removeFilterAt",value:function(e){this._removeAtAndNotify(this.getFilter(),e,24,!0)}},{key:"removeFilter",value:function(e){var t=this.getFilter().indexOf(e);t>=0&&this.removeFilterAt(t)}},{key:"addCalculationAt",value:function(e,t){this._addAtAndNotify(this.getCalculation(),e,t,25,!0,!0)}},{key:"addCalculation",value:function(e){this.addCalculationAt(this.getCalculation().length,e)}},{key:"removeCalculationAt",value:function(e){this._removeAtAndNotify(this.getCalculation(),e,25,!0)}},{key:"removeCalculation",value:function(e){var t=this.getCalculation().indexOf(e);t>=0&&this.removeCalculationAt(t)}},{key:"addRelationshipAt",value:function(e,t){this._addAtAndNotify(this.getRelationship(),e,t,133,!0,!0)}},{key:"addRelationship",value:function(e){this.addRelationshipAt(this.getRelationship().length,e)}},{key:"removeRelationshipAt",value:function(e){this._removeAtAndNotify(this.getRelationship(),e,133,!0)}},{key:"removeRelationship",value:function(e){var t=this.getRelationship().indexOf(e);t>=0&&this.removeRelationshipAt(t)}},{key:"addParameterMapAt",value:function(e,t){this._addAtAndNotify(this.getParameterMap(),e,t,134,!0,!0)}},{key:"addParameterMap",value:function(e){this.addParameterMapAt(this.getParameterMap().length,e)}},{key:"removeParameterMapAt",value:function(e){this._removeAtAndNotify(this.getParameterMap(),e,134,!0)}},{key:"removeParameterMap",value:function(e){var t=this.getParameterMap().indexOf(e);t>=0&&this.removeParameterMapAt(t)}},{key:"addMetadataTreeViewAt",value:function(e,t){this._addAtAndNotify(this.getMetadataTreeView(),e,t,146,!0,!0)}},{key:"addMetadataTreeView",value:function(e){this.addMetadataTreeViewAt(this.getMetadataTreeView().length,e)}},{key:"removeMetadataTreeViewAt",value:function(e){this._removeAtAndNotify(this.getMetadataTreeView(),e,146,!0)}},{key:"removeMetadataTreeView",value:function(e){var t=this.getMetadataTreeView().indexOf(e);t>=0&&this.removeMetadataTreeViewAt(t)}},{key:"addTextResourceAt",value:function(e,t){this._addAtAndNotify(this.getTextResource(),e,t,142,!0,!1)}},{key:"addTextResource",value:function(e){this.addTextResourceAt(this.getTextResource().length,e)}},{key:"removeTextResourceAt",value:function(e){this._removeAtAndNotify(this.getTextResource(),e,142,!0)}},{key:"removeTextResource",value:function(e){var t=this.getTextResource().indexOf(e);t>=0&&this.removeTextResourceAt(t)}},{key:"addDrillGroupAt",value:function(e,t){this._addAtAndNotify(this.getDrillGroup(),e,t,138,!0,!0)}},{key:"addDrillGroup",value:function(e){this.addDrillGroupAt(this.getDrillGroup().length,e)}},{key:"removeDrillGroupAt",value:function(e){this._removeAtAndNotify(this.getDrillGroup(),e,138,!0)}},{key:"removeDrillGroup",value:function(e){var t=this.getDrillGroup().indexOf(e);t>=0&&this.removeDrillGroupAt(t)}},{key:"addNamedSetAt",value:function(e,t){this._addAtAndNotify(this.getNamedSet(),e,t,26,!0,!0)}},{key:"addNamedSet",value:function(e){this.addNamedSetAt(this.getNamedSet().length,e)}},{key:"removeNamedSetAt",value:function(e){this._removeAtAndNotify(this.getNamedSet(),e,26,!0)}},{key:"removeNamedSet",value:function(e){var t=this.getNamedSet().indexOf(e);t>=0&&this.removeNamedSetAt(t)}},{key:"addParameterValueSetAt",value:function(e,t){this._addAtAndNotify(this.getParameterValueSet(),e,t,140,!0,!0)}},{key:"addParameterValueSet",value:function(e){this.addParameterValueSetAt(this.getParameterValueSet().length,e)}},{key:"removeParameterValueSetAt",value:function(e){this._removeAtAndNotify(this.getParameterValueSet(),e,140,!0)}},{key:"removeParameterValueSet",value:function(e){var t=this.getParameterValueSet().indexOf(e);t>=0&&this.removeParameterValueSetAt(t)}},{key:"addPromptAt",value:function(e,t){this._addAtAndNotify(this.getPrompt(),e,t,145,!0,!0)}},{key:"addPrompt",value:function(e){this.addPromptAt(this.getPrompt().length,e)}},{key:"removePromptAt",value:function(e){this._removeAtAndNotify(this.getPrompt(),e,145,!0)}},{key:"removePrompt",value:function(e){var t=this.getPrompt().indexOf(e);t>=0&&this.removePromptAt(t)}},{key:"getObjectType",value:function(){return"Module"}},{key:"getFeatureList",value:function(e){var r=[];r.push(this.createFeature(!1,!1,!1,139,"version",null)),r.push(this.createFeature(!1,!1,!1,129,"container",null)),r.push(this.createFeature(!0,!1,!1,130,"use",null));var n;return e&&(n=e.createModuleUseSpec().getClass()),r.push(this.createFeature(!0,!1,!0,132,"useSpec",n)),r.push(this.createFeature(!1,!1,!1,137,"expressionLocale",null)),r.push(this.createFeature(!1,!1,!1,131,"fmModel",null)),e&&(n=e.createDataSource().getClass()),r.push(this.createFeature(!0,!1,!0,144,"dataSource",n)),e&&(n=e.createQuerySubject().getClass()),r.push(this.createFeature(!0,!1,!0,143,"querySubject",n)),e&&(n=e.createFilter().getClass()),r.push(this.createFeature(!0,!1,!0,24,"filter",n)),e&&(n=e.createCalculation().getClass()),r.push(this.createFeature(!0,!1,!0,25,"calculation",n)),e&&(n=e.createRelationship().getClass()),r.push(this.createFeature(!0,!1,!0,133,"relationship",n)),e&&(n=e.createParameterMap().getClass()),r.push(this.createFeature(!0,!1,!0,134,"parameterMap",n)),e&&(n=e.createFolderType().getClass()),r.push(this.createFeature(!0,!1,!0,146,"metadataTreeView",n)),e&&(n=e.createFocus().getClass()),r.push(this.createFeature(!1,!1,!0,135,"metadataTreeViewFocus",n)),e&&(n=e.createTextResource().getClass()),r.push(this.createFeature(!0,!1,!0,142,"textResource",n)),e&&(n=e.createDrillGroup().getClass()),r.push(this.createFeature(!0,!1,!0,138,"drillGroup",n)),e&&(n=e.createNamedSet().getClass()),r.push(this.createFeature(!0,!1,!0,26,"namedSet",n)),e&&(n=e.createParameterValueSet().getClass()),r.push(this.createFeature(!0,!1,!0,140,"parameterValueSet",n)),e&&(n=e.createPrompt().getClass()),r.push(this.createFeature(!0,!1,!0,145,"prompt",n)),r.push(this.createFeature(!1,!1,!1,141,"dataRetrievalMode",null)),r.push(this.createFeature(!1,!1,!1,136,"refActiveParameterValueSet",null)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,r){switch(e){case 129:this.setContainer(r);break;case 131:this.setFmModel(r);break;case 135:this.setMetadataTreeViewFocus(r);break;case 136:this.setRefActiveParameterValueSet(r);break;case 137:this.setExpressionLocale(r);break;case 139:this.setVersion(r);break;case 141:this.setDataRetrievalMode(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set",this).call(this,e,r)}}},{key:"_setList",value:function(e,r){switch(e){case 25:this.calculation=r;break;case 130:this.use=r;break;case 132:this.useSpec=r;break;case 26:this.namedSet=r;break;case 133:this.relationship=r;break;case 134:this.parameterMap=r;break;case 138:this.drillGroup=r;break;case 140:this.parameterValueSet=r;break;case 24:this.filter=r;break;case 142:this.textResource=r;break;case 143:this.querySubject=r;break;case 144:this.dataSource=r;break;case 145:this.prompt=r;break;case 146:this.metadataTreeView=r;break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setList",this).call(this,e,r)}}},{key:"get",value:function(e){switch(e){case 129:return this.getContainer();case 25:return this.getCalculation();case 130:return this.getUse();case 131:return this.getFmModel();case 132:return this.getUseSpec();case 26:return this.getNamedSet();case 133:return this.getRelationship();case 134:return this.getParameterMap();case 135:return this.getMetadataTreeViewFocus();case 136:return this.getRefActiveParameterValueSet();case 137:return this.getExpressionLocale();case 138:return this.getDrillGroup();case 139:return this.getVersion();case 140:return this.getParameterValueSet();case 24:return this.getFilter();case 141:return this.getDataRetrievalMode();case 142:return this.getTextResource();case 143:return this.getQuerySubject();case 144:return this.getDataSource();case 145:return this.getPrompt();case 146:return this.getMetadataTreeView();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"get",this).call(this,e)}}},{key:"basicGet",value:function(e){switch(e){case 129:return this.getContainer();case 25:return this.basicGetCalculation();case 130:return this.basicGetUse();case 131:return this.getFmModel();case 132:return this.basicGetUseSpec();case 26:return this.basicGetNamedSet();case 133:return this.basicGetRelationship();case 134:return this.basicGetParameterMap();case 135:return this.getMetadataTreeViewFocus();case 136:return this.getRefActiveParameterValueSet();case 137:return this.getExpressionLocale();case 138:return this.basicGetDrillGroup();case 139:return this.getVersion();case 140:return this.basicGetParameterValueSet();case 24:return this.basicGetFilter();case 141:return this.getDataRetrievalMode();case 142:return this.basicGetTextResource();case 143:return this.basicGetQuerySubject();case 144:return this.basicGetDataSource();case 145:return this.basicGetPrompt();case 146:return this.basicGetMetadataTreeView();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"basicGet",this).call(this,e)}}},{key:"addAt",value:function(e,r,n){switch(e){case 25:this.addCalculationAt(r,n);break;case 130:this.addUseAt(r,n);break;case 132:this.addUseSpecAt(r,n);break;case 26:this.addNamedSetAt(r,n);break;case 133:this.addRelationshipAt(r,n);break;case 134:this.addParameterMapAt(r,n);break;case 138:this.addDrillGroupAt(r,n);break;case 140:this.addParameterValueSetAt(r,n);break;case 24:this.addFilterAt(r,n);break;case 142:this.addTextResourceAt(r,n);break;case 143:this.addQuerySubjectAt(r,n);break;case 144:this.addDataSourceAt(r,n);break;case 145:this.addPromptAt(r,n);break;case 146:this.addMetadataTreeViewAt(r,n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAt",this).call(this,e,r,n)}}},{key:"add",value:function(e,r){switch(e){case 25:this.addCalculation(r);break;case 130:this.addUse(r);break;case 132:this.addUseSpec(r);break;case 26:this.addNamedSet(r);break;case 133:this.addRelationship(r);break;case 134:this.addParameterMap(r);break;case 138:this.addDrillGroup(r);break;case 140:this.addParameterValueSet(r);break;case 24:this.addFilter(r);break;case 142:this.addTextResource(r);break;case 143:this.addQuerySubject(r);break;case 144:this.addDataSource(r);break;case 145:this.addPrompt(r);break;case 146:this.addMetadataTreeView(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}}},{key:"removeAt",value:function(e,r){switch(e){case 25:this.removeCalculationAt(r);break;case 130:this.removeUseAt(r);break;case 132:this.removeUseSpecAt(r);break;case 26:this.removeNamedSetAt(r);break;case 133:this.removeRelationshipAt(r);break;case 134:this.removeParameterMapAt(r);break;case 138:this.removeDrillGroupAt(r);break;case 140:this.removeParameterValueSetAt(r);break;case 24:this.removeFilterAt(r);break;case 142:this.removeTextResourceAt(r);break;case 143:this.removeQuerySubjectAt(r);break;case 144:this.removeDataSourceAt(r);break;case 145:this.removePromptAt(r);break;case 146:this.removeMetadataTreeViewAt(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeAt",this).call(this,e,r)}}},{key:"remove",value:function(e,r){switch(e){case 25:this.removeCalculation(r);break;case 130:this.removeUse(r);break;case 132:this.removeUseSpec(r);break;case 26:this.removeNamedSet(r);break;case 133:this.removeRelationship(r);break;case 134:this.removeParameterMap(r);break;case 138:this.removeDrillGroup(r);break;case 140:this.removeParameterValueSet(r);break;case 24:this.removeFilter(r);break;case 142:this.removeTextResource(r);break;case 143:this.removeQuerySubject(r);break;case 144:this.removeDataSource(r);break;case 145:this.removePrompt(r);break;case 146:this.removeMetadataTreeView(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this,e,r)}}}],[{key:"fromJSON",value:function(e,t){var r=t.createModule(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=d,d.UseSpec=function(e){function t(){var e,r,n,o;a(this,t);for(var u=arguments.length,l=Array(u),s=0;s=0&&this.removeAncestorsAt(t)}},{key:"addPropertyAt",value:function(e,t){this._addAtAndNotify(this.getProperty(),e,t,87,!0,!1)}},{key:"addProperty",value:function(e){this.addPropertyAt(this.getProperty().length,e)}},{key:"removePropertyAt",value:function(e){this._removeAtAndNotify(this.getProperty(),e,87,!0)}},{key:"removeProperty",value:function(e){var t=this.getProperty().indexOf(e);t>=0&&this.removePropertyAt(t)}},{key:"getObjectType",value:function(){return"UseSpec"}},{key:"getFeatureList",value:function(e){var r=[];r.push(this.createFeature(!1,!1,!1,38,"identifier",null)),r.push(this.createFeature(!1,!0,!1,15,"type",y.default)),r.push(this.createFeature(!1,!1,!1,88,"storeID",null)),r.push(this.createFeature(!1,!1,!1,86,"searchPath",null)),r.push(this.createFeature(!1,!1,!1,85,"imports",null));var n;return e&&(n=e.createModuleUseSpecAncestors().getClass()),r.push(this.createFeature(!0,!1,!0,89,"ancestors",n)),r.push(this.createFeature(!1,!1,!1,62,"dataCacheExpiry",null)),e&&(n=e.createPropertyType().getClass()),r.push(this.createFeature(!0,!1,!0,87,"property",n)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,t){switch(e){case 38:this.setIdentifier(t);break;case 85:this.setImports(t);break;case 86:this.setSearchPath(t);break;case 62:this.setDataCacheExpiry(t);break;case 15:this.setType(t);break;case 88:this.setStoreID(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"_setList",value:function(e,t){switch(e){case 87:this.property=t;break;case 89:this.ancestors=t;break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"get",value:function(e){switch(e){case 38:return this.getIdentifier();case 85:return this.getImports();case 86:return this.getSearchPath();case 87:return this.getProperty();case 62:return this.getDataCacheExpiry();case 15:return this.getType();case 88:return this.getStoreID();case 89:return this.getAncestors();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"basicGet",value:function(e){switch(e){case 38:return this.getIdentifier();case 85:return this.getImports();case 86:return this.getSearchPath();case 87:return this.basicGetProperty();case 62:return this.getDataCacheExpiry();case 15:return this.getType();case 88:return this.getStoreID();case 89:return this.basicGetAncestors();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"addAt",value:function(e,t,r){switch(e){case 87:this.addPropertyAt(t,r);break;case 89:this.addAncestorsAt(t,r);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"add",value:function(e,t){switch(e){case 87:this.addProperty(t);break;case 89:this.addAncestors(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"removeAt",value:function(e,t){switch(e){case 87:this.removePropertyAt(t);break;case 89:this.removeAncestorsAt(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"remove",value:function(e,t){switch(e){case 87:this.removeProperty(t);break;case 89:this.removeAncestors(t);break;default:throw new Error("The feature "+e+" is not valid.")}}}],[{key:"fromJSON",value:function(e,t){var r=t.createModuleUseSpec(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t),r}}]),t}(p.default),d.UseSpec.Ancestors=function(e){function t(){var e,r,n,o;a(this,t);for(var u=arguments.length,l=Array(u),s=0;s=0&&this.removeMsgAt(t)}},{key:"getObjectType",value:function(){return"Feedback"}},{key:"getFeatureList",value:function(e){var r,n=[];return e&&(r=e.createFeedbackData().getClass()),n.push(this.createFeature(!1,!1,!0,176,"data",r)),e&&(r=e.createFeedbackMsg().getClass()),n.push(this.createFeature(!0,!1,!0,9,"msg",r)),Array.prototype.push.apply(n,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),n}},{key:"set",value:function(e,t){switch(e){case 176:this.setData(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"_setList",value:function(e,t){switch(e){case 9:this.msg=t;break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"get",value:function(e){switch(e){case 176:return this.getData();case 9:return this.getMsg();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"basicGet",value:function(e){switch(e){case 176:return this.getData();case 9:return this.basicGetMsg();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"addAt",value:function(e,t,r){switch(e){case 9:this.addMsgAt(t,r);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"add",value:function(e,t){switch(e){case 9:this.addMsg(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"removeAt",value:function(e,t){switch(e){case 9:this.removeMsgAt(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"remove",value:function(e,t){switch(e){case 9:this.removeMsg(t);break;default:throw new Error("The feature "+e+" is not valid.")}}}],[{key:"fromJSON",value:function(e,t){var r=t.createFeedback(),n=r.getFeatureList(t);return c.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=f,f.Data=function(e){function t(){var e,r,n,o;a(this,t);for(var u=arguments.length,l=Array(u),s=0;s=0&&this.removeValidationMessageAt(t)}},{key:"getObjectType",value:function(){return"Data"}},{key:"getFeatureList",value:function(e){var r,n=[];return e&&(r=e.createValidationMessage().getClass()),n.push(this.createFeature(!0,!1,!0,214,"validationMessage",r)),Array.prototype.push.apply(n,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),n}},{key:"set",value:function(e,t){switch(e){default:throw new Error("The feature "+e+" is not valid.")}}},{key:"_setList",value:function(e,t){switch(e){case 214:this.validationMessage=t;break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"get",value:function(e){switch(e){case 214:return this.getValidationMessage();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"basicGet",value:function(e){switch(e){case 214:return this.basicGetValidationMessage();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"addAt",value:function(e,t,r){switch(e){case 214:this.addValidationMessageAt(t,r);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"add",value:function(e,t){switch(e){case 214:this.addValidationMessage(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"removeAt",value:function(e,t){switch(e){case 214:this.removeValidationMessageAt(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"remove",value:function(e,t){switch(e){case 214:this.removeValidationMessage(t);break;default:throw new Error("The feature "+e+" is not valid.")}}}],[{key:"fromJSON",value:function(e,t){var r=t.createFeedbackData(),n=r.getFeatureList(t);return c.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default),f.Msg=function(e){function t(){var e,r,n,o;a(this,t);for(var u=arguments.length,l=Array(u),s=0;s=0&&this.removeParentGroupRefAt(t)}},{key:"addAttributeAt",value:function(e,t){this._addAtAndNotify(this.getAttribute(),e,t,212,!0,!1)}},{key:"addAttribute",value:function(e){this.addAttributeAt(this.getAttribute().length,e)}},{key:"removeAttributeAt",value:function(e){this._removeAtAndNotify(this.getAttribute(),e,212,!0)}},{key:"removeAttribute",value:function(e){var t=this.getAttribute().indexOf(e);t>=0&&this.removeAttributeAt(t)}},{key:"getObjectType",value:function(){return"ItemNormalizationGroupType"}},{key:"getFeatureList",value:function(e){var r=[];r.push(this.createFeature(!0,!1,!1,211,"parentGroupRef",null)),r.push(this.createFeature(!1,!0,!1,213,"cardinality",y.default));var n;return e&&(n=e.createItemNormalizationGroupTypeKey().getClass()),r.push(this.createFeature(!1,!1,!0,147,"key",n)),e&&(n=e.createItemNormalizationGroupTypeAttribute().getClass()),r.push(this.createFeature(!0,!1,!0,212,"attribute",n)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,r){switch(e){case 213:this.setCardinality(r);break;case 147:this.setKey(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set",this).call(this,e,r)}}},{key:"_setList",value:function(e,r){switch(e){case 211:this.parentGroupRef=r;break;case 212:this.attribute=r;break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setList",this).call(this,e,r)}}},{key:"get",value:function(e){switch(e){case 211:return this.getParentGroupRef();case 212:return this.getAttribute();case 213:return this.getCardinality();case 147:return this.getKey();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"get",this).call(this,e)}}},{key:"basicGet",value:function(e){switch(e){case 211:return this.basicGetParentGroupRef();case 212:return this.basicGetAttribute();case 213:return this.getCardinality();case 147:return this.getKey();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"basicGet",this).call(this,e)}}},{key:"addAt",value:function(e,r,n){switch(e){case 211:this.addParentGroupRefAt(r,n);break;case 212:this.addAttributeAt(r,n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAt",this).call(this,e,r,n)}}},{key:"add",value:function(e,r){switch(e){case 211:this.addParentGroupRef(r);break;case 212:this.addAttribute(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}}},{key:"removeAt",value:function(e,r){switch(e){case 211:this.removeParentGroupRefAt(r);break;case 212:this.removeAttributeAt(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeAt",this).call(this,e,r)}}},{key:"remove",value:function(e,r){switch(e){case 211:this.removeParentGroupRef(r);break;case 212:this.removeAttribute(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this,e,r)}}}],[{key:"fromJSON",value:function(e,t){var r=t.createItemNormalizationGroupType(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=O,O.Attribute=function(e){function t(){var e,r,n,o;a(this,t);for(var u=arguments.length,l=Array(u),s=0;s=0&&this.removeItemAt(t)}},{key:"getObjectType",value:function(){return"TextResource"}},{key:"getFeatureList",value:function(e){var r=[];r.push(this.createFeature(!1,!1,!1,4,"resourceLanguage",null)),r.push(this.createFeature(!1,!1,!1,2,"context",null));var n;return e&&(n=e.createTextResourceItem().getClass()),r.push(this.createFeature(!0,!1,!0,3,"item",n)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,t){switch(e){case 2:this.setContext(t);break;case 4:this.setResourceLanguage(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"_setList",value:function(e,t){switch(e){case 3:this.item=t;break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"get",value:function(e){switch(e){case 2:return this.getContext();case 3:return this.getItem();case 4:return this.getResourceLanguage();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"basicGet",value:function(e){switch(e){case 2:return this.getContext();case 3:return this.basicGetItem();case 4:return this.getResourceLanguage();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"addAt",value:function(e,t,r){switch(e){case 3:this.addItemAt(t,r);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"add",value:function(e,t){switch(e){case 3:this.addItem(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"removeAt",value:function(e,t){switch(e){case 3:this.removeItemAt(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"remove",value:function(e,t){switch(e){case 3:this.removeItem(t);break;default:throw new Error("The feature "+e+" is not valid.")}}}],[{key:"fromJSON",value:function(e,t){var r=t.createTextResource(),n=r.getFeatureList(t);return c.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=f,f.Item=function(e){function t(){var e,r,n,o;a(this,t);for(var u=arguments.length,l=Array(u),s=0;s=0&&this.removeSortItemAt(t)}},{key:"getObjectType",value:function(){return"SortListType"}},{key:"getFeatureList",value:function(e){var r,n=[];return e&&(r=e.createSortListTypeSortItem().getClass()),n.push(this.createFeature(!0,!1,!0,184,"sortItem",r)),Array.prototype.push.apply(n,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),n}},{key:"set",value:function(e,t){switch(e){default:throw new Error("The feature "+e+" is not valid.")}}},{key:"_setList",value:function(e,t){switch(e){case 184:this.sortItem=t;break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"get",value:function(e){switch(e){case 184:return this.getSortItem();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"basicGet",value:function(e){switch(e){case 184:return this.basicGetSortItem();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"addAt",value:function(e,t,r){switch(e){case 184:this.addSortItemAt(t,r);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"add",value:function(e,t){switch(e){case 184:this.addSortItem(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"removeAt",value:function(e,t){switch(e){case 184:this.removeSortItemAt(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"remove",value:function(e,t){switch(e){case 184:this.removeSortItem(t);break;default:throw new Error("The feature "+e+" is not valid.")}}}],[{key:"fromJSON",value:function(e,t){var r=t.createSortListType(),n=r.getFeatureList(t);return c.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=g,g.SortItem=function(e){function t(){var e,r,n,o;a(this,t);for(var u=arguments.length,l=Array(u),s=0;s=0&&this.removeItemAt(t)}},{key:"getObjectType",value:function(){return"Folder"}},{key:"getFeatureList",value:function(e){var r,n=[];return e&&(r=e.createItemType().getClass()),n.push(this.createFeature(!0,!1,!0,3,"item",r)),Array.prototype.push.apply(n,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),n}},{key:"set",value:function(e,r){switch(e){default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set",this).call(this,e,r)}}},{key:"_setList",value:function(e,r){switch(e){case 3:this.item=r;break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setList",this).call(this,e,r)}}},{key:"get",value:function(e){switch(e){case 3:return this.getItem();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"get",this).call(this,e)}}},{key:"basicGet",value:function(e){switch(e){case 3:return this.basicGetItem();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"basicGet",this).call(this,e)}}},{key:"addAt",value:function(e,r,n){switch(e){case 3:this.addItemAt(r,n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAt",this).call(this,e,r,n)}}},{key:"add",value:function(e,r){switch(e){case 3:this.addItem(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}}},{key:"removeAt",value:function(e,r){switch(e){case 3:this.removeItemAt(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeAt",this).call(this,e,r)}}},{key:"remove",value:function(e,r){switch(e){case 3:this.removeItem(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this,e,r)}}}],[{key:"fromJSON",value:function(e,t){var r=t.createItemTypeFolder(),n=r.getFeatureList(t);return c.default.fromJSONHelper(r,n,e,t),r}}]),t}(p.default)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r=0&&this.removeTableAt(t)}},{key:"addStoredProcedureAt",value:function(e,t){this._addAtAndNotify(this.getStoredProcedure(),e,t,98,!0,!1)}},{key:"addStoredProcedure",value:function(e){this.addStoredProcedureAt(this.getStoredProcedure().length,e)}},{key:"removeStoredProcedureAt",value:function(e){this._removeAtAndNotify(this.getStoredProcedure(),e,98,!0)}},{key:"removeStoredProcedure",value:function(e){var t=this.getStoredProcedure().indexOf(e);t>=0&&this.removeStoredProcedureAt(t)}},{key:"addDbFunctionAt",value:function(e,t){this._addAtAndNotify(this.getDbFunction(),e,t,112,!0,!1)}},{key:"addDbFunction",value:function(e){this.addDbFunctionAt(this.getDbFunction().length,e)}},{key:"removeDbFunctionAt",value:function(e){this._removeAtAndNotify(this.getDbFunction(),e,112,!0)}},{key:"removeDbFunction",value:function(e){var t=this.getDbFunction().indexOf(e);t>=0&&this.removeDbFunctionAt(t)}},{key:"getObjectType",value:function(){return"DataSource"}},{key:"getFeatureList",value:function(e){var r=[];r.push(this.createFeature(!1,!1,!1,107,"cmDataSource",null)),r.push(this.createFeature(!1,!1,!1,96,"connectionString",null));var n;return e&&(n=e.createJdbc().getClass()),r.push(this.createFeature(!1,!1,!0,101,"jdbc",n)),r.push(this.createFeature(!1,!1,!1,108,"csvUrl",null)),r.push(this.createFeature(!1,!1,!1,115,"user",null)),r.push(this.createFeature(!1,!1,!1,109,"password",null)),r.push(this.createFeature(!1,!1,!1,105,"databaseType",null)),r.push(this.createFeature(!1,!1,!1,99,"catalog",null)),r.push(this.createFeature(!1,!1,!1,97,"schema",null)),e&&(n=e.createTable().getClass()),r.push(this.createFeature(!0,!1,!0,116,"table",n)),e&&(n=e.createStoredProcedure().getClass()),r.push(this.createFeature(!0,!1,!0,98,"storedProcedure",n)),e&&(n=e.createDbFunction().getClass()),r.push(this.createFeature(!0,!1,!0,112,"dbFunction",n)),r.push(this.createFeature(!1,!1,!1,113,"cube",null)),r.push(this.createFeature(!1,!1,!1,110,"cubeDescription",null)),r.push(this.createFeature(!1,!1,!1,100,"cubePath",null)),r.push(this.createFeature(!1,!1,!1,103,"cubeCreatedOn",null)),r.push(this.createFeature(!1,!1,!1,102,"cubeDataUpdatedOn",null)),r.push(this.createFeature(!1,!1,!1,106,"cubeSchemaUpdatedOn",null)),r.push(this.createFeature(!1,!1,!1,111,"cubeIsOptimized",null)),r.push(this.createFeature(!1,!1,!1,104,"cubeDefaultMeasure",null)),r.push(this.createFeature(!1,!1,!1,114,"cubeCurrentPeriod",null)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,r){switch(e){case 96:this.setConnectionString(r);break;case 97:this.setSchema(r);break;case 99:this.setCatalog(r);break;case 100:this.setCubePath(r);break;case 101:this.setJdbc(r);break;case 102:this.setCubeDataUpdatedOn(r);break;case 103:this.setCubeCreatedOn(r);break;case 104:this.setCubeDefaultMeasure(r);break;case 105:this.setDatabaseType(r);break;case 106:this.setCubeSchemaUpdatedOn(r);break;case 107:this.setCmDataSource(r);break;case 108:this.setCsvUrl(r);break;case 109:this.setPassword(r);break;case 110:this.setCubeDescription(r);break;case 111:this.setCubeIsOptimized(r);break;case 113:this.setCube(r);break;case 114:this.setCubeCurrentPeriod(r);break;case 115:this.setUser(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set",this).call(this,e,r)}}},{key:"_setList",value:function(e,r){switch(e){case 98:this.storedProcedure=r;break;case 112:this.dbFunction=r;break;case 116:this.table=r;break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setList",this).call(this,e,r)}}},{key:"get",value:function(e){switch(e){case 96:return this.getConnectionString();case 97:return this.getSchema();case 98:return this.getStoredProcedure();case 99:return this.getCatalog();case 100:return this.getCubePath();case 101:return this.getJdbc();case 102:return this.getCubeDataUpdatedOn();case 103:return this.getCubeCreatedOn();case 104:return this.getCubeDefaultMeasure();case 105:return this.getDatabaseType();case 106:return this.getCubeSchemaUpdatedOn();case 107:return this.getCmDataSource();case 108:return this.getCsvUrl();case 109:return this.getPassword();case 110:return this.getCubeDescription();case 111:return this.getCubeIsOptimized();case 112:return this.getDbFunction();case 113:return this.getCube();case 114:return this.getCubeCurrentPeriod();case 115:return this.getUser();case 116:return this.getTable();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"get",this).call(this,e)}}},{key:"basicGet",value:function(e){switch(e){case 96:return this.getConnectionString();case 97:return this.getSchema();case 98:return this.basicGetStoredProcedure();case 99:return this.getCatalog();case 100:return this.getCubePath();case 101:return this.getJdbc();case 102:return this.getCubeDataUpdatedOn();case 103:return this.getCubeCreatedOn();case 104:return this.getCubeDefaultMeasure();case 105:return this.getDatabaseType();case 106:return this.getCubeSchemaUpdatedOn();case 107:return this.getCmDataSource();case 108:return this.getCsvUrl();case 109:return this.getPassword();case 110:return this.getCubeDescription();case 111:return this.getCubeIsOptimized();case 112:return this.basicGetDbFunction();case 113:return this.getCube();case 114:return this.getCubeCurrentPeriod();case 115:return this.getUser();case 116:return this.basicGetTable();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"basicGet",this).call(this,e)}}},{key:"addAt",value:function(e,r,n){switch(e){case 98:this.addStoredProcedureAt(r,n);break;case 112:this.addDbFunctionAt(r,n);break;case 116:this.addTableAt(r,n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAt",this).call(this,e,r,n)}}},{key:"add",value:function(e,r){switch(e){case 98:this.addStoredProcedure(r);break;case 112:this.addDbFunction(r);break;case 116:this.addTable(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}}},{key:"removeAt",value:function(e,r){switch(e){case 98:this.removeStoredProcedureAt(r);break;case 112:this.removeDbFunctionAt(r);break;case 116:this.removeTableAt(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeAt",this).call(this,e,r)}}},{key:"remove",value:function(e,r){switch(e){case 98:this.removeStoredProcedure(r);break;case 112:this.removeDbFunction(r);break;case 116:this.removeTable(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this,e,r)}}}],[{key:"fromJSON",value:function(e,t){var r=t.createDataSource(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=h},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r=0&&this.removeColumnAt(t)}},{key:"addIndexAt",value:function(e,t){this._addAtAndNotify(this.getIndex(),e,t,198,!0,!1)}},{key:"addIndex",value:function(e){this.addIndexAt(this.getIndex().length,e)}},{key:"removeIndexAt",value:function(e){this._removeAtAndNotify(this.getIndex(),e,198,!0)}},{key:"removeIndex",value:function(e){var t=this.getIndex().indexOf(e);t>=0&&this.removeIndexAt(t)}},{key:"addPrimaryKeyAt",value:function(e,t){this._addAtAndNotify(this.getPrimaryKey(),e,t,200,!0,!1)}},{key:"addPrimaryKey",value:function(e){this.addPrimaryKeyAt(this.getPrimaryKey().length,e)}},{key:"removePrimaryKeyAt",value:function(e){this._removeAtAndNotify(this.getPrimaryKey(),e,200,!0)}},{key:"removePrimaryKey",value:function(e){var t=this.getPrimaryKey().indexOf(e);t>=0&&this.removePrimaryKeyAt(t)}},{key:"addForeignKeyAt",value:function(e,t){this._addAtAndNotify(this.getForeignKey(),e,t,199,!0,!1)}},{key:"addForeignKey",value:function(e){this.addForeignKeyAt(this.getForeignKey().length,e)}},{key:"removeForeignKeyAt",value:function(e){this._removeAtAndNotify(this.getForeignKey(),e,199,!0)}},{key:"removeForeignKey",value:function(e){var t=this.getForeignKey().indexOf(e);t>=0&&this.removeForeignKeyAt(t)}},{key:"addTableItemAt",value:function(e,t){this._addAtAndNotify(this.getTableItem(),e,t,165,!0,!1)}},{key:"addTableItem",value:function(e){this.addTableItemAt(this.getTableItem().length,e)}},{key:"removeTableItemAt",value:function(e){this._removeAtAndNotify(this.getTableItem(),e,165,!0)}},{key:"removeTableItem",value:function(e){var t=this.getTableItem().indexOf(e);t>=0&&this.removeTableItemAt(t)}},{key:"getObjectType",value:function(){return"Table"}},{key:"getFeatureList",value:function(e){var r=[];r.push(this.createFeature(!1,!0,!1,196,"tableType",y.default)),r.push(this.createFeature(!1,!1,!1,61,"numberOfRows",null));var n;return e&&(n=e.createColumn().getClass()),r.push(this.createFeature(!0,!1,!0,197,"column",n)),e&&(n=e.createIndex().getClass()),r.push(this.createFeature(!0,!1,!0,198,"index",n)),e&&(n=e.createPrimaryKey().getClass()),r.push(this.createFeature(!0,!1,!0,200,"primaryKey",n)),e&&(n=e.createForeignKey().getClass()),r.push(this.createFeature(!0,!1,!0,199,"foreignKey",n)),e&&(n=e.createTableItemType().getClass()),r.push(this.createFeature(!0,!1,!0,165,"tableItem",n)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,r){switch(e){case 196:this.setTableType(r);break;case 61:this.setNumberOfRows(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set",this).call(this,e,r)}}},{key:"_setList",value:function(e,r){switch(e){case 165:this.tableItem=r;break;case 197:this.column=r;break;case 198:this.index=r;break;case 199:this.foreignKey=r;break;case 200:this.primaryKey=r;break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setList",this).call(this,e,r)}}},{key:"get",value:function(e){switch(e){case 196:return this.getTableType();case 165:return this.getTableItem();case 197:return this.getColumn();case 198:return this.getIndex();case 61:return this.getNumberOfRows();case 199:return this.getForeignKey();case 200:return this.getPrimaryKey();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"get",this).call(this,e)}}},{key:"basicGet",value:function(e){switch(e){case 196:return this.getTableType();case 165:return this.basicGetTableItem();case 197:return this.basicGetColumn();case 198:return this.basicGetIndex();case 61:return this.getNumberOfRows();case 199:return this.basicGetForeignKey();case 200:return this.basicGetPrimaryKey();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"basicGet",this).call(this,e)}}},{key:"addAt",value:function(e,r,n){switch(e){case 165:this.addTableItemAt(r,n);break;case 197:this.addColumnAt(r,n);break;case 198:this.addIndexAt(r,n);break;case 199:this.addForeignKeyAt(r,n);break;case 200:this.addPrimaryKeyAt(r,n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAt",this).call(this,e,r,n)}}},{key:"add",value:function(e,r){switch(e){case 165:this.addTableItem(r);break;case 197:this.addColumn(r);break;case 198:this.addIndex(r);break;case 199:this.addForeignKey(r);break;case 200:this.addPrimaryKey(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}}},{key:"removeAt",value:function(e,r){switch(e){case 165:this.removeTableItemAt(r);break;case 197:this.removeColumnAt(r);break;case 198:this.removeIndexAt(r);break;case 199:this.removeForeignKeyAt(r);break;case 200:this.removePrimaryKeyAt(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeAt",this).call(this,e,r)}}},{key:"remove",value:function(e,r){switch(e){case 165:this.removeTableItem(r);break;case 197:this.removeColumn(r);break;case 198:this.removeIndex(r);break;case 199:this.removeForeignKey(r);break;case 200:this.removePrimaryKey(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this,e,r)}}}],[{key:"fromJSON",value:function(e,t){var r=t.createTable(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=d},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r=0&&this.removeKeyedColumnAt(t)}},{key:"getObjectType",value:function(){return"PrimaryKey"}},{key:"getFeatureList",value:function(e){var r=[];return r.push(this.createFeature(!0,!1,!1,164,"keyedColumn",null)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,r){switch(e){default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set",this).call(this,e,r)}}},{key:"_setList",value:function(e,r){switch(e){case 164:this.keyedColumn=r;break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setList",this).call(this,e,r)}}},{key:"get",value:function(e){switch(e){case 164:return this.getKeyedColumn();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"get",this).call(this,e)}}},{key:"basicGet",value:function(e){switch(e){case 164:return this.basicGetKeyedColumn();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"basicGet",this).call(this,e)}}},{key:"addAt",value:function(e,r,n){switch(e){case 164:this.addKeyedColumnAt(r,n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAt",this).call(this,e,r,n)}}},{key:"add",value:function(e,r){switch(e){case 164:this.addKeyedColumn(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}}},{key:"removeAt",value:function(e,r){switch(e){case 164:this.removeKeyedColumnAt(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeAt",this).call(this,e,r)}}},{key:"remove",value:function(e,r){switch(e){case 164:this.removeKeyedColumn(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this,e,r)}}}],[{key:"fromJSON",value:function(e,t){var r=t.createPrimaryKey(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=h},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r=0&&this.removeProcParameterAt(t)}},{key:"addColumnAt",value:function(e,t){this._addAtAndNotify(this.getColumn(),e,t,197,!0,!1)}},{key:"addColumn",value:function(e){this.addColumnAt(this.getColumn().length,e)}},{key:"removeColumnAt",value:function(e){this._removeAtAndNotify(this.getColumn(),e,197,!0)}},{key:"removeColumn",value:function(e){var t=this.getColumn().indexOf(e);t>=0&&this.removeColumnAt(t)}},{key:"getObjectType",value:function(){return"StoredProcedure"}},{key:"getFeatureList",value:function(e){var r=[];r.push(this.createFeature(!1,!1,!1,61,"numberOfRows",null));var n;return e&&(n=e.createProcParameterType().getClass()),r.push(this.createFeature(!0,!1,!0,162,"procParameter",n)),e&&(n=e.createColumn().getClass()),r.push(this.createFeature(!0,!1,!0,197,"column",n)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,r){switch(e){case 61:this.setNumberOfRows(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set",this).call(this,e,r)}}},{key:"_setList",value:function(e,r){switch(e){case 197:this.column=r;break;case 162:this.procParameter=r;break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setList",this).call(this,e,r)}}},{key:"get",value:function(e){switch(e){case 197:return this.getColumn();case 61:return this.getNumberOfRows();case 162:return this.getProcParameter();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"get",this).call(this,e)}}},{key:"basicGet",value:function(e){switch(e){case 197:return this.basicGetColumn();case 61:return this.getNumberOfRows();case 162:return this.basicGetProcParameter();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"basicGet",this).call(this,e)}}},{key:"addAt",value:function(e,r,n){switch(e){case 197:this.addColumnAt(r,n);break;case 162:this.addProcParameterAt(r,n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAt",this).call(this,e,r,n)}}},{key:"add",value:function(e,r){switch(e){case 197:this.addColumn(r);break;case 162:this.addProcParameter(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}}},{key:"removeAt",value:function(e,r){switch(e){case 197:this.removeColumnAt(r);break;case 162:this.removeProcParameterAt(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeAt",this).call(this,e,r)}}},{key:"remove",value:function(e,r){switch(e){case 197:this.removeColumn(r);break;case 162:this.removeProcParameter(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this,e,r)}}}],[{key:"fromJSON",value:function(e,t){var r=t.createStoredProcedure(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=h},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r=0&&this.removeProcParameterAt(t)}},{key:"getObjectType",value:function(){return"DbFunction"}},{key:"getFeatureList",value:function(e){var r=[];r.push(this.createFeature(!1,!1,!1,163,"resultDatatype",null));var n;return e&&(n=e.createProcParameterType().getClass()),r.push(this.createFeature(!0,!1,!0,162,"procParameter",n)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,r){switch(e){case 163:this.setResultDatatype(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set",this).call(this,e,r)}}},{key:"_setList",value:function(e,r){switch(e){case 162:this.procParameter=r;break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setList",this).call(this,e,r)}}},{key:"get",value:function(e){switch(e){case 162:return this.getProcParameter();case 163:return this.getResultDatatype();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"get",this).call(this,e)}}},{key:"basicGet",value:function(e){switch(e){case 162:return this.basicGetProcParameter();case 163:return this.getResultDatatype();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"basicGet",this).call(this,e)}}},{key:"addAt",value:function(e,r,n){switch(e){case 162:this.addProcParameterAt(r,n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAt",this).call(this,e,r,n)}}},{key:"add",value:function(e,r){switch(e){case 162:this.addProcParameter(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}}},{key:"removeAt",value:function(e,r){switch(e){case 162:this.removeProcParameterAt(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeAt",this).call(this,e,r)}}},{key:"remove",value:function(e,r){switch(e){case 162:this.removeProcParameter(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this,e,r)}}}],[{key:"fromJSON",value:function(e,t){var r=t.createDbFunction(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=h},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r=0&&this.removeTableItemAt(t)}},{key:"getObjectType",value:function(){return"Struct"}},{key:"getFeatureList",value:function(e){var r,n=[];return e&&(r=e.createTableItemType().getClass()),n.push(this.createFeature(!0,!1,!0,165,"tableItem",r)),Array.prototype.push.apply(n,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),n}},{key:"set",value:function(e,r){switch(e){default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set",this).call(this,e,r)}}},{key:"_setList",value:function(e,r){switch(e){case 165:this.tableItem=r;break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setList",this).call(this,e,r)}}},{key:"get",value:function(e){switch(e){case 165:return this.getTableItem();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"get",this).call(this,e)}}},{key:"basicGet",value:function(e){switch(e){case 165:return this.basicGetTableItem();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"basicGet",this).call(this,e)}}},{key:"addAt",value:function(e,r,n){switch(e){case 165:this.addTableItemAt(r,n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAt",this).call(this,e,r,n)}}},{key:"add",value:function(e,r){switch(e){case 165:this.addTableItem(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}}},{key:"removeAt",value:function(e,r){switch(e){case 165:this.removeTableItemAt(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeAt",this).call(this,e,r)}}},{key:"remove",value:function(e,r){switch(e){case 165:this.removeTableItem(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this,e,r)}}}],[{key:"fromJSON",value:function(e,t){var r=t.createStruct(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=h},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r=0&&this.removeTableItemAt(t)}},{key:"getObjectType",value:function(){return"Multiset"}},{key:"getFeatureList",value:function(e){var r,n=[];return e&&(r=e.createTableItemType().getClass()),n.push(this.createFeature(!0,!1,!0,165,"tableItem",r)),Array.prototype.push.apply(n,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),n}},{key:"set",value:function(e,r){switch(e){default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set",this).call(this,e,r)}}},{key:"_setList",value:function(e,r){switch(e){case 165:this.tableItem=r;break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setList",this).call(this,e,r)}}},{key:"get",value:function(e){switch(e){case 165:return this.getTableItem();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"get",this).call(this,e)}}},{key:"basicGet",value:function(e){switch(e){case 165:return this.basicGetTableItem();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"basicGet",this).call(this,e)}}},{key:"addAt",value:function(e,r,n){switch(e){case 165:this.addTableItemAt(r,n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAt",this).call(this,e,r,n)}}},{key:"add",value:function(e,r){switch(e){case 165:this.addTableItem(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}}},{key:"removeAt",value:function(e,r){switch(e){case 165:this.removeTableItemAt(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeAt",this).call(this,e,r)}}},{key:"remove",value:function(e,r){switch(e){case 165:this.removeTableItem(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this,e,r)}}}],[{key:"fromJSON",value:function(e,t){var r=t.createMultiset(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=h},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r=0&&this.removeConceptsAt(t)}},{key:"addCalculatedMemberAt",value:function(e,t){this._addAtAndNotify(this.getCalculatedMember(),e,t,72,!0,!0)}},{key:"addCalculatedMember",value:function(e){this.addCalculatedMemberAt(this.getCalculatedMember().length,e)}},{key:"removeCalculatedMemberAt",value:function(e){this._removeAtAndNotify(this.getCalculatedMember(),e,72,!0)}},{key:"removeCalculatedMember",value:function(e){var t=this.getCalculatedMember().indexOf(e);t>=0&&this.removeCalculatedMemberAt(t)}},{key:"addMembersAt",value:function(e,t){this._addAtAndNotify(this.getMembers(),e,t,193,!0,!0)}},{key:"addMembers",value:function(e){this.addMembersAt(this.getMembers().length,e)}},{key:"removeMembersAt",value:function(e){this._removeAtAndNotify(this.getMembers(),e,193,!0)}},{key:"removeMembers",value:function(e){var t=this.getMembers().indexOf(e);t>=0&&this.removeMembersAt(t)}},{key:"getObjectType",value:function(){return"QueryItem"}},{key:"getFeatureList",value:function(e){var r=[];r.push(this.createFeature(!0,!1,!1,191,"concepts",null)),r.push(this.createFeature(!1,!1,!1,188,"minimumValue",null)),r.push(this.createFeature(!1,!1,!1,195,"maximumValue",null)),r.push(this.createFeature(!1,!1,!1,69,"numberOfDistinctValues",null)),r.push(this.createFeature(!1,!1,!1,189,"numberOfNullValues",null)),r.push(this.createFeature(!1,!1,!1,194,"orderedValues",null)),r.push(this.createFeature(!1,!1,!1,192,"hierarchyHasMultipleRoots",null));var n;return e&&(n=e.createCalculatedMemberType().getClass()),r.push(this.createFeature(!0,!1,!0,72,"calculatedMember",n)),r.push(this.createFeature(!1,!1,!1,190,"rootMember",null)),e&&(n=e.createMemberType().getClass()),r.push(this.createFeature(!0,!1,!0,193,"members",n)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,r){switch(e){case 188:this.setMinimumValue(r);break;case 189:this.setNumberOfNullValues(r);break;case 190:this.setRootMember(r);break;case 192:this.setHierarchyHasMultipleRoots(r);break;case 194:this.setOrderedValues(r);break;case 195:this.setMaximumValue(r);break;case 69:this.setNumberOfDistinctValues(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set",this).call(this,e,r)}}},{key:"_setList",value:function(e,r){switch(e){case 72:this.calculatedMember=r;break;case 191:this.concepts=r;break;case 193:this.members=r;break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setList",this).call(this,e,r)}}},{key:"get",value:function(e){switch(e){case 188:return this.getMinimumValue();case 72:return this.getCalculatedMember();case 189:return this.getNumberOfNullValues();case 190:return this.getRootMember();case 191:return this.getConcepts();case 192:return this.isHierarchyHasMultipleRoots();case 193:return this.getMembers();case 194:return this.isOrderedValues();case 195:return this.getMaximumValue();case 69:return this.getNumberOfDistinctValues();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"get",this).call(this,e)}}},{key:"basicGet",value:function(e){switch(e){case 188:return this.getMinimumValue();case 72:return this.basicGetCalculatedMember();case 189:return this.getNumberOfNullValues();case 190:return this.getRootMember();case 191:return this.basicGetConcepts();case 192:return this.isHierarchyHasMultipleRoots();case 193:return this.basicGetMembers();case 194:return this.isOrderedValues();case 195:return this.getMaximumValue();case 69:return this.getNumberOfDistinctValues();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"basicGet",this).call(this,e)}}},{key:"addAt",value:function(e,r,n){switch(e){case 72:this.addCalculatedMemberAt(r,n);break;case 191:this.addConceptsAt(r,n);break;case 193:this.addMembersAt(r,n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAt",this).call(this,e,r,n)}}},{key:"add",value:function(e,r){switch(e){case 72:this.addCalculatedMember(r);break;case 191:this.addConcepts(r);break;case 193:this.addMembers(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}}},{key:"removeAt",value:function(e,r){switch(e){case 72:this.removeCalculatedMemberAt(r);break;case 191:this.removeConceptsAt(r);break;case 193:this.removeMembersAt(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeAt",this).call(this,e,r)}}},{key:"remove",value:function(e,r){switch(e){case 72:this.removeCalculatedMember(r);break;case 191:this.removeConcepts(r);break;case 193:this.removeMembers(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this,e,r)}}}],[{key:"fromJSON",value:function(e,t){var r=t.createQueryItem(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=h},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r=0&&this.removeItemAt(t)}},{key:"getObjectType",value:function(){return"SplitType"}},{key:"getFeatureList",value:function(e){var r=[];r.push(this.createFeature(!1,!0,!1,181,"columnTreatment",y.default)),r.push(this.createFeature(!1,!0,!1,182,"display",v.default)),r.push(this.createFeature(!1,!1,!1,179,"folderLabel",null)),r.push(this.createFeature(!1,!1,!1,36,"ref",null)),r.push(this.createFeature(!1,!0,!1,58,"instanceType",b.default)),r.push(this.createFeature(!1,!1,!1,180,"relationshipRef",null));var n;return e&&(n=e.createItemType().getClass()),r.push(this.createFeature(!0,!1,!0,3,"item",n)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,t){switch(e){case 179:this.setFolderLabel(t);break;case 180:this.setRelationshipRef(t);break;case 36:this.setRef(t);break;case 181:this.setColumnTreatment(t);break;case 182:this.setDisplay(t);break;case 58:this.setInstanceType(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"_setList",value:function(e,t){switch(e){case 3:this.item=t;break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"get",value:function(e){switch(e){case 179:return this.getFolderLabel();case 180:return this.getRelationshipRef();case 36:return this.getRef();case 3:return this.getItem();case 181:return this.getColumnTreatment();case 182:return this.getDisplay();case 58:return this.getInstanceType();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"basicGet",value:function(e){switch(e){case 179:return this.getFolderLabel();case 180:return this.getRelationshipRef();case 36:return this.getRef();case 3:return this.basicGetItem();case 181:return this.getColumnTreatment();case 182:return this.getDisplay();case 58:return this.getInstanceType();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"addAt",value:function(e,t,r){switch(e){case 3:this.addItemAt(t,r);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"add",value:function(e,t){switch(e){case 3:this.addItem(t); break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"removeAt",value:function(e,t){switch(e){case 3:this.removeItemAt(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"remove",value:function(e,t){switch(e){case 3:this.removeItem(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"setReferencedObject",value:function(e){this._referencedObject=e}},{key:"getReferencedObject",value:function(){return this._referencedObject}},{key:"clone",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clone",this).call(this);return e.setReferencedObject(this._referencedObject),e}}],[{key:"fromJSON",value:function(e,t){var r=t.createSplitType(),n=r.getFeatureList(t);return c.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=_},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r=0&&this.removeMembersAt(t)}},{key:"getObjectType",value:function(){return"MemberType"}},{key:"getFeatureList",value:function(e){var r,n=[];return e&&(r=e.createMemberType().getClass()),n.push(this.createFeature(!0,!1,!0,193,"members",r)),n.push(this.createFeature(!1,!1,!1,223,"dimensionUniqueName",null)),n.push(this.createFeature(!1,!1,!1,224,"parentUniqueName",null)),n.push(this.createFeature(!1,!1,!1,226,"levelNumber",null)),n.push(this.createFeature(!1,!1,!1,222,"levelLabel",null)),n.push(this.createFeature(!1,!1,!1,227,"levelUniqueName",null)),n.push(this.createFeature(!1,!1,!1,225,"memberCaption",null)),n.push(this.createFeature(!1,!1,!1,229,"hierarchyUniqueName",null)),n.push(this.createFeature(!1,!1,!1,228,"parentLevel",null)),Array.prototype.push.apply(n,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),n}},{key:"set",value:function(e,r){switch(e){case 222:this.setLevelLabel(r);break;case 223:this.setDimensionUniqueName(r);break;case 224:this.setParentUniqueName(r);break;case 225:this.setMemberCaption(r);break;case 226:this.setLevelNumber(r);break;case 227:this.setLevelUniqueName(r);break;case 228:this.setParentLevel(r);break;case 229:this.setHierarchyUniqueName(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set",this).call(this,e,r)}}},{key:"_setList",value:function(e,r){switch(e){case 193:this.members=r;break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setList",this).call(this,e,r)}}},{key:"get",value:function(e){switch(e){case 222:return this.getLevelLabel();case 223:return this.getDimensionUniqueName();case 224:return this.getParentUniqueName();case 193:return this.getMembers();case 225:return this.getMemberCaption();case 226:return this.getLevelNumber();case 227:return this.getLevelUniqueName();case 228:return this.getParentLevel();case 229:return this.getHierarchyUniqueName();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"get",this).call(this,e)}}},{key:"basicGet",value:function(e){switch(e){case 222:return this.getLevelLabel();case 223:return this.getDimensionUniqueName();case 224:return this.getParentUniqueName();case 193:return this.basicGetMembers();case 225:return this.getMemberCaption();case 226:return this.getLevelNumber();case 227:return this.getLevelUniqueName();case 228:return this.getParentLevel();case 229:return this.getHierarchyUniqueName();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"basicGet",this).call(this,e)}}},{key:"addAt",value:function(e,r,n){switch(e){case 193:this.addMembersAt(r,n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAt",this).call(this,e,r,n)}}},{key:"add",value:function(e,r){switch(e){case 193:this.addMembers(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}}},{key:"removeAt",value:function(e,r){switch(e){case 193:this.removeMembersAt(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeAt",this).call(this,e,r)}}},{key:"remove",value:function(e,r){switch(e){case 193:this.removeMembers(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this,e,r)}}}],[{key:"fromJSON",value:function(e,t){var r=t.createMemberType(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=h},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r=0&&this.removeDatasourceRefAt(t)}},{key:"addProjectedItemAt",value:function(e,t){this._addAtAndNotify(this.getProjectedItem(),e,t,174,!0,!0)}},{key:"addProjectedItem",value:function(e){this.addProjectedItemAt(this.getProjectedItem().length,e)}},{key:"removeProjectedItemAt",value:function(e){this._removeAtAndNotify(this.getProjectedItem(),e,174,!0)}},{key:"removeProjectedItem",value:function(e){var t=this.getProjectedItem().indexOf(e);t>=0&&this.removeProjectedItemAt(t)}},{key:"getObjectType",value:function(){return"SqlQueryType"}},{key:"getFeatureList",value:function(e){var r=[];r.push(this.createFeature(!0,!1,!1,171,"datasourceRef",null)),r.push(this.createFeature(!1,!1,!1,172,"sqlText",null)),r.push(this.createFeature(!1,!0,!1,173,"sqlType",y.default));var n;return e&&(n=e.createProjectedItemType().getClass()),r.push(this.createFeature(!0,!1,!0,174,"projectedItem",n)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,r){switch(e){case 172:this.setSqlText(r);break;case 173:this.setSqlType(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set",this).call(this,e,r)}}},{key:"_setList",value:function(e,r){switch(e){case 171:this.datasourceRef=r;break;case 174:this.projectedItem=r;break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setList",this).call(this,e,r)}}},{key:"get",value:function(e){switch(e){case 171:return this.getDatasourceRef();case 172:return this.getSqlText();case 173:return this.getSqlType();case 174:return this.getProjectedItem();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"get",this).call(this,e)}}},{key:"basicGet",value:function(e){switch(e){case 171:return this.basicGetDatasourceRef();case 172:return this.getSqlText();case 173:return this.getSqlType();case 174:return this.basicGetProjectedItem();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"basicGet",this).call(this,e)}}},{key:"addAt",value:function(e,r,n){switch(e){case 171:this.addDatasourceRefAt(r,n);break;case 174:this.addProjectedItemAt(r,n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAt",this).call(this,e,r,n)}}},{key:"add",value:function(e,r){switch(e){case 171:this.addDatasourceRef(r);break;case 174:this.addProjectedItem(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}}},{key:"removeAt",value:function(e,r){switch(e){case 171:this.removeDatasourceRefAt(r);break;case 174:this.removeProjectedItemAt(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeAt",this).call(this,e,r)}}},{key:"remove",value:function(e,r){switch(e){case 171:this.removeDatasourceRef(r);break;case 174:this.removeProjectedItem(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this,e,r)}}}],[{key:"fromJSON",value:function(e,t){var r=t.createSqlQueryType(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=d},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r=0&&this.removeItemNormalizationGroupAt(t)}},{key:"getObjectType",value:function(){return"ItemNormalizationType"}},{key:"getFeatureList",value:function(e){var r,n=[];return e&&(r=e.createItemNormalizationGroupType().getClass()),n.push(this.createFeature(!0,!1,!0,175,"itemNormalizationGroup",r)),Array.prototype.push.apply(n,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),n}},{key:"set",value:function(e,t){switch(e){default:throw new Error("The feature "+e+" is not valid.")}}},{key:"_setList",value:function(e,t){switch(e){case 175:this.itemNormalizationGroup=t;break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"get",value:function(e){switch(e){case 175:return this.getItemNormalizationGroup();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"basicGet",value:function(e){switch(e){case 175:return this.basicGetItemNormalizationGroup();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"addAt",value:function(e,t,r){switch(e){case 175:this.addItemNormalizationGroupAt(t,r);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"add",value:function(e,t){switch(e){case 175:this.addItemNormalizationGroup(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"removeAt",value:function(e,t){switch(e){case 175:this.removeItemNormalizationGroupAt(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"remove",value:function(e,t){switch(e){case 175:this.removeItemNormalizationGroup(t);break;default:throw new Error("The feature "+e+" is not valid.")}}}],[{key:"fromJSON",value:function(e,t){var r=t.createItemNormalizationType(),n=r.getFeatureList(t);return c.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=f},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r=0&&this.removeRefAt(t)}},{key:"addCalculatedMemberAt",value:function(e,t){this._addAtAndNotify(this.getCalculatedMember(),e,t,72,!0,!0)}},{key:"addCalculatedMember",value:function(e){this.addCalculatedMemberAt(this.getCalculatedMember().length,e)}},{key:"removeCalculatedMemberAt",value:function(e){this._removeAtAndNotify(this.getCalculatedMember(),e,72,!0)}},{key:"removeCalculatedMember",value:function(e){var t=this.getCalculatedMember().indexOf(e);t>=0&&this.removeCalculatedMemberAt(t)}},{key:"addLocalRefAt",value:function(e,t){this._addAtAndNotify(this.getLocalRef(),e,t,73,!0,!1),y.default.propertyOverrideForLocalRef(this)}},{key:"addLocalRef",value:function(e){this.addLocalRefAt(this.getLocalRef().length,e)}},{key:"removeLocalRefAt",value:function(e){this._removeAtAndNotify(this.getLocalRef(),e,73,!0)}},{key:"removeLocalRef",value:function(e){var t=this.getLocalRef().indexOf(e);t>=0&&this.removeLocalRefAt(t)}},{key:"getObjectType",value:function(){return"ItemHierarchy"}},{key:"getFeatureList",value:function(e){var r=[];r.push(this.createFeature(!0,!1,!1,36,"ref",null));var n;return e&&(n=e.createCalculatedMemberType().getClass()),r.push(this.createFeature(!0,!1,!0,72,"calculatedMember",n)),e&&(n=e.createLocalRefType().getClass()),r.push(this.createFeature(!0,!1,!0,73,"localRef",n)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,r){switch(e){default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set",this).call(this,e,r)}}},{key:"_setList",value:function(e,r){switch(e){case 72:this.calculatedMember=r;break;case 36:this.ref=r;break;case 73:this.localRef=r;break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setList",this).call(this,e,r)}}},{key:"get",value:function(e){switch(e){case 72:return this.getCalculatedMember();case 36:return this.getRef();case 73:return this.getLocalRef();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"get",this).call(this,e)}}},{key:"basicGet",value:function(e){switch(e){case 72:return this.basicGetCalculatedMember();case 36:return this.basicGetRef();case 73:return this.basicGetLocalRef();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"basicGet",this).call(this,e)}}},{key:"addAt",value:function(e,r,n){switch(e){case 72:this.addCalculatedMemberAt(r,n);break;case 36:this.addRefAt(r,n);break;case 73:this.addLocalRefAt(r,n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAt",this).call(this,e,r,n)}}},{key:"add",value:function(e,r){switch(e){case 72:this.addCalculatedMember(r);break;case 36:this.addRef(r);break;case 73:this.addLocalRef(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}}},{key:"removeAt",value:function(e,r){switch(e){case 72:this.removeCalculatedMemberAt(r);break;case 36:this.removeRefAt(r);break;case 73:this.removeLocalRefAt(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeAt",this).call(this,e,r)}}},{key:"remove",value:function(e,r){switch(e){case 72:this.removeCalculatedMember(r);break;case 36:this.removeRef(r);break;case 73:this.removeLocalRef(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this,e,r)}}}],[{key:"fromJSON",value:function(e,t){var r=t.createItemHierarchy(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=d},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r=0&&this.removeParameterValueAt(t)}},{key:"getObjectType",value:function(){return"ParameterValueSet"}},{key:"getFeatureList",value:function(e){var r,n=[];return e&&(r=e.createParameterValue().getClass()),n.push(this.createFeature(!0,!1,!0,1,"parameterValue",r)),Array.prototype.push.apply(n,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),n}},{key:"set",value:function(e,r){switch(e){default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set",this).call(this,e,r)}}},{key:"_setList",value:function(e,r){switch(e){case 1:this.parameterValue=r;break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setList",this).call(this,e,r)}}},{key:"get",value:function(e){switch(e){case 1:return this.getParameterValue();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"get",this).call(this,e)}}},{key:"basicGet",value:function(e){switch(e){case 1:return this.basicGetParameterValue();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"basicGet",this).call(this,e)}}},{key:"addAt",value:function(e,r,n){switch(e){case 1:this.addParameterValueAt(r,n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAt",this).call(this,e,r,n)}}},{key:"add",value:function(e,r){switch(e){case 1:this.addParameterValue(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}}},{key:"removeAt",value:function(e,r){switch(e){case 1:this.removeParameterValueAt(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeAt",this).call(this,e,r)}}},{key:"remove",value:function(e,r){switch(e){case 1:this.removeParameterValue(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this,e,r)}}}],[{key:"fromJSON",value:function(e,t){var r=t.createParameterValueSet(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=h},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r=0&&this.removeValuesAt(t)}},{key:"getObjectType",value:function(){return"ParameterValue"}},{key:"getFeatureList",value:function(e){var r=[];r.push(this.createFeature(!1,!1,!1,80,"parameterName",null)),r.push(this.createFeature(!1,!0,!1,82,"dataType",p.default)),r.push(this.createFeature(!1,!1,!1,81,"invert",null));var n;return e&&(n=e.createValueType().getClass()),r.push(this.createFeature(!0,!1,!0,83,"values",n)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,t){switch(e){case 80:this.setParameterName(t);break;case 81:this.setInvert(t);break;case 82:this.setDataType(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"_setList",value:function(e,t){switch(e){case 83:this.values=t;break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"get",value:function(e){switch(e){case 80:return this.getParameterName();case 81:return this.isInvert();case 82:return this.getDataType();case 83:return this.getValues();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"basicGet",value:function(e){switch(e){case 80:return this.getParameterName();case 81:return this.isInvert();case 82:return this.getDataType();case 83:return this.basicGetValues();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"addAt",value:function(e,t,r){switch(e){case 83:this.addValuesAt(t,r);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"add",value:function(e,t){switch(e){case 83:this.addValues(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"removeAt",value:function(e,t){switch(e){case 83:this.removeValuesAt(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"remove",value:function(e,t){switch(e){case 83:this.removeValues(t);break;default:throw new Error("The feature "+e+" is not valid.")}}}],[{key:"fromJSON",value:function(e,t){var r=t.createParameterValue(),n=r.getFeatureList(t);return c.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=h},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r=0&&this.removeStaticValueSelectorAt(t)}},{key:"getObjectType",value:function(){return"Prompt"}},{key:"getFeatureList",value:function(e){var r=[];r.push(this.createFeature(!1,!1,!1,80,"parameterName",null)),r.push(this.createFeature(!1,!1,!1,238,"uiControlReference",null)),r.push(this.createFeature(!1,!1,!1,242,"lowerLimit",null)),r.push(this.createFeature(!1,!1,!1,241,"upperLimit",null));var n;return e&&(n=e.createValueType().getClass()),r.push(this.createFeature(!0,!1,!0,243,"staticValueSelector",n)),e&&(n=e.createQueryValueSelector().getClass()),r.push(this.createFeature(!1,!1,!0,239,"queryValueSelector",n)),r.push(this.createFeature(!1,!1,!1,240,"refDrillGroup",null)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,r){switch(e){case 238:this.setUiControlReference(r);break;case 239:this.setQueryValueSelector(r);break;case 240:this.setRefDrillGroup(r);break;case 241:this.setUpperLimit(r);break;case 80:this.setParameterName(r);break;case 242:this.setLowerLimit(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set",this).call(this,e,r)}}},{key:"_setList",value:function(e,r){switch(e){case 243:this.staticValueSelector=r;break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setList",this).call(this,e,r)}}},{key:"get",value:function(e){switch(e){case 238:return this.getUiControlReference();case 239:return this.getQueryValueSelector();case 240:return this.getRefDrillGroup();case 241:return this.getUpperLimit();case 80:return this.getParameterName();case 242:return this.getLowerLimit();case 243:return this.getStaticValueSelector();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"get",this).call(this,e)}}},{key:"basicGet",value:function(e){switch(e){case 238:return this.getUiControlReference();case 239:return this.getQueryValueSelector();case 240:return this.getRefDrillGroup();case 241:return this.getUpperLimit();case 80:return this.getParameterName();case 242:return this.getLowerLimit();case 243:return this.basicGetStaticValueSelector();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"basicGet",this).call(this,e)}}},{key:"addAt",value:function(e,r,n){switch(e){case 243:this.addStaticValueSelectorAt(r,n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAt",this).call(this,e,r,n)}}},{key:"add",value:function(e,r){switch(e){case 243:this.addStaticValueSelector(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}}},{key:"removeAt",value:function(e,r){switch(e){case 243:this.removeStaticValueSelectorAt(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeAt",this).call(this,e,r)}}},{key:"remove",value:function(e,r){switch(e){case 243:this.removeStaticValueSelector(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this,e,r)}}}],[{key:"fromJSON",value:function(e,t){var r=t.createPrompt(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=h},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r=0&&this.removeValuesAt(t)}},{key:"getObjectType",value:function(){return"ParameterFeedbackInfo"}},{key:"getFeatureList",value:function(e){var r=[];r.push(this.createFeature(!1,!1,!1,80,"parameterName",null)),r.push(this.createFeature(!1,!0,!1,82,"dataType",p.default)),r.push(this.createFeature(!1,!1,!1,118,"modelFilterItem",null));var n;return e&&(n=e.createParameterCapabilitiesType().getClass()),r.push(this.createFeature(!1,!1,!0,117,"capabilities",n)),r.push(this.createFeature(!1,!1,!1,81,"invert",null)),e&&(n=e.createValueType().getClass()),r.push(this.createFeature(!0,!1,!0,83,"values",n)),r.push(this.createFeature(!1,!0,!1,13,"location",y.default)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,t){switch(e){case 117:this.setCapabilities(t);break;case 81:this.setInvert(t);break;case 118:this.setModelFilterItem(t);break;case 82:this.setDataType(t);break;case 13:this.setLocation(t);break;case 80:this.setParameterName(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"_setList",value:function(e,t){switch(e){case 83:this.values=t;break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"get",value:function(e){switch(e){case 117:return this.getCapabilities();case 81:return this.isInvert();case 118:return this.getModelFilterItem();case 82:return this.getDataType();case 83:return this.getValues();case 13:return this.getLocation();case 80:return this.getParameterName();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"basicGet",value:function(e){switch(e){case 117:return this.getCapabilities();case 81:return this.isInvert();case 118:return this.getModelFilterItem();case 82:return this.getDataType();case 83:return this.basicGetValues();case 13:return this.getLocation();case 80:return this.getParameterName();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"addAt",value:function(e,t,r){switch(e){case 83:this.addValuesAt(t,r);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"add",value:function(e,t){switch(e){case 83:this.addValues(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"removeAt",value:function(e,t){switch(e){case 83:this.removeValuesAt(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"remove",value:function(e,t){switch(e){case 83:this.removeValues(t);break;default:throw new Error("The feature "+e+" is not valid.")}}}],[{key:"fromJSON",value:function(e,t){var r=t.createParameterFeedbackInfo(),n=r.getFeatureList(t);return c.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=d},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r=0&&this.removeFolderItemAt(t)}},{key:"getObjectType",value:function(){return"FolderType"}},{key:"getFeatureList",value:function(e){var r,n=[];return e&&(r=e.createFolderItemType().getClass()),n.push(this.createFeature(!0,!1,!0,71,"folderItem",r)),Array.prototype.push.apply(n,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),n}},{key:"set",value:function(e,r){switch(e){default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set",this).call(this,e,r)}}},{key:"_setList",value:function(e,r){switch(e){case 71:this.folderItem=r;break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setList",this).call(this,e,r)}}},{key:"get",value:function(e){switch(e){case 71:return this.getFolderItem();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"get",this).call(this,e)}}},{key:"basicGet",value:function(e){switch(e){case 71:return this.basicGetFolderItem();default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"basicGet",this).call(this,e)}}},{key:"addAt",value:function(e,r,n){switch(e){case 71:this.addFolderItemAt(r,n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAt",this).call(this,e,r,n)}}},{key:"add",value:function(e,r){switch(e){case 71:this.addFolderItem(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}}},{key:"removeAt",value:function(e,r){switch(e){case 71:this.removeFolderItemAt(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeAt",this).call(this,e,r)}}},{key:"remove",value:function(e,r){switch(e){case 71:this.removeFolderItem(r);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this,e,r)}}}],[{key:"fromJSON",value:function(e,t){var r=t.createFolderType(),n=r.getFeatureList(t);return p.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=h},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r=0&&this.removeSignificantAt(t)}},{key:"addInfluentialAt",value:function(e,t){this._addAtAndNotify(this.getInfluential(),e,t,122,!1,!1)}},{key:"addInfluential",value:function(e){this.addInfluentialAt(this.getInfluential().length,e)}},{key:"removeInfluentialAt",value:function(e){this._removeAtAndNotify(this.getInfluential(),e,122,!1)}},{key:"removeInfluential",value:function(e){var t=this.getInfluential().indexOf(e);t>=0&&this.removeInfluentialAt(t)}},{key:"getObjectType",value:function(){return"Focus"}},{key:"getFeatureList",value:function(e){var r=[];return r.push(this.createFeature(!1,!1,!1,121,"intent",null)),r.push(this.createFeature(!0,!1,!1,120,"significant",null)),r.push(this.createFeature(!0,!1,!1,122,"influential",null)),Array.prototype.push.apply(r,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),r}},{key:"set",value:function(e,t){switch(e){case 121:this.setIntent(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"_setList",value:function(e,t){switch(e){case 120:this.significant=t;break;case 122:this.influential=t;break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"get",value:function(e){switch(e){case 120:return this.getSignificant();case 121:return this.getIntent();case 122:return this.getInfluential();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"basicGet",value:function(e){switch(e){case 120:return this.basicGetSignificant();case 121:return this.getIntent();case 122:return this.basicGetInfluential();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"addAt",value:function(e,t,r){switch(e){case 120:this.addSignificantAt(t,r);break;case 122:this.addInfluentialAt(t,r);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"add",value:function(e,t){switch(e){case 120:this.addSignificant(t);break;case 122:this.addInfluential(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"removeAt",value:function(e,t){switch(e){case 120:this.removeSignificantAt(t);break;case 122:this.removeInfluentialAt(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"remove",value:function(e,t){switch(e){case 120:this.removeSignificant(t);break;case 122:this.removeInfluential(t);break;default:throw new Error("The feature "+e+" is not valid.")}}}],[{key:"fromJSON",value:function(e,t){var r=t.createFocus(),n=r.getFeatureList(t);return c.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=f},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r=0&&this.removeSplitRulesAt(t)}},{key:"getObjectType",value:function(){return"SplitConfig"}},{key:"getFeatureList",value:function(e){var r,n=[];return e&&(r=e.createSplitRule().getClass()),n.push(this.createFeature(!0,!1,!0,84,"splitRules",r)),Array.prototype.push.apply(n,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFeatureList",this).call(this,e)),n}},{key:"set",value:function(e,t){switch(e){default:throw new Error("The feature "+e+" is not valid.")}}},{key:"_setList",value:function(e,t){switch(e){case 84:this.splitRules=t;break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"get",value:function(e){switch(e){case 84:return this.getSplitRules();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"basicGet",value:function(e){switch(e){case 84:return this.basicGetSplitRules();default:throw new Error("The feature "+e+" is not valid.")}}},{key:"addAt",value:function(e,t,r){switch(e){case 84:this.addSplitRulesAt(t,r);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"add",value:function(e,t){switch(e){case 84:this.addSplitRules(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"removeAt",value:function(e,t){switch(e){case 84:this.removeSplitRulesAt(t);break;default:throw new Error("The feature "+e+" is not valid.")}}},{key:"remove",value:function(e,t){switch(e){case 84:this.removeSplitRules(t);break;default:throw new Error("The feature "+e+" is not valid.")}}}],[{key:"fromJSON",value:function(e,t){var r=t.createSplitConfig(),n=r.getFeatureList(t);return c.default.fromJSONHelper(r,n,e,t),r}}]),t}(c.default);t.default=f},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r=0;--n){var a=t[n];r!=a.getLeft().getRef()&&r!=a.getRight().getRef()||e.removeRelationshipAt(n)}}},{key:"deleteQuerySubject",value:function(e,r){t._deleteQuerySubjectImp(e,r,!0)}},{key:"_deleteQuerySubjectRelatedObjects",value:function(e,r,n){var a=A.default.getList(e.basicGetRelationship());t._deleteRelationshipsForQuerySubject(e,a,n);for(var i=A.default.getList(e.basicGetQuerySubject()),o=0,u=i,l=u.length;o=0;--p){var d=h[p],v=d.basicGetSegment();if(v)for(var g=v.length-1;g>=0;--g)0==v[g].getRef().indexOf(y)&&d.removeSegmentAt(g)}}},{key:"_deleteQuerySubjectImp",value:function(e,r,n){var a=r.getIdentifier();n&&t._deleteQuerySubjectRelatedObjects(e,r,a);for(var i=A.default.getList(e.basicGetMetadataTreeView()),o=0,u=i,l=u.length;o=0;--i)if(e==a[i].getRef()){var o=a[i];if(!n)return o;r.removeFolderItemAt(i)}else{var o=t._removeQuerySubjectFromMDTVFolder(e,a[i].getFolder(),n);if(o&&!n)return o}return null}},{key:"suggestRelationships",value:function(e,r,n,a){for(var i=[],o={},u=0,l=n,s=l.length;u0){var i=t.getQuerySubjectById(a,r),o=R.default.getSecondPart(e);i&&null!=o&&o.length>0&&(n=T.default.getQueryItemById(o,i))}return n}},{key:"getFilterById",value:function(e,t){for(var r,n=A.default.getList(t.basicGetFilter()),a=0,i=n,o=i.length;a");return r!=-1&&(t=e.substring(0,r)),t}},{key:"taskPercentage",value:function(e){var r=e.state;return"SUCCESS"==r||"CANCELLED"==r||"ERROR"==r||"NOT_AVAILABLE"==r?100:"PENDING"==r?0:t._taskStepPercentage(e.taskStep)}},{key:"_taskStepPercentage",value:function(e){var r=e.numTotalSteps,n=e.hasOwnProperty("numCompleted")?e.numCompleted:0,a=e.currentStepNum,i=100/r,o=a<1?1:a;o+=n;var u=i*(o-1),l=e.currentSubTask;return l&&(u+=i*t._taskStepPercentage(l)/100),u>100?100:u<0?0:Math.round(u)}},{key:"findObjectTypeByIdForExpression",value:function(e,r){if(null==r||0===r.length)return null;var n=r.split(new RegExp("\\."));if(0==n.length)return null;if(1==n.length){var a=t.getQuerySubjectById(n[0],e);if(a)return a;var i=t.getCalculationById(n[0],e);return i?i:t.getFilterById(n[0],e)}var a=t.getQuerySubjectById(n[0],e);if(!a)return null;for(var o,u=a.basicGetItem(),l=1;l=e.length}},{key:"_addItemToParent",value:function(e,r,n){var a=r.getObjectType();return"QuerySubject"==a?void(t._invalidIndex(r.basicGetItem(),n)?r.addItem(e):r.addItemAt(n,e)):"QueryItem"==a?void(t._invalidIndex(r.basicGetItem(),n)?r.addItem(e):r.addItemAt(n,e)):"Folder"==a?void(t._invalidIndex(r.basicGetItem(),n)?r.addItem(e):r.addItemAt(n,e)):"Calculation"==a?void(t._invalidIndex(r.basicGetItem(),n)?r.addItem(e):r.addItemAt(n,e)):void 0}},{key:"_getIdChain",value:function(e,t,r){for(var n=t;n;){var a=n.getObjectType();if("QuerySubject"!=a&&"QueryItem"!=a||e.push(n.getIdentifier()),n===r)break;n=n.getParent()}}},{key:"_addObjectToQuerySubject",value:function(e,r,n,a,i){var o=t._getParentQuerySubject(r);if(!o)return!1;var u=e.getObjectType();if("Folder"!=u){var l=e.getLabel();null!=l&&0!==l.length||(l="new"+u);var s=e.getIdentifier();if(null==s||0===s.length){s=f.default.makeIdentifier(r,l),e.setIdentifier(s);var c=[];t._getIdChain(c,r,o);for(var p="",h=c.length-1;h>=0;--h)p=p+c[h]+".";p+=s,e.setIdForExpression(p)}}if("QueryItem"==u){e.setHighlevelDatatype(G.default.generateHighlevelDatatype(e.getDatatype()));var y=a.createItemType();return y.setQueryItem(e),t._addItemToParent(y,r,n),S.default.addQueryItemToItemNormalization(o,e,a),!0}if("NamedSet"==u){var y=a.createItemType();return y.setNamedSet(e),t._addItemToParent(y,r,n),!0}if("Folder"==u){var y=a.createItemType();return y.setFolder(e),t._addItemToParent(y,r,n),!0}if("Filter"==u){if(i)t._invalidIndex(r.basicGetFilter(),n)?r.addFilter(e):r.addFilterAt(n,e);else{var y=a.createItemType();y.setFilter(e),t._addItemToParent(y,r,n)}return!0}return t._invalidIndex(r.basicGetSecurityFilter(),n)?r.addSecurityFilter(e):r.addSecurityFilterAt(n,e),!0}},{key:"_addObjectToCalculation",value:function(e,r,n,a){var i=e.getObjectType();if("Calculation"==i){var o=a.createItemType();return o.setCalculation(e),t._addItemToParent(o,r,n),!0}if("Folder"==i){var o=a.createItemType();return o.setFolder(e),t._addItemToParent(o,r,n),!0}return!1}},{key:"_getParentFolderType",value:function(e){for(var t=e;t;){var r=t.getObjectType();if("FolderType"==r)return t;if("Module"==r){var n=t,a=n.basicGetMetadataTreeView();return a&&0!=a.length?a[0]:null}t=t.getParent()}return null}},{key:"_addFolderTypeToMDTV",value:function(e,r,n,a){var i=t._getParentFolderType(r);if(!i)return!1;var o=a.createFolderItemType();return o.setFolder(e),t._invalidIndex(i.basicGetFolderItem(),n)?i.addFolderItem(o):i.addFolderItemAt(n,o),!0}},{key:"_setIdentifierInModuleScope",value:function(e,t){var r=e.getLabel();null!=r&&0!==r.length||(r="new"+e.getObjectType());var n=e.getIdentifier();return null!=n&&0!==n.length||(n=f.default.makeIdentifier(t,r),e.setIdentifier(n),e.setIdForExpression(n)),n}},{key:"_addObjectToModule",value:function(e,r,n,a){var i=t._getParentFolderType(r);if(!i)return!1;var o=J.default.getModuleObject(i);if(!o)return!1;var u=t._setIdentifierInModuleScope(e,o),l=e.getObjectType(),s=a.createFolderItemType();return s.setRef(u),s.setReferencedObject(e),t._invalidIndex(i.basicGetFolderItem(),n)?i.addFolderItem(s):i.addFolderItemAt(n,s),"QuerySubject"==l?o.addQuerySubject(e):"Calculation"==l?o.addCalculation(e):o.addFilter(e),!0}},{key:"remove",value:function(e){return t._removeImp(e,!0)}},{key:"_removeImp",value:function(e,r){if(!e)return null;var n=e.getObjectType();if("QueryItem"==n||"SecurityFilter"==n||"Folder"==n)return t._removeObjectFromQuerySubject(e,r);if("Filter"==n){var a=t._getParentQuerySubject(e);return a?t._removeObjectFromQuerySubject(e,r):t._removeObjectFromModule(e,r)}return"Calculation"==n||"QuerySubject"==n?t._removeObjectFromModule(e,r):"FolderType"==n?t._removeFolderTypeFromMDTV(e,r):null}},{key:"_removeObjectFromQuerySubject",value:function(e,r){var n=e.getObjectType();if("Folder"==n||"QueryItem"==n)return t._removeParentItem(e,r);if("SecurityFilter"==n){var a=t._getParentObjectType(e);if("QuerySubject"==a){var i=e.getParent();return r&&i.removeSecurityFilter(e),e}return null}if("Filter"==n){var a=t._getParentObjectType(e);if("QuerySubject"==a){var i=e.getParent();return r&&i.removeFilter(e),e}return t._removeParentItem(e,r)}return null}},{key:"_getParentObjectType",value:function(e){var t=e.getParent();return t?t.getObjectType():null}},{key:"_removeParentItem",value:function(e,r){var n=t._getParentObjectType(e);if("ItemType"!=n)return null;var a=e.getParent(),i=a.getParent();if(!i)return null;var o,u,l,s,c,f=i.getObjectType();if(r&&(o=[],u=[],t._collectQIIdsInItem(a,o,u),0!=o.length&&(c=t._getParentQuerySubject(a),s=J.default.getModuleObject(c),s&&c&&(l=c.getIdentifier())),null!=l&&t._cleanSplitDefinition(s,e)),"QuerySubject"==f)r&&i.removeItem(a);else if("QueryItem"==f)r&&i.removeItem(a);else{if("Folder"!=f)return null;r&&i.removeItem(a)}if(null!=l)for(var p=0;p-1&&(O.removeParentGroupRef(v),g))for(var T=0,I=g,E=I.length;T-1||O.addParentGroupRef(w)}}}0==n.length&&e.setItemNormalization(null)}}}},{key:"_collectQIIdsInItem",value:function(e,r,n){var a=e.getQueryItem();if(a){var i=a.getIdentifier(),o=a.getIdForExpression();null!=i&&null!=o&&(r.push(i),n.push(o))}else{var u=e.getFolder();u&&t._collectQIIdsInFolder(u,r,n)}}},{key:"_collectQIIdsInFolder",value:function(e,r,n){var a=e.basicGetItem();if(a&&0!=a.length)for(var i=0,o=a,u=o.length;i=0&&(o.removeItemAt(r),t[0]=o);else if("Filter"==i)r=o.getFilter().indexOf(e),r>=0&&(o.removeFilterAt(r),t[0]=o);else{if("SecurityFilter"!=i)return-1;r=o.getSecurityFilter().indexOf(e),r>=0&&(o.removeSecurityFilterAt(r),t[0]=o)}}else if("Folder"==a){if("ItemType"!=i)return-1;r=n.getItem().indexOf(e),r>=0&&(n.removeItemAt(r),t[0]=n)}else if("QueryItem"==a){if("ItemType"!=i)return-1;r=n.getItem().indexOf(e),r>=0&&(n.removeItemAt(r),t[0]=n)}else{if("FolderType"!=a)return-1;if("FolderItemType"!=i)return-1;r=n.getFolderItem().indexOf(e),r>=0&&(n.removeFolderItemAt(r),t[0]=n)}return e.setParent(null),r}},{key:"_adjustIndex",value:function(e,t,r,n){var a=e;return n&&t&&t===n&&a>r&&a--,a}},{key:"_insertToParent",value:function(e,r,n,a,i){var o=e.getObjectType();if("FolderItemType"==o){var u=t._getParentFolderType(r); if(!u)return;var l=t._adjustIndex(n,u,i,a);t._invalidIndex(u.basicGetFolderItem(),l)?u.addFolderItem(e):u.addFolderItemAt(l,e)}else if("ItemType"==o){var l=t._adjustIndex(n,r,i,a);t._addItemToParent(e,r,l)}else if("Filter"==o){var l=t._adjustIndex(n,r,i,a);t._invalidIndex(r.basicGetFilter(),l)?r.addFilter(e):r.addFilterAt(l,e)}else if("SecurityFilter"==o){var l=t._adjustIndex(n,r,i,a);t._invalidIndex(r.basicGetSecurityFilter(),l)?r.addSecurityFilter(e):r.addSecurityFilterAt(l,e)}}},{key:"getExtractIdentifiersSpec",value:function(e,t){return S.default.getExtractIdentifiersSpec(e,t)}},{key:"setIdentifier",value:function(e,t,r){var n;if(r){var a=r.feedback;if(a&&0!=a.length){n={};for(var i=0,o=a,u=o.length;i0){i={};for(var o=0,u=r.length;o=0;--a){var i=n[a];if(e==i.getRef()||i.getDefLink()&&e==i.getDefLink().getRef())return i;if(i=t._getFolderItemTypeInMDTVFolder(e,i.getFolder()))return i}return null}},{key:"findTreeObjectByIdForExpression",value:function(e,r,n){if(null==e||0===e.length||!r)return null;if(!n)return t._findObjectByIdforExprInObject(r,e);var a=J.default.getModuleObject(r);if(!a)return null;for(var i=A.default.getList(a.basicGetMetadataTreeView()),o=0,u=i,l=u.length;o0){i={};for(var o=0,u=n.length;or))for(var o=t._getVisibleChildren(e),u=0,l=o,s=l.length;u-1))return!1;for(var a=[],i=0,o=A.default.getQueryItems(e),u=o.length;in&&(n=l)}}return n++,t+n}},{key:"idIsAllowedToBeChanged",value:function(e){if(!e)return!0;if("QueryItem"==e.getObjectType()){var t=e.getExpression(),r=e.getIdentifier();if(null!=r&&0!==r.length&&null!=t&&0!==t.length)for(var n=_.default.collectIdentifiers(t),a=0,i=n,o=i.length;a=0;--r)e.removePropertyOverrideAt(r)}},{key:"_getMUseSpecByStoreId",value:function(e,t){for(var r=_.default.getList(e.basicGetUseSpec()),n=0,a=r,i=a.length;n-1&&r.push(u.getIdentifier())}return r}},{key:"_getProjectedItemTypeByExtName",value:function(e,t){for(var r=_.default.getList(e.basicGetProjectedItem()),n=0,a=r,i=a.length;n-1&&r.push(o)}return r}},{key:"_getExcept",value:function(e,t){for(var r=[],n=0,a=e,i=a.length;n-1||r.push(o)}return r}},{key:"_getUpdateItemIds",value:function(e,r,n){if(0==e.length)return null;for(var a,i=0,o=e,u=o.length;i-1&&r.push(e):a[1]=!0}else{var u=e.getFolder();u&&t._deleteItemsInFolder(u,n,a)}}},{key:"_deleteItemsInFolder",value:function(e,r,n){var a=e.basicGetItem();if(a&&0!=a.length){for(var i=[],o=0,u=a,l=u.length;o0?t+"_"+n:t}},{key:"getItemTypeByIdAndQuerySubject",value:function(e,t){if(!t)return null;var r=t.basicGetItem();if(!r||0==r.length)return null;for(var n=0,a=r,i=a.length;n=0;--n){var a=r[n],i=a.basicGetPropertyOverride();i&&i.indexOf("NEW")>-1||r.splice(n,1);var o=a.basicGetPropertyOverride();t._clearList(o)}}},{key:"_removeUnoverridenObjectTypeProperties",value:function(e){var r=e.basicGetPropertyOverride();r&&r.indexOf("label")>-1||e.setLabel(null),r&&r.indexOf("comment")>-1||e.setComment(null),r&&r.indexOf("description")>-1||e.setDescription(null),r&&r.indexOf("screenTip")>-1||e.setScreenTip(null),r&&r.indexOf("hidden")>-1||e.setHidden(null),t._removeUnoverridenProperty(e.basicGetProperty(),e.basicGetPropertyOverride())}},{key:"propertyOverrideContains",value:function(e,t){return e&&e.indexOf(t)>-1}},{key:"_removeUnoverridenQueryItemProperties",value:function(e,r){var n=e.basicGetPropertyOverride();n&&n.indexOf("NEW")>-1?t._removeSplitDefinitionMetadata$0(e,e.basicGetSplitDefinition()):(t._removeUnoverridenBaseQueryItemTypeProperties(e),t._clearList(e.basicGetConcepts()),e.setMinimumValue(null),e.setMaximumValue(null),e.setNumberOfDistinctValues(null),e.setNumberOfNullValues(null),t._removeUnoverridenCalculatedMember(e.basicGetCalculatedMember())),t._removeUnoverridenPropertyOverride(e,r)}},{key:"_removeUnoverridenCalculationProperties",value:function(e,r){t._removeUnoverridenBaseQueryItemTypeProperties(e),t._removeUnoverridenPropertyOverride(e,r)}},{key:"_removeUnoverridenBaseQueryItemTypeProperties",value:function(e){var r=e.basicGetPropertyOverride();r&&r.indexOf("NEW")>-1||(t._removeUnoverridenObjectTypeProperties(e),r&&r.indexOf("usage")>-1||e.setUsage(null),r&&r.indexOf("regularAggregate")>-1||e.setRegularAggregate(null),r&&r.indexOf("facetDefinition")>-1||e.setFacetDefinition(null),r&&r.indexOf("format")>-1||e.setFormat(null),t.propertyOverrideContains(r,"taxonomy")||t._clearList(e.basicGetTaxonomy()),e.setDatatype(null),e.setNullable(null),e.setExpression(null),t._clearList(e.basicGetSplitDefinition()))}},{key:"_removeUnoverridenFilterProperties",value:function(e,r){var n=e.basicGetPropertyOverride();n&&n.indexOf("NEW")>-1||(t._removeUnoverridenObjectTypeProperties(e),e.setExpression(null),e.setPostAutoAggregation(null)),t._removeUnoverridenPropertyOverride(e,r)}},{key:"_removeUnoverridenFolderProperties",value:function(e,r){var n=e.basicGetPropertyOverride();n&&n.indexOf("NEW")>-1||t._removeUnoverridenObjectTypeProperties(e),t._removeUnoverridenPropertyOverride(e,r)}},{key:"_removeUnoverridenNamedSetProperties",value:function(e,r){t._removeUnoverridenBaseQueryItemTypeProperties(e),t._removeUnoverridenPropertyOverride(e,r)}},{key:"_removeUnoverridenPropertyOverride",value:function(e,t){var r=e.basicGetPropertyOverride();if(r)if(t){var n=[];Array.prototype.push.apply(n,r),r.length=0;for(var a=0,i=n,o=i.length;a-1||r.push(u)}}else r.length=0}},{key:"_removeGeneratedCalculationProperties",value:function(e){e.setIdForExpression(null)}},{key:"_removeGeneratedItemHierarchyProperties",value:function(e){e.setIdForExpression(null)}},{key:"_removeGeneratedFilterProperties",value:function(e){e.setIdForExpression(null)}},{key:"_removeGeneratedNamedSetProperties",value:function(e){e.setIdForExpression(null)}},{key:"_removeGeneratedQueryItemProperties",value:function(e){e.setIdForExpression(null),e.setHighlevelDatatype(null),e.setDatatypeCategory(null)}},{key:"_removeUnoverridenCalculatedMember",value:function(e){if(e)for(var r=0,n=e,a=n.length;r-1||t._removeUnoverridenObjectTypeProperties(i),t._clearList(o)}}},{key:"_removeUnoverridenItemHierarchyProperties",value:function(e,r){var n=e.basicGetPropertyOverride();n&&n.indexOf("NEW")>-1||(t._removeUnoverridenObjectTypeProperties(e),n&&n.indexOf("localRef")>-1||t._clearList(e.basicGetLocalRef()),t._removeUnoverridenCalculatedMember(e.basicGetCalculatedMember())),t._removeUnoverridenPropertyOverride(e,r)}},{key:"_clearList",value:function(e){e&&(e.length=0)}},{key:"_emptyList",value:function(e){return!e||0==e.length}},{key:"notEmptyList",value:function(e){return e&&!(0==e.length)}},{key:"_removeUnoverridenQuerySubjectProperties",value:function(e){t._removeUnoverridenObjectTypeProperties(e),t._removeUnoverridenQuerySubjectFilters(e),t._clearList(e.basicGetPropertyOverride()),t._clearList(e.basicGetProperty()), e.setNumberOfRows(null),e.setItemNormalization(null)}},{key:"_removeUnoverridenRelationshipProperties",value:function(e){t._removeUnoverridenObjectTypeProperties(e),t._clearList(e.basicGetPropertyOverride())}},{key:"_removeFilterListGeneratedMetadata",value:function(e){if(e)for(var r=0,n=e,a=n.length;r-1}},{key:"_removeQuerySubjectMetadata",value:function(e,r,n,a){for(var i=h.default.getList(r.basicGetQuerySubject()),o=i.length-1;o>=0;--o){var u=i[o];if(f.default.REFERENCE===u.getInstanceType()){var l=u.basicGetOriginalRef();if(t.notEmptyList(l)){var s=u.getRef();s.length=0,Array.prototype.push.apply(s,l),l.length=0}var c=0,p=u.basicGetPropertyOverride();p&&(c=p.length);var y=t._isImported(u);t._removeUnoverridenItems(u.basicGetItem(),[],e),t._removeUnoverridenQuerySubjectProperties(u),t._removeFilterListGeneratedMetadata(u.basicGetFilter()),y&&1==c&&t._emptyList(u.basicGetItem())&&t._emptyList(u.basicGetFilter())?i.splice(o,1):u.setIdForExpression(null)}else if(f.default.MISSING===u.getInstanceType()){u.setInstanceType(null);for(var v=h.default.getList(u.basicGetRef()),b=0,_=v,m=_.length;b-1&&u.setLabel(null),t._isImported(u)?i.splice(o,1):u.setIdForExpression(null),t._clearList(k)}else if(a||n.indexOf(d.default.getFirstPart(u.getIdentifier()))>-1)i.splice(o,1);else{var T=u.basicGetItem();t._removeItemMetadata(T),t._removeFilterListGeneratedMetadata(u.basicGetFilter()),u.setIdForExpression(null)}}}},{key:"_removeUnoverridenItems",value:function(e,r,n){if(!t._emptyList(e))for(var a=e.length-1;a>=0;--a){r.push(""+a);var i=t._getPath(r),o=e[a];if(o.getQueryItem()){var u=o.getQueryItem();t._clearList(u.basicGetMembers());var l=u.basicGetItem();t._removeUnoverridenItems(l,r,n),t._emptyList(l)&&t._emptyList(u.basicGetPropertyOverride())&&!t._isCalculatedMemberTypeChanged(u.basicGetCalculatedMember())?e.splice(a,1):(t._removeUnoverridenQueryItemProperties(u,n),t._removeGeneratedQueryItemProperties(u),n&&t._setPathProperty(u,i,!1))}else if(o.getNamedSet()){var s=o.getNamedSet(),l=s.basicGetItem();t._removeUnoverridenItems(l,r,n),t._emptyList(l)&&t._emptyList(s.basicGetPropertyOverride())?e.splice(a,1):(t._removeUnoverridenNamedSetProperties(s,n),t._removeGeneratedNamedSetProperties(s),n&&t._setPathProperty(s,i,!1))}else if(o.getFilter()){var c=o.getFilter();t._emptyList(c.basicGetPropertyOverride())?e.splice(a,1):(t._removeUnoverridenFilterProperties(c,n),t._removeGeneratedFilterProperties(c),n&&t._setPathProperty(c,i,!1))}else if(o.getFolder()){var f=o.getFolder(),l=f.basicGetItem();t._removeUnoverridenItems(l,r,n),t._emptyList(l)&&t._emptyList(f.basicGetPropertyOverride())?e.splice(a,1):(t._removeUnoverridenFolderProperties(f,n),n&&t._setPathProperty(f,i,!1))}else if(o.getItemHierarchy()){var p=o.getItemHierarchy();t._emptyList(p.basicGetPropertyOverride())&&!t._isCalculatedMemberTypeChanged(p.basicGetCalculatedMember())?e.splice(a,1):(t._removeUnoverridenItemHierarchyProperties(p,n),t._removeGeneratedItemHierarchyProperties(p),n&&t._setPathProperty(p,i,!1))}else if(o.getCalculation()){var h=o.getCalculation(),l=h.basicGetItem();t._removeUnoverridenItems(l,r,n),t._emptyList(l)&&t._emptyList(h.basicGetPropertyOverride())?e.splice(a,1):(t._removeUnoverridenCalculationProperties(h,n),t._removeGeneratedCalculationProperties(h),n&&t._setPathProperty(h,i,!1))}r.splice(r.length-1,1)}}},{key:"_getPath",value:function(e){for(var t="",r=0;r0&&(t+="."),t+=e[r];return t}},{key:"_setPathProperty",value:function(e,t,r){for(var n,a=e.getProperty(),i=0,o=a,u=o.length;i=0;--n){var a=e[n];t._isImported(a)||r.indexOf(d.default.getFirstPart(a.getIdentifier()))>-1?e.splice(n,1):t._removeGeneratedCalculationProperties(a)}}},{key:"_removeRelationshipMetadata",value:function(e){if(e)for(var r=e.length-1;r>=0;--r){var n=e[r];f.default.REFERENCE===n.getInstanceType()||f.default.MISSING===n.getInstanceType()?t._isImported(n)&&t.notEmptyList(n.basicGetPropertyOverride())&&1==n.getPropertyOverride().length?e.splice(r,1):(t._removeUnoverridenRelationshipProperties(n),n.setLeft(null),n.setRight(null),t._clearList(n.basicGetLink()),f.default.MISSING===n.getInstanceType()&&n.setInstanceType(f.default.REFERENCE)):t._isImported(n)&&e.splice(r,1)}}},{key:"_removeGlobalFilterMetadata",value:function(e,r){if(e)for(var n=e.length-1;n>=0;--n){var a=e[n];(t._isImported(a)||r.indexOf(d.default.getFirstPart(a.getIdentifier()))>-1)&&e.splice(n,1)}}},{key:"_removeListMetadata",value:function(e,r){if(e)for(var n=e.length-1;n>=0;--n){var a=e[n];(t._isImported(a)||r.indexOf(d.default.getFirstPart(a.getIdentifier()))>-1)&&e.splice(n,1)}}},{key:"_removeMDTV",value:function(e,r){if(r)for(var n=0,a=r,i=a.length;n-1)for(var s=l.length-1;s>=0;--s){var c=l[s];"Imported"==c&&l.splice(s,1)}null==u.getIdentifier()&&l&&l.indexOf(o)>-1&&(u.setIdentifier(o),l.length=0)}}}},{key:"_removeImportedMDTV",value:function(e,r){var n=e.basicGetMetadataTreeView();if(t.notEmptyList(n)){for(var a=new T.default,i=h.default.getList(n[0].basicGetFolderItem()),o=i.length-1;o>=0;--o){var u=i[o],l=u.getFolder();if(l&&t._isImported(l)){i.splice(o,1);var s=[];s.push(""+o),t._collectNewFolderItems(a,l,s,e)}else{var c=u.getRef();if(null!=c){var f=d.default.findRefById(c,e);f&&!t._isImported(f)||i.splice(o,1)}else{var p=u.getFolder(),y=p.getIdentifier();null!=y&&0==y.indexOf("M")&&r.indexOf(y)>-1&&i.splice(o,1)}}}if(0!=i.length||a.basicGetFolderItem()||e.getMetadataTreeView().splice(0,1),a.basicGetFolderItem()){var v=new E.default;v.setFolder(a),i.push(v)}}}},{key:"_collectNewFolderItems",value:function(e,r,n,a){var i=r.basicGetFolderItem();if(i)for(var o=0;o=0;--a){var i=r[a];(t._isResolvedUseSpec(i)||n&&"*"!=i.getImports()&&!t._isReferencedUseSpec(i,e))&&r.splice(a,1)}}},{key:"_isReferencedUseSpec",value:function(e,r){var n=r.basicGetQuerySubject();if(n&&0!=n.length)for(var a=0,i=n,o=i.length;a=0;--r){var n=e[r];t&&t.indexOf("property."+n.getName())>-1||e.splice(r,1)}}},{key:"removeModuleMetadata",value:function(e){var r=e.isOverrideMode();e.setOverrideMode(!1),t._clearList(e.basicGetUse()),t._clearList(e.basicGetDataSource());for(var n=h.default.getList(e.basicGetUseSpec()),a=[],i=t.isEmbeddedModule(n),o=0,u=n,l=u.length;o-1)return u;for(var l=f.default.getList(u.basicGetFolderItem()),s=0,c=l,p=c.length;s=0&&f.splice(p,1)}}if(i&&"QuerySubject"==i.getObjectType()||(i=t._bestMatch(e,n,a)),i){for(;0!=e.getRef().length;)e.removeRefAt(0);e.addRef(r.getIdentifier()+"."+i.getIdentifier())}}},{key:"_buildQSRefList",value:function(e){var r=e.basicGetRef(),n=e.basicGetOriginalRef(),a=[];if(r&&0!=r.length)for(var i=0,o=r,u=o.length;ia&&(n=f,a=p)}return n}},{key:"_collectItemsIdentifiers",value:function(e){var r=[];if(!e||0==e.length)return r;for(var n=0,a=e,i=a.length;n-1?1:0}return r}},{key:"_relinkRelationship",value:function(e,r,n,a){var i=e.getRef(),o=d.default.getSecondPart(i),u=n[o];if(h.default.MISSING===e.getInstanceType()){e.setInstanceType(null);var l=e.basicGetPropertyOverride();if(l&&0!=l.length){var s=l.indexOf("instanceType");s>=0&&l.splice(s,1)}}u&&"Relationship"==u.getObjectType()||(u=t._bestMatch(e,n,a)),u&&e.setRef(r.getIdentifier()+"."+u.getIdentifier())}},{key:"_relinkCalculation",value:function(e,r,n,a){var i=e.getRef(),o=d.default.getSecondPart(i),u=n[o];u&&"Calculation"==u.getObjectType()||(u=t._bestMatch(e,n,a)),u&&e.setRef(r.getIdentifier()+"."+u.getIdentifier())}},{key:"_relinkFilter",value:function(e,r,n,a){var i=e.getRef(),o=d.default.getSecondPart(i),u=n[o];u&&"Filter"==u.getObjectType()||(u=t._bestMatch(e,n,a)),u&&e.setIdentifier(r.getIdentifier()+"."+u.getIdentifier())}}]),t}(s.default);t.default=v},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r-1||c.push(s)}}}return t}},{key:"_containsDrillGroups",value:function(){var e=this.module.basicGetDrillGroup();if(!e)return!1;for(var t=0,r=e,n=r.length;t-1||v.push(d)}}}return t}},{key:"_buildQsRemap",value:function(){this.qsIdRemap={};for(var e=0,t=this.qsIds,r=t.length;er&&(t=l,r=f)}return t}},{key:"_relinkExpression",value:function(e){if(null==e||0===e.length)return null;var t=e.split(new RegExp("\\."));if(t.length<2)return null;var r=t[0],n=this.qsIdRemap[r];return null==n?null:n+e.substring(r.length)}},{key:"_relinkDrillGroups",value:function(){var e=this.module.basicGetDrillGroup();if(e)for(var t=0,r=e,n=r.length;t0&&a.push(u)}return a}},{key:"_resolveByPath",value:function(e,r,n,a){if(0==e.length||!r||0==e[0].length)return null;var i=e[0],o=i,u=0,l=i.indexOf("[");if(l!=-1){o=i.substring(0,l);var s=i.substring(l+1,i.length-1);u=parseInt(s)-1}var c,f=r.getFeatureID(o);if(f>0){var p,h=r.get(f);if(p="array"==typeof h||h instanceof Array?h[u]:h,p instanceof g.default){e.splice(0,1);var y=p,d=t._checkLabel(y),v=a;null!=d&&(v=d),0!=e.length&&0!=e[0].length?c=t._resolveByPath(e,y,n,v):(c=t._setDiagnoticProperties(y,v,n,f),y.addDiagnostic(c))}else c=t._setDiagnoticProperties(r,a,n,f);r.addDiagnostic(c)}else if("sortItem"==o&&r instanceof _.default){var b=r;c=t._setDiagnoticProperties(b,a,n,249),b.addDiagnostic(c);var m=b.getFacetDefinition();if(m){c=t._setDiagnoticProperties(m,a,n,18),m.addDiagnostic(c);var O=m.getSortList();if(O){c=t._setDiagnoticProperties(O,a,n,184),O.addDiagnostic(c);var k=O.basicGetSortItem();if(k&&0!=k.length){var T=k[0];c=t._setDiagnoticProperties(T,a,n,36),T.addDiagnostic(c)}}}}else c=t._setDiagnoticProperties(r,a,n,f),r.addDiagnostic(c);return c}},{key:"_setDiagnoticProperties",value:function(e,t,r,n){var a=new h.default;return a.setProperties(e,t,r,n),a}},{key:"_checkLabel",value:function(e){var t;if(e instanceof O.default){var r=e.getLabel();null!=r&&(t=r)}return t}},{key:"_getObjectByLocationPath",value:function(e,t){var r=t,n=0,a=t.indexOf("[");if(a!=-1){r=t.substring(0,a);var i=t.substring(a+1,t.length-1);n=parseInt(i)-1}var o,u=e.getFeatureID(r),l=e.get(u);return o="array"==typeof l||l instanceof Array?l[n]:l}},{key:"_resolveAndTagDrillGroup",value:function(e,r){var n=r.getLocation();if(null!=n&&n.indexOf("/drillGroup[")!=-1){var a=t._convertLocationToList(n);if(!(a.length<=1)){var i,o=t._getObjectByLocationPath(e,a[0]);if(o instanceof g.default){var u=t._getObjectByLocationPath(o,a[1]);if(u instanceof T.default.Segment){var l=u,s=l.getRef(),c=s.indexOf("."),f=s.substring(0,c),p=s.substring(c+1,s.length-1),h=t._getQuerySubjectFromModuleByIdentifier(e,f);if(h){i=t._setDiagnoticProperties(h,h.getLabel(),r,0),h.addDiagnostic(i);var y=t._getQueryItemFromQuerySubjectByIdentifier(h,p);y&&(i=t._setDiagnoticProperties(y,y.getLabel(),r,0),y.addDiagnostic(i))}}}}}}},{key:"_resolveAndTagRelationship",value:function(e,r){var n=r.getLocation();if(null!=n&&n.indexOf("/relationship[")!=-1){var a,i=t._convertLocationToList(n),o=t._getObjectByLocationPath(e,i[0]);if(o instanceof E.default){var u=o;if(u.getLeft()){var l=t._getQuerySubjectFromModuleByIdentifier(e,u.getLeft().getRef());a=t._setDiagnoticProperties(u,u.getLabel(),r,l.getFeatureID("relationship")),l.addDiagnostic(a)}if(u.getRight()){var l=t._getQuerySubjectFromModuleByIdentifier(e,u.getRight().getRef());a=t._setDiagnoticProperties(u,u.getLabel(),r,l.getFeatureID("relationship")),l.addDiagnostic(a)}}}}},{key:"_getQuerySubjectFromModuleByIdentifier",value:function(e,t){if(!e)return null;for(var r,n=e.getQuerySubject(),a=0,i=n,o=i.length;a0&&this._whenThenCustomBins(e,n),r 1 and ",t+=e,t+=" < ",t+=this.numberOfBins;var r=d.default.injectMacro(this._binMiddleLowCalc(e)),n=d.default.injectMacro(this._binMiddleHighCalc(e));return f.default.whenThen(t,this._thenBinMiddle(r,n))}},{key:"_whenThenBinMiddleCustomRanges",value:function(e,t){var r=e;r+=" = ",r+=t;var n;if(this.customLabels&&null!=this.customLabels[t])n=f.default.getLiteral(this.customLabels[t]);else{var a=this.customRanges[t-1],i=this.customRanges[t];n=this._thenBinMiddle(a,i)}return f.default.whenThen(r,n)}},{key:"_thenBinMiddle",value:function(e,r){if(null==e){var n=d.default.substitute(f.default.getLiteral("%1"),f.default.getLiteral(r),t._binLow(this.expressionLocale),this.expressionLocale);return n=d.default.macroAsString(n),d.default.macro(n)}if(null==r){var n=d.default.substitute(f.default.getLiteral("%1"),f.default.getLiteral(e),t._binHigh(this.expressionLocale),this.expressionLocale);return n=d.default.macroAsString(n),d.default.macro(n)}var n=d.default.substitute(f.default.getLiteral("%1"),f.default.getLiteral(e),t._binMiddle(this.expressionLocale),this.expressionLocale);return n=d.default.substitute(f.default.getLiteral("%2"),f.default.getLiteral(r),n,this.expressionLocale),n=d.default.macroAsString(n),d.default.macro(n)}},{key:"_binMiddleLowCalc",value:function(e){if(h.default.INTEGER===this.queryItem.getHighlevelDatatype())return this._binMiddleLowCalcInteger(e);var t=this.minForReport;return t+=" + ( ",t+=e,t+=" - 1 ) * ",t+=this.binWidth,this._castToDecimalThenVarchar$0(t)}},{key:"_binMiddleLowCalcInteger",value:function(e){var t=e;t+=" + ",t+=this.virtualMinValue,t+=" - 1";var r=this.minForReport;return r+=" + ( ",r+=e,r+=" - 1 ) * ",r+=this.binWidth,this._castToDecimalThenVarchar$0(f.default.inlineIfThenElse(this.integerCheck,t,r))}},{key:"_binMiddleHighCalc",value:function(e){if(h.default.INTEGER===this.queryItem.getHighlevelDatatype())return this._binMiddleHighCalcInteger(e);var t=this.minForReport;return t+=" + ",t+=e,t+=" * ",t+=this.binWidth,this._castToDecimalThenVarchar$0(t)}},{key:"_binMiddleHighCalcInteger",value:function(e){var t=e;t+=" + ",t+=this.virtualMinValue;var r=this.minForReport;return r+=" + ",r+=e,r+=" * ",r+=this.binWidth,this._castToDecimalThenVarchar$0(f.default.inlineIfThenElse(this.integerCheck,t,r))}},{key:"_whenThenBinLow",value:function(e){var r=e;r+=" = 1";var n;if(this.customLabels&&null!=this.customLabels[1])n=f.default.getLiteral(this.customLabels[1]);else if(this._isCustomRanges())n=this._thenBinMiddle(this.customRanges[0],this.customRanges[1]);else{var a=d.default.injectMacro(this._binLowCalc());n=d.default.substitute(f.default.getLiteral("%1"),f.default.getLiteral(a),t._binLow(this.expressionLocale),this.expressionLocale),n=d.default.macroAsString(n),n=d.default.macro(n)}return f.default.whenThen(r,n)}},{key:"_binLowCalc",value:function(){if(h.default.INTEGER===this.queryItem.getHighlevelDatatype())return this._binLowCalcInteger();var e=this.minForReport;return e+=" + ",e+=this.binWidth,this._castToDecimalThenVarchar$0(e)}},{key:"_binLowCalcInteger",value:function(){var e=this.virtualMinValue;e+=" + 1";var t=this.minForReport;return t+=" + ",t+=this.binWidth,this._castToDecimalThenVarchar$0(f.default.inlineIfThenElse(this.integerCheck,e,t))}},{key:"_whenThenBinHigh",value:function(e){var r=e;r+=" = ",r+=this.numberOfBins;var n;if(this.customLabels&&null!=this.customLabels[this.numberOfBins])n=f.default.getLiteral(this.customLabels[this.numberOfBins]);else if(this._isCustomRanges())n=this._thenBinMiddle(this.customRanges[this.numberOfBins-1],this.customRanges[this.numberOfBins]);else{var a=d.default.injectMacro(this._binHighCalc());n=d.default.substitute(f.default.getLiteral("%1"),f.default.getLiteral(a),t._binHigh(this.expressionLocale),this.expressionLocale),n=d.default.macroAsString(n),n=d.default.macro(n)}return f.default.whenThen(r,n)}},{key:"_binHighCalc",value:function(){if(h.default.INTEGER===this.queryItem.getHighlevelDatatype())return this._binHighCalcInteger();var e=this.minForReport;return e+=" + ",e+=this.numberOfBins-1,e+=" * ",e+=this.binWidth,this._castToDecimalThenVarchar$0(e)}},{key:"_binHighCalcInteger",value:function(){var e=this.virtualMaxValue;e+=" - 1";var t=this.minForReport;return t+=" + ",t+=this.numberOfBins-1,t+=" * ",t+=this.binWidth,this._castToDecimalThenVarchar$0(f.default.inlineIfThenElse(this.integerCheck,e,t))}},{key:"_whenThenBinEdge",value:function(e){var t=e;return t+=" = -1",f.default.whenThen(t,this._castToDecimalThenVarchar$1(this.identifier,!1))}},{key:"_castToDecimalThenVarchar$0",value:function(e){return this._castToDecimalThenVarchar$1(e,!0)}},{key:"_castToDecimalThenVarchar$1",value:function(e,t){var r=e;t&&h.default.INTEGER===this.queryItem.getHighlevelDatatype()&&(r=f.default.ceil(r));var n=h.default.INTEGER===this.queryItem.getHighlevelDatatype()?0:this.maxDecimalPlaces,a="decimal(18"+g.default.getListSeparator(this.expressionLocale)+" "+n+")";return f.default.cast(f.default.cast(r,a,this.expressionLocale),"varchar(20)",this.expressionLocale)}},{key:"getRanges",value:function(){var e=h.default.INTEGER===this.queryItem.getHighlevelDatatype();if(this._isCustomRanges())return this._getCustomRanges(e);for(var t=[],r=0,n=e?this._rawIntegerBinLimits():this._rawBinLimits(),a=n.length;rthis.minValue?this.minValue:r-n+r;return _.default.formatDouble(a,e?0:this.maxDecimalPlaces)}},{key:"_getCustomHighRange",value:function(e){var t=this.customRanges[this.numberOfBins-2],r=null==t?this.minValue:parseFloat(t),n=parseFloat(this.customRanges[this.numberOfBins-1]),a=n= ",a+=t,null!=r&&(a+=" and ",a+=e)),null!=r&&(a+=n?" <= ":" < ",a+=r),a}},{key:"assembleCase",value:function(e){var t="case";t+="\r\n";for(var r=0,n=e.length;r0&&(i+=a,i+=" "),i+=t[o];return i+=" )",i+=" )"}},{key:"maximumForScope",value:function(e,t,r,n){var a=f.default.getListSeparator(n),i="maximum ( ";i+=r,i+=" ( ",i+=e,i+=" for ";for(var o=0;o0&&(i+=a,i+=" "),i+=t[o];return i+=" )",i+=" )"}},{key:"escapeStringLiteral",value:function(e){return e.toString().replace(new RegExp("\\'","g"),"''")}},{key:"getLiteral",value:function(e){if(null==e)return null;if("string"==typeof e||e instanceof String){var t="'";return t+=e,t+="'"}return e.toString()}},{key:"nest",value:function(e){var t="\r\n ";return t+=e.replace(new RegExp("\r\n","g"),"\r\n "),t+="\r\n"}},{key:"_isNullLiteral",value:function(e){return null==e||"__NULL_NAME__"==e}},{key:"_ifExp",value:function(e){var t="if ( ";return t+=e,t+=" )"}},{key:"_whenExp",value:function(e){var t="when ( ";return t+=e,t+=" )"}},{key:"_thenExp",value:function(e){var t="then ( ";return t+=e,t+=" )"}},{key:"whenInThen",value:function(e,r,n,a){return t.whenThen(t.in(e,r,a),n)}}]),t}(s.default);p.INDENT=" ",p.NEWLINE="\r\n",p.NEWLINE_INDENT="\r\n ",t.default=p},function(e,t){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r