From 0802ed7c6654b7d2232a0dc0c6cba76464aaccff Mon Sep 17 00:00:00 2001 From: Vito Albano Date: Thu, 8 Dec 2016 16:39:50 +0000 Subject: [PATCH 01/13] #121 - fix babelify for IE10 --- .babelrc | 7 +++++++ .npmignore | 2 ++ package.json | 7 ++++--- 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 .babelrc diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000000..cbaa0f0ce1 --- /dev/null +++ b/.babelrc @@ -0,0 +1,7 @@ +{ + "plugins": [ + "transform-es2015-block-scoping", + ["transform-es2015-classes", {loose: true}], + "transform-proto-to-assign" + ] +} diff --git a/.npmignore b/.npmignore index 396b355916..521d17dc9b 100644 --- a/.npmignore +++ b/.npmignore @@ -11,3 +11,5 @@ /pom.xml /alfresco-core-rest-api.iml /.idea +/.babelrc + diff --git a/package.json b/package.json index 06561e08fd..675daf29a2 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "test": "grunt test", "coverage": "grunt coverage", "generate": "mvn clean generate-sources", - "bundle": "browserify -s AlfrescoApi main.js -o dist/alfresco-js-api.js -t [ babelify --sourceMapsAbsolute --presets es2015 ] ", + "bundle": "browserify -s AlfrescoApi main.js -o dist/alfresco-js-api.js -t [ babelify --sourceMapsAbsolute --presets es2015-loose] ", "minify": "browserify -s AlfrescoApi dist/alfresco-js-api.js -d -p [minifyify --no-map] > dist/alfresco-js-api.min.js", "watchify": "watchify -s AlfrescoApi main.js -o dist/alfresco-js-api.js", "tslint": "tslint -c tslint.json index.d.ts", @@ -31,7 +31,8 @@ "nock": "8.1.0" }, "devDependencies": { - "babel-preset-es2015": "^6.9.0", + "babel-preset-es2015": "^6.18.0", + "babel-preset-es2015-loose": "^8.0.0", "babelify": "^7.3.0", "browserify": "^13.0.1", "chai": "^3.5.0", @@ -46,8 +47,8 @@ "grunt-mocha-test": "^0.12.7", "grunt-open": "^0.2.3", "load-grunt-tasks": "^3.4.1", - "minifyify": "^7.3.3", "markdown-toc": "^0.12.14", + "minifyify": "^7.3.3", "mocha": "^2.4.5", "mocha-lcov-reporter": "^1.2.0", "rimraf": "^2.5.2", From b8c9851930ed56cec2719f8c707607573ff6ebe3 Mon Sep 17 00:00:00 2001 From: Vito Albano Date: Fri, 9 Dec 2016 17:01:02 +0000 Subject: [PATCH 02/13] #121 - modified changelog --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c06f70fa3..84459798ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ Alfresco JS API _This project provides a JavaScript client API into the v1 Alfresco REST API_ + +# [0.5.5](https://github.com/Alfresco/alfresco-js-api/releases/tag/0.5.5) (09-12-2016) +## fix +- [Added bable plugin for IE10 #121](https://github.com/Alfresco/alfresco-js-api/pull/122) + # [0.5.3](https://github.com/Alfresco/alfresco-js-api/releases/tag/0.5.3) (06-12-2016) ## fix From e0f08206f19ca9a79267995f7c3e927f697cd129 Mon Sep 17 00:00:00 2001 From: Maurizio Vitale Date: Mon, 12 Dec 2016 16:15:01 +0000 Subject: [PATCH 03/13] Add Report API - dev (#125) #124 Add Report API --- CHANGELOG.md | 1 + README.md | 126 + dist/alfresco-js-api.js | 4541 ++++++++++------- dist/alfresco-js-api.min.js | 41 +- index.d.ts | 1 + src/alfresco-activiti-rest-api/README.md | 6 + src/alfresco-activiti-rest-api/docs/Chart.md | 7 + .../docs/ParameterValueRepresentation.md | 9 + .../docs/ReportApi.md | 200 + .../docs/ReportCharts.md | 6 + .../docs/ReportParametersDefinition.md | 9 + .../src/api/ReportApi.js | 204 + src/alfresco-activiti-rest-api/src/index.js | 13 +- .../src/model/Chart.js | 65 + .../src/model/ParameterValueRepresentation.js | 82 + .../src/model/ReportCharts.js | 58 + .../src/model/ReportParametersDefinition.js | 82 + test/activitiReportApi.spec.js | 151 + test/mockObjects/activiti/reportsMock.js | 154 + test/mockObjects/mockAlfrescoApi.js | 1 + webpack-bundle-test.js | 3637 ++++++++----- 21 files changed, 6406 insertions(+), 2988 deletions(-) create mode 100755 src/alfresco-activiti-rest-api/docs/Chart.md create mode 100755 src/alfresco-activiti-rest-api/docs/ParameterValueRepresentation.md create mode 100755 src/alfresco-activiti-rest-api/docs/ReportApi.md create mode 100755 src/alfresco-activiti-rest-api/docs/ReportCharts.md create mode 100755 src/alfresco-activiti-rest-api/docs/ReportParametersDefinition.md create mode 100755 src/alfresco-activiti-rest-api/src/api/ReportApi.js create mode 100755 src/alfresco-activiti-rest-api/src/model/Chart.js create mode 100755 src/alfresco-activiti-rest-api/src/model/ParameterValueRepresentation.js create mode 100755 src/alfresco-activiti-rest-api/src/model/ReportCharts.js create mode 100755 src/alfresco-activiti-rest-api/src/model/ReportParametersDefinition.js create mode 100644 test/activitiReportApi.spec.js create mode 100644 test/mockObjects/activiti/reportsMock.js diff --git a/CHANGELOG.md b/CHANGELOG.md index 84459798ac..2a46254fed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ _This project provides a JavaScript client API into the v1 Alfresco REST API_ # [0.5.5](https://github.com/Alfresco/alfresco-js-api/releases/tag/0.5.5) (09-12-2016) ## fix - [Added bable plugin for IE10 #121](https://github.com/Alfresco/alfresco-js-api/pull/122) +- [Add the report api inside the js api #124](https://github.com/Alfresco/alfresco-js-api/issues/124) # [0.5.3](https://github.com/Alfresco/alfresco-js-api/releases/tag/0.5.3) (06-12-2016) diff --git a/README.md b/README.md index 384cbf2922..de21ffc6de 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,13 @@ This project provides a JavaScript client API into the Alfresco REST API and Act + [Get Process Instances](#get-process-instances) * [Models Api](#models-api) + [Get Model](#get-model) + * [Report Api](#report-api) + + [Create Default reports](#create-default-reports) + + [Get Reports](#get-reports) + + [Report Params](#report-params) + + [Report Process Definitions](#report-process-definitions) + + [Tasks of process definition](#tasks-of-process-definition) + + [Generate reports](#generate-reports) - [Development](#development) - [Release History](#release-history) @@ -910,6 +917,125 @@ this.alfrescoJsApi.activiti.modelsApi.getModels(opts).then(function (data) { }); ``` +## Report Api + +Below you can find some example relative to the Activiti report api for all the possible method go to [Report Api documentation](/src/alfresco-activiti-rest-api/docs/ReportApi.md) + +### Create default Reports + +createDefaultReports() + +>Create the default reports + +####Parameters + +No parameters required. + +####Example + +```javascript + +this.alfrescoJsApi.activiti.reportApi.createDefaultReports(); +``` + +### Get Reports + +getReportList() + +> Retrieve the available report list + +####Parameters + +No parameters required. + +####Example + +```javascript + +this.alfrescoJsApi.activiti.reportApi.getReportList(); +``` + +### Report Params + +getReportParams(reportId) + +> Retrieve the parameters referring to the reportId. + +####Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reportId** | **String**| reportId | + +####Example + +```javascript + +var reportId = "1"; // String | reportId + +this.alfrescoJsApi.activiti.reportApi.getReportParams(reportId); +``` + +## Report Process Definitions + +getProcessDefinitions() + +> Retrieve the process definition list for all the apps. + +####Parameters + +No parameters required. + +####Example + +```javascript + +this.alfrescoJsApi.activiti.reportApi.getProcessDefinitions(); +``` + +## Tasks of process definition + +getTasksByProcessDefinitionId(reportId, processDefinitionId) + +> Retrieves all tasks that refer to the processDefinitionId + +####Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reportId** | **String**| reportId | + **processDefinitionId** | **String**| process definition id | + +####Example + +```javascript + +var reportId = "1"; // String | reportId +var processDefinitionId = "1"; // String | processDefinitionId + +this.alfrescoJsApi.activiti.reportApi.getTasksByProcessDefinitionId(reportId, processDefinitionId); +``` + +## Generate reports + +getReportsByParams(reportId, paramsQuery) + +> Generate the reports based on the input parameters + +####Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reportId** | **String**| reportId | + **paramsQuery** | **Object**| Query parameters | + +####Example + +```javascript + +var reportId = "1"; // String | reportId +var paramsQuery = {status: 'ALL'}; // Object | paramsQuery + +this.alfrescoJsApi.activiti.reportApi.getReportsByParams(reportId, paramsQuery); +``` # Development diff --git a/dist/alfresco-js-api.js b/dist/alfresco-js-api.js index 2b61523937..b5080ce42a 100644 --- a/dist/alfresco-js-api.js +++ b/dist/alfresco-js-api.js @@ -5,9 +5,10 @@ var AlfrescoApi = require('./src/alfrescoApi.js'); module.exports = AlfrescoApi; -},{"./src/alfrescoApi.js":289}],2:[function(require,module,exports){ +},{"./src/alfrescoApi.js":294}],2:[function(require,module,exports){ 'use strict' +exports.byteLength = byteLength exports.toByteArray = toByteArray exports.fromByteArray = fromByteArray @@ -15,23 +16,17 @@ var lookup = [] var revLookup = [] var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array -function init () { - var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' - for (var i = 0, len = code.length; i < len; ++i) { - lookup[i] = code[i] - revLookup[code.charCodeAt(i)] = i - } - - revLookup['-'.charCodeAt(0)] = 62 - revLookup['_'.charCodeAt(0)] = 63 +var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' +for (var i = 0, len = code.length; i < len; ++i) { + lookup[i] = code[i] + revLookup[code.charCodeAt(i)] = i } -init() +revLookup['-'.charCodeAt(0)] = 62 +revLookup['_'.charCodeAt(0)] = 63 -function toByteArray (b64) { - var i, j, l, tmp, placeHolders, arr +function placeHoldersCount (b64) { var len = b64.length - if (len % 4 > 0) { throw new Error('Invalid string. Length must be a multiple of 4') } @@ -41,9 +36,19 @@ function toByteArray (b64) { // represent one byte // if there is only one, then the three characters before it represent 2 bytes // this is just a cheap hack to not do indexOf twice - placeHolders = b64[len - 2] === '=' ? 2 : b64[len - 1] === '=' ? 1 : 0 + return b64[len - 2] === '=' ? 2 : b64[len - 1] === '=' ? 1 : 0 +} +function byteLength (b64) { // base64 is 4/3 + up to two characters of the original data + return b64.length * 3 / 4 - placeHoldersCount(b64) +} + +function toByteArray (b64) { + var i, j, l, tmp, placeHolders, arr + var len = b64.length + placeHolders = placeHoldersCount(b64) + arr = new Arr(len * 3 / 4 - placeHolders) // if there are placeholders, only get up to the last complete 4 chars @@ -287,6 +292,8 @@ if (Buffer.TYPED_ARRAY_SUPPORT) { function assertSize (size) { if (typeof size !== 'number') { throw new TypeError('"size" argument must be a number') + } else if (size < 0) { + throw new RangeError('"size" argument must not be negative') } } @@ -350,12 +357,20 @@ function fromString (that, string, encoding) { var length = byteLength(string, encoding) | 0 that = createBuffer(that, length) - that.write(string, encoding) + var actual = that.write(string, encoding) + + if (actual !== length) { + // Writing a hex string, for example, that contains invalid characters will + // cause everything after the first invalid character to be ignored. (e.g. + // 'abxxcd' will be treated as 'ab') + that = that.slice(0, actual) + } + return that } function fromArrayLike (that, array) { - var length = checked(array.length) | 0 + var length = array.length < 0 ? 0 : checked(array.length) | 0 that = createBuffer(that, length) for (var i = 0; i < length; i += 1) { that[i] = array[i] & 255 @@ -374,7 +389,9 @@ function fromArrayBuffer (that, array, byteOffset, length) { throw new RangeError('\'length\' is out of bounds') } - if (length === undefined) { + if (byteOffset === undefined && length === undefined) { + array = new Uint8Array(array) + } else if (length === undefined) { array = new Uint8Array(array, byteOffset) } else { array = new Uint8Array(array, byteOffset, length) @@ -422,7 +439,7 @@ function fromObject (that, obj) { } function checked (length) { - // Note: cannot use `length < kMaxLength` here because that fails when + // Note: cannot use `length < kMaxLength()` here because that fails when // length is NaN (which is otherwise coerced to zero.) if (length >= kMaxLength()) { throw new RangeError('Attempt to allocate Buffer larger than maximum ' + @@ -471,9 +488,9 @@ Buffer.isEncoding = function isEncoding (encoding) { case 'utf8': case 'utf-8': case 'ascii': + case 'latin1': case 'binary': case 'base64': - case 'raw': case 'ucs2': case 'ucs-2': case 'utf16le': @@ -534,9 +551,8 @@ function byteLength (string, encoding) { for (;;) { switch (encoding) { case 'ascii': + case 'latin1': case 'binary': - case 'raw': - case 'raws': return len case 'utf8': case 'utf-8': @@ -609,8 +625,9 @@ function slowToString (encoding, start, end) { case 'ascii': return asciiSlice(this, start, end) + case 'latin1': case 'binary': - return binarySlice(this, start, end) + return latin1Slice(this, start, end) case 'base64': return base64Slice(this, start, end) @@ -662,6 +679,20 @@ Buffer.prototype.swap32 = function swap32 () { return this } +Buffer.prototype.swap64 = function swap64 () { + var len = this.length + if (len % 8 !== 0) { + throw new RangeError('Buffer size must be a multiple of 64-bits') + } + for (var i = 0; i < len; i += 8) { + swap(this, i, i + 7) + swap(this, i + 1, i + 6) + swap(this, i + 2, i + 5) + swap(this, i + 3, i + 4) + } + return this +} + Buffer.prototype.toString = function toString () { var length = this.length | 0 if (length === 0) return '' @@ -744,7 +775,73 @@ Buffer.prototype.compare = function compare (target, start, end, thisStart, this return 0 } -function arrayIndexOf (arr, val, byteOffset, encoding) { +// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`, +// OR the last index of `val` in `buffer` at offset <= `byteOffset`. +// +// Arguments: +// - buffer - a Buffer to search +// - val - a string, Buffer, or number +// - byteOffset - an index into `buffer`; will be clamped to an int32 +// - encoding - an optional encoding, relevant is val is a string +// - dir - true for indexOf, false for lastIndexOf +function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) { + // Empty buffer means no match + if (buffer.length === 0) return -1 + + // Normalize byteOffset + if (typeof byteOffset === 'string') { + encoding = byteOffset + byteOffset = 0 + } else if (byteOffset > 0x7fffffff) { + byteOffset = 0x7fffffff + } else if (byteOffset < -0x80000000) { + byteOffset = -0x80000000 + } + byteOffset = +byteOffset // Coerce to Number. + if (isNaN(byteOffset)) { + // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer + byteOffset = dir ? 0 : (buffer.length - 1) + } + + // Normalize byteOffset: negative offsets start from the end of the buffer + if (byteOffset < 0) byteOffset = buffer.length + byteOffset + if (byteOffset >= buffer.length) { + if (dir) return -1 + else byteOffset = buffer.length - 1 + } else if (byteOffset < 0) { + if (dir) byteOffset = 0 + else return -1 + } + + // Normalize val + if (typeof val === 'string') { + val = Buffer.from(val, encoding) + } + + // Finally, search either indexOf (if dir is true) or lastIndexOf + if (Buffer.isBuffer(val)) { + // Special case: looking for empty string/buffer always fails + if (val.length === 0) { + return -1 + } + return arrayIndexOf(buffer, val, byteOffset, encoding, dir) + } else if (typeof val === 'number') { + val = val & 0xFF // Search for a byte value [0-255] + if (Buffer.TYPED_ARRAY_SUPPORT && + typeof Uint8Array.prototype.indexOf === 'function') { + if (dir) { + return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset) + } else { + return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset) + } + } + return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir) + } + + throw new TypeError('val must be string, number or Buffer') +} + +function arrayIndexOf (arr, val, byteOffset, encoding, dir) { var indexSize = 1 var arrLength = arr.length var valLength = val.length @@ -771,60 +868,45 @@ function arrayIndexOf (arr, val, byteOffset, encoding) { } } - var foundIndex = -1 - for (var i = byteOffset; i < arrLength; ++i) { - if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) { - if (foundIndex === -1) foundIndex = i - if (i - foundIndex + 1 === valLength) return foundIndex * indexSize - } else { - if (foundIndex !== -1) i -= i - foundIndex - foundIndex = -1 + var i + if (dir) { + var foundIndex = -1 + for (i = byteOffset; i < arrLength; i++) { + if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) { + if (foundIndex === -1) foundIndex = i + if (i - foundIndex + 1 === valLength) return foundIndex * indexSize + } else { + if (foundIndex !== -1) i -= i - foundIndex + foundIndex = -1 + } + } + } else { + if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength + for (i = byteOffset; i >= 0; i--) { + var found = true + for (var j = 0; j < valLength; j++) { + if (read(arr, i + j) !== read(val, j)) { + found = false + break + } + } + if (found) return i } } return -1 } -Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) { - if (typeof byteOffset === 'string') { - encoding = byteOffset - byteOffset = 0 - } else if (byteOffset > 0x7fffffff) { - byteOffset = 0x7fffffff - } else if (byteOffset < -0x80000000) { - byteOffset = -0x80000000 - } - byteOffset >>= 0 - - if (this.length === 0) return -1 - if (byteOffset >= this.length) return -1 - - // Negative offsets start from the end of the buffer - if (byteOffset < 0) byteOffset = Math.max(this.length + byteOffset, 0) - - if (typeof val === 'string') { - val = Buffer.from(val, encoding) - } - - if (Buffer.isBuffer(val)) { - // special case: looking for empty string/buffer always fails - if (val.length === 0) { - return -1 - } - return arrayIndexOf(this, val, byteOffset, encoding) - } - if (typeof val === 'number') { - if (Buffer.TYPED_ARRAY_SUPPORT && Uint8Array.prototype.indexOf === 'function') { - return Uint8Array.prototype.indexOf.call(this, val, byteOffset) - } - return arrayIndexOf(this, [ val ], byteOffset, encoding) - } +Buffer.prototype.includes = function includes (val, byteOffset, encoding) { + return this.indexOf(val, byteOffset, encoding) !== -1 +} - throw new TypeError('val must be string, number or Buffer') +Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) { + return bidirectionalIndexOf(this, val, byteOffset, encoding, true) } -Buffer.prototype.includes = function includes (val, byteOffset, encoding) { - return this.indexOf(val, byteOffset, encoding) !== -1 +Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) { + return bidirectionalIndexOf(this, val, byteOffset, encoding, false) } function hexWrite (buf, string, offset, length) { @@ -841,7 +923,7 @@ function hexWrite (buf, string, offset, length) { // must be an even number of digits var strLen = string.length - if (strLen % 2 !== 0) throw new Error('Invalid hex string') + if (strLen % 2 !== 0) throw new TypeError('Invalid hex string') if (length > strLen / 2) { length = strLen / 2 @@ -862,7 +944,7 @@ function asciiWrite (buf, string, offset, length) { return blitBuffer(asciiToBytes(string), buf, offset, length) } -function binaryWrite (buf, string, offset, length) { +function latin1Write (buf, string, offset, length) { return asciiWrite(buf, string, offset, length) } @@ -924,8 +1006,9 @@ Buffer.prototype.write = function write (string, offset, length, encoding) { case 'ascii': return asciiWrite(this, string, offset, length) + case 'latin1': case 'binary': - return binaryWrite(this, string, offset, length) + return latin1Write(this, string, offset, length) case 'base64': // Warning: maxLength not taken into account in base64Write @@ -1066,7 +1149,7 @@ function asciiSlice (buf, start, end) { return ret } -function binarySlice (buf, start, end) { +function latin1Slice (buf, start, end) { var ret = '' end = Math.min(buf.length, end) @@ -2442,21 +2525,25 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { var undefined; /** Used as the semantic version number. */ - var VERSION = '4.13.1'; + var VERSION = '4.16.4'; /** Used as the size to enable large array optimizations. */ var LARGE_ARRAY_SIZE = 200; - /** Used as the `TypeError` message for "Functions" methods. */ - var FUNC_ERROR_TEXT = 'Expected a function'; + /** Error message constants. */ + var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://github.com/es-shims.', + FUNC_ERROR_TEXT = 'Expected a function'; /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = '__lodash_hash_undefined__'; + /** Used as the maximum memoize cache size. */ + var MAX_MEMOIZE_SIZE = 500; + /** Used as the internal argument placeholder. */ var PLACEHOLDER = '__lodash_placeholder__'; - /** Used to compose bitmasks for wrapper metadata. */ + /** Used to compose bitmasks for function metadata. */ var BIND_FLAG = 1, BIND_KEY_FLAG = 2, CURRY_BOUND_FLAG = 4, @@ -2477,7 +2564,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { DEFAULT_TRUNC_OMISSION = '...'; /** Used to detect hot functions by number of calls within a span of milliseconds. */ - var HOT_COUNT = 150, + var HOT_COUNT = 500, HOT_SPAN = 16; /** Used to indicate the type of lazy iteratees. */ @@ -2496,6 +2583,19 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1, HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1; + /** Used to associate wrap methods with their bit flags. */ + var wrapFlags = [ + ['ary', ARY_FLAG], + ['bind', BIND_FLAG], + ['bindKey', BIND_KEY_FLAG], + ['curry', CURRY_FLAG], + ['curryRight', CURRY_RIGHT_FLAG], + ['flip', FLIP_FLAG], + ['partial', PARTIAL_FLAG], + ['partialRight', PARTIAL_RIGHT_FLAG], + ['rearg', REARG_FLAG] + ]; + /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arrayTag = '[object Array]', @@ -2508,6 +2608,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { numberTag = '[object Number]', objectTag = '[object Object]', promiseTag = '[object Promise]', + proxyTag = '[object Proxy]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', @@ -2533,8 +2634,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g; /** Used to match HTML entities and HTML characters. */ - var reEscapedHtml = /&(?:amp|lt|gt|quot|#39|#96);/g, - reUnescapedHtml = /[&<>"'`]/g, + var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g, + reUnescapedHtml = /[&<>"']/g, reHasEscapedHtml = RegExp(reEscapedHtml.source), reHasUnescapedHtml = RegExp(reUnescapedHtml.source); @@ -2546,11 +2647,12 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** Used to match property names within property paths. */ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/, - rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(\.|\[\])(?:\4|$))/g; + reLeadingDot = /^\./, + rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; /** * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns). + * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). */ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reHasRegExpChar = RegExp(reRegExpChar.source); @@ -2560,24 +2662,26 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { reTrimStart = /^\s+/, reTrimEnd = /\s+$/; - /** Used to match non-compound words composed of alphanumeric characters. */ - var reBasicWord = /[a-zA-Z0-9]+/g; + /** Used to match wrap detail comments. */ + var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, + reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/, + reSplitDetails = /,? & /; + + /** Used to match words composed of alphanumeric characters. */ + var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g; /** Used to match backslashes in property paths. */ var reEscapeChar = /\\(\\)?/g; /** * Used to match - * [ES template delimiters](http://ecma-international.org/ecma-262/6.0/#sec-template-literal-lexical-components). + * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components). */ var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g; /** Used to match `RegExp` flags from their coerced string values. */ var reFlags = /\w*$/; - /** Used to detect hexadecimal string values. */ - var reHasHexPrefix = /^0x/i; - /** Used to detect bad signed hexadecimal string values. */ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; @@ -2593,8 +2697,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** Used to detect unsigned integer values. */ var reIsUint = /^(?:0|[1-9]\d*)$/; - /** Used to match latin-1 supplementary letters (excluding mathematical operators). */ - var reLatin1 = /[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g; + /** Used to match Latin Unicode letters (excluding mathematical operators). */ + var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g; /** Used to ensure capturing order of template delimiters. */ var reNoMatch = /($^)/; @@ -2655,10 +2759,10 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { var reComboMark = RegExp(rsCombo, 'g'); /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */ - var reComplexSymbol = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g'); + var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g'); /** Used to match complex or compound words. */ - var reComplexWord = RegExp([ + var reUnicodeWord = RegExp([ rsUpper + '?' + rsLower + '+' + rsOptLowerContr + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')', rsUpperMisc + '+' + rsOptUpperContr + '(?=' + [rsBreak, rsUpper + rsLowerMisc, '$'].join('|') + ')', rsUpper + '?' + rsLowerMisc + '+' + rsOptLowerContr, @@ -2668,18 +2772,18 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { ].join('|'), 'g'); /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */ - var reHasComplexSymbol = RegExp('[' + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + ']'); + var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + ']'); /** Used to detect strings that need a more robust regexp to match words. */ - var reHasComplexWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/; + var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/; /** Used to assign default `context` object properties. */ var contextProps = [ 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array', 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object', - 'Promise', 'Reflect', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', - 'Uint8Array', 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap', - '_', 'isFinite', 'parseInt', 'setTimeout' + 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array', + 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap', + '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout' ]; /** Used to make template sourceURLs easier to identify. */ @@ -2717,16 +2821,17 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false; - /** Used to map latin-1 supplementary letters to basic latin letters. */ + /** Used to map Latin Unicode letters to basic Latin letters. */ var deburredLetters = { + // Latin-1 Supplement block. '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A', '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a', '\xc7': 'C', '\xe7': 'c', '\xd0': 'D', '\xf0': 'd', '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E', '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e', - '\xcC': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I', - '\xeC': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i', + '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I', + '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i', '\xd1': 'N', '\xf1': 'n', '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O', '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o', @@ -2735,7 +2840,43 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { '\xdd': 'Y', '\xfd': 'y', '\xff': 'y', '\xc6': 'Ae', '\xe6': 'ae', '\xde': 'Th', '\xfe': 'th', - '\xdf': 'ss' + '\xdf': 'ss', + // Latin Extended-A block. + '\u0100': 'A', '\u0102': 'A', '\u0104': 'A', + '\u0101': 'a', '\u0103': 'a', '\u0105': 'a', + '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C', + '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c', + '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd', + '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E', + '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e', + '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G', + '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g', + '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h', + '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I', + '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i', + '\u0134': 'J', '\u0135': 'j', + '\u0136': 'K', '\u0137': 'k', '\u0138': 'k', + '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L', + '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l', + '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N', + '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n', + '\u014c': 'O', '\u014e': 'O', '\u0150': 'O', + '\u014d': 'o', '\u014f': 'o', '\u0151': 'o', + '\u0154': 'R', '\u0156': 'R', '\u0158': 'R', + '\u0155': 'r', '\u0157': 'r', '\u0159': 'r', + '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S', + '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's', + '\u0162': 'T', '\u0164': 'T', '\u0166': 'T', + '\u0163': 't', '\u0165': 't', '\u0167': 't', + '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U', + '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u', + '\u0174': 'W', '\u0175': 'w', + '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y', + '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z', + '\u017a': 'z', '\u017c': 'z', '\u017e': 'z', + '\u0132': 'IJ', '\u0133': 'ij', + '\u0152': 'Oe', '\u0153': 'oe', + '\u0149': "'n", '\u017f': 's' }; /** Used to map characters to HTML entities. */ @@ -2744,8 +2885,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { '<': '<', '>': '>', '"': '"', - "'": ''', - '`': '`' + "'": ''' }; /** Used to map HTML entities to characters. */ @@ -2754,8 +2894,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { '<': '<', '>': '>', '"': '"', - ''': "'", - '`': '`' + ''': "'" }; /** Used to escape characters for inclusion in compiled string literals. */ @@ -2772,26 +2911,41 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { var freeParseFloat = parseFloat, freeParseInt = parseInt; + /** Detect free variable `global` from Node.js. */ + var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; + + /** Detect free variable `self`. */ + var freeSelf = typeof self == 'object' && self && self.Object === Object && self; + + /** Used as a reference to the global object. */ + var root = freeGlobal || freeSelf || Function('return this')(); + /** Detect free variable `exports`. */ - var freeExports = typeof exports == 'object' && exports; + var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ - var freeModule = freeExports && typeof module == 'object' && module; + var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; - /** Detect free variable `global` from Node.js. */ - var freeGlobal = checkGlobal(typeof global == 'object' && global); - - /** Detect free variable `self`. */ - var freeSelf = checkGlobal(typeof self == 'object' && self); - - /** Detect `this` as the global object. */ - var thisGlobal = checkGlobal(typeof this == 'object' && this); + /** Detect free variable `process` from Node.js. */ + var freeProcess = moduleExports && freeGlobal.process; - /** Used as a reference to the global object. */ - var root = freeGlobal || freeSelf || thisGlobal || Function('return this')(); + /** Used to access faster Node.js helpers. */ + var nodeUtil = (function() { + try { + return freeProcess && freeProcess.binding('util'); + } catch (e) {} + }()); + + /* Node.js helper references. */ + var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer, + nodeIsDate = nodeUtil && nodeUtil.isDate, + nodeIsMap = nodeUtil && nodeUtil.isMap, + nodeIsRegExp = nodeUtil && nodeUtil.isRegExp, + nodeIsSet = nodeUtil && nodeUtil.isSet, + nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; /*--------------------------------------------------------------------------*/ @@ -2804,7 +2958,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Object} Returns `map`. */ function addMapEntry(map, pair) { - // Don't return `Map#set` because it doesn't return the map instance in IE 11. + // Don't return `map.set` because it's not chainable in IE 11. map.set(pair[0], pair[1]); return map; } @@ -2818,6 +2972,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Object} Returns `set`. */ function addSetEntry(set, value) { + // Don't return `set.add` because it's not chainable in IE 11. set.add(value); return set; } @@ -2833,8 +2988,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {*} Returns the result of `func`. */ function apply(func, thisArg, args) { - var length = args.length; - switch (length) { + switch (args.length) { case 0: return func.call(thisArg); case 1: return func.call(thisArg, args[0]); case 2: return func.call(thisArg, args[0], args[1]); @@ -2956,7 +3110,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * specifying an index to search from. * * @private - * @param {Array} [array] The array to search. + * @param {Array} [array] The array to inspect. * @param {*} target The value to search for. * @returns {boolean} Returns `true` if `target` is found, else `false`. */ @@ -2969,7 +3123,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * This function is like `arrayIncludes` except that it accepts a comparator. * * @private - * @param {Array} [array] The array to search. + * @param {Array} [array] The array to inspect. * @param {*} target The value to search for. * @param {Function} comparator The comparator invoked per element. * @returns {boolean} Returns `true` if `target` is found, else `false`. @@ -3095,13 +3249,44 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return false; } + /** + * Gets the size of an ASCII `string`. + * + * @private + * @param {string} string The string inspect. + * @returns {number} Returns the string size. + */ + var asciiSize = baseProperty('length'); + + /** + * Converts an ASCII `string` to an array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the converted array. + */ + function asciiToArray(string) { + return string.split(''); + } + + /** + * Splits an ASCII `string` into an array of its words. + * + * @private + * @param {string} The string to inspect. + * @returns {Array} Returns the words of `string`. + */ + function asciiWords(string) { + return string.match(reAsciiWord) || []; + } + /** * The base implementation of methods like `_.findKey` and `_.findLastKey`, * without support for iteratee shorthands, which iterates over `collection` * using `eachFunc`. * * @private - * @param {Array|Object} collection The collection to search. + * @param {Array|Object} collection The collection to inspect. * @param {Function} predicate The function invoked per iteration. * @param {Function} eachFunc The function to iterate over `collection`. * @returns {*} Returns the found element or its key, else `undefined`. @@ -3122,7 +3307,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * support for iteratee shorthands. * * @private - * @param {Array} array The array to search. + * @param {Array} array The array to inspect. * @param {Function} predicate The function invoked per iteration. * @param {number} fromIndex The index to search from. * @param {boolean} [fromRight] Specify iterating from right to left. @@ -3144,31 +3329,22 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * The base implementation of `_.indexOf` without `fromIndex` bounds checks. * * @private - * @param {Array} array The array to search. + * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @param {number} fromIndex The index to search from. * @returns {number} Returns the index of the matched value, else `-1`. */ function baseIndexOf(array, value, fromIndex) { - if (value !== value) { - return indexOfNaN(array, fromIndex); - } - var index = fromIndex - 1, - length = array.length; - - while (++index < length) { - if (array[index] === value) { - return index; - } - } - return -1; + return value === value + ? strictIndexOf(array, value, fromIndex) + : baseFindIndex(array, baseIsNaN, fromIndex); } /** * This function is like `baseIndexOf` except that it accepts a comparator. * * @private - * @param {Array} array The array to search. + * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @param {number} fromIndex The index to search from. * @param {Function} comparator The comparator invoked per element. @@ -3186,6 +3362,17 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return -1; } + /** + * The base implementation of `_.isNaN` without support for number objects. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. + */ + function baseIsNaN(value) { + return value !== value; + } + /** * The base implementation of `_.mean` and `_.meanBy` without support for * iteratee shorthands. @@ -3200,6 +3387,32 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return length ? (baseSum(array, iteratee) / length) : NAN; } + /** + * The base implementation of `_.property` without support for deep paths. + * + * @private + * @param {string} key The key of the property to get. + * @returns {Function} Returns the new accessor function. + */ + function baseProperty(key) { + return function(object) { + return object == null ? undefined : object[key]; + }; + } + + /** + * The base implementation of `_.propertyOf` without support for deep paths. + * + * @private + * @param {Object} object The object to query. + * @returns {Function} Returns the new accessor function. + */ + function basePropertyOf(object) { + return function(key) { + return object == null ? undefined : object[key]; + }; + } + /** * The base implementation of `_.reduce` and `_.reduceRight`, without support * for iteratee shorthands, which iterates over `collection` using `eachFunc`. @@ -3300,7 +3513,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } /** - * The base implementation of `_.unary` without support for storing wrapper metadata. + * The base implementation of `_.unary` without support for storing metadata. * * @private * @param {Function} func The function to cap arguments for. @@ -3329,7 +3542,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } /** - * Checks if a cache value for `key` exists. + * Checks if a `cache` value for `key` exists. * * @private * @param {Object} cache The cache to query. @@ -3373,17 +3586,6 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return index; } - /** - * Checks if `value` is a global object. - * - * @private - * @param {*} value The value to check. - * @returns {null|Object} Returns `value` if it's a global object, else `null`. - */ - function checkGlobal(value) { - return (value && value.Object === Object) ? value : null; - } - /** * Gets the number of `placeholder` occurrences in `array`. * @@ -3398,22 +3600,21 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { while (length--) { if (array[length] === placeholder) { - result++; + ++result; } } return result; } /** - * Used by `_.deburr` to convert latin-1 supplementary letters to basic latin letters. + * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A + * letters to basic Latin letters. * * @private * @param {string} letter The matched letter to deburr. * @returns {string} Returns the deburred letter. */ - function deburrLetter(letter) { - return deburredLetters[letter]; - } + var deburrLetter = basePropertyOf(deburredLetters); /** * Used by `_.escape` to convert characters to HTML entities. @@ -3422,9 +3623,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @param {string} chr The matched character to escape. * @returns {string} Returns the escaped character. */ - function escapeHtmlChar(chr) { - return htmlEscapes[chr]; - } + var escapeHtmlChar = basePropertyOf(htmlEscapes); /** * Used by `_.template` to escape characters for inclusion in compiled string literals. @@ -3450,44 +3649,25 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } /** - * Gets the index at which the first occurrence of `NaN` is found in `array`. + * Checks if `string` contains Unicode symbols. * * @private - * @param {Array} array The array to search. - * @param {number} fromIndex The index to search from. - * @param {boolean} [fromRight] Specify iterating from right to left. - * @returns {number} Returns the index of the matched `NaN`, else `-1`. + * @param {string} string The string to inspect. + * @returns {boolean} Returns `true` if a symbol is found, else `false`. */ - function indexOfNaN(array, fromIndex, fromRight) { - var length = array.length, - index = fromIndex + (fromRight ? 1 : -1); - - while ((fromRight ? index-- : ++index < length)) { - var other = array[index]; - if (other !== other) { - return index; - } - } - return -1; + function hasUnicode(string) { + return reHasUnicode.test(string); } /** - * Checks if `value` is a host object in IE < 9. + * Checks if `string` contains a word composed of Unicode symbols. * * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a host object, else `false`. + * @param {string} string The string to inspect. + * @returns {boolean} Returns `true` if a word is found, else `false`. */ - function isHostObject(value) { - // Many host objects are `Object` objects that can coerce to strings - // despite having improperly defined `toString` methods. - var result = false; - if (value != null && typeof value.toString != 'function') { - try { - result = !!(value + ''); - } catch (e) {} - } - return result; + function hasUnicodeWord(string) { + return reHasUnicodeWord.test(string); } /** @@ -3524,6 +3704,20 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return result; } + /** + * Creates a unary function that invokes `func` with its argument transformed. + * + * @private + * @param {Function} func The function to wrap. + * @param {Function} transform The argument transform. + * @returns {Function} Returns the new function. + */ + function overArg(func, transform) { + return function(arg) { + return func(transform(arg)); + }; + } + /** * Replaces all `placeholder` elements in `array` with an internal placeholder * and returns an array of their indexes. @@ -3583,6 +3777,48 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return result; } + /** + * A specialized version of `_.indexOf` which performs strict equality + * comparisons of values, i.e. `===`. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} fromIndex The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + */ + function strictIndexOf(array, value, fromIndex) { + var index = fromIndex - 1, + length = array.length; + + while (++index < length) { + if (array[index] === value) { + return index; + } + } + return -1; + } + + /** + * A specialized version of `_.lastIndexOf` which performs strict equality + * comparisons of values, i.e. `===`. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} fromIndex The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + */ + function strictLastIndexOf(array, value, fromIndex) { + var index = fromIndex + 1; + while (index--) { + if (array[index] === value) { + return index; + } + } + return index; + } + /** * Gets the number of symbols in `string`. * @@ -3591,14 +3827,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {number} Returns the string size. */ function stringSize(string) { - if (!(string && reHasComplexSymbol.test(string))) { - return string.length; - } - var result = reComplexSymbol.lastIndex = 0; - while (reComplexSymbol.test(string)) { - result++; - } - return result; + return hasUnicode(string) + ? unicodeSize(string) + : asciiSize(string); } /** @@ -3609,7 +3840,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Array} Returns the converted array. */ function stringToArray(string) { - return string.match(reComplexSymbol); + return hasUnicode(string) + ? unicodeToArray(string) + : asciiToArray(string); } /** @@ -3619,8 +3852,43 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @param {string} chr The matched character to unescape. * @returns {string} Returns the unescaped character. */ - function unescapeHtmlChar(chr) { - return htmlUnescapes[chr]; + var unescapeHtmlChar = basePropertyOf(htmlUnescapes); + + /** + * Gets the size of a Unicode `string`. + * + * @private + * @param {string} string The string inspect. + * @returns {number} Returns the string size. + */ + function unicodeSize(string) { + var result = reUnicode.lastIndex = 0; + while (reUnicode.test(string)) { + ++result; + } + return result; + } + + /** + * Converts a Unicode `string` to an array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the converted array. + */ + function unicodeToArray(string) { + return string.match(reUnicode) || []; + } + + /** + * Splits a Unicode `string` into an array of its words. + * + * @private + * @param {string} The string to inspect. + * @returns {Array} Returns the words of `string`. + */ + function unicodeWords(string) { + return string.match(reUnicodeWord) || []; } /*--------------------------------------------------------------------------*/ @@ -3651,30 +3919,27 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * lodash.isFunction(lodash.bar); * // => true * - * // Use `context` to stub `Date#getTime` use in `_.now`. - * var stubbed = _.runInContext({ - * 'Date': function() { - * return { 'getTime': stubGetTime }; - * } - * }); - * * // Create a suped-up `defer` in Node.js. * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer; */ - function runInContext(context) { - context = context ? _.defaults({}, context, _.pick(root, contextProps)) : root; + var runInContext = (function runInContext(context) { + context = context ? _.defaults(root.Object(), context, _.pick(root, contextProps)) : root; /** Built-in constructor references. */ - var Date = context.Date, + var Array = context.Array, + Date = context.Date, Error = context.Error, + Function = context.Function, Math = context.Math, + Object = context.Object, RegExp = context.RegExp, + String = context.String, TypeError = context.TypeError; /** Used for built-in method references. */ - var arrayProto = context.Array.prototype, - objectProto = context.Object.prototype, - stringProto = context.String.prototype; + var arrayProto = Array.prototype, + funcProto = Function.prototype, + objectProto = Object.prototype; /** Used to detect overreaching core-js shims. */ var coreJsData = context['__core-js_shared__']; @@ -3686,7 +3951,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { }()); /** Used to resolve the decompiled source of functions. */ - var funcToString = context.Function.prototype.toString; + var funcToString = funcProto.toString; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; @@ -3699,7 +3964,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var objectToString = objectProto.toString; @@ -3715,33 +3980,43 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** Built-in value references. */ var Buffer = moduleExports ? context.Buffer : undefined, - Reflect = context.Reflect, Symbol = context.Symbol, Uint8Array = context.Uint8Array, - enumerate = Reflect ? Reflect.enumerate : undefined, - getOwnPropertySymbols = Object.getOwnPropertySymbols, - iteratorSymbol = typeof (iteratorSymbol = Symbol && Symbol.iterator) == 'symbol' ? iteratorSymbol : undefined, + allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined, + getPrototype = overArg(Object.getPrototypeOf, Object), + iteratorSymbol = Symbol ? Symbol.iterator : undefined, objectCreate = Object.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, - splice = arrayProto.splice; + splice = arrayProto.splice, + spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined; - /** Built-in method references that are mockable. */ - var setTimeout = function(func, wait) { return context.setTimeout.call(root, func, wait); }; + var defineProperty = (function() { + try { + var func = getNative(Object, 'defineProperty'); + func({}, '', {}); + return func; + } catch (e) {} + }()); + + /** Mocked built-ins. */ + var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, + ctxNow = Date && Date.now !== root.Date.now && Date.now, + ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeCeil = Math.ceil, nativeFloor = Math.floor, - nativeGetPrototype = Object.getPrototypeOf, + nativeGetSymbols = Object.getOwnPropertySymbols, + nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, - nativeKeys = Object.keys, + nativeKeys = overArg(Object.keys, Object), nativeMax = Math.max, nativeMin = Math.min, + nativeNow = Date.now, nativeParseInt = context.parseInt, nativeRandom = Math.random, - nativeReplace = stringProto.replace, - nativeReverse = arrayProto.reverse, - nativeSplit = stringProto.split; + nativeReverse = arrayProto.reverse; /* Built-in method references that are verified to be native. */ var DataView = getNative(context, 'DataView'), @@ -3754,9 +4029,6 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** Used to store function metadata. */ var metaMap = WeakMap && new WeakMap; - /** Detect if properties shadowing those on `Object.prototype` are non-enumerable. */ - var nonEnumShadows = !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf'); - /** Used to lookup unminified function names. */ var realNames = {}; @@ -3840,16 +4112,16 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * * The wrapper methods that are **not** chainable by default are: * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`, - * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `deburr`, `divide`, `each`, - * `eachRight`, `endsWith`, `eq`, `escape`, `escapeRegExp`, `every`, `find`, - * `findIndex`, `findKey`, `findLast`, `findLastIndex`, `findLastKey`, `first`, - * `floor`, `forEach`, `forEachRight`, `forIn`, `forInRight`, `forOwn`, - * `forOwnRight`, `get`, `gt`, `gte`, `has`, `hasIn`, `head`, `identity`, - * `includes`, `indexOf`, `inRange`, `invoke`, `isArguments`, `isArray`, - * `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`, `isBoolean`, - * `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`, `isEqualWith`, - * `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`, `isMap`, - * `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`, + * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`, + * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`, + * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`, + * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`, + * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`, + * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`, + * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`, + * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`, + * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`, + * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`, * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`, * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`, * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`, @@ -3903,6 +4175,30 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return new LodashWrapper(value); } + /** + * The base implementation of `_.create` without support for assigning + * properties to the created object. + * + * @private + * @param {Object} proto The object to inherit from. + * @returns {Object} Returns the new object. + */ + var baseCreate = (function() { + function object() {} + return function(proto) { + if (!isObject(proto)) { + return {}; + } + if (objectCreate) { + return objectCreate(proto); + } + object.prototype = proto; + var result = new object; + object.prototype = undefined; + return result; + }; + }()); + /** * The function whose prototype chain sequence wrappers inherit from. * @@ -4144,6 +4440,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function hashClear() { this.__data__ = nativeCreate ? nativeCreate(null) : {}; + this.size = 0; } /** @@ -4157,7 +4454,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function hashDelete(key) { - return this.has(key) && delete this.__data__[key]; + var result = this.has(key) && delete this.__data__[key]; + this.size -= result ? 1 : 0; + return result; } /** @@ -4204,6 +4503,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function hashSet(key, value) { var data = this.__data__; + this.size += this.has(key) ? 0 : 1; data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; return this; } @@ -4244,6 +4544,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function listCacheClear() { this.__data__ = []; + this.size = 0; } /** @@ -4268,6 +4569,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } else { splice.call(data, index, 1); } + --this.size; return true; } @@ -4315,6 +4617,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { index = assocIndexOf(data, key); if (index < 0) { + ++this.size; data.push([key, value]); } else { data[index][1] = value; @@ -4357,6 +4660,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @memberOf MapCache */ function mapCacheClear() { + this.size = 0; this.__data__ = { 'hash': new Hash, 'map': new (Map || ListCache), @@ -4374,7 +4678,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function mapCacheDelete(key) { - return getMapData(this, key)['delete'](key); + var result = getMapData(this, key)['delete'](key); + this.size -= result ? 1 : 0; + return result; } /** @@ -4414,7 +4720,11 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Object} Returns the map cache instance. */ function mapCacheSet(key, value) { - getMapData(this, key).set(key, value); + var data = getMapData(this, key), + size = data.size; + + data.set(key, value); + this.size += data.size == size ? 0 : 1; return this; } @@ -4487,7 +4797,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @param {Array} [entries] The key-value pairs to cache. */ function Stack(entries) { - this.__data__ = new ListCache(entries); + var data = this.__data__ = new ListCache(entries); + this.size = data.size; } /** @@ -4499,6 +4810,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function stackClear() { this.__data__ = new ListCache; + this.size = 0; } /** @@ -4511,7 +4823,11 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function stackDelete(key) { - return this.__data__['delete'](key); + var data = this.__data__, + result = data['delete'](key); + + this.size = data.size; + return result; } /** @@ -4551,11 +4867,18 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Object} Returns the stack cache instance. */ function stackSet(key, value) { - var cache = this.__data__; - if (cache instanceof ListCache && cache.__data__.length == LARGE_ARRAY_SIZE) { - cache = this.__data__ = new MapCache(cache.__data__); + var data = this.__data__; + if (data instanceof ListCache) { + var pairs = data.__data__; + if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { + pairs.push([key, value]); + this.size = ++data.size; + return this; + } + data = this.__data__ = new MapCache(pairs); } - cache.set(key, value); + data.set(key, value); + this.size = data.size; return this; } @@ -4568,6 +4891,76 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /*------------------------------------------------------------------------*/ + /** + * Creates an array of the enumerable property names of the array-like `value`. + * + * @private + * @param {*} value The value to query. + * @param {boolean} inherited Specify returning inherited property names. + * @returns {Array} Returns the array of property names. + */ + function arrayLikeKeys(value, inherited) { + var isArr = isArray(value), + isArg = !isArr && isArguments(value), + isBuff = !isArr && !isArg && isBuffer(value), + isType = !isArr && !isArg && !isBuff && isTypedArray(value), + skipIndexes = isArr || isArg || isBuff || isType, + result = skipIndexes ? baseTimes(value.length, String) : [], + length = result.length; + + for (var key in value) { + if ((inherited || hasOwnProperty.call(value, key)) && + !(skipIndexes && ( + // Safari 9 has enumerable `arguments.length` in strict mode. + key == 'length' || + // Node.js 0.10 has enumerable non-index properties on buffers. + (isBuff && (key == 'offset' || key == 'parent')) || + // PhantomJS 2 has enumerable non-index properties on typed arrays. + (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || + // Skip index properties. + isIndex(key, length) + ))) { + result.push(key); + } + } + return result; + } + + /** + * A specialized version of `_.sample` for arrays. + * + * @private + * @param {Array} array The array to sample. + * @returns {*} Returns the random element. + */ + function arraySample(array) { + var length = array.length; + return length ? array[baseRandom(0, length - 1)] : undefined; + } + + /** + * A specialized version of `_.sampleSize` for arrays. + * + * @private + * @param {Array} array The array to sample. + * @param {number} n The number of elements to sample. + * @returns {Array} Returns the random elements. + */ + function arraySampleSize(array, n) { + return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length)); + } + + /** + * A specialized version of `_.shuffle` for arrays. + * + * @private + * @param {Array} array The array to shuffle. + * @returns {Array} Returns the new shuffled array. + */ + function arrayShuffle(array) { + return shuffleSelf(copyArray(array)); + } + /** * Used by `_.defaults` to customize its `_.assignIn` use. * @@ -4597,14 +4990,14 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function assignMergeValue(object, key, value) { if ((value !== undefined && !eq(object[key], value)) || - (typeof key == 'number' && value === undefined && !(key in object))) { - object[key] = value; + (value === undefined && !(key in object))) { + baseAssignValue(object, key, value); } } /** * Assigns `value` to `key` of `object` if the existing value is not equivalent - * using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. * * @private @@ -4616,7 +5009,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { var objValue = object[key]; if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || (value === undefined && !(key in object))) { - object[key] = value; + baseAssignValue(object, key, value); } } @@ -4624,7 +5017,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * Gets the index at which the `key` is found in `array` of key-value pairs. * * @private - * @param {Array} array The array to search. + * @param {Array} array The array to inspect. * @param {*} key The key to search for. * @returns {number} Returns the index of the matched value, else `-1`. */ @@ -4669,6 +5062,28 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return object && copyObject(source, keys(source), object); } + /** + * The base implementation of `assignValue` and `assignMergeValue` without + * value checks. + * + * @private + * @param {Object} object The object to modify. + * @param {string} key The key of the property to assign. + * @param {*} value The value to assign. + */ + function baseAssignValue(object, key, value) { + if (key == '__proto__' && defineProperty) { + defineProperty(object, key, { + 'configurable': true, + 'enumerable': true, + 'value': value, + 'writable': true + }); + } else { + object[key] = value; + } + } + /** * The base implementation of `_.at` without support for individual paths. * @@ -4690,7 +5105,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } /** - * The base implementation of `_.clamp` which doesn't coerce arguments to numbers. + * The base implementation of `_.clamp` which doesn't coerce arguments. * * @private * @param {number} number The number to clamp. @@ -4749,9 +5164,6 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return cloneBuffer(value, isDeep); } if (tag == objectTag || tag == argsTag || (isFunc && !object)) { - if (isHostObject(value)) { - return object ? value : {}; - } result = initCloneObject(isFunc ? {} : value); if (!isDeep) { return copySymbols(value, baseAssign(result, value)); @@ -4771,15 +5183,13 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } stack.set(value, result); - if (!isArr) { - var props = isFull ? getAllKeys(value) : keys(value); - } - // Recursively populate clone (susceptible to call stack limits). + var props = isArr ? undefined : (isFull ? getAllKeys : keys)(value); arrayEach(props || value, function(subValue, key) { if (props) { key = subValue; subValue = value[key]; } + // Recursively populate clone (susceptible to call stack limits). assignValue(result, key, baseClone(subValue, isDeep, isFull, customizer, key, value, stack)); }); return result; @@ -4793,49 +5203,47 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Function} Returns the new spec function. */ function baseConforms(source) { - var props = keys(source), - length = props.length; - + var props = keys(source); return function(object) { - if (object == null) { - return !length; - } - var index = length; - while (index--) { - var key = props[index], - predicate = source[key], - value = object[key]; - - if ((value === undefined && - !(key in Object(object))) || !predicate(value)) { - return false; - } - } - return true; + return baseConformsTo(object, source, props); }; } /** - * The base implementation of `_.create` without support for assigning - * properties to the created object. + * The base implementation of `_.conformsTo` which accepts `props` to check. * * @private - * @param {Object} prototype The object to inherit from. - * @returns {Object} Returns the new object. + * @param {Object} object The object to inspect. + * @param {Object} source The object of property predicates to conform to. + * @returns {boolean} Returns `true` if `object` conforms, else `false`. */ - function baseCreate(proto) { - return isObject(proto) ? objectCreate(proto) : {}; + function baseConformsTo(object, source, props) { + var length = props.length; + if (object == null) { + return !length; + } + object = Object(object); + while (length--) { + var key = props[length], + predicate = source[key], + value = object[key]; + + if ((value === undefined && !(key in object)) || !predicate(value)) { + return false; + } + } + return true; } /** - * The base implementation of `_.delay` and `_.defer` which accepts an array - * of `func` arguments. + * The base implementation of `_.delay` and `_.defer` which accepts `args` + * to provide to `func`. * * @private * @param {Function} func The function to delay. * @param {number} wait The number of milliseconds to delay invocation. - * @param {Object} args The arguments to provide to `func`. - * @returns {number} Returns the timer id. + * @param {Array} args The arguments to provide to `func`. + * @returns {number|Object} Returns the timer id or timeout object. */ function baseDelay(func, wait, args) { if (typeof func != 'function') { @@ -5148,7 +5556,18 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } /** - * The base implementation of `_.gt` which doesn't coerce arguments to numbers. + * The base implementation of `getTag`. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the `toStringTag`. + */ + function baseGetTag(value) { + return objectToString.call(value); + } + + /** + * The base implementation of `_.gt` which doesn't coerce arguments. * * @private * @param {*} value The value to compare. @@ -5169,12 +5588,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {boolean} Returns `true` if `key` exists, else `false`. */ function baseHas(object, key) { - // Avoid a bug in IE 10-11 where objects with a [[Prototype]] of `null`, - // that are composed entirely of index properties, return `false` for - // `hasOwnProperty` checks of them. - return object != null && - (hasOwnProperty.call(object, key) || - (typeof object == 'object' && key in object && getPrototype(object) === null)); + return object != null && hasOwnProperty.call(object, key); } /** @@ -5190,7 +5604,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } /** - * The base implementation of `_.inRange` which doesn't coerce arguments to numbers. + * The base implementation of `_.inRange` which doesn't coerce arguments. * * @private * @param {number} number The number to check. @@ -5303,6 +5717,39 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return func == null ? undefined : apply(func, object, args); } + /** + * The base implementation of `_.isArguments`. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + */ + function baseIsArguments(value) { + return isObjectLike(value) && objectToString.call(value) == argsTag; + } + + /** + * The base implementation of `_.isArrayBuffer` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`. + */ + function baseIsArrayBuffer(value) { + return isObjectLike(value) && objectToString.call(value) == arrayBufferTag; + } + + /** + * The base implementation of `_.isDate` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a date object, else `false`. + */ + function baseIsDate(value) { + return isObjectLike(value) && objectToString.call(value) == dateTag; + } + /** * The base implementation of `_.isEqual` which supports partial comparisons * and tracks traversed objects. @@ -5357,10 +5804,17 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { othTag = getTag(other); othTag = othTag == argsTag ? objectTag : othTag; } - var objIsObj = objTag == objectTag && !isHostObject(object), - othIsObj = othTag == objectTag && !isHostObject(other), + var objIsObj = objTag == objectTag, + othIsObj = othTag == objectTag, isSameTag = objTag == othTag; + if (isSameTag && isBuffer(object)) { + if (!isBuffer(other)) { + return false; + } + objIsArr = true; + objIsObj = false; + } if (isSameTag && !objIsObj) { stack || (stack = new Stack); return (objIsArr || isTypedArray(object)) @@ -5386,6 +5840,17 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return equalObjects(object, other, equalFunc, customizer, bitmask, stack); } + /** + * The base implementation of `_.isMap` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a map, else `false`. + */ + function baseIsMap(value) { + return isObjectLike(value) && getTag(value) == mapTag; + } + /** * The base implementation of `_.isMatch` without support for iteratee shorthands. * @@ -5452,10 +5917,44 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { if (!isObject(value) || isMasked(value)) { return false; } - var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor; + var pattern = isFunction(value) ? reIsNative : reIsHostCtor; return pattern.test(toSource(value)); } + /** + * The base implementation of `_.isRegExp` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a regexp, else `false`. + */ + function baseIsRegExp(value) { + return isObject(value) && objectToString.call(value) == regexpTag; + } + + /** + * The base implementation of `_.isSet` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a set, else `false`. + */ + function baseIsSet(value) { + return isObjectLike(value) && getTag(value) == setTag; + } + + /** + * The base implementation of `_.isTypedArray` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. + */ + function baseIsTypedArray(value) { + return isObjectLike(value) && + isLength(value.length) && !!typedArrayTags[objectToString.call(value)]; + } + /** * The base implementation of `_.iteratee`. * @@ -5481,44 +5980,49 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } /** - * The base implementation of `_.keys` which doesn't skip the constructor - * property of prototypes or treat sparse arrays as dense. + * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeys(object) { - return nativeKeys(Object(object)); + if (!isPrototype(object)) { + return nativeKeys(object); + } + var result = []; + for (var key in Object(object)) { + if (hasOwnProperty.call(object, key) && key != 'constructor') { + result.push(key); + } + } + return result; } /** - * The base implementation of `_.keysIn` which doesn't skip the constructor - * property of prototypes or treat sparse arrays as dense. + * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeysIn(object) { - object = object == null ? object : Object(object); + if (!isObject(object)) { + return nativeKeysIn(object); + } + var isProto = isPrototype(object), + result = []; - var result = []; for (var key in object) { - result.push(key); + if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { + result.push(key); + } } return result; } - // Fallback for IE < 9 with es6-shim. - if (enumerate && !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf')) { - baseKeysIn = function(object) { - return iteratorToArray(enumerate(object)); - }; - } - /** - * The base implementation of `_.lt` which doesn't coerce arguments to numbers. + * The base implementation of `_.lt` which doesn't coerce arguments. * * @private * @param {*} value The value to compare. @@ -5600,14 +6104,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { if (object === source) { return; } - if (!(isArray(source) || isTypedArray(source))) { - var props = keysIn(source); - } - arrayEach(props || source, function(srcValue, key) { - if (props) { - key = srcValue; - srcValue = source[key]; - } + baseFor(source, function(srcValue, key) { if (isObject(srcValue)) { stack || (stack = new Stack); baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack); @@ -5622,7 +6119,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } assignMergeValue(object, key, newValue); } - }); + }, keysIn); } /** @@ -5656,47 +6153,54 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { var isCommon = newValue === undefined; if (isCommon) { + var isArr = isArray(srcValue), + isBuff = !isArr && isBuffer(srcValue), + isTyped = !isArr && !isBuff && isTypedArray(srcValue); + newValue = srcValue; - if (isArray(srcValue) || isTypedArray(srcValue)) { + if (isArr || isBuff || isTyped) { if (isArray(objValue)) { newValue = objValue; } else if (isArrayLikeObject(objValue)) { newValue = copyArray(objValue); } - else { + else if (isBuff) { isCommon = false; - newValue = baseClone(srcValue, true); + newValue = cloneBuffer(srcValue, true); + } + else if (isTyped) { + isCommon = false; + newValue = cloneTypedArray(srcValue, true); + } + else { + newValue = []; } } else if (isPlainObject(srcValue) || isArguments(srcValue)) { + newValue = objValue; if (isArguments(objValue)) { newValue = toPlainObject(objValue); } else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) { - isCommon = false; - newValue = baseClone(srcValue, true); - } - else { - newValue = objValue; + newValue = initCloneObject(srcValue); } } else { isCommon = false; } } - stack.set(srcValue, newValue); - if (isCommon) { // Recursively merge objects and arrays (susceptible to call stack limits). + stack.set(srcValue, newValue); mergeFunc(newValue, srcValue, srcIndex, customizer, stack); + stack['delete'](srcValue); } - stack['delete'](srcValue); assignMergeValue(object, key, newValue); } /** - * The base implementation of `_.nth` which doesn't coerce `n` to an integer. + * The base implementation of `_.nth` which doesn't coerce arguments. * * @private * @param {Array} array The array to query. @@ -5748,12 +6252,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function basePick(object, props) { object = Object(object); - return arrayReduce(props, function(result, key) { - if (key in object) { - result[key] = object[key]; - } - return result; - }, {}); + return basePickBy(object, props, function(value, key) { + return key in object; + }); } /** @@ -5761,12 +6262,12 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * * @private * @param {Object} object The source object. + * @param {string[]} props The property identifiers to pick from. * @param {Function} predicate The function invoked per property. * @returns {Object} Returns the new object. */ - function basePickBy(object, predicate) { + function basePickBy(object, props, predicate) { var index = -1, - props = getAllKeysIn(object), length = props.length, result = {}; @@ -5775,25 +6276,12 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { value = object[key]; if (predicate(value, key)) { - result[key] = value; + baseAssignValue(result, key, value); } } return result; } - /** - * The base implementation of `_.property` without support for deep paths. - * - * @private - * @param {string} key The key of the property to get. - * @returns {Function} Returns the new accessor function. - */ - function baseProperty(key) { - return function(object) { - return object == null ? undefined : object[key]; - }; - } - /** * A specialized version of `baseProperty` which supports deep paths. * @@ -5896,7 +6384,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** * The base implementation of `_.range` and `_.rangeRight` which doesn't - * coerce arguments to numbers. + * coerce arguments. * * @private * @param {number} start The start of the range. @@ -5945,17 +6433,56 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return result; } + /** + * The base implementation of `_.rest` which doesn't validate or coerce arguments. + * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @param {number} [start=func.length-1] The start position of the rest parameter. + * @returns {Function} Returns the new function. + */ + function baseRest(func, start) { + return setToString(overRest(func, start, identity), func + ''); + } + + /** + * The base implementation of `_.sample`. + * + * @private + * @param {Array|Object} collection The collection to sample. + * @returns {*} Returns the random element. + */ + function baseSample(collection) { + return arraySample(values(collection)); + } + + /** + * The base implementation of `_.sampleSize` without param guards. + * + * @private + * @param {Array|Object} collection The collection to sample. + * @param {number} n The number of elements to sample. + * @returns {Array} Returns the random elements. + */ + function baseSampleSize(collection, n) { + var array = values(collection); + return shuffleSelf(array, baseClamp(n, 0, array.length)); + } + /** * The base implementation of `_.set`. * * @private - * @param {Object} object The object to query. + * @param {Object} object The object to modify. * @param {Array|string} path The path of the property to set. * @param {*} value The value to set. * @param {Function} [customizer] The function to customize path creation. * @returns {Object} Returns `object`. */ function baseSet(object, path, value, customizer) { + if (!isObject(object)) { + return object; + } path = isKey(path, object) ? [path] : castPath(path); var index = -1, @@ -5964,27 +6491,26 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { nested = object; while (nested != null && ++index < length) { - var key = toKey(path[index]); - if (isObject(nested)) { - var newValue = value; - if (index != lastIndex) { - var objValue = nested[key]; - newValue = customizer ? customizer(objValue, key, nested) : undefined; - if (newValue === undefined) { - newValue = objValue == null - ? (isIndex(path[index + 1]) ? [] : {}) - : objValue; - } + var key = toKey(path[index]), + newValue = value; + + if (index != lastIndex) { + var objValue = nested[key]; + newValue = customizer ? customizer(objValue, key, nested) : undefined; + if (newValue === undefined) { + newValue = isObject(objValue) + ? objValue + : (isIndex(path[index + 1]) ? [] : {}); } - assignValue(nested, key, newValue); } + assignValue(nested, key, newValue); nested = nested[key]; } return object; } /** - * The base implementation of `setData` without support for hot loop detection. + * The base implementation of `setData` without support for hot loop shorting. * * @private * @param {Function} func The function to associate metadata with. @@ -5996,6 +6522,34 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return func; }; + /** + * The base implementation of `setToString` without support for hot loop shorting. + * + * @private + * @param {Function} func The function to modify. + * @param {Function} string The `toString` result. + * @returns {Function} Returns `func`. + */ + var baseSetToString = !defineProperty ? identity : function(func, string) { + return defineProperty(func, 'toString', { + 'configurable': true, + 'enumerable': false, + 'value': constant(string), + 'writable': true + }); + }; + + /** + * The base implementation of `_.shuffle`. + * + * @private + * @param {Array|Object} collection The collection to shuffle. + * @returns {Array} Returns the new shuffled array. + */ + function baseShuffle(collection) { + return shuffleSelf(values(collection)); + } + /** * The base implementation of `_.slice` without an iteratee call guard. * @@ -6189,6 +6743,10 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { if (typeof value == 'string') { return value; } + if (isArray(value)) { + // Recursively convert values (susceptible to call stack limits). + return arrayMap(value, baseToString) + ''; + } if (isSymbol(value)) { return symbolToString ? symbolToString.call(value) : ''; } @@ -6270,14 +6828,14 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { object = parent(object, path); var key = toKey(last(path)); - return !(object != null && baseHas(object, key)) || delete object[key]; + return !(object != null && hasOwnProperty.call(object, key)) || delete object[key]; } /** * The base implementation of `_.update`. * * @private - * @param {Object} object The object to query. + * @param {Object} object The object to modify. * @param {Array|string} path The path of the property to update. * @param {Function} updater The function to produce the updated value. * @param {Function} [customizer] The function to customize path creation. @@ -6410,6 +6968,17 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return isArray(value) ? value : stringToPath(value); } + /** + * A `baseRest` alias which can be replaced with `identity` by module + * replacement plugins. + * + * @private + * @type {Function} + * @param {Function} func The function to apply a rest parameter to. + * @returns {Function} Returns the new function. + */ + var castRest = baseRest; + /** * Casts `array` to a slice if it's needed. * @@ -6425,6 +6994,16 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return (!start && end >= length) ? array : baseSlice(array, start, end); } + /** + * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout). + * + * @private + * @param {number|Object} id The timer id or timeout object of the timer to clear. + */ + var clearTimeout = ctxClearTimeout || function(id) { + return root.clearTimeout(id); + }; + /** * Creates a clone of `buffer`. * @@ -6437,7 +7016,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { if (isDeep) { return buffer.slice(); } - var result = new buffer.constructor(buffer.length); + var length = buffer.length, + result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); + buffer.copy(result); return result; } @@ -6714,6 +7295,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Object} Returns `object`. */ function copyObject(source, props, object, customizer) { + var isNew = !object; object || (object = {}); var index = -1, @@ -6724,9 +7306,16 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { var newValue = customizer ? customizer(object[key], source[key], key, object, source) - : source[key]; + : undefined; - assignValue(object, key, newValue); + if (newValue === undefined) { + newValue = source[key]; + } + if (isNew) { + baseAssignValue(object, key, newValue); + } else { + assignValue(object, key, newValue); + } } return object; } @@ -6756,7 +7345,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { var func = isArray(collection) ? arrayAggregator : baseAggregator, accumulator = initializer ? initializer() : {}; - return func(collection, setter, getIteratee(iteratee), accumulator); + return func(collection, setter, getIteratee(iteratee, 2), accumulator); }; } @@ -6768,7 +7357,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Function} Returns the new assigner function. */ function createAssigner(assigner) { - return rest(function(object, sources) { + return baseRest(function(object, sources) { var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined, @@ -6852,14 +7441,13 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * * @private * @param {Function} func The function to wrap. - * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper` - * for more details. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. * @param {*} [thisArg] The `this` binding of `func`. * @returns {Function} Returns the new wrapped function. */ - function createBaseWrapper(func, bitmask, thisArg) { + function createBind(func, bitmask, thisArg) { var isBind = bitmask & BIND_FLAG, - Ctor = createCtorWrapper(func); + Ctor = createCtor(func); function wrapper() { var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func; @@ -6879,7 +7467,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return function(string) { string = toString(string); - var strSymbols = reHasComplexSymbol.test(string) + var strSymbols = hasUnicode(string) ? stringToArray(string) : undefined; @@ -6916,10 +7504,10 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @param {Function} Ctor The constructor to wrap. * @returns {Function} Returns the new wrapped function. */ - function createCtorWrapper(Ctor) { + function createCtor(Ctor) { return function() { // Use a `switch` statement to work with class constructors. See - // http://ecma-international.org/ecma-262/6.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist + // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist // for more details. var args = arguments; switch (args.length) { @@ -6946,13 +7534,12 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * * @private * @param {Function} func The function to wrap. - * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper` - * for more details. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. * @param {number} arity The arity of `func`. * @returns {Function} Returns the new wrapped function. */ - function createCurryWrapper(func, bitmask, arity) { - var Ctor = createCtorWrapper(func); + function createCurry(func, bitmask, arity) { + var Ctor = createCtor(func); function wrapper() { var length = arguments.length, @@ -6969,8 +7556,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { length -= holders.length; if (length < arity) { - return createRecurryWrapper( - func, bitmask, createHybridWrapper, wrapper.placeholder, undefined, + return createRecurry( + func, bitmask, createHybrid, wrapper.placeholder, undefined, args, holders, undefined, undefined, arity - length); } var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func; @@ -6989,18 +7576,13 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { function createFind(findIndexFunc) { return function(collection, predicate, fromIndex) { var iterable = Object(collection); - predicate = getIteratee(predicate, 3); if (!isArrayLike(collection)) { - var props = keys(collection); + var iteratee = getIteratee(predicate, 3); + collection = keys(collection); + predicate = function(key) { return iteratee(iterable[key], key, iterable); }; } - var index = findIndexFunc(props || collection, function(value, key) { - if (props) { - key = value; - value = iterable[key]; - } - return predicate(value, key, iterable); - }, fromIndex); - return index > -1 ? collection[props ? props[index] : index] : undefined; + var index = findIndexFunc(collection, predicate, fromIndex); + return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined; }; } @@ -7012,9 +7594,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Function} Returns the new flow function. */ function createFlow(fromRight) { - return rest(function(funcs) { - funcs = baseFlatten(funcs, 1); - + return flatRest(function(funcs) { var length = funcs.length, index = length, prereq = LodashWrapper.prototype.thru; @@ -7074,8 +7654,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * * @private * @param {Function|string} func The function or method name to wrap. - * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper` - * for more details. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. * @param {*} [thisArg] The `this` binding of `func`. * @param {Array} [partials] The arguments to prepend to those provided to * the new function. @@ -7088,13 +7667,13 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @param {number} [arity] The arity of `func`. * @returns {Function} Returns the new wrapped function. */ - function createHybridWrapper(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) { + function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) { var isAry = bitmask & ARY_FLAG, isBind = bitmask & BIND_FLAG, isBindKey = bitmask & BIND_KEY_FLAG, isCurried = bitmask & (CURRY_FLAG | CURRY_RIGHT_FLAG), isFlip = bitmask & FLIP_FLAG, - Ctor = isBindKey ? undefined : createCtorWrapper(func); + Ctor = isBindKey ? undefined : createCtor(func); function wrapper() { var length = arguments.length, @@ -7117,8 +7696,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { length -= holdersCount; if (isCurried && length < arity) { var newHolders = replaceHolders(args, placeholder); - return createRecurryWrapper( - func, bitmask, createHybridWrapper, wrapper.placeholder, thisArg, + return createRecurry( + func, bitmask, createHybrid, wrapper.placeholder, thisArg, args, newHolders, argPos, ary, arity - length ); } @@ -7135,7 +7714,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { args.length = ary; } if (this && this !== root && this instanceof wrapper) { - fn = Ctor || createCtorWrapper(fn); + fn = Ctor || createCtor(fn); } return fn.apply(thisBinding, args); } @@ -7161,13 +7740,14 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * * @private * @param {Function} operator The function to perform the operation. + * @param {number} [defaultValue] The value used for `undefined` arguments. * @returns {Function} Returns the new mathematical operation function. */ - function createMathOperation(operator) { + function createMathOperation(operator, defaultValue) { return function(value, other) { var result; if (value === undefined && other === undefined) { - return 0; + return defaultValue; } if (value !== undefined) { result = value; @@ -7197,12 +7777,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Function} Returns the new over function. */ function createOver(arrayFunc) { - return rest(function(iteratees) { - iteratees = (iteratees.length == 1 && isArray(iteratees[0])) - ? arrayMap(iteratees[0], baseUnary(getIteratee())) - : arrayMap(baseFlatten(iteratees, 1, isFlattenableIteratee), baseUnary(getIteratee())); - - return rest(function(args) { + return flatRest(function(iteratees) { + iteratees = arrayMap(iteratees, baseUnary(getIteratee())); + return baseRest(function(args) { var thisArg = this; return arrayFunc(iteratees, function(iteratee) { return apply(iteratee, thisArg, args); @@ -7228,7 +7805,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return charsLength ? baseRepeat(chars, length) : chars; } var result = baseRepeat(chars, nativeCeil(length / stringSize(chars))); - return reHasComplexSymbol.test(chars) + return hasUnicode(chars) ? castSlice(stringToArray(result), 0, length).join('') : result.slice(0, length); } @@ -7239,16 +7816,15 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * * @private * @param {Function} func The function to wrap. - * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper` - * for more details. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. * @param {*} thisArg The `this` binding of `func`. * @param {Array} partials The arguments to prepend to those provided to * the new function. * @returns {Function} Returns the new wrapped function. */ - function createPartialWrapper(func, bitmask, thisArg, partials) { + function createPartial(func, bitmask, thisArg, partials) { var isBind = bitmask & BIND_FLAG, - Ctor = createCtorWrapper(func); + Ctor = createCtor(func); function wrapper() { var argsIndex = -1, @@ -7282,15 +7858,14 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { end = step = undefined; } // Ensure the sign of `-0` is preserved. - start = toNumber(start); - start = start === start ? start : 0; + start = toFinite(start); if (end === undefined) { end = start; start = 0; } else { - end = toNumber(end) || 0; + end = toFinite(end); } - step = step === undefined ? (start < end ? 1 : -1) : (toNumber(step) || 0); + step = step === undefined ? (start < end ? 1 : -1) : toFinite(step); return baseRange(start, end, step, fromRight); }; } @@ -7317,8 +7892,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * * @private * @param {Function} func The function to wrap. - * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper` - * for more details. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. * @param {Function} wrapFunc The function to create the `func` wrapper. * @param {*} placeholder The placeholder value. * @param {*} [thisArg] The `this` binding of `func`. @@ -7330,7 +7904,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @param {number} [arity] The arity of `func`. * @returns {Function} Returns the new wrapped function. */ - function createRecurryWrapper(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) { + function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) { var isCurry = bitmask & CURRY_FLAG, newHolders = isCurry ? holders : undefined, newHoldersRight = isCurry ? undefined : holders, @@ -7353,7 +7927,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { setData(result, newData); } result.placeholder = placeholder; - return result; + return setWrapToString(result, func, bitmask); } /** @@ -7382,7 +7956,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } /** - * Creates a set of `values`. + * Creates a set object of `values`. * * @private * @param {Array} values The values to add to the set. @@ -7418,7 +7992,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * * @private * @param {Function|string} func The function or method name to wrap. - * @param {number} bitmask The bitmask of wrapper flags. + * @param {number} bitmask The bitmask flags. * The bitmask may be composed of the following flags: * 1 - `_.bind` * 2 - `_.bindKey` @@ -7438,7 +8012,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @param {number} [arity] The arity of `func`. * @returns {Function} Returns the new wrapped function. */ - function createWrapper(func, bitmask, thisArg, partials, holders, argPos, ary, arity) { + function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) { var isBindKey = bitmask & BIND_KEY_FLAG; if (!isBindKey && typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); @@ -7481,16 +8055,16 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { bitmask &= ~(CURRY_FLAG | CURRY_RIGHT_FLAG); } if (!bitmask || bitmask == BIND_FLAG) { - var result = createBaseWrapper(func, bitmask, thisArg); + var result = createBind(func, bitmask, thisArg); } else if (bitmask == CURRY_FLAG || bitmask == CURRY_RIGHT_FLAG) { - result = createCurryWrapper(func, bitmask, arity); + result = createCurry(func, bitmask, arity); } else if ((bitmask == PARTIAL_FLAG || bitmask == (BIND_FLAG | PARTIAL_FLAG)) && !holders.length) { - result = createPartialWrapper(func, bitmask, thisArg, partials); + result = createPartial(func, bitmask, thisArg, partials); } else { - result = createHybridWrapper.apply(undefined, newData); + result = createHybrid.apply(undefined, newData); } var setter = data ? baseSetData : setData; - return setter(result, newData); + return setWrapToString(setter(result, newData), func, bitmask); } /** @@ -7517,7 +8091,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } // Assume cyclic values are equal. var stacked = stack.get(array); - if (stacked) { + if (stacked && stack.get(other)) { return stacked == other; } var index = -1, @@ -7525,6 +8099,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { seen = (bitmask & UNORDERED_COMPARE_FLAG) ? new SetCache : undefined; stack.set(array, other); + stack.set(other, array); // Ignore non-index properties. while (++index < arrLength) { @@ -7546,9 +8121,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { // Recursively compare arrays (susceptible to call stack limits). if (seen) { if (!arraySome(other, function(othValue, othIndex) { - if (!seen.has(othIndex) && + if (!cacheHas(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack))) { - return seen.add(othIndex); + return seen.push(othIndex); } })) { result = false; @@ -7563,6 +8138,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } } stack['delete'](array); + stack['delete'](other); return result; } @@ -7603,22 +8179,18 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { case boolTag: case dateTag: - // Coerce dates and booleans to numbers, dates to milliseconds and - // booleans to `1` or `0` treating invalid dates coerced to `NaN` as - // not equal. - return +object == +other; + case numberTag: + // Coerce booleans to `1` or `0` and dates to milliseconds. + // Invalid dates are coerced to `NaN`. + return eq(+object, +other); case errorTag: return object.name == other.name && object.message == other.message; - case numberTag: - // Treat `NaN` vs. `NaN` as equal. - return (object != +object) ? other != +other : object == +other; - case regexpTag: case stringTag: // Coerce regexes to strings and treat strings, primitives and objects, - // as equal. See http://www.ecma-international.org/ecma-262/6.0/#sec-regexp.prototype.tostring + // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring // for more details. return object == (other + ''); @@ -7638,10 +8210,12 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return stacked == other; } bitmask |= UNORDERED_COMPARE_FLAG; - stack.set(object, other); // Recursively compare objects (susceptible to call stack limits). - return equalArrays(convert(object), convert(other), equalFunc, customizer, bitmask, stack); + stack.set(object, other); + var result = equalArrays(convert(object), convert(other), equalFunc, customizer, bitmask, stack); + stack['delete'](object); + return result; case symbolTag: if (symbolValueOf) { @@ -7678,17 +8252,18 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { var index = objLength; while (index--) { var key = objProps[index]; - if (!(isPartial ? key in other : baseHas(other, key))) { + if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) { return false; } } // Assume cyclic values are equal. var stacked = stack.get(object); - if (stacked) { + if (stacked && stack.get(other)) { return stacked == other; } var result = true; stack.set(object, other); + stack.set(other, object); var skipCtor = isPartial; while (++index < objLength) { @@ -7724,9 +8299,21 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } } stack['delete'](object); + stack['delete'](other); return result; } + /** + * A specialized version of `baseRest` which flattens the rest array. + * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @returns {Function} Returns the new function. + */ + function flatRest(func) { + return setToString(overRest(func, undefined, flatten), func + ''); + } + /** * Creates an array of own enumerable property names and symbols of `object`. * @@ -7812,19 +8399,6 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return arguments.length ? result(arguments[0], arguments[1]) : result; } - /** - * Gets the "length" property value of `object`. - * - * **Note:** This function is used to avoid a - * [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) that affects - * Safari on at least iOS 8.1-8.3 ARM64. - * - * @private - * @param {Object} object The object to query. - * @returns {*} Returns the "length" value. - */ - var getLength = baseProperty('length'); - /** * Gets the data for `map`. * @@ -7873,17 +8447,6 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return baseIsNative(value) ? value : undefined; } - /** - * Gets the `[[Prototype]]` of `value`. - * - * @private - * @param {*} value The value to query. - * @returns {null|Object} Returns the `[[Prototype]]`. - */ - function getPrototype(value) { - return nativeGetPrototype(Object(value)); - } - /** * Creates an array of the own enumerable symbol properties of `object`. * @@ -7891,16 +8454,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @param {Object} object The object to query. * @returns {Array} Returns the array of symbols. */ - function getSymbols(object) { - // Coerce `object` to an object to avoid non-object errors in V8. - // See https://bugs.chromium.org/p/v8/issues/detail?id=3443 for more details. - return getOwnPropertySymbols(Object(object)); - } - - // Fallback for IE < 11. - if (!getOwnPropertySymbols) { - getSymbols = stubArray; - } + var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray; /** * Creates an array of the own and inherited enumerable symbol properties @@ -7910,7 +8464,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @param {Object} object The object to query. * @returns {Array} Returns the array of symbols. */ - var getSymbolsIn = !getOwnPropertySymbols ? getSymbols : function(object) { + var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { var result = []; while (object) { arrayPush(result, getSymbols(object)); @@ -7926,12 +8480,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ - function getTag(value) { - return objectToString.call(value); - } + var getTag = baseGetTag; - // Fallback for data views, maps, sets, and weak maps in IE 11, - // for data views in Edge, and promises in Node.js. + // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || (Map && getTag(new Map) != mapTag) || (Promise && getTag(Promise.resolve()) != promiseTag) || @@ -7983,6 +8534,18 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return { 'start': start, 'end': end }; } + /** + * Extracts wrapper details from the `source` body comment. + * + * @private + * @param {string} source The source to inspect. + * @returns {Array} Returns the wrapper details. + */ + function getWrapDetails(source) { + var match = source.match(reWrapDetails); + return match ? match[1].split(reSplitDetails) : []; + } + /** * Checks if `path` exists on `object`. * @@ -7995,9 +8558,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { function hasPath(object, path, hasFunc) { path = isKey(path, object) ? [path] : castPath(path); - var result, - index = -1, - length = path.length; + var index = -1, + length = path.length, + result = false; while (++index < length) { var key = toKey(path[index]); @@ -8006,12 +8569,12 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } object = object[key]; } - if (result) { + if (result || ++index != length) { return result; } - var length = object ? object.length : 0; + length = object ? object.length : 0; return !!length && isLength(length) && isIndex(key, length) && - (isArray(object) || isString(object) || isArguments(object)); + (isArray(object) || isArguments(object)); } /** @@ -8096,20 +8659,22 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } /** - * Creates an array of index keys for `object` values of arrays, - * `arguments` objects, and strings, otherwise `null` is returned. + * Inserts wrapper `details` in a comment at the top of the `source` body. * * @private - * @param {Object} object The object to query. - * @returns {Array|null} Returns index keys, else `null`. + * @param {string} source The source to modify. + * @returns {Array} details The details to insert. + * @returns {string} Returns the modified source. */ - function indexKeys(object) { - var length = object ? object.length : undefined; - if (isLength(length) && - (isArray(object) || isString(object) || isArguments(object))) { - return baseTimes(length, String); + function insertWrapDetails(source, details) { + var length = details.length; + if (!length) { + return source; } - return null; + var lastIndex = length - 1; + details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex]; + details = details.join(length > 2 ? ', ' : ' '); + return source.replace(reWrapComment, '{\n/* [wrapped with ' + details + '] */\n'); } /** @@ -8120,19 +8685,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {boolean} Returns `true` if `value` is flattenable, else `false`. */ function isFlattenable(value) { - return isArray(value) || isArguments(value); - } - - /** - * Checks if `value` is a flattenable array and not a `_.matchesProperty` - * iteratee shorthand. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is flattenable, else `false`. - */ - function isFlattenableIteratee(value) { - return isArray(value) && !(value.length == 2 && !isFunction(value[0])); + return isArray(value) || isArguments(value) || + !!(spreadableSymbol && value && value[spreadableSymbol]); } /** @@ -8296,6 +8850,26 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { }; } + /** + * A specialized version of `_.memoize` which clears the memoized function's + * cache when it exceeds `MAX_MEMOIZE_SIZE`. + * + * @private + * @param {Function} func The function to have its output memoized. + * @returns {Function} Returns the new memoized function. + */ + function memoizeCapped(func) { + var result = memoize(func, function(key) { + if (cache.size === MAX_MEMOIZE_SIZE) { + cache.clear(); + } + return key; + }); + + var cache = result.cache; + return result; + } + /** * Merges the function metadata of `source` into `data`. * @@ -8382,11 +8956,63 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function mergeDefaults(objValue, srcValue, key, object, source, stack) { if (isObject(objValue) && isObject(srcValue)) { - baseMerge(objValue, srcValue, undefined, mergeDefaults, stack.set(srcValue, objValue)); + // Recursively merge objects and arrays (susceptible to call stack limits). + stack.set(srcValue, objValue); + baseMerge(objValue, srcValue, undefined, mergeDefaults, stack); + stack['delete'](srcValue); } return objValue; } + /** + * This function is like + * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) + * except that it includes inherited enumerable properties. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + */ + function nativeKeysIn(object) { + var result = []; + if (object != null) { + for (var key in Object(object)) { + result.push(key); + } + } + return result; + } + + /** + * A specialized version of `baseRest` which transforms the rest array. + * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @param {number} [start=func.length-1] The start position of the rest parameter. + * @param {Function} transform The rest array transform. + * @returns {Function} Returns the new function. + */ + function overRest(func, start, transform) { + start = nativeMax(start === undefined ? (func.length - 1) : start, 0); + return function() { + var args = arguments, + index = -1, + length = nativeMax(args.length - start, 0), + array = Array(length); + + while (++index < length) { + array[index] = args[start + index]; + } + index = -1; + var otherArgs = Array(start + 1); + while (++index < start) { + otherArgs[index] = args[index]; + } + otherArgs[start] = transform(array); + return apply(func, this, otherArgs); + }; + } + /** * Gets the parent value at `path` of `object`. * @@ -8435,25 +9061,98 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @param {*} data The metadata. * @returns {Function} Returns `func`. */ - var setData = (function() { + var setData = shortOut(baseSetData); + + /** + * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout). + * + * @private + * @param {Function} func The function to delay. + * @param {number} wait The number of milliseconds to delay invocation. + * @returns {number|Object} Returns the timer id or timeout object. + */ + var setTimeout = ctxSetTimeout || function(func, wait) { + return root.setTimeout(func, wait); + }; + + /** + * Sets the `toString` method of `func` to return `string`. + * + * @private + * @param {Function} func The function to modify. + * @param {Function} string The `toString` result. + * @returns {Function} Returns `func`. + */ + var setToString = shortOut(baseSetToString); + + /** + * Sets the `toString` method of `wrapper` to mimic the source of `reference` + * with wrapper details in a comment at the top of the source body. + * + * @private + * @param {Function} wrapper The function to modify. + * @param {Function} reference The reference function. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. + * @returns {Function} Returns `wrapper`. + */ + function setWrapToString(wrapper, reference, bitmask) { + var source = (reference + ''); + return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask))); + } + + /** + * Creates a function that'll short out and invoke `identity` instead + * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN` + * milliseconds. + * + * @private + * @param {Function} func The function to restrict. + * @returns {Function} Returns the new shortable function. + */ + function shortOut(func) { var count = 0, lastCalled = 0; - return function(key, value) { - var stamp = now(), + return function() { + var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); lastCalled = stamp; if (remaining > 0) { if (++count >= HOT_COUNT) { - return key; + return arguments[0]; } } else { count = 0; } - return baseSetData(key, value); + return func.apply(undefined, arguments); }; - }()); + } + + /** + * A specialized version of `_.shuffle` which mutates and sets the size of `array`. + * + * @private + * @param {Array} array The array to shuffle. + * @param {number} [size=array.length] The size of `array`. + * @returns {Array} Returns `array`. + */ + function shuffleSelf(array, size) { + var index = -1, + length = array.length, + lastIndex = length - 1; + + size = size === undefined ? length : size; + while (++index < size) { + var rand = baseRandom(index, lastIndex), + value = array[rand]; + + array[rand] = array[index]; + array[index] = value; + } + array.length = size; + return array; + } /** * Converts `string` to a property path array. @@ -8462,9 +9161,14 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @param {string} string The string to convert. * @returns {Array} Returns the property path array. */ - var stringToPath = memoize(function(string) { + var stringToPath = memoizeCapped(function(string) { + string = toString(string); + var result = []; - toString(string).replace(rePropName, function(match, number, quote, string) { + if (reLeadingDot.test(string)) { + result.push(''); + } + string.replace(rePropName, function(match, number, quote, string) { result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match)); }); return result; @@ -8504,6 +9208,24 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return ''; } + /** + * Updates wrapper `details` based on `bitmask` flags. + * + * @private + * @returns {Array} details The details to modify. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. + * @returns {Array} Returns `details`. + */ + function updateWrapDetails(details, bitmask) { + arrayEach(wrapFlags, function(pair) { + var value = '_.' + pair[0]; + if ((bitmask & pair[1]) && !arrayIncludes(details, value)) { + details.push(value); + } + }); + return details.sort(); + } + /** * Creates a clone of `wrapper`. * @@ -8618,24 +9340,27 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => [1] */ function concat() { - var length = arguments.length, - args = Array(length ? length - 1 : 0), + var length = arguments.length; + if (!length) { + return []; + } + var args = Array(length - 1), array = arguments[0], index = length; while (index--) { args[index - 1] = arguments[index]; } - return length - ? arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1)) - : []; + return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1)); } /** - * Creates an array of unique `array` values not included in the other given - * arrays using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) - * for equality comparisons. The order of result values is determined by the - * order they occur in the first array. + * Creates an array of `array` values not included in the other given arrays + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. The order and references of result values are + * determined by the first array. + * + * **Note:** Unlike `_.pullAll`, this method returns a new array. * * @static * @memberOf _ @@ -8650,7 +9375,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.difference([2, 1], [2, 3]); * // => [1] */ - var difference = rest(function(array, values) { + var difference = baseRest(function(array, values) { return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true)) : []; @@ -8659,8 +9384,11 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** * This method is like `_.difference` except that it accepts `iteratee` which * is invoked for each element of `array` and `values` to generate the criterion - * by which they're compared. Result values are chosen from the first array. - * The iteratee is invoked with one argument: (value). + * by which they're compared. The order and references of result values are + * determined by the first array. The iteratee is invoked with one argument: + * (value). + * + * **Note:** Unlike `_.pullAllBy`, this method returns a new array. * * @static * @memberOf _ @@ -8668,8 +9396,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @category Array * @param {Array} array The array to inspect. * @param {...Array} [values] The values to exclude. - * @param {Array|Function|Object|string} [iteratee=_.identity] - * The iteratee invoked per element. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {Array} Returns the new array of filtered values. * @example * @@ -8680,21 +9407,23 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x'); * // => [{ 'x': 2 }] */ - var differenceBy = rest(function(array, values) { + var differenceBy = baseRest(function(array, values) { var iteratee = last(values); if (isArrayLikeObject(iteratee)) { iteratee = undefined; } return isArrayLikeObject(array) - ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee)) + ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2)) : []; }); /** * This method is like `_.difference` except that it accepts `comparator` - * which is invoked to compare elements of `array` to `values`. Result values - * are chosen from the first array. The comparator is invoked with two arguments: - * (arrVal, othVal). + * which is invoked to compare elements of `array` to `values`. The order and + * references of result values are determined by the first array. The comparator + * is invoked with two arguments: (arrVal, othVal). + * + * **Note:** Unlike `_.pullAllWith`, this method returns a new array. * * @static * @memberOf _ @@ -8711,7 +9440,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual); * // => [{ 'x': 2, 'y': 1 }] */ - var differenceWith = rest(function(array, values) { + var differenceWith = baseRest(function(array, values) { var comparator = last(values); if (isArrayLikeObject(comparator)) { comparator = undefined; @@ -8800,8 +9529,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 3.0.0 * @category Array * @param {Array} array The array to query. - * @param {Array|Function|Object|string} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {Array} Returns the slice of `array`. * @example * @@ -8842,7 +9570,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 3.0.0 * @category Array * @param {Array} array The array to query. - * @param {Array|Function|Object|string} [predicate=_.identity] + * @param {Function} [predicate=_.identity] * The function invoked per iteration. * @returns {Array} Returns the slice of `array`. * @example @@ -8923,8 +9651,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @memberOf _ * @since 1.1.0 * @category Array - * @param {Array} array The array to search. - * @param {Array|Function|Object|string} [predicate=_.identity] + * @param {Array} array The array to inspect. + * @param {Function} [predicate=_.identity] * The function invoked per iteration. * @param {number} [fromIndex=0] The index to search from. * @returns {number} Returns the index of the found element, else `-1`. @@ -8971,8 +9699,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @memberOf _ * @since 2.0.0 * @category Array - * @param {Array} array The array to search. - * @param {Array|Function|Object|string} [predicate=_.identity] + * @param {Array} array The array to inspect. + * @param {Function} [predicate=_.identity] * The function invoked per iteration. * @param {number} [fromIndex=array.length-1] The index to search from. * @returns {number} Returns the index of the found element, else `-1`. @@ -9093,8 +9821,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Object} Returns the new object. * @example * - * _.fromPairs([['fred', 30], ['barney', 40]]); - * // => { 'fred': 30, 'barney': 40 } + * _.fromPairs([['a', 1], ['b', 2]]); + * // => { 'a': 1, 'b': 2 } */ function fromPairs(pairs) { var index = -1, @@ -9132,7 +9860,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** * Gets the index at which the first occurrence of `value` is found in `array` - * using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. If `fromIndex` is negative, it's used as the * offset from the end of `array`. * @@ -9140,7 +9868,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @memberOf _ * @since 0.1.0 * @category Array - * @param {Array} array The array to search. + * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @param {number} [fromIndex=0] The index to search from. * @returns {number} Returns the index of the matched value, else `-1`. @@ -9180,14 +9908,15 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => [1, 2] */ function initial(array) { - return dropRight(array, 1); + var length = array ? array.length : 0; + return length ? baseSlice(array, 0, -1) : []; } /** * Creates an array of unique values that are included in all given arrays - * using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) - * for equality comparisons. The order of result values is determined by the - * order they occur in the first array. + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. The order and references of result values are + * determined by the first array. * * @static * @memberOf _ @@ -9200,7 +9929,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.intersection([2, 1], [2, 3]); * // => [2] */ - var intersection = rest(function(arrays) { + var intersection = baseRest(function(arrays) { var mapped = arrayMap(arrays, castArrayLikeObject); return (mapped.length && mapped[0] === arrays[0]) ? baseIntersection(mapped) @@ -9210,16 +9939,16 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** * This method is like `_.intersection` except that it accepts `iteratee` * which is invoked for each element of each `arrays` to generate the criterion - * by which they're compared. Result values are chosen from the first array. - * The iteratee is invoked with one argument: (value). + * by which they're compared. The order and references of result values are + * determined by the first array. The iteratee is invoked with one argument: + * (value). * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {...Array} [arrays] The arrays to inspect. - * @param {Array|Function|Object|string} [iteratee=_.identity] - * The iteratee invoked per element. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {Array} Returns the new array of intersecting values. * @example * @@ -9230,7 +9959,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x'); * // => [{ 'x': 1 }] */ - var intersectionBy = rest(function(arrays) { + var intersectionBy = baseRest(function(arrays) { var iteratee = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject); @@ -9240,15 +9969,15 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { mapped.pop(); } return (mapped.length && mapped[0] === arrays[0]) - ? baseIntersection(mapped, getIteratee(iteratee)) + ? baseIntersection(mapped, getIteratee(iteratee, 2)) : []; }); /** * This method is like `_.intersection` except that it accepts `comparator` - * which is invoked to compare elements of `arrays`. Result values are chosen - * from the first array. The comparator is invoked with two arguments: - * (arrVal, othVal). + * which is invoked to compare elements of `arrays`. The order and references + * of result values are determined by the first array. The comparator is + * invoked with two arguments: (arrVal, othVal). * * @static * @memberOf _ @@ -9265,7 +9994,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.intersectionWith(objects, others, _.isEqual); * // => [{ 'x': 1, 'y': 2 }] */ - var intersectionWith = rest(function(arrays) { + var intersectionWith = baseRest(function(arrays) { var comparator = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject); @@ -9325,7 +10054,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @memberOf _ * @since 0.1.0 * @category Array - * @param {Array} array The array to search. + * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @param {number} [fromIndex=array.length-1] The index to search from. * @returns {number} Returns the index of the matched value, else `-1`. @@ -9346,21 +10075,11 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { var index = length; if (fromIndex !== undefined) { index = toInteger(fromIndex); - index = ( - index < 0 - ? nativeMax(length + index, 0) - : nativeMin(index, length - 1) - ) + 1; - } - if (value !== value) { - return indexOfNaN(array, index - 1, true); - } - while (index--) { - if (array[index] === value) { - return index; - } + index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1); } - return -1; + return value === value + ? strictLastIndexOf(array, value, index) + : baseFindIndex(array, baseIsNaN, index, true); } /** @@ -9390,7 +10109,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** * Removes all given values from `array` using - * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. * * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove` @@ -9411,7 +10130,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * console.log(array); * // => ['b', 'b'] */ - var pull = rest(pullAll); + var pull = baseRest(pullAll); /** * This method is like `_.pull` except that it accepts an array of values to remove. @@ -9452,7 +10171,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @category Array * @param {Array} array The array to modify. * @param {Array} values The values to remove. - * @param {Array|Function|Object|string} [iteratee=_.identity] + * @param {Function} [iteratee=_.identity] * The iteratee invoked per element. * @returns {Array} Returns `array`. * @example @@ -9465,7 +10184,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function pullAllBy(array, values, iteratee) { return (array && array.length && values && values.length) - ? basePullAll(array, values, getIteratee(iteratee)) + ? basePullAll(array, values, getIteratee(iteratee, 2)) : array; } @@ -9522,9 +10241,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * console.log(pulled); * // => ['b', 'd'] */ - var pullAt = rest(function(array, indexes) { - indexes = baseFlatten(indexes, 1); - + var pullAt = flatRest(function(array, indexes) { var length = array ? array.length : 0, result = baseAt(array, indexes); @@ -9548,7 +10265,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 2.0.0 * @category Array * @param {Array} array The array to modify. - * @param {Array|Function|Object|string} [predicate=_.identity] + * @param {Function} [predicate=_.identity] * The function invoked per iteration. * @returns {Array} Returns the new array of removed elements. * @example @@ -9676,7 +10393,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @category Array * @param {Array} array The sorted array to inspect. * @param {*} value The value to evaluate. - * @param {Array|Function|Object|string} [iteratee=_.identity] + * @param {Function} [iteratee=_.identity] * The iteratee invoked per element. * @returns {number} Returns the index at which `value` should be inserted * into `array`. @@ -9692,7 +10409,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => 0 */ function sortedIndexBy(array, value, iteratee) { - return baseSortedIndexBy(array, value, getIteratee(iteratee)); + return baseSortedIndexBy(array, value, getIteratee(iteratee, 2)); } /** @@ -9703,7 +10420,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @memberOf _ * @since 4.0.0 * @category Array - * @param {Array} array The array to search. + * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @returns {number} Returns the index of the matched value, else `-1`. * @example @@ -9755,7 +10472,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @category Array * @param {Array} array The sorted array to inspect. * @param {*} value The value to evaluate. - * @param {Array|Function|Object|string} [iteratee=_.identity] + * @param {Function} [iteratee=_.identity] * The iteratee invoked per element. * @returns {number} Returns the index at which `value` should be inserted * into `array`. @@ -9771,7 +10488,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => 1 */ function sortedLastIndexBy(array, value, iteratee) { - return baseSortedIndexBy(array, value, getIteratee(iteratee), true); + return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true); } /** @@ -9782,7 +10499,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @memberOf _ * @since 4.0.0 * @category Array - * @param {Array} array The array to search. + * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @returns {number} Returns the index of the matched value, else `-1`. * @example @@ -9840,7 +10557,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function sortedUniqBy(array, iteratee) { return (array && array.length) - ? baseSortedUniq(array, getIteratee(iteratee)) + ? baseSortedUniq(array, getIteratee(iteratee, 2)) : []; } @@ -9859,7 +10576,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => [2, 3] */ function tail(array) { - return drop(array, 1); + var length = array ? array.length : 0; + return length ? baseSlice(array, 1, length) : []; } /** @@ -9940,7 +10658,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 3.0.0 * @category Array * @param {Array} array The array to query. - * @param {Array|Function|Object|string} [predicate=_.identity] + * @param {Function} [predicate=_.identity] * The function invoked per iteration. * @returns {Array} Returns the slice of `array`. * @example @@ -9982,7 +10700,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 3.0.0 * @category Array * @param {Array} array The array to query. - * @param {Array|Function|Object|string} [predicate=_.identity] + * @param {Function} [predicate=_.identity] * The function invoked per iteration. * @returns {Array} Returns the slice of `array`. * @example @@ -10016,7 +10734,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** * Creates an array of unique values, in order, from all given arrays using - * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. * * @static @@ -10030,14 +10748,15 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.union([2], [1, 2]); * // => [2, 1] */ - var union = rest(function(arrays) { + var union = baseRest(function(arrays) { return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true)); }); /** * This method is like `_.union` except that it accepts `iteratee` which is * invoked for each element of each `arrays` to generate the criterion by - * which uniqueness is computed. The iteratee is invoked with one argument: + * which uniqueness is computed. Result values are chosen from the first + * array in which the value occurs. The iteratee is invoked with one argument: * (value). * * @static @@ -10045,7 +10764,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 4.0.0 * @category Array * @param {...Array} [arrays] The arrays to inspect. - * @param {Array|Function|Object|string} [iteratee=_.identity] + * @param {Function} [iteratee=_.identity] * The iteratee invoked per element. * @returns {Array} Returns the new array of combined values. * @example @@ -10057,17 +10776,18 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x'); * // => [{ 'x': 1 }, { 'x': 2 }] */ - var unionBy = rest(function(arrays) { + var unionBy = baseRest(function(arrays) { var iteratee = last(arrays); if (isArrayLikeObject(iteratee)) { iteratee = undefined; } - return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee)); + return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2)); }); /** * This method is like `_.union` except that it accepts `comparator` which - * is invoked to compare elements of `arrays`. The comparator is invoked + * is invoked to compare elements of `arrays`. Result values are chosen from + * the first array in which the value occurs. The comparator is invoked * with two arguments: (arrVal, othVal). * * @static @@ -10085,7 +10805,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.unionWith(objects, others, _.isEqual); * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }] */ - var unionWith = rest(function(arrays) { + var unionWith = baseRest(function(arrays) { var comparator = last(arrays); if (isArrayLikeObject(comparator)) { comparator = undefined; @@ -10095,9 +10815,10 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** * Creates a duplicate-free version of an array, using - * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) - * for equality comparisons, in which only the first occurrence of each - * element is kept. + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons, in which only the first occurrence of each element + * is kept. The order of result values is determined by the order they occur + * in the array. * * @static * @memberOf _ @@ -10119,14 +10840,16 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** * This method is like `_.uniq` except that it accepts `iteratee` which is * invoked for each element in `array` to generate the criterion by which - * uniqueness is computed. The iteratee is invoked with one argument: (value). + * uniqueness is computed. The order of result values is determined by the + * order they occur in the array. The iteratee is invoked with one argument: + * (value). * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to inspect. - * @param {Array|Function|Object|string} [iteratee=_.identity] + * @param {Function} [iteratee=_.identity] * The iteratee invoked per element. * @returns {Array} Returns the new duplicate free array. * @example @@ -10140,14 +10863,15 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function uniqBy(array, iteratee) { return (array && array.length) - ? baseUniq(array, getIteratee(iteratee)) + ? baseUniq(array, getIteratee(iteratee, 2)) : []; } /** * This method is like `_.uniq` except that it accepts `comparator` which - * is invoked to compare elements of `array`. The comparator is invoked with - * two arguments: (arrVal, othVal). + * is invoked to compare elements of `array`. The order of result values is + * determined by the order they occur in the array.The comparator is invoked + * with two arguments: (arrVal, othVal). * * @static * @memberOf _ @@ -10182,11 +10906,11 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Array} Returns the new array of regrouped elements. * @example * - * var zipped = _.zip(['fred', 'barney'], [30, 40], [true, false]); - * // => [['fred', 30, true], ['barney', 40, false]] + * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]); + * // => [['a', 1, true], ['b', 2, false]] * * _.unzip(zipped); - * // => [['fred', 'barney'], [30, 40], [true, false]] + * // => [['a', 'b'], [1, 2], [true, false]] */ function unzip(array) { if (!(array && array.length)) { @@ -10240,9 +10964,11 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** * Creates an array excluding all given values using - * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. * + * **Note:** Unlike `_.pull`, this method returns a new array. + * * @static * @memberOf _ * @since 0.1.0 @@ -10256,7 +10982,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.without([2, 1, 2, 3], 1, 2); * // => [3] */ - var without = rest(function(array, values) { + var without = baseRest(function(array, values) { return isArrayLikeObject(array) ? baseDifference(array, values) : []; @@ -10280,22 +11006,23 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.xor([2, 1], [2, 3]); * // => [1, 3] */ - var xor = rest(function(arrays) { + var xor = baseRest(function(arrays) { return baseXor(arrayFilter(arrays, isArrayLikeObject)); }); /** * This method is like `_.xor` except that it accepts `iteratee` which is * invoked for each element of each `arrays` to generate the criterion by - * which by which they're compared. The iteratee is invoked with one argument: - * (value). + * which by which they're compared. The order of result values is determined + * by the order they occur in the arrays. The iteratee is invoked with one + * argument: (value). * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {...Array} [arrays] The arrays to inspect. - * @param {Array|Function|Object|string} [iteratee=_.identity] + * @param {Function} [iteratee=_.identity] * The iteratee invoked per element. * @returns {Array} Returns the new array of filtered values. * @example @@ -10307,18 +11034,19 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x'); * // => [{ 'x': 2 }] */ - var xorBy = rest(function(arrays) { + var xorBy = baseRest(function(arrays) { var iteratee = last(arrays); if (isArrayLikeObject(iteratee)) { iteratee = undefined; } - return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee)); + return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2)); }); /** * This method is like `_.xor` except that it accepts `comparator` which is - * invoked to compare elements of `arrays`. The comparator is invoked with - * two arguments: (arrVal, othVal). + * invoked to compare elements of `arrays`. The order of result values is + * determined by the order they occur in the arrays. The comparator is invoked + * with two arguments: (arrVal, othVal). * * @static * @memberOf _ @@ -10335,7 +11063,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.xorWith(objects, others, _.isEqual); * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }] */ - var xorWith = rest(function(arrays) { + var xorWith = baseRest(function(arrays) { var comparator = last(arrays); if (isArrayLikeObject(comparator)) { comparator = undefined; @@ -10356,10 +11084,10 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Array} Returns the new array of grouped elements. * @example * - * _.zip(['fred', 'barney'], [30, 40], [true, false]); - * // => [['fred', 30, true], ['barney', 40, false]] + * _.zip(['a', 'b'], [1, 2], [true, false]); + * // => [['a', 1, true], ['b', 2, false]] */ - var zip = rest(unzip); + var zip = baseRest(unzip); /** * This method is like `_.fromPairs` except that it accepts two arrays, @@ -10419,7 +11147,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * }); * // => [111, 222] */ - var zipWith = rest(function(arrays) { + var zipWith = baseRest(function(arrays) { var length = arrays.length, iteratee = length > 1 ? arrays[length - 1] : undefined; @@ -10535,8 +11263,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _(object).at(['a[0].b.c', 'a[1]']).value(); * // => [3, 4] */ - var wrapperAt = rest(function(paths) { - paths = baseFlatten(paths, 1); + var wrapperAt = flatRest(function(paths) { var length = paths.length, start = length ? paths[0] : 0, value = this.__wrapped__, @@ -10788,7 +11515,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 0.5.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Array|Function|Object|string} [iteratee=_.identity] + * @param {Function} [iteratee=_.identity] * The iteratee to transform keys. * @returns {Object} Returns the composed aggregate object. * @example @@ -10801,7 +11528,11 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => { '3': 2, '5': 1 } */ var countBy = createAggregator(function(result, value, key) { - hasOwnProperty.call(result, key) ? ++result[key] : (result[key] = 1); + if (hasOwnProperty.call(result, key)) { + ++result[key]; + } else { + baseAssignValue(result, key, 1); + } }); /** @@ -10809,12 +11540,17 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * Iteration is stopped once `predicate` returns falsey. The predicate is * invoked with three arguments: (value, index|key, collection). * + * **Note:** This method returns `true` for + * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because + * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of + * elements of empty collections. + * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Array|Function|Object|string} [predicate=_.identity] + * @param {Function} [predicate=_.identity] * The function invoked per iteration. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. * @returns {boolean} Returns `true` if all elements pass the predicate check, @@ -10854,12 +11590,14 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * `predicate` returns truthy for. The predicate is invoked with three * arguments: (value, index|key, collection). * + * **Note:** Unlike `_.remove`, this method returns a new array. + * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Array|Function|Object|string} [predicate=_.identity] + * @param {Function} [predicate=_.identity] * The function invoked per iteration. * @returns {Array} Returns the new filtered array. * @see _.reject @@ -10899,8 +11637,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @memberOf _ * @since 0.1.0 * @category Collection - * @param {Array|Object} collection The collection to search. - * @param {Array|Function|Object|string} [predicate=_.identity] + * @param {Array|Object} collection The collection to inspect. + * @param {Function} [predicate=_.identity] * The function invoked per iteration. * @param {number} [fromIndex=0] The index to search from. * @returns {*} Returns the matched element, else `undefined`. @@ -10937,8 +11675,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @memberOf _ * @since 2.0.0 * @category Collection - * @param {Array|Object} collection The collection to search. - * @param {Array|Function|Object|string} [predicate=_.identity] + * @param {Array|Object} collection The collection to inspect. + * @param {Function} [predicate=_.identity] * The function invoked per iteration. * @param {number} [fromIndex=collection.length-1] The index to search from. * @returns {*} Returns the matched element, else `undefined`. @@ -10961,7 +11699,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 4.0.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Array|Function|Object|string} [iteratee=_.identity] + * @param {Function} [iteratee=_.identity] * The function invoked per iteration. * @returns {Array} Returns the new flattened array. * @example @@ -10986,7 +11724,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 4.7.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Array|Function|Object|string} [iteratee=_.identity] + * @param {Function} [iteratee=_.identity] * The function invoked per iteration. * @returns {Array} Returns the new flattened array. * @example @@ -11011,7 +11749,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 4.7.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Array|Function|Object|string} [iteratee=_.identity] + * @param {Function} [iteratee=_.identity] * The function invoked per iteration. * @param {number} [depth=1] The maximum recursion depth. * @returns {Array} Returns the new flattened array. @@ -11049,7 +11787,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @see _.forEachRight * @example * - * _([1, 2]).forEach(function(value) { + * _.forEach([1, 2], function(value) { * console.log(value); * }); * // => Logs `1` then `2`. @@ -11101,7 +11839,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Array|Function|Object|string} [iteratee=_.identity] + * @param {Function} [iteratee=_.identity] * The iteratee to transform keys. * @returns {Object} Returns the composed aggregate object. * @example @@ -11117,14 +11855,14 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { if (hasOwnProperty.call(result, key)) { result[key].push(value); } else { - result[key] = [value]; + baseAssignValue(result, key, [value]); } }); /** * Checks if `value` is in `collection`. If `collection` is a string, it's * checked for a substring of `value`, otherwise - * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * is used for equality comparisons. If `fromIndex` is negative, it's used as * the offset from the end of `collection`. * @@ -11132,7 +11870,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @memberOf _ * @since 0.1.0 * @category Collection - * @param {Array|Object|string} collection The collection to search. + * @param {Array|Object|string} collection The collection to inspect. * @param {*} value The value to search for. * @param {number} [fromIndex=0] The index to search from. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`. @@ -11145,10 +11883,10 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.includes([1, 2, 3], 1, 2); * // => false * - * _.includes({ 'user': 'fred', 'age': 40 }, 'fred'); + * _.includes({ 'a': 1, 'b': 2 }, 1); * // => true * - * _.includes('pebbles', 'eb'); + * _.includes('abcd', 'bc'); * // => true */ function includes(collection, value, fromIndex, guard) { @@ -11167,8 +11905,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** * Invokes the method at `path` of each element in `collection`, returning * an array of the results of each invoked method. Any additional arguments - * are provided to each invoked method. If `methodName` is a function, it's - * invoked for and `this` bound to, each element in `collection`. + * are provided to each invoked method. If `path` is a function, it's invoked + * for, and `this` bound to, each element in `collection`. * * @static * @memberOf _ @@ -11187,7 +11925,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.invokeMap([123, 456], String.prototype.split, ''); * // => [['1', '2', '3'], ['4', '5', '6']] */ - var invokeMap = rest(function(collection, path, args) { + var invokeMap = baseRest(function(collection, path, args) { var index = -1, isFunc = typeof path == 'function', isProp = isKey(path), @@ -11211,7 +11949,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 4.0.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Array|Function|Object|string} [iteratee=_.identity] + * @param {Function} [iteratee=_.identity] * The iteratee to transform keys. * @returns {Object} Returns the composed aggregate object. * @example @@ -11230,7 +11968,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } } */ var keyBy = createAggregator(function(result, value, key) { - result[key] = value; + baseAssignValue(result, key, value); }); /** @@ -11252,8 +11990,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Array|Function|Object|string} [iteratee=_.identity] - * The function invoked per iteration. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @returns {Array} Returns the new mapped array. * @example * @@ -11335,8 +12072,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 3.0.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Array|Function|Object|string} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {Array} Returns the array of grouped elements. * @example * @@ -11447,8 +12183,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Array|Function|Object|string} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {Array} Returns the new filtered array. * @see _.filter * @example @@ -11475,10 +12210,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function reject(collection, predicate) { var func = isArray(collection) ? arrayFilter : baseFilter; - predicate = getIteratee(predicate, 3); - return func(collection, function(value, index, collection) { - return !predicate(value, index, collection); - }); + return func(collection, negate(getIteratee(predicate, 3))); } /** @@ -11496,10 +12228,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => 2 */ function sample(collection) { - var array = isArrayLike(collection) ? collection : values(collection), - length = array.length; - - return length > 0 ? array[baseRandom(0, length - 1)] : undefined; + var func = isArray(collection) ? arraySample : baseSample; + return func(collection); } /** @@ -11523,25 +12253,13 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => [2, 3, 1] */ function sampleSize(collection, n, guard) { - var index = -1, - result = toArray(collection), - length = result.length, - lastIndex = length - 1; - if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) { n = 1; } else { - n = baseClamp(toInteger(n), 0, length); - } - while (++index < n) { - var rand = baseRandom(index, lastIndex), - value = result[rand]; - - result[rand] = result[index]; - result[index] = value; + n = toInteger(n); } - result.length = n; - return result; + var func = isArray(collection) ? arraySampleSize : baseSampleSize; + return func(collection, n); } /** @@ -11560,7 +12278,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => [4, 1, 3, 2] */ function shuffle(collection) { - return sampleSize(collection, MAX_ARRAY_LENGTH); + var func = isArray(collection) ? arrayShuffle : baseShuffle; + return func(collection); } /** @@ -11571,7 +12290,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @memberOf _ * @since 0.1.0 * @category Collection - * @param {Array|Object} collection The collection to inspect. + * @param {Array|Object|string} collection The collection to inspect. * @returns {number} Returns the collection size. * @example * @@ -11589,16 +12308,13 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return 0; } if (isArrayLike(collection)) { - var result = collection.length; - return (result && isString(collection)) ? stringSize(collection) : result; + return isString(collection) ? stringSize(collection) : collection.length; } - if (isObjectLike(collection)) { - var tag = getTag(collection); - if (tag == mapTag || tag == setTag) { - return collection.size; - } + var tag = getTag(collection); + if (tag == mapTag || tag == setTag) { + return collection.size; } - return keys(collection).length; + return baseKeys(collection).length; } /** @@ -11611,8 +12327,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Array|Function|Object|string} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. * @returns {boolean} Returns `true` if any element passes the predicate check, * else `false`. @@ -11657,8 +12372,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {...(Array|Array[]|Function|Function[]|Object|Object[]|string|string[])} - * [iteratees=[_.identity]] The iteratees to sort by. + * @param {...(Function|Function[])} [iteratees=[_.identity]] + * The iteratees to sort by. * @returns {Array} Returns the new sorted array. * @example * @@ -11669,18 +12384,13 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * { 'user': 'barney', 'age': 34 } * ]; * - * _.sortBy(users, function(o) { return o.user; }); + * _.sortBy(users, [function(o) { return o.user; }]); * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]] * * _.sortBy(users, ['user', 'age']); * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]] - * - * _.sortBy(users, 'user', function(o) { - * return Math.floor(o.age / 10); - * }); - * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]] */ - var sortBy = rest(function(collection, iteratees) { + var sortBy = baseRest(function(collection, iteratees) { if (collection == null) { return []; } @@ -11690,11 +12400,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) { iteratees = [iteratees[0]]; } - iteratees = (iteratees.length == 1 && isArray(iteratees[0])) - ? iteratees[0] - : baseFlatten(iteratees, 1, isFlattenableIteratee); - - return baseOrderBy(collection, iteratees, []); + return baseOrderBy(collection, baseFlatten(iteratees, 1), []); }); /*------------------------------------------------------------------------*/ @@ -11715,9 +12421,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * }, _.now()); * // => Logs the number of milliseconds it took for the deferred invocation. */ - function now() { - return Date.now(); - } + var now = ctxNow || function() { + return root.Date.now(); + }; /*------------------------------------------------------------------------*/ @@ -11777,7 +12483,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { function ary(func, n, guard) { n = guard ? undefined : n; n = (func && n == null) ? func.length : n; - return createWrapper(func, ARY_FLAG, undefined, undefined, undefined, undefined, n); + return createWrap(func, ARY_FLAG, undefined, undefined, undefined, undefined, n); } /** @@ -11795,7 +12501,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @example * * jQuery(element).on('click', _.before(5, addContactToList)); - * // => allows adding up to 4 contacts to the list + * // => Allows adding up to 4 contacts to the list. */ function before(n, func) { var result; @@ -11834,9 +12540,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Function} Returns the new bound function. * @example * - * var greet = function(greeting, punctuation) { + * function greet(greeting, punctuation) { * return greeting + ' ' + this.user + punctuation; - * }; + * } * * var object = { 'user': 'fred' }; * @@ -11849,13 +12555,13 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * bound('hi'); * // => 'hi fred!' */ - var bind = rest(function(func, thisArg, partials) { + var bind = baseRest(function(func, thisArg, partials) { var bitmask = BIND_FLAG; if (partials.length) { var holders = replaceHolders(partials, getHolder(bind)); bitmask |= PARTIAL_FLAG; } - return createWrapper(func, bitmask, thisArg, partials, holders); + return createWrap(func, bitmask, thisArg, partials, holders); }); /** @@ -11903,13 +12609,13 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * bound('hi'); * // => 'hiya fred!' */ - var bindKey = rest(function(object, key, partials) { + var bindKey = baseRest(function(object, key, partials) { var bitmask = BIND_FLAG | BIND_KEY_FLAG; if (partials.length) { var holders = replaceHolders(partials, getHolder(bindKey)); bitmask |= PARTIAL_FLAG; } - return createWrapper(key, bitmask, object, partials, holders); + return createWrap(key, bitmask, object, partials, holders); }); /** @@ -11955,7 +12661,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function curry(func, arity, guard) { arity = guard ? undefined : arity; - var result = createWrapper(func, CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity); + var result = createWrap(func, CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity); result.placeholder = curry.placeholder; return result; } @@ -12000,7 +12706,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function curryRight(func, arity, guard) { arity = guard ? undefined : arity; - var result = createWrapper(func, CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity); + var result = createWrap(func, CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity); result.placeholder = curryRight.placeholder; return result; } @@ -12010,14 +12716,18 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * milliseconds have elapsed since the last time the debounced function was * invoked. The debounced function comes with a `cancel` method to cancel * delayed `func` invocations and a `flush` method to immediately invoke them. - * Provide an options object to indicate whether `func` should be invoked on - * the leading and/or trailing edge of the `wait` timeout. The `func` is invoked - * with the last arguments provided to the debounced function. Subsequent calls - * to the debounced function return the result of the last `func` invocation. + * Provide `options` to indicate whether `func` should be invoked on the + * leading and/or trailing edge of the `wait` timeout. The `func` is invoked + * with the last arguments provided to the debounced function. Subsequent + * calls to the debounced function return the result of the last `func` + * invocation. * - * **Note:** If `leading` and `trailing` options are `true`, `func` is invoked - * on the trailing edge of the timeout only if the debounced function is - * invoked more than once during the `wait` timeout. + * **Note:** If `leading` and `trailing` options are `true`, `func` is + * invoked on the trailing edge of the timeout only if the debounced function + * is invoked more than once during the `wait` timeout. + * + * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred + * until to the next tick, similar to `setTimeout` with a timeout of `0`. * * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/) * for details over the differences between `_.debounce` and `_.throttle`. @@ -12138,6 +12848,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } function cancel() { + if (timerId !== undefined) { + clearTimeout(timerId); + } lastInvokeTime = 0; lastArgs = lastCallTime = lastThis = timerId = undefined; } @@ -12190,9 +12903,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.defer(function(text) { * console.log(text); * }, 'deferred'); - * // => Logs 'deferred' after one or more milliseconds. + * // => Logs 'deferred' after one millisecond. */ - var defer = rest(function(func, args) { + var defer = baseRest(function(func, args) { return baseDelay(func, 1, args); }); @@ -12215,7 +12928,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * }, 1000, 'later'); * // => Logs 'later' after one second. */ - var delay = rest(function(func, wait, args) { + var delay = baseRest(function(func, wait, args) { return baseDelay(func, toNumber(wait) || 0, args); }); @@ -12238,7 +12951,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => ['d', 'c', 'b', 'a'] */ function flip(func) { - return createWrapper(func, FLIP_FLAG); + return createWrap(func, FLIP_FLAG); } /** @@ -12251,7 +12964,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * **Note:** The cache is exposed as the `cache` property on the memoized * function. Its creation may be customized by replacing the `_.memoize.Cache` * constructor with one whose instances implement the - * [`Map`](http://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-map-prototype-object) + * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) * method interface of `delete`, `get`, `has`, and `set`. * * @static @@ -12298,14 +13011,14 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return cache.get(key); } var result = func.apply(this, args); - memoized.cache = cache.set(key, result); + memoized.cache = cache.set(key, result) || cache; return result; }; memoized.cache = new (memoize.Cache || MapCache); return memoized; } - // Assign cache to `_.memoize`. + // Expose `MapCache`. memoize.Cache = MapCache; /** @@ -12333,7 +13046,14 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { throw new TypeError(FUNC_ERROR_TEXT); } return function() { - return !predicate.apply(this, arguments); + var args = arguments; + switch (args.length) { + case 0: return !predicate.call(this); + case 1: return !predicate.call(this, args[0]); + case 2: return !predicate.call(this, args[0], args[1]); + case 3: return !predicate.call(this, args[0], args[1], args[2]); + } + return !predicate.apply(this, args); }; } @@ -12353,23 +13073,22 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * var initialize = _.once(createApplication); * initialize(); * initialize(); - * // `initialize` invokes `createApplication` once + * // => `createApplication` is invoked once */ function once(func) { return before(2, func); } /** - * Creates a function that invokes `func` with arguments transformed by - * corresponding `transforms`. + * Creates a function that invokes `func` with its arguments transformed. * * @static * @since 4.0.0 * @memberOf _ * @category Function * @param {Function} func The function to wrap. - * @param {...(Array|Array[]|Function|Function[]|Object|Object[]|string|string[])} - * [transforms[_.identity]] The functions to transform. + * @param {...(Function|Function[])} [transforms=[_.identity]] + * The argument transforms. * @returns {Function} Returns the new function. * @example * @@ -12391,13 +13110,13 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * func(10, 5); * // => [100, 10] */ - var overArgs = rest(function(func, transforms) { + var overArgs = castRest(function(func, transforms) { transforms = (transforms.length == 1 && isArray(transforms[0])) ? arrayMap(transforms[0], baseUnary(getIteratee())) - : arrayMap(baseFlatten(transforms, 1, isFlattenableIteratee), baseUnary(getIteratee())); + : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee())); var funcsLength = transforms.length; - return rest(function(args) { + return baseRest(function(args) { var index = -1, length = nativeMin(args.length, funcsLength); @@ -12428,9 +13147,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Function} Returns the new partially applied function. * @example * - * var greet = function(greeting, name) { + * function greet(greeting, name) { * return greeting + ' ' + name; - * }; + * } * * var sayHelloTo = _.partial(greet, 'hello'); * sayHelloTo('fred'); @@ -12441,9 +13160,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * greetFred('hi'); * // => 'hi fred' */ - var partial = rest(function(func, partials) { + var partial = baseRest(function(func, partials) { var holders = replaceHolders(partials, getHolder(partial)); - return createWrapper(func, PARTIAL_FLAG, undefined, partials, holders); + return createWrap(func, PARTIAL_FLAG, undefined, partials, holders); }); /** @@ -12465,9 +13184,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Function} Returns the new partially applied function. * @example * - * var greet = function(greeting, name) { + * function greet(greeting, name) { * return greeting + ' ' + name; - * }; + * } * * var greetFred = _.partialRight(greet, 'fred'); * greetFred('hi'); @@ -12478,9 +13197,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * sayHelloTo('fred'); * // => 'hello fred' */ - var partialRight = rest(function(func, partials) { + var partialRight = baseRest(function(func, partials) { var holders = replaceHolders(partials, getHolder(partialRight)); - return createWrapper(func, PARTIAL_RIGHT_FLAG, undefined, partials, holders); + return createWrap(func, PARTIAL_RIGHT_FLAG, undefined, partials, holders); }); /** @@ -12505,8 +13224,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * rearged('b', 'c', 'a') * // => ['a', 'b', 'c'] */ - var rearg = rest(function(func, indexes) { - return createWrapper(func, REARG_FLAG, undefined, undefined, undefined, baseFlatten(indexes, 1)); + var rearg = flatRest(function(func, indexes) { + return createWrap(func, REARG_FLAG, undefined, undefined, undefined, indexes); }); /** @@ -12538,35 +13257,14 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { if (typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } - start = nativeMax(start === undefined ? (func.length - 1) : toInteger(start), 0); - return function() { - var args = arguments, - index = -1, - length = nativeMax(args.length - start, 0), - array = Array(length); - - while (++index < length) { - array[index] = args[start + index]; - } - switch (start) { - case 0: return func.call(this, array); - case 1: return func.call(this, args[0], array); - case 2: return func.call(this, args[0], args[1], array); - } - var otherArgs = Array(start + 1); - index = -1; - while (++index < start) { - otherArgs[index] = args[index]; - } - otherArgs[start] = array; - return apply(func, this, otherArgs); - }; + start = start === undefined ? start : toInteger(start); + return baseRest(func, start); } /** * Creates a function that invokes `func` with the `this` binding of the * create function and an array of arguments much like - * [`Function#apply`](http://www.ecma-international.org/ecma-262/6.0/#sec-function.prototype.apply). + * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply). * * **Note:** This method is based on the * [spread operator](https://mdn.io/spread_operator). @@ -12602,7 +13300,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { throw new TypeError(FUNC_ERROR_TEXT); } start = start === undefined ? 0 : nativeMax(toInteger(start), 0); - return rest(function(args) { + return baseRest(function(args) { var array = args[start], otherArgs = castSlice(args, 0, start); @@ -12617,8 +13315,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * Creates a throttled function that only invokes `func` at most once per * every `wait` milliseconds. The throttled function comes with a `cancel` * method to cancel delayed `func` invocations and a `flush` method to - * immediately invoke them. Provide an options object to indicate whether - * `func` should be invoked on the leading and/or trailing edge of the `wait` + * immediately invoke them. Provide `options` to indicate whether `func` + * should be invoked on the leading and/or trailing edge of the `wait` * timeout. The `func` is invoked with the last arguments provided to the * throttled function. Subsequent calls to the throttled function return the * result of the last `func` invocation. @@ -12627,6 +13325,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * invoked on the trailing edge of the timeout only if the throttled function * is invoked more than once during the `wait` timeout. * + * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred + * until to the next tick, similar to `setTimeout` with a timeout of `0`. + * * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/) * for details over the differences between `_.throttle` and `_.debounce`. * @@ -12692,10 +13393,10 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } /** - * Creates a function that provides `value` to the wrapper function as its - * first argument. Any additional arguments provided to the function are - * appended to those provided to the wrapper function. The wrapper is invoked - * with the `this` binding of the created function. + * Creates a function that provides `value` to `wrapper` as its first + * argument. Any additional arguments provided to the function are appended + * to those provided to the `wrapper`. The wrapper is invoked with the `this` + * binding of the created function. * * @static * @memberOf _ @@ -12880,9 +13581,37 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return baseClone(value, true, true, customizer); } + /** + * Checks if `object` conforms to `source` by invoking the predicate + * properties of `source` with the corresponding property values of `object`. + * + * **Note:** This method is equivalent to `_.conforms` when `source` is + * partially applied. + * + * @static + * @memberOf _ + * @since 4.14.0 + * @category Lang + * @param {Object} object The object to inspect. + * @param {Object} source The object of property predicates to conform to. + * @returns {boolean} Returns `true` if `object` conforms, else `false`. + * @example + * + * var object = { 'a': 1, 'b': 2 }; + * + * _.conformsTo(object, { 'b': function(n) { return n > 1; } }); + * // => true + * + * _.conformsTo(object, { 'b': function(n) { return n > 2; } }); + * // => false + */ + function conformsTo(object, source) { + return source == null || baseConformsTo(object, source, keys(source)); + } + /** * Performs a - * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * comparison between two values to determine if they are equivalent. * * @static @@ -12894,8 +13623,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * - * var object = { 'user': 'fred' }; - * var other = { 'user': 'fred' }; + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; * * _.eq(object, object); * // => true @@ -12976,7 +13705,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 0.1.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, + * @returns {boolean} Returns `true` if `value` is an `arguments` object, * else `false`. * @example * @@ -12986,11 +13715,10 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.isArguments([1, 2, 3]); * // => false */ - function isArguments(value) { - // Safari 8.1 incorrectly makes `arguments.callee` enumerable in strict mode. - return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') && - (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag); - } + var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { + return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && + !propertyIsEnumerable.call(value, 'callee'); + }; /** * Checks if `value` is classified as an `Array` object. @@ -12998,11 +13726,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @static * @memberOf _ * @since 0.1.0 - * @type {Function} * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is an array, else `false`. * @example * * _.isArray([1, 2, 3]); @@ -13027,8 +13753,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 4.3.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`. * @example * * _.isArrayBuffer(new ArrayBuffer(2)); @@ -13037,9 +13762,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.isArrayBuffer(new Array(2)); * // => false */ - function isArrayBuffer(value) { - return isObjectLike(value) && objectToString.call(value) == arrayBufferTag; - } + var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer; /** * Checks if `value` is array-like. A value is considered array-like if it's @@ -13067,7 +13790,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => false */ function isArrayLike(value) { - return value != null && isLength(getLength(value)) && !isFunction(value); + return value != null && isLength(value.length) && !isFunction(value); } /** @@ -13107,8 +13830,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 0.1.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a boolean, else `false`. * @example * * _.isBoolean(false); @@ -13139,9 +13861,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.isBuffer(new Uint8Array(2)); * // => false */ - var isBuffer = !Buffer ? stubFalse : function(value) { - return value instanceof Buffer; - }; + var isBuffer = nativeIsBuffer || stubFalse; /** * Checks if `value` is classified as a `Date` object. @@ -13151,8 +13871,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 0.1.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a date object, else `false`. * @example * * _.isDate(new Date); @@ -13161,9 +13880,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.isDate('Mon April 23 2012'); * // => false */ - function isDate(value) { - return isObjectLike(value) && objectToString.call(value) == dateTag; - } + var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate; /** * Checks if `value` is likely a DOM element. @@ -13173,8 +13890,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 0.1.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a DOM element, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`. * @example * * _.isElement(document.body); @@ -13184,7 +13900,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => false */ function isElement(value) { - return !!value && value.nodeType === 1 && isObjectLike(value) && !isPlainObject(value); + return value != null && value.nodeType === 1 && isObjectLike(value) && !isPlainObject(value); } /** @@ -13222,22 +13938,23 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function isEmpty(value) { if (isArrayLike(value) && - (isArray(value) || isString(value) || isFunction(value.splice) || - isArguments(value) || isBuffer(value))) { + (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' || + isBuffer(value) || isTypedArray(value) || isArguments(value))) { return !value.length; } - if (isObjectLike(value)) { - var tag = getTag(value); - if (tag == mapTag || tag == setTag) { - return !value.size; - } + var tag = getTag(value); + if (tag == mapTag || tag == setTag) { + return !value.size; + } + if (isPrototype(value)) { + return !baseKeys(value).length; } for (var key in value) { if (hasOwnProperty.call(value, key)) { return false; } } - return !(nonEnumShadows && keys(value).length); + return true; } /** @@ -13256,12 +13973,11 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. - * @returns {boolean} Returns `true` if the values are equivalent, - * else `false`. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * - * var object = { 'user': 'fred' }; - * var other = { 'user': 'fred' }; + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; * * _.isEqual(object, other); * // => true @@ -13286,8 +14002,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @param {*} value The value to compare. * @param {*} other The other value to compare. * @param {Function} [customizer] The function to customize comparisons. - * @returns {boolean} Returns `true` if the values are equivalent, - * else `false`. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * * function isGreeting(value) { @@ -13321,8 +14036,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 3.0.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an error object, - * else `false`. + * @returns {boolean} Returns `true` if `value` is an error object, else `false`. * @example * * _.isError(new Error); @@ -13350,8 +14064,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 0.1.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a finite number, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a finite number, else `false`. * @example * * _.isFinite(3); @@ -13378,8 +14091,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 0.1.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a function, else `false`. * @example * * _.isFunction(_); @@ -13390,10 +14102,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function isFunction(value) { // The use of `Object#toString` avoids issues with the `typeof` operator - // in Safari 8 which returns 'object' for typed array and weak map constructors, - // and PhantomJS 1.9 which returns 'function' for `NodeList` instances. + // in Safari 9 which returns 'object' for typed array and other constructors. var tag = isObject(value) ? objectToString.call(value) : ''; - return tag == funcTag || tag == genTag; + return tag == funcTag || tag == genTag || tag == proxyTag; } /** @@ -13429,16 +14140,15 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** * Checks if `value` is a valid array-like length. * - * **Note:** This function is loosely based on - * [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength). + * **Note:** This method is loosely based on + * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a valid length, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. * @example * * _.isLength(3); @@ -13460,7 +14170,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** * Checks if `value` is the - * [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types) + * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * * @static @@ -13485,7 +14195,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function isObject(value) { var type = typeof value; - return !!value && (type == 'object' || type == 'function'); + return value != null && (type == 'object' || type == 'function'); } /** @@ -13513,7 +14223,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => false */ function isObjectLike(value) { - return !!value && typeof value == 'object'; + return value != null && typeof value == 'object'; } /** @@ -13524,8 +14234,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 4.3.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a map, else `false`. * @example * * _.isMap(new Map); @@ -13534,16 +14243,18 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.isMap(new WeakMap); * // => false */ - function isMap(value) { - return isObjectLike(value) && getTag(value) == mapTag; - } + var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; /** * Performs a partial deep comparison between `object` and `source` to - * determine if `object` contains equivalent property values. This method is - * equivalent to a `_.matches` function when `source` is partially applied. + * determine if `object` contains equivalent property values. + * + * **Note:** This method is equivalent to `_.matches` when `source` is + * partially applied. * - * **Note:** This method supports comparing the same values as `_.isEqual`. + * Partial comparisons will match empty array and empty object `source` + * values against any array or object value, respectively. See `_.isEqual` + * for a list of supported value comparisons. * * @static * @memberOf _ @@ -13554,12 +14265,12 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {boolean} Returns `true` if `object` is a match, else `false`. * @example * - * var object = { 'user': 'fred', 'age': 40 }; + * var object = { 'a': 1, 'b': 2 }; * - * _.isMatch(object, { 'age': 40 }); + * _.isMatch(object, { 'b': 2 }); * // => true * - * _.isMatch(object, { 'age': 36 }); + * _.isMatch(object, { 'b': 1 }); * // => false */ function isMatch(object, source) { @@ -13641,13 +14352,13 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** * Checks if `value` is a pristine native function. * - * **Note:** This method can't reliably detect native functions in the - * presence of the `core-js` package because `core-js` circumvents this kind - * of detection. Despite multiple requests, the `core-js` maintainer has made - * it clear: any attempt to fix the detection will be obstructed. As a result, - * we're left with little choice but to throw an error. Unfortunately, this - * also affects packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill), - * which rely on `core-js`. + * **Note:** This method can't reliably detect native functions in the presence + * of the core-js package because core-js circumvents this kind of detection. + * Despite multiple requests, the core-js maintainer has made it clear: any + * attempt to fix the detection will be obstructed. As a result, we're left + * with little choice but to throw an error. Unfortunately, this also affects + * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill), + * which rely on core-js. * * @static * @memberOf _ @@ -13666,7 +14377,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function isNative(value) { if (isMaskable(value)) { - throw new Error('This method is not supported with `core-js`. Try https://github.com/es-shims.'); + throw new Error(CORE_ERROR_TEXT); } return baseIsNative(value); } @@ -13727,8 +14438,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 0.1.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a number, else `false`. * @example * * _.isNumber(3); @@ -13757,8 +14467,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 0.8.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a plain object, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. * @example * * function Foo() { @@ -13778,8 +14487,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => true */ function isPlainObject(value) { - if (!isObjectLike(value) || - objectToString.call(value) != objectTag || isHostObject(value)) { + if (!isObjectLike(value) || objectToString.call(value) != objectTag) { return false; } var proto = getPrototype(value); @@ -13799,8 +14507,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 0.1.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a regexp, else `false`. * @example * * _.isRegExp(/abc/); @@ -13809,9 +14516,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.isRegExp('/abc/'); * // => false */ - function isRegExp(value) { - return isObject(value) && objectToString.call(value) == regexpTag; - } + var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp; /** * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754 @@ -13825,8 +14530,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 4.0.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a safe integer, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`. * @example * * _.isSafeInteger(3); @@ -13853,8 +14557,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 4.3.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a set, else `false`. * @example * * _.isSet(new Set); @@ -13863,9 +14566,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.isSet(new WeakSet); * // => false */ - function isSet(value) { - return isObjectLike(value) && getTag(value) == setTag; - } + var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; /** * Checks if `value` is classified as a `String` primitive or object. @@ -13875,8 +14576,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @memberOf _ * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a string, else `false`. * @example * * _.isString('abc'); @@ -13898,8 +14598,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 4.0.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. * @example * * _.isSymbol(Symbol.iterator); @@ -13921,8 +14620,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 3.0.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. * @example * * _.isTypedArray(new Uint8Array); @@ -13931,10 +14629,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.isTypedArray([]); * // => false */ - function isTypedArray(value) { - return isObjectLike(value) && - isLength(value.length) && !!typedArrayTags[objectToString.call(value)]; - } + var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; /** * Checks if `value` is `undefined`. @@ -13965,8 +14660,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 4.3.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a weak map, else `false`. * @example * * _.isWeakMap(new WeakMap); @@ -13987,8 +14681,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 4.3.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a weak set, else `false`. * @example * * _.isWeakSet(new WeakSet); @@ -14131,7 +14824,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * Converts `value` to an integer. * * **Note:** This method is loosely based on - * [`ToInteger`](http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger). + * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger). * * @static * @memberOf _ @@ -14165,7 +14858,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * array-like object. * * **Note:** This method is based on - * [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength). + * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). * * @static * @memberOf _ @@ -14222,7 +14915,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return NAN; } if (isObject(value)) { - var other = isFunction(value.valueOf) ? value.valueOf() : value; + var other = typeof value.valueOf == 'function' ? value.valueOf() : value; value = isObject(other) ? (other + '') : other; } if (typeof value != 'string') { @@ -14299,8 +14992,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @memberOf _ * @since 4.0.0 * @category Lang - * @param {*} value The value to process. - * @returns {string} Returns the string. + * @param {*} value The value to convert. + * @returns {string} Returns the converted string. * @example * * _.toString(null); @@ -14337,21 +15030,21 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @example * * function Foo() { - * this.c = 3; + * this.a = 1; * } * * function Bar() { - * this.e = 5; + * this.c = 3; * } * - * Foo.prototype.d = 4; - * Bar.prototype.f = 6; + * Foo.prototype.b = 2; + * Bar.prototype.d = 4; * - * _.assign({ 'a': 1 }, new Foo, new Bar); - * // => { 'a': 1, 'c': 3, 'e': 5 } + * _.assign({ 'a': 0 }, new Foo, new Bar); + * // => { 'a': 1, 'c': 3 } */ var assign = createAssigner(function(object, source) { - if (nonEnumShadows || isPrototype(source) || isArrayLike(source)) { + if (isPrototype(source) || isArrayLike(source)) { copyObject(source, keys(source), object); return; } @@ -14380,27 +15073,21 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @example * * function Foo() { - * this.b = 2; + * this.a = 1; * } * * function Bar() { - * this.d = 4; + * this.c = 3; * } * - * Foo.prototype.c = 3; - * Bar.prototype.e = 5; + * Foo.prototype.b = 2; + * Bar.prototype.d = 4; * - * _.assignIn({ 'a': 1 }, new Foo, new Bar); - * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5 } + * _.assignIn({ 'a': 0 }, new Foo, new Bar); + * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 } */ var assignIn = createAssigner(function(object, source) { - if (nonEnumShadows || isPrototype(source) || isArrayLike(source)) { - copyObject(source, keysIn(source), object); - return; - } - for (var key in source) { - assignValue(object, key, source[key]); - } + copyObject(source, keysIn(source), object); }); /** @@ -14485,9 +15172,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.at(object, ['a[0].b.c', 'a[1]']); * // => [3, 4] */ - var at = rest(function(object, paths) { - return baseAt(object, baseFlatten(paths, 1)); - }); + var at = flatRest(baseAt); /** * Creates an object that inherits from the `prototype` object. If a @@ -14546,10 +15231,10 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @see _.defaultsDeep * @example * - * _.defaults({ 'user': 'barney' }, { 'age': 36 }, { 'user': 'fred' }); - * // => { 'user': 'barney', 'age': 36 } + * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); + * // => { 'a': 1, 'b': 2 } */ - var defaults = rest(function(args) { + var defaults = baseRest(function(args) { args.push(undefined, assignInDefaults); return apply(assignInWith, undefined, args); }); @@ -14570,11 +15255,10 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @see _.defaults * @example * - * _.defaultsDeep({ 'user': { 'name': 'barney' } }, { 'user': { 'name': 'fred', 'age': 36 } }); - * // => { 'user': { 'name': 'barney', 'age': 36 } } - * + * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } }); + * // => { 'a': { 'b': 2, 'c': 3 } } */ - var defaultsDeep = rest(function(args) { + var defaultsDeep = baseRest(function(args) { args.push(undefined, mergeDefaults); return apply(mergeWith, undefined, args); }); @@ -14587,9 +15271,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @memberOf _ * @since 1.1.0 * @category Object - * @param {Object} object The object to search. - * @param {Array|Function|Object|string} [predicate=_.identity] - * The function invoked per iteration. + * @param {Object} object The object to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {string|undefined} Returns the key of the matched element, * else `undefined`. * @example @@ -14627,9 +15310,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @memberOf _ * @since 2.0.0 * @category Object - * @param {Object} object The object to search. - * @param {Array|Function|Object|string} [predicate=_.identity] - * The function invoked per iteration. + * @param {Object} object The object to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {string|undefined} Returns the key of the matched element, * else `undefined`. * @example @@ -14843,7 +15525,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** * Gets the value at `path` of `object`. If the resolved value is - * `undefined`, the `defaultValue` is used in its place. + * `undefined`, the `defaultValue` is returned in its place. * * @static * @memberOf _ @@ -14966,8 +15648,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 4.1.0 * @category Object * @param {Object} object The object to invert. - * @param {Array|Function|Object|string} [iteratee=_.identity] - * The iteratee invoked per element. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {Object} Returns the new inverted object. * @example * @@ -15007,13 +15688,13 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.invoke(object, 'a[0].b.c.slice', 1, 3); * // => [2, 3] */ - var invoke = rest(baseInvoke); + var invoke = baseRest(baseInvoke); /** * Creates an array of the own enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. See the - * [ES spec](http://ecma-international.org/ecma-262/6.0/#sec-object.keys) + * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) * for more details. * * @static @@ -15038,23 +15719,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => ['0', '1'] */ function keys(object) { - var isProto = isPrototype(object); - if (!(isProto || isArrayLike(object))) { - return baseKeys(object); - } - var indexes = indexKeys(object), - skipIndexes = !!indexes, - result = indexes || [], - length = result.length; - - for (var key in object) { - if (baseHas(object, key) && - !(skipIndexes && (key == 'length' || isIndex(key, length))) && - !(isProto && key == 'constructor')) { - result.push(key); - } - } - return result; + return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); } /** @@ -15081,23 +15746,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => ['a', 'b', 'c'] (iteration order is not guaranteed) */ function keysIn(object) { - var index = -1, - isProto = isPrototype(object), - props = baseKeysIn(object), - propsLength = props.length, - indexes = indexKeys(object), - skipIndexes = !!indexes, - result = indexes || [], - length = result.length; - - while (++index < propsLength) { - var key = props[index]; - if (!(skipIndexes && (key == 'length' || isIndex(key, length))) && - !(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { - result.push(key); - } - } - return result; + return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); } /** @@ -15111,8 +15760,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 3.8.0 * @category Object * @param {Object} object The object to iterate over. - * @param {Array|Function|Object|string} [iteratee=_.identity] - * The function invoked per iteration. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @returns {Object} Returns the new mapped object. * @see _.mapValues * @example @@ -15127,7 +15775,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { iteratee = getIteratee(iteratee, 3); baseForOwn(object, function(value, key, object) { - result[iteratee(value, key, object)] = value; + baseAssignValue(result, iteratee(value, key, object), value); }); return result; } @@ -15143,8 +15791,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 2.4.0 * @category Object * @param {Object} object The object to iterate over. - * @param {Array|Function|Object|string} [iteratee=_.identity] - * The function invoked per iteration. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @returns {Object} Returns the new mapped object. * @see _.mapKeys * @example @@ -15166,7 +15813,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { iteratee = getIteratee(iteratee, 3); baseForOwn(object, function(value, key, object) { - result[key] = iteratee(value, key, object); + baseAssignValue(result, key, iteratee(value, key, object)); }); return result; } @@ -15191,16 +15838,16 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Object} Returns `object`. * @example * - * var users = { - * 'data': [{ 'user': 'barney' }, { 'user': 'fred' }] + * var object = { + * 'a': [{ 'b': 2 }, { 'd': 4 }] * }; * - * var ages = { - * 'data': [{ 'age': 36 }, { 'age': 40 }] + * var other = { + * 'a': [{ 'c': 3 }, { 'e': 5 }] * }; * - * _.merge(users, ages); - * // => { 'data': [{ 'user': 'barney', 'age': 36 }, { 'user': 'fred', 'age': 40 }] } + * _.merge(object, other); + * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] } */ var merge = createAssigner(function(object, source, srcIndex) { baseMerge(object, source, srcIndex); @@ -15210,7 +15857,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * This method is like `_.merge` except that it accepts `customizer` which * is invoked to produce the merged values of the destination and source * properties. If `customizer` returns `undefined`, merging is handled by the - * method instead. The `customizer` is invoked with seven arguments: + * method instead. The `customizer` is invoked with six arguments: * (objValue, srcValue, key, object, source, stack). * * **Note:** This method mutates `object`. @@ -15231,18 +15878,11 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * } * } * - * var object = { - * 'fruits': ['apple'], - * 'vegetables': ['beet'] - * }; - * - * var other = { - * 'fruits': ['banana'], - * 'vegetables': ['carrot'] - * }; + * var object = { 'a': [1], 'b': [2] }; + * var other = { 'a': [3], 'b': [4] }; * * _.mergeWith(object, other, customizer); - * // => { 'fruits': ['apple', 'banana'], 'vegetables': ['beet', 'carrot'] } + * // => { 'a': [1, 3], 'b': [2, 4] } */ var mergeWith = createAssigner(function(object, source, srcIndex, customizer) { baseMerge(object, source, srcIndex, customizer); @@ -15267,11 +15907,11 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.omit(object, ['a', 'c']); * // => { 'b': '2' } */ - var omit = rest(function(object, props) { + var omit = flatRest(function(object, props) { if (object == null) { return {}; } - props = arrayMap(baseFlatten(props, 1), toKey); + props = arrayMap(props, toKey); return basePick(object, baseDifference(getAllKeysIn(object), props)); }); @@ -15286,8 +15926,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 4.0.0 * @category Object * @param {Object} object The source object. - * @param {Array|Function|Object|string} [predicate=_.identity] - * The function invoked per property. + * @param {Function} [predicate=_.identity] The function invoked per property. * @returns {Object} Returns the new object. * @example * @@ -15297,10 +15936,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => { 'b': '2' } */ function omitBy(object, predicate) { - predicate = getIteratee(predicate); - return basePickBy(object, function(value, key) { - return !predicate(value, key); - }); + return pickBy(object, negate(getIteratee(predicate))); } /** @@ -15320,8 +15956,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.pick(object, ['a', 'c']); * // => { 'a': 1, 'c': 3 } */ - var pick = rest(function(object, props) { - return object == null ? {} : basePick(object, arrayMap(baseFlatten(props, 1), toKey)); + var pick = flatRest(function(object, props) { + return object == null ? {} : basePick(object, arrayMap(props, toKey)); }); /** @@ -15333,8 +15969,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 4.0.0 * @category Object * @param {Object} object The source object. - * @param {Array|Function|Object|string} [predicate=_.identity] - * The function invoked per property. + * @param {Function} [predicate=_.identity] The function invoked per property. * @returns {Object} Returns the new object. * @example * @@ -15344,7 +15979,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => { 'a': 1, 'c': 3 } */ function pickBy(object, predicate) { - return object == null ? {} : basePickBy(object, getIteratee(predicate)); + return object == null ? {} : basePickBy(object, getAllKeysIn(object), getIteratee(predicate)); } /** @@ -15542,22 +16177,23 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => { '1': ['a', 'c'], '2': ['b'] } */ function transform(object, iteratee, accumulator) { - var isArr = isArray(object) || isTypedArray(object); - iteratee = getIteratee(iteratee, 4); + var isArr = isArray(object), + isArrLike = isArr || isBuffer(object) || isTypedArray(object); + iteratee = getIteratee(iteratee, 4); if (accumulator == null) { - if (isArr || isObject(object)) { - var Ctor = object.constructor; - if (isArr) { - accumulator = isArray(object) ? new Ctor : []; - } else { - accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {}; - } - } else { + var Ctor = object && object.constructor; + if (isArrLike) { + accumulator = isArr ? new Ctor : []; + } + else if (isObject(object)) { + accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {}; + } + else { accumulator = {}; } } - (isArr ? arrayEach : baseForOwn)(object, function(value, index, object) { + (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) { return iteratee(accumulator, value, index, object); }); return accumulator; @@ -15788,12 +16424,12 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => true */ function inRange(number, start, end) { - start = toNumber(start) || 0; + start = toFinite(start); if (end === undefined) { end = start; start = 0; } else { - end = toNumber(end) || 0; + end = toFinite(end); } number = toNumber(number); return baseInRange(number, start, end); @@ -15849,12 +16485,12 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { upper = 1; } else { - lower = toNumber(lower) || 0; + lower = toFinite(lower); if (upper === undefined) { upper = lower; lower = 0; } else { - upper = toNumber(upper) || 0; + upper = toFinite(upper); } } if (lower > upper) { @@ -15917,8 +16553,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** * Deburrs `string` by converting - * [latin-1 supplementary letters](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table) - * to basic latin letters and removing + * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table) + * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A) + * letters to basic Latin letters and removing * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks). * * @static @@ -15934,7 +16571,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function deburr(string) { string = toString(string); - return string && string.replace(reLatin1, deburrLetter).replace(reComboMark, ''); + return string && string.replace(reLatin, deburrLetter).replace(reComboMark, ''); } /** @@ -15944,7 +16581,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @memberOf _ * @since 3.0.0 * @category String - * @param {string} [string=''] The string to search. + * @param {string} [string=''] The string to inspect. * @param {string} [target] The string to search for. * @param {number} [position=string.length] The position to search up to. * @returns {boolean} Returns `true` if `string` ends with `target`, @@ -15969,13 +16606,14 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { ? length : baseClamp(toInteger(position), 0, length); + var end = position; position -= target.length; - return position >= 0 && string.indexOf(target, position) == position; + return position >= 0 && string.slice(position, end) == target; } /** - * Converts the characters "&", "<", ">", '"', "'", and "\`" in `string` to - * their corresponding HTML entities. + * Converts the characters "&", "<", ">", '"', and "'" in `string` to their + * corresponding HTML entities. * * **Note:** No other characters are escaped. To escape additional * characters use a third-party library like [_he_](https://mths.be/he). @@ -15986,12 +16624,6 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands) * (under "semi-related fun fact") for more details. * - * Backticks are escaped because in IE < 9, they can break out of - * attribute values or HTML comments. See [#59](https://html5sec.org/#59), - * [#102](https://html5sec.org/#102), [#108](https://html5sec.org/#108), and - * [#133](https://html5sec.org/#133) of the - * [HTML5 Security Cheatsheet](https://html5sec.org/) for more details. - * * When working with HTML you should always * [quote attribute values](http://wonko.com/post/html-escaping) to reduce * XSS vectors. @@ -16234,15 +16866,12 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => [6, 8, 10] */ function parseInt(string, radix, guard) { - // Chrome fails to trim leading whitespace characters. - // See https://bugs.chromium.org/p/v8/issues/detail?id=3109 for more details. if (guard || radix == null) { radix = 0; } else if (radix) { radix = +radix; } - string = toString(string).replace(reTrim, ''); - return nativeParseInt(string, radix || (reHasHexPrefix.test(string) ? 16 : 10)); + return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0); } /** @@ -16299,7 +16928,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { var args = arguments, string = toString(args[0]); - return args.length < 3 ? string : nativeReplace.call(string, args[1], args[2]); + return args.length < 3 ? string : string.replace(args[1], args[2]); } /** @@ -16360,11 +16989,11 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { (separator != null && !isRegExp(separator)) )) { separator = baseToString(separator); - if (separator == '' && reHasComplexSymbol.test(string)) { + if (!separator && hasUnicode(string)) { return castSlice(stringToArray(string), 0, limit); } } - return nativeSplit.call(string, separator, limit); + return string.split(separator, limit); } /** @@ -16399,7 +17028,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @memberOf _ * @since 3.0.0 * @category String - * @param {string} [string=''] The string to search. + * @param {string} [string=''] The string to inspect. * @param {string} [target] The string to search for. * @param {number} [position=0] The position to search from. * @returns {boolean} Returns `true` if `string` starts with `target`, @@ -16418,7 +17047,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { function startsWith(string, target, position) { string = toString(string); position = baseClamp(toInteger(position), 0, string.length); - return string.lastIndexOf(baseToString(target), position) == position; + target = baseToString(target); + return string.slice(position, position + target.length) == target; } /** @@ -16480,7 +17110,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * compiled({ 'user': 'barney' }); * // => 'hello barney!' * - * // Use the ES delimiter as an alternative to the default "interpolate" delimiter. + * // Use the ES template literal delimiter as an "interpolate" delimiter. + * // Disable support by replacing the "interpolate" delimiter. * var compiled = _.template('hello ${ user }!'); * compiled({ 'user': 'pebbles' }); * // => 'hello pebbles!' @@ -16835,7 +17466,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { string = toString(string); var strLength = string.length; - if (reHasComplexSymbol.test(string)) { + if (hasUnicode(string)) { var strSymbols = stringToArray(string); strLength = strSymbols.length; } @@ -16881,7 +17512,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** * The inverse of `_.escape`; this method converts the HTML entities - * `&`, `<`, `>`, `"`, `'`, and ``` in `string` to + * `&`, `<`, `>`, `"`, and `'` in `string` to * their corresponding characters. * * **Note:** No other HTML entities are unescaped. To unescape additional @@ -16972,7 +17603,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { pattern = guard ? undefined : pattern; if (pattern === undefined) { - pattern = reHasComplexWord.test(string) ? reComplexWord : reBasicWord; + return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string); } return string.match(pattern) || []; } @@ -17001,7 +17632,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * elements = []; * } */ - var attempt = rest(function(func, args) { + var attempt = baseRest(function(func, args) { try { return apply(func, undefined, args); } catch (e) { @@ -17026,19 +17657,19 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * * var view = { * 'label': 'docs', - * 'onClick': function() { + * 'click': function() { * console.log('clicked ' + this.label); * } * }; * - * _.bindAll(view, ['onClick']); - * jQuery(element).on('click', view.onClick); + * _.bindAll(view, ['click']); + * jQuery(element).on('click', view.click); * // => Logs 'clicked docs' when clicked. */ - var bindAll = rest(function(object, methodNames) { - arrayEach(baseFlatten(methodNames, 1), function(key) { + var bindAll = flatRest(function(object, methodNames) { + arrayEach(methodNames, function(key) { key = toKey(key); - object[key] = bind(object[key], object); + baseAssignValue(object, key, bind(object[key], object)); }); return object; }); @@ -17060,7 +17691,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * var func = _.cond([ * [_.matches({ 'a': 1 }), _.constant('matches A')], * [_.conforms({ 'b': _.isNumber }), _.constant('matches B')], - * [_.constant(true), _.constant('no match')] + * [_.stubTrue, _.constant('no match')] * ]); * * func({ 'a': 1, 'b': 2 }); @@ -17083,7 +17714,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return [toIteratee(pair[0]), pair[1]]; }); - return rest(function(args) { + return baseRest(function(args) { var index = -1; while (++index < length) { var pair = pairs[index]; @@ -17099,6 +17730,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * the corresponding property values of a given object, returning `true` if * all predicates return truthy, else `false`. * + * **Note:** The created function is equivalent to `_.conformsTo` with + * `source` partially applied. + * * @static * @memberOf _ * @since 4.0.0 @@ -17107,13 +17741,13 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Function} Returns the new spec function. * @example * - * var users = [ - * { 'user': 'barney', 'age': 36 }, - * { 'user': 'fred', 'age': 40 } + * var objects = [ + * { 'a': 2, 'b': 1 }, + * { 'a': 1, 'b': 2 } * ]; * - * _.filter(users, _.conforms({ 'age': function(n) { return n > 38; } })); - * // => [{ 'user': 'fred', 'age': 40 }] + * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } })); + * // => [{ 'a': 1, 'b': 2 }] */ function conforms(source) { return baseConforms(baseClone(source, true)); @@ -17144,6 +17778,30 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { }; } + /** + * Checks `value` to determine whether a default value should be returned in + * its place. The `defaultValue` is returned if `value` is `NaN`, `null`, + * or `undefined`. + * + * @static + * @memberOf _ + * @since 4.14.0 + * @category Util + * @param {*} value The value to check. + * @param {*} defaultValue The default value. + * @returns {*} Returns the resolved value. + * @example + * + * _.defaultTo(1, 10); + * // => 1 + * + * _.defaultTo(undefined, 10); + * // => 10 + */ + function defaultTo(value, defaultValue) { + return (value == null || value !== value) ? defaultValue : value; + } + /** * Creates a function that returns the result of invoking the given functions * with the `this` binding of the created function, where each successive @@ -17153,7 +17811,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @memberOf _ * @since 3.0.0 * @category Util - * @param {...(Function|Function[])} [funcs] Functions to invoke. + * @param {...(Function|Function[])} [funcs] The functions to invoke. * @returns {Function} Returns the new composite function. * @see _.flowRight * @example @@ -17176,7 +17834,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 3.0.0 * @memberOf _ * @category Util - * @param {...(Function|Function[])} [funcs] Functions to invoke. + * @param {...(Function|Function[])} [funcs] The functions to invoke. * @returns {Function} Returns the new composite function. * @see _.flow * @example @@ -17192,7 +17850,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { var flowRight = createFlow(true); /** - * This method returns the first argument given to it. + * This method returns the first argument it receives. * * @static * @since 0.1.0 @@ -17202,7 +17860,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {*} Returns `value`. * @example * - * var object = { 'user': 'fred' }; + * var object = { 'a': 1 }; * * console.log(_.identity(object) === object); * // => true @@ -17260,10 +17918,14 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** * Creates a function that performs a partial deep comparison between a given * object and `source`, returning `true` if the given object has equivalent - * property values, else `false`. The created function is equivalent to - * `_.isMatch` with a `source` partially applied. + * property values, else `false`. * - * **Note:** This method supports comparing the same values as `_.isEqual`. + * **Note:** The created function is equivalent to `_.isMatch` with `source` + * partially applied. + * + * Partial comparisons will match empty array and empty object `source` + * values against any array or object value, respectively. See `_.isEqual` + * for a list of supported value comparisons. * * @static * @memberOf _ @@ -17273,13 +17935,13 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Function} Returns the new spec function. * @example * - * var users = [ - * { 'user': 'barney', 'age': 36, 'active': true }, - * { 'user': 'fred', 'age': 40, 'active': false } + * var objects = [ + * { 'a': 1, 'b': 2, 'c': 3 }, + * { 'a': 4, 'b': 5, 'c': 6 } * ]; * - * _.filter(users, _.matches({ 'age': 40, 'active': false })); - * // => [{ 'user': 'fred', 'age': 40, 'active': false }] + * _.filter(objects, _.matches({ 'a': 4, 'c': 6 })); + * // => [{ 'a': 4, 'b': 5, 'c': 6 }] */ function matches(source) { return baseMatches(baseClone(source, true)); @@ -17290,7 +17952,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * value at `path` of a given object to `srcValue`, returning `true` if the * object value is equivalent, else `false`. * - * **Note:** This method supports comparing the same values as `_.isEqual`. + * **Note:** Partial comparisons will match empty array and empty object + * `srcValue` values against any array or object value, respectively. See + * `_.isEqual` for a list of supported value comparisons. * * @static * @memberOf _ @@ -17301,13 +17965,13 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Function} Returns the new spec function. * @example * - * var users = [ - * { 'user': 'barney' }, - * { 'user': 'fred' } + * var objects = [ + * { 'a': 1, 'b': 2, 'c': 3 }, + * { 'a': 4, 'b': 5, 'c': 6 } * ]; * - * _.find(users, _.matchesProperty('user', 'fred')); - * // => { 'user': 'fred' } + * _.find(objects, _.matchesProperty('a', 4)); + * // => { 'a': 4, 'b': 5, 'c': 6 } */ function matchesProperty(path, srcValue) { return baseMatchesProperty(path, baseClone(srcValue, true)); @@ -17337,7 +18001,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.map(objects, _.method(['a', 'b'])); * // => [2, 1] */ - var method = rest(function(path, args) { + var method = baseRest(function(path, args) { return function(object) { return baseInvoke(object, path, args); }; @@ -17366,7 +18030,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.map([['a', '2'], ['c', '0']], _.methodOf(object)); * // => [2, 0] */ - var methodOf = rest(function(object, args) { + var methodOf = baseRest(function(object, args) { return function(path) { return baseInvoke(object, path, args); }; @@ -17465,7 +18129,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } /** - * A method that returns `undefined`. + * This method returns `undefined`. * * @static * @memberOf _ @@ -17502,7 +18166,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function nthArg(n) { n = toInteger(n); - return rest(function(args) { + return baseRest(function(args) { return baseNth(args, n); }); } @@ -17515,8 +18179,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @memberOf _ * @since 4.0.0 * @category Util - * @param {...(Array|Array[]|Function|Function[]|Object|Object[]|string|string[])} - * [iteratees=[_.identity]] The iteratees to invoke. + * @param {...(Function|Function[])} [iteratees=[_.identity]] + * The iteratees to invoke. * @returns {Function} Returns the new function. * @example * @@ -17535,8 +18199,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @memberOf _ * @since 4.0.0 * @category Util - * @param {...(Array|Array[]|Function|Function[]|Object|Object[]|string|string[])} - * [predicates=[_.identity]] The predicates to check. + * @param {...(Function|Function[])} [predicates=[_.identity]] + * The predicates to check. * @returns {Function} Returns the new function. * @example * @@ -17561,8 +18225,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @memberOf _ * @since 4.0.0 * @category Util - * @param {...(Array|Array[]|Function|Function[]|Object|Object[]|string|string[])} - * [predicates=[_.identity]] The predicates to check. + * @param {...(Function|Function[])} [predicates=[_.identity]] + * The predicates to check. * @returns {Function} Returns the new function. * @example * @@ -17714,7 +18378,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { var rangeRight = createRange(true); /** - * A method that returns a new empty array. + * This method returns a new empty array. * * @static * @memberOf _ @@ -17736,7 +18400,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } /** - * A method that returns `false`. + * This method returns `false`. * * @static * @memberOf _ @@ -17753,7 +18417,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } /** - * A method that returns a new empty object. + * This method returns a new empty object. * * @static * @memberOf _ @@ -17775,7 +18439,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } /** - * A method that returns an empty string. + * This method returns an empty string. * * @static * @memberOf _ @@ -17792,7 +18456,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } /** - * A method that returns `true`. + * This method returns `true`. * * @static * @memberOf _ @@ -17910,7 +18574,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ var add = createMathOperation(function(augend, addend) { return augend + addend; - }); + }, 0); /** * Computes `number` rounded up to `precision`. @@ -17952,7 +18616,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ var divide = createMathOperation(function(dividend, divisor) { return dividend / divisor; - }); + }, 1); /** * Computes `number` rounded down to `precision`. @@ -18011,8 +18675,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 4.0.0 * @category Math * @param {Array} array The array to iterate over. - * @param {Array|Function|Object|string} [iteratee=_.identity] - * The iteratee invoked per element. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {*} Returns the maximum value. * @example * @@ -18027,7 +18690,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function maxBy(array, iteratee) { return (array && array.length) - ? baseExtremum(array, getIteratee(iteratee), baseGt) + ? baseExtremum(array, getIteratee(iteratee, 2), baseGt) : undefined; } @@ -18059,8 +18722,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 4.7.0 * @category Math * @param {Array} array The array to iterate over. - * @param {Array|Function|Object|string} [iteratee=_.identity] - * The iteratee invoked per element. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {number} Returns the mean. * @example * @@ -18074,7 +18736,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => 5 */ function meanBy(array, iteratee) { - return baseMean(array, getIteratee(iteratee)); + return baseMean(array, getIteratee(iteratee, 2)); } /** @@ -18111,8 +18773,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 4.0.0 * @category Math * @param {Array} array The array to iterate over. - * @param {Array|Function|Object|string} [iteratee=_.identity] - * The iteratee invoked per element. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {*} Returns the minimum value. * @example * @@ -18127,7 +18788,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function minBy(array, iteratee) { return (array && array.length) - ? baseExtremum(array, getIteratee(iteratee), baseLt) + ? baseExtremum(array, getIteratee(iteratee, 2), baseLt) : undefined; } @@ -18148,7 +18809,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ var multiply = createMathOperation(function(multiplier, multiplicand) { return multiplier * multiplicand; - }); + }, 1); /** * Computes `number` rounded to `precision`. @@ -18190,7 +18851,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ var subtract = createMathOperation(function(minuend, subtrahend) { return minuend - subtrahend; - }); + }, 0); /** * Computes the sum of the values in `array`. @@ -18222,8 +18883,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 4.0.0 * @category Math * @param {Array} array The array to iterate over. - * @param {Array|Function|Object|string} [iteratee=_.identity] - * The iteratee invoked per element. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {number} Returns the sum. * @example * @@ -18238,7 +18898,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function sumBy(array, iteratee) { return (array && array.length) - ? baseSum(array, getIteratee(iteratee)) + ? baseSum(array, getIteratee(iteratee, 2)) : 0; } @@ -18417,7 +19077,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { lodash.cloneDeep = cloneDeep; lodash.cloneDeepWith = cloneDeepWith; lodash.cloneWith = cloneWith; + lodash.conformsTo = conformsTo; lodash.deburr = deburr; + lodash.defaultTo = defaultTo; lodash.divide = divide; lodash.endsWith = endsWith; lodash.eq = eq; @@ -18658,7 +19320,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return this.reverse().find(predicate); }; - LazyWrapper.prototype.invokeMap = rest(function(path, args) { + LazyWrapper.prototype.invokeMap = baseRest(function(path, args) { if (typeof path == 'function') { return new LazyWrapper(this); } @@ -18668,10 +19330,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { }); LazyWrapper.prototype.reject = function(predicate) { - predicate = getIteratee(predicate, 3); - return this.filter(function(value) { - return !predicate(value); - }); + return this.filter(negate(getIteratee(predicate))); }; LazyWrapper.prototype.slice = function(start, end) { @@ -18775,7 +19434,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } }); - realNames[createHybridWrapper(undefined, BIND_KEY_FLAG).name] = [{ + realNames[createHybrid(undefined, BIND_KEY_FLAG).name] = [{ 'name': 'wrapper', 'func': undefined }]; @@ -18794,33 +19453,35 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { lodash.prototype.reverse = wrapperReverse; lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue; + // Add lazy aliases. + lodash.prototype.first = lodash.prototype.head; + if (iteratorSymbol) { lodash.prototype[iteratorSymbol] = wrapperToIterator; } return lodash; - } + }); /*--------------------------------------------------------------------------*/ // Export lodash. var _ = runInContext(); - // Expose Lodash on the free variable `window` or `self` when available so it's - // globally accessible, even when bundled with Browserify, Webpack, etc. This - // also prevents errors in cases where Lodash is loaded by a script tag in the - // presence of an AMD loader. See http://requirejs.org/docs/errors.html#mismatch - // for more details. Use `_.noConflict` to remove Lodash from the global object. - (freeSelf || {})._ = _; - - // Some AMD build optimizers like r.js check for condition patterns like the following: + // Some AMD build optimizers, like r.js, check for condition patterns like: if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) { + // Expose Lodash on the global object to prevent errors when Lodash is + // loaded by a script tag in the presence of an AMD loader. + // See http://requirejs.org/docs/errors.html#mismatch for more details. + // Use `_.noConflict` to remove Lodash from the global object. + root._ = _; + // Define as an anonymous module so, through path mapping, it can be // referenced as the "underscore" module. define(function() { return _; }); } - // Check for `exports` after `define` in case a build optimizer adds an `exports` object. + // Check for `exports` after `define` in case a build optimizer adds it. else if (freeModule) { // Export for Node.js. (freeModule.exports = _)._ = _; @@ -20055,7 +20716,7 @@ module.exports = request; },{"emitter":6,"reduce":24}],26:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -20123,10 +20784,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],27:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],27:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -20546,10 +21207,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/CreateEndpointBasicAuthRepresentation":88,"../model/EndpointBasicAuthRepresentation":91,"../model/EndpointConfigurationRepresentation":92}],28:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/CreateEndpointBasicAuthRepresentation":90,"../model/EndpointBasicAuthRepresentation":93,"../model/EndpointConfigurationRepresentation":94}],28:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -21210,10 +21871,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/AbstractGroupRepresentation":71,"../model/AddGroupCapabilitiesRepresentation":74,"../model/GroupRepresentation":107,"../model/LightGroupRepresentation":111,"../model/ResultListDataRepresentation":133}],29:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/AbstractGroupRepresentation":72,"../model/AddGroupCapabilitiesRepresentation":75,"../model/GroupRepresentation":109,"../model/LightGroupRepresentation":113,"../model/ResultListDataRepresentation":138}],29:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -21537,10 +22198,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/CreateTenantRepresentation":90,"../model/ImageUploadRepresentation":108,"../model/LightTenantRepresentation":112,"../model/TenantEvent":143,"../model/TenantRepresentation":144}],30:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/CreateTenantRepresentation":92,"../model/ImageUploadRepresentation":110,"../model/LightTenantRepresentation":114,"../model/TenantEvent":148,"../model/TenantRepresentation":149}],30:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -21777,10 +22438,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/AbstractUserRepresentation":73,"../model/BulkUserUpdateRepresentation":82,"../model/ResultListDataRepresentation":133,"../model/UserRepresentation":149}],31:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/AbstractUserRepresentation":74,"../model/BulkUserUpdateRepresentation":83,"../model/ResultListDataRepresentation":138,"../model/UserRepresentation":154}],31:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -22157,10 +22818,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/ResultListDataRepresentation":133}],32:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],32:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -22418,10 +23079,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/AppDefinitionPublishRepresentation":76,"../model/AppDefinitionRepresentation":77,"../model/AppDefinitionUpdateResultRepresentation":78,"../model/ResultListDataRepresentation":133,"../model/RuntimeAppDefinitionSaveRepresentation":134}],33:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/AppDefinitionPublishRepresentation":77,"../model/AppDefinitionRepresentation":78,"../model/AppDefinitionUpdateResultRepresentation":79,"../model/ResultListDataRepresentation":138,"../model/RuntimeAppDefinitionSaveRepresentation":139}],33:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -22616,10 +23277,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/AppDefinitionPublishRepresentation":76,"../model/AppDefinitionRepresentation":77,"../model/AppDefinitionUpdateResultRepresentation":78}],34:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/AppDefinitionPublishRepresentation":77,"../model/AppDefinitionRepresentation":78,"../model/AppDefinitionUpdateResultRepresentation":79}],34:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -22720,10 +23381,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/ResultListDataRepresentation":133,"../model/RuntimeAppDefinitionSaveRepresentation":134}],35:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138,"../model/RuntimeAppDefinitionSaveRepresentation":139}],35:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -22925,10 +23586,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/CommentRepresentation":85,"../model/ResultListDataRepresentation":133}],36:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/CommentRepresentation":87,"../model/ResultListDataRepresentation":138}],36:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -23412,10 +24073,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/RelatedContentRepresentation":130,"../model/ResultListDataRepresentation":133}],37:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/RelatedContentRepresentation":133,"../model/ResultListDataRepresentation":138}],37:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -23496,10 +24157,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],38:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],38:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -23721,10 +24382,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/FormRepresentation":101,"../model/FormSaveRepresentation":102,"../model/ValidationErrorRepresentation":151}],39:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/FormRepresentation":103,"../model/FormSaveRepresentation":104,"../model/ValidationErrorRepresentation":156}],39:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -23837,10 +24498,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/ResultListDataRepresentation":133}],40:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],40:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -23949,10 +24610,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/SyncLogEntryRepresentation":136}],41:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/SyncLogEntryRepresentation":141}],41:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -24020,10 +24681,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/ResultListDataRepresentation":133}],42:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],42:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -24241,10 +24902,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/ResultListDataRepresentation":133}],43:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],43:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -24435,10 +25096,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/ResultListDataRepresentation":133}],44:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],44:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -25118,10 +25779,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/BoxUserAccountCredentialsRepresentation":81,"../model/ResultListDataRepresentation":133,"../model/UserAccountCredentialsRepresentation":145}],45:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/BoxUserAccountCredentialsRepresentation":82,"../model/ResultListDataRepresentation":138,"../model/UserAccountCredentialsRepresentation":150}],45:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -25403,10 +26064,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/BoxUserAccountCredentialsRepresentation":81,"../model/ResultListDataRepresentation":133,"../model/UserAccountCredentialsRepresentation":145}],46:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/BoxUserAccountCredentialsRepresentation":82,"../model/ResultListDataRepresentation":138,"../model/UserAccountCredentialsRepresentation":150}],46:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -25516,10 +26177,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/ResultListDataRepresentation":133}],47:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],47:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -25634,10 +26295,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],48:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],48:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -25752,10 +26413,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/ObjectNode":119}],49:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/ObjectNode":121}],49:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -26272,10 +26933,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/ModelRepresentation":118,"../model/ObjectNode":119,"../model/ResultListDataRepresentation":133,"../model/ValidationErrorRepresentation":151}],50:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/ModelRepresentation":120,"../model/ObjectNode":121,"../model/ResultListDataRepresentation":138,"../model/ValidationErrorRepresentation":156}],50:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -26395,10 +27056,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/ModelRepresentation":118,"../model/ResultListDataRepresentation":133}],51:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/ModelRepresentation":120,"../model/ResultListDataRepresentation":138}],51:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -26804,10 +27465,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/CreateProcessInstanceRepresentation":89,"../model/FormDefinitionRepresentation":97,"../model/FormValueRepresentation":105,"../model/ProcessFilterRequestRepresentation":121,"../model/ProcessInstanceFilterRequestRepresentation":123,"../model/ProcessInstanceRepresentation":124,"../model/ResultListDataRepresentation":133}],52:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/CreateProcessInstanceRepresentation":91,"../model/FormDefinitionRepresentation":99,"../model/FormValueRepresentation":107,"../model/ProcessFilterRequestRepresentation":124,"../model/ProcessInstanceFilterRequestRepresentation":126,"../model/ProcessInstanceRepresentation":127,"../model/ResultListDataRepresentation":138}],52:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -26881,10 +27542,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/ResultListDataRepresentation":133}],53:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],53:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -27018,10 +27679,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/FormDefinitionRepresentation":97,"../model/FormValueRepresentation":105}],54:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/FormDefinitionRepresentation":99,"../model/FormValueRepresentation":107}],54:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -27264,10 +27925,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/RestVariable":132}],55:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/RestVariable":137}],55:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -27489,10 +28150,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/CommentRepresentation":85,"../model/FormDefinitionRepresentation":97,"../model/ProcessInstanceRepresentation":124,"../model/ResultListDataRepresentation":133}],56:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/CommentRepresentation":87,"../model/FormDefinitionRepresentation":99,"../model/ProcessInstanceRepresentation":127,"../model/ResultListDataRepresentation":138}],56:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -27598,10 +28259,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/CreateProcessInstanceRepresentation":89,"../model/ProcessInstanceRepresentation":124,"../model/ResultListDataRepresentation":133}],57:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/CreateProcessInstanceRepresentation":91,"../model/ProcessInstanceRepresentation":127,"../model/ResultListDataRepresentation":138}],57:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -27705,10 +28366,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/ObjectNode":119,"../model/ProcessInstanceFilterRequestRepresentation":123,"../model/ResultListDataRepresentation":133}],58:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/ObjectNode":121,"../model/ProcessInstanceFilterRequestRepresentation":126,"../model/ResultListDataRepresentation":138}],58:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -27780,10 +28441,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/ProcessScopeRepresentation":127,"../model/ProcessScopesRequestRepresentation":128}],59:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/ProcessScopeRepresentation":130,"../model/ProcessScopesRequestRepresentation":131}],59:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -27984,10 +28645,176 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/ChangePasswordRepresentation":83,"../model/File":96,"../model/ImageUploadRepresentation":108,"../model/UserRepresentation":149}],60:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/ChangePasswordRepresentation":84,"../model/File":98,"../model/ImageUploadRepresentation":110,"../model/UserRepresentation":154}],60:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +(function (root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['../../../alfrescoApiClient', '../model/ReportCharts', '../model/ParameterValueRepresentation', '../model/ReportParametersDefinition'], factory); + } else if ((typeof module === 'undefined' ? 'undefined' : _typeof(module)) === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../../../alfrescoApiClient'), require('../model/ReportCharts'), require('../model/ParameterValueRepresentation'), require('../model/ReportParametersDefinition')); + } else { + // Browser globals (root is window) + if (!root.ActivitiPublicRestApi) { + root.ActivitiPublicRestApi = {}; + } + root.ActivitiPublicRestApi.ReportApi = factory(root.ActivitiPublicRestApi.ApiClient, root.ActivitiPublicRestApi.ReportCharts, root.ActivitiPublicRestApi.ParameterValueRepresentation, root.ActivitiPublicRestApi.ReportParametersDefinition); + } +})(undefined, function (ApiClient, ReportCharts, ParameterValueRepresentation, ReportParametersDefinition) { + 'use strict'; + + /** + * Report service. + * @module api/ReportApi + * @version 1.4.0 + */ + + /** + * Constructs a new ReportApi. + * @alias module:api/ReportApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + + var exports = function exports(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + + /** + * Create the default reports + */ + this.createDefaultReports = function () { + var postBody = null; + + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = null; + + return this.apiClient.callApi('/app/rest/reporting/default-reports', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + }; + + this.getTasksByProcessDefinitionId = function (reportId, processDefinitionId) { + var postBody = null; + + if (reportId == undefined || reportId == null) { + throw "Missing the required parameter 'reportId' when calling getTasksByProcessDefinitionId"; + } + + if (processDefinitionId == undefined || processDefinitionId == null) { + throw "Missing the required parameter 'processDefinitionId' when calling getTasksByProcessDefinitionId"; + } + + var pathParams = { + 'reportId': reportId + }; + var queryParams = { + 'processDefinitionId': processDefinitionId + }; + var headerParams = {}; + var formParams = {}; + + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = ['String']; + + return this.apiClient.callApi('/app/rest/reporting/report-params/{reportId}/tasks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + }; + + this.getReportsByParams = function (reportId, paramsQuery) { + var postBody = paramsQuery; + + if (reportId == undefined || reportId == null) { + throw "Missing the required parameter 'reportId' when calling getReportsByParams"; + } + + var pathParams = { + 'reportId': reportId + }; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = ReportCharts; + + return this.apiClient.callApi('/app/rest/reporting/report-params/{reportId}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + }; + + this.getProcessDefinitionsValuesNoApp = function () { + var postBody = null; + + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = [ParameterValueRepresentation]; + + return this.apiClient.callApi('/app/rest/reporting/process-definitions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + }; + + this.getReportParams = function (reportId) { + var postBody = null; + + if (reportId == undefined || reportId == null) { + throw "Missing the required parameter 'reportId' when calling getReportParams"; + } + + var pathParams = { + 'reportId': reportId + }; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = ReportParametersDefinition; + + return this.apiClient.callApi('/app/rest/reporting/report-params/{reportId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + }; + + this.getReportList = function () { + var postBody = null; + + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = [ReportParametersDefinition]; + + return this.apiClient.callApi('/app/rest/reporting/reports', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + }; + }; + + return exports; +}); + +},{"../../../alfrescoApiClient":295,"../model/ParameterValueRepresentation":123,"../model/ReportCharts":134,"../model/ReportParametersDefinition":135}],61:[function(require,module,exports){ +'use strict'; + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -28079,10 +28906,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],61:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],62:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -28149,10 +28976,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/SystemPropertiesRepresentation":137}],62:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/SystemPropertiesRepresentation":142}],63:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -28491,10 +29318,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/ObjectNode":119,"../model/TaskRepresentation":141}],63:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/ObjectNode":121,"../model/TaskRepresentation":146}],64:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -29561,10 +30388,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/ChecklistOrderRepresentation":84,"../model/CommentRepresentation":85,"../model/CompleteFormRepresentation":86,"../model/FormDefinitionRepresentation":97,"../model/FormValueRepresentation":105,"../model/ObjectNode":119,"../model/RelatedContentRepresentation":130,"../model/ResultListDataRepresentation":133,"../model/SaveFormRepresentation":135,"../model/TaskFilterRequestRepresentation":139,"../model/TaskRepresentation":141,"../model/TaskUpdateRepresentation":142}],64:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/ChecklistOrderRepresentation":86,"../model/CommentRepresentation":87,"../model/CompleteFormRepresentation":88,"../model/FormDefinitionRepresentation":99,"../model/FormValueRepresentation":107,"../model/ObjectNode":121,"../model/RelatedContentRepresentation":133,"../model/ResultListDataRepresentation":138,"../model/SaveFormRepresentation":140,"../model/TaskFilterRequestRepresentation":144,"../model/TaskRepresentation":146,"../model/TaskUpdateRepresentation":147}],65:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -29718,10 +30545,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/ChecklistOrderRepresentation":84,"../model/ResultListDataRepresentation":133,"../model/TaskRepresentation":141}],65:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/ChecklistOrderRepresentation":86,"../model/ResultListDataRepresentation":138,"../model/TaskRepresentation":146}],66:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -30000,10 +30827,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/CompleteFormRepresentation":86,"../model/FormDefinitionRepresentation":97,"../model/FormValueRepresentation":105,"../model/ProcessInstanceVariableRepresentation":125,"../model/SaveFormRepresentation":135}],66:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/CompleteFormRepresentation":88,"../model/FormDefinitionRepresentation":99,"../model/FormValueRepresentation":107,"../model/ProcessInstanceVariableRepresentation":128,"../model/SaveFormRepresentation":140}],67:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -30177,10 +31004,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/ArrayNode":80}],67:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/ArrayNode":81}],68:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -30447,10 +31274,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/ResetPasswordRepresentation":131,"../model/ResultListDataRepresentation":133,"../model/UserActionRepresentation":146,"../model/UserRepresentation":149}],68:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/ResetPasswordRepresentation":136,"../model/ResultListDataRepresentation":138,"../model/UserActionRepresentation":151,"../model/UserRepresentation":154}],69:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -30904,10 +31731,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/ResultListDataRepresentation":133,"../model/UserFilterOrderRepresentation":147,"../model/UserProcessInstanceFilterRepresentation":148,"../model/UserTaskFilterRepresentation":150}],69:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138,"../model/UserFilterOrderRepresentation":152,"../model/UserProcessInstanceFilterRepresentation":153,"../model/UserTaskFilterRepresentation":155}],70:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -30994,20 +31821,20 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/ResultListDataRepresentation":133}],70:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],71:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['../../alfrescoApiClient', './model/AbstractGroupRepresentation', './model/AbstractRepresentation', './model/AbstractUserRepresentation', './model/AddGroupCapabilitiesRepresentation', './model/AppDefinition', './model/AppDefinitionPublishRepresentation', './model/AppDefinitionRepresentation', './model/AppDefinitionUpdateResultRepresentation', './model/AppModelDefinition', './model/ArrayNode', './model/BoxUserAccountCredentialsRepresentation', './model/BulkUserUpdateRepresentation', './model/ChangePasswordRepresentation', './model/ChecklistOrderRepresentation', './model/CommentRepresentation', './model/CompleteFormRepresentation', './model/ConditionRepresentation', './model/CreateEndpointBasicAuthRepresentation', './model/CreateProcessInstanceRepresentation', './model/CreateTenantRepresentation', './model/EndpointBasicAuthRepresentation', './model/EndpointConfigurationRepresentation', './model/EndpointRequestHeaderRepresentation', './model/EntityAttributeScopeRepresentation', './model/EntityVariableScopeRepresentation', './model/File', './model/FormDefinitionRepresentation', './model/FormFieldRepresentation', './model/FormJavascriptEventRepresentation', './model/FormOutcomeRepresentation', './model/FormRepresentation', './model/FormSaveRepresentation', './model/FormScopeRepresentation', './model/FormTabRepresentation', './model/FormValueRepresentation', './model/GroupCapabilityRepresentation', './model/GroupRepresentation', './model/ImageUploadRepresentation', './model/LayoutRepresentation', './model/LightAppRepresentation', './model/LightGroupRepresentation', './model/LightTenantRepresentation', './model/LightUserRepresentation', './model/MaplongListstring', './model/MapstringListEntityVariableScopeRepresentation', './model/MapstringListVariableScopeRepresentation', './model/Mapstringstring', './model/ModelRepresentation', './model/ObjectNode', './model/OptionRepresentation', './model/ProcessFilterRequestRepresentation', './model/ProcessInstanceFilterRepresentation', './model/ProcessInstanceFilterRequestRepresentation', './model/ProcessInstanceRepresentation', './model/ProcessInstanceVariableRepresentation', './model/ProcessScopeIdentifierRepresentation', './model/ProcessScopeRepresentation', './model/ProcessScopesRequestRepresentation', './model/PublishIdentityInfoRepresentation', './model/RelatedContentRepresentation', './model/ResetPasswordRepresentation', './model/RestVariable', './model/ResultListDataRepresentation', './model/RuntimeAppDefinitionSaveRepresentation', './model/SaveFormRepresentation', './model/SyncLogEntryRepresentation', './model/SystemPropertiesRepresentation', './model/TaskFilterRepresentation', './model/TaskFilterRequestRepresentation', './model/TaskQueryRequestRepresentation', './model/TaskRepresentation', './model/TaskUpdateRepresentation', './model/TenantEvent', './model/TenantRepresentation', './model/UserAccountCredentialsRepresentation', './model/UserActionRepresentation', './model/UserFilterOrderRepresentation', './model/UserProcessInstanceFilterRepresentation', './model/UserRepresentation', './model/UserTaskFilterRepresentation', './model/ValidationErrorRepresentation', './model/VariableScopeRepresentation', './api/AboutApi', './api/AdminEndpointsApi', './api/AdminGroupsApi', './api/AdminTenantsApi', './api/AdminUsersApi', './api/AlfrescoApi', './api/AppsApi', './api/AppsDefinitionApi', './api/AppsRuntimeApi', './api/CommentsApi', './api/ContentApi', './api/ContentRenditionApi', './api/EditorApi', './api/GroupsApi', './api/IDMSyncApi', './api/IntegrationApi', './api/IntegrationAccountApi', './api/IntegrationAlfrescoCloudApi', './api/IntegrationAlfrescoOnPremiseApi', './api/IntegrationBoxApi', './api/IntegrationDriveApi', './api/ModelBpmnApi', './api/ModelJsonBpmnApi', './api/ModelsApi', './api/ModelsHistoryApi', './api/ProcessApi', './api/ProcessDefinitionsApi', './api/ProcessDefinitionsFormApi', './api/ProcessInstancesApi', './api/ProcessInstancesInformationApi', './api/ProcessInstancesListingApi', './api/ProcessInstanceVariablesApi', './api/ProcessScopeApi', './api/ProfileApi', './api/ScriptFileApi', './api/SystemPropertiesApi', './api/TaskApi', './api/TaskActionsApi', './api/TaskCheckListApi', './api/TaskFormsApi', './api/TemporaryApi', './api/UserApi', './api/UserFiltersApi', './api/UsersWorkflowApi'], factory); + define(['../../alfrescoApiClient', './model/AbstractGroupRepresentation', './model/AbstractRepresentation', './model/AbstractUserRepresentation', './model/AddGroupCapabilitiesRepresentation', './model/AppDefinition', './model/AppDefinitionPublishRepresentation', './model/AppDefinitionRepresentation', './model/AppDefinitionUpdateResultRepresentation', './model/AppModelDefinition', './model/ArrayNode', './model/BoxUserAccountCredentialsRepresentation', './model/BulkUserUpdateRepresentation', './model/ChangePasswordRepresentation', './model/ChecklistOrderRepresentation', './model/CommentRepresentation', './model/CompleteFormRepresentation', './model/ConditionRepresentation', './model/CreateEndpointBasicAuthRepresentation', './model/CreateProcessInstanceRepresentation', './model/CreateTenantRepresentation', './model/EndpointBasicAuthRepresentation', './model/EndpointConfigurationRepresentation', './model/EndpointRequestHeaderRepresentation', './model/EntityAttributeScopeRepresentation', './model/EntityVariableScopeRepresentation', './model/File', './model/FormDefinitionRepresentation', './model/FormFieldRepresentation', './model/FormJavascriptEventRepresentation', './model/FormOutcomeRepresentation', './model/FormRepresentation', './model/FormSaveRepresentation', './model/FormScopeRepresentation', './model/FormTabRepresentation', './model/FormValueRepresentation', './model/GroupCapabilityRepresentation', './model/GroupRepresentation', './model/ImageUploadRepresentation', './model/LayoutRepresentation', './model/LightAppRepresentation', './model/LightGroupRepresentation', './model/LightTenantRepresentation', './model/LightUserRepresentation', './model/MaplongListstring', './model/MapstringListEntityVariableScopeRepresentation', './model/MapstringListVariableScopeRepresentation', './model/Mapstringstring', './model/ModelRepresentation', './model/ObjectNode', './model/OptionRepresentation', './model/ProcessFilterRequestRepresentation', './model/ProcessInstanceFilterRepresentation', './model/ProcessInstanceFilterRequestRepresentation', './model/ProcessInstanceRepresentation', './model/ProcessInstanceVariableRepresentation', './model/ProcessScopeIdentifierRepresentation', './model/ProcessScopeRepresentation', './model/ProcessScopesRequestRepresentation', './model/PublishIdentityInfoRepresentation', './model/RelatedContentRepresentation', './model/ResetPasswordRepresentation', './model/RestVariable', './model/ResultListDataRepresentation', './model/RuntimeAppDefinitionSaveRepresentation', './model/SaveFormRepresentation', './model/SyncLogEntryRepresentation', './model/SystemPropertiesRepresentation', './model/TaskFilterRepresentation', './model/TaskFilterRequestRepresentation', './model/TaskQueryRequestRepresentation', './model/TaskRepresentation', './model/TaskUpdateRepresentation', './model/TenantEvent', './model/TenantRepresentation', './model/UserAccountCredentialsRepresentation', './model/UserActionRepresentation', './model/UserFilterOrderRepresentation', './model/UserProcessInstanceFilterRepresentation', './model/UserRepresentation', './model/UserTaskFilterRepresentation', './model/ValidationErrorRepresentation', './model/VariableScopeRepresentation', './api/AboutApi', './api/AdminEndpointsApi', './api/AdminGroupsApi', './api/AdminTenantsApi', './api/AdminUsersApi', './api/AlfrescoApi', './api/AppsApi', './api/AppsDefinitionApi', './api/AppsRuntimeApi', './api/CommentsApi', './api/ContentApi', './api/ContentRenditionApi', './api/EditorApi', './api/GroupsApi', './api/IDMSyncApi', './api/IntegrationApi', './api/IntegrationAccountApi', './api/IntegrationAlfrescoCloudApi', './api/IntegrationAlfrescoOnPremiseApi', './api/IntegrationBoxApi', './api/IntegrationDriveApi', './api/ModelBpmnApi', './api/ModelJsonBpmnApi', './api/ModelsApi', './api/ModelsHistoryApi', './api/ProcessApi', './api/ProcessDefinitionsApi', './api/ProcessDefinitionsFormApi', './api/ProcessInstancesApi', './api/ProcessInstancesInformationApi', './api/ProcessInstancesListingApi', './api/ProcessInstanceVariablesApi', './api/ProcessScopeApi', './api/ProfileApi', './api/ScriptFileApi', './api/SystemPropertiesApi', './api/TaskApi', './api/TaskActionsApi', './api/TaskCheckListApi', './api/TaskFormsApi', './api/TemporaryApi', './api/UserApi', './api/UserFiltersApi', './api/UsersWorkflowApi', './api/ReportApi'], factory); } else if ((typeof module === 'undefined' ? 'undefined' : _typeof(module)) === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../../alfrescoApiClient'), require('./model/AbstractGroupRepresentation'), require('./model/AbstractRepresentation'), require('./model/AbstractUserRepresentation'), require('./model/AddGroupCapabilitiesRepresentation'), require('./model/AppDefinition'), require('./model/AppDefinitionPublishRepresentation'), require('./model/AppDefinitionRepresentation'), require('./model/AppDefinitionUpdateResultRepresentation'), require('./model/AppModelDefinition'), require('./model/ArrayNode'), require('./model/BoxUserAccountCredentialsRepresentation'), require('./model/BulkUserUpdateRepresentation'), require('./model/ChangePasswordRepresentation'), require('./model/ChecklistOrderRepresentation'), require('./model/CommentRepresentation'), require('./model/CompleteFormRepresentation'), require('./model/ConditionRepresentation'), require('./model/CreateEndpointBasicAuthRepresentation'), require('./model/CreateProcessInstanceRepresentation'), require('./model/CreateTenantRepresentation'), require('./model/EndpointBasicAuthRepresentation'), require('./model/EndpointConfigurationRepresentation'), require('./model/EndpointRequestHeaderRepresentation'), require('./model/EntityAttributeScopeRepresentation'), require('./model/EntityVariableScopeRepresentation'), require('./model/File'), require('./model/FormDefinitionRepresentation'), require('./model/FormFieldRepresentation'), require('./model/FormJavascriptEventRepresentation'), require('./model/FormOutcomeRepresentation'), require('./model/FormRepresentation'), require('./model/FormSaveRepresentation'), require('./model/FormScopeRepresentation'), require('./model/FormTabRepresentation'), require('./model/FormValueRepresentation'), require('./model/GroupCapabilityRepresentation'), require('./model/GroupRepresentation'), require('./model/ImageUploadRepresentation'), require('./model/LayoutRepresentation'), require('./model/LightAppRepresentation'), require('./model/LightGroupRepresentation'), require('./model/LightTenantRepresentation'), require('./model/LightUserRepresentation'), require('./model/MaplongListstring'), require('./model/MapstringListEntityVariableScopeRepresentation'), require('./model/MapstringListVariableScopeRepresentation'), require('./model/Mapstringstring'), require('./model/ModelRepresentation'), require('./model/ObjectNode'), require('./model/OptionRepresentation'), require('./model/ProcessFilterRequestRepresentation'), require('./model/ProcessInstanceFilterRepresentation'), require('./model/ProcessInstanceFilterRequestRepresentation'), require('./model/ProcessInstanceRepresentation'), require('./model/ProcessInstanceVariableRepresentation'), require('./model/ProcessScopeIdentifierRepresentation'), require('./model/ProcessScopeRepresentation'), require('./model/ProcessScopesRequestRepresentation'), require('./model/PublishIdentityInfoRepresentation'), require('./model/RelatedContentRepresentation'), require('./model/ResetPasswordRepresentation'), require('./model/RestVariable'), require('./model/ResultListDataRepresentation'), require('./model/RuntimeAppDefinitionSaveRepresentation'), require('./model/SaveFormRepresentation'), require('./model/SyncLogEntryRepresentation'), require('./model/SystemPropertiesRepresentation'), require('./model/TaskFilterRepresentation'), require('./model/TaskFilterRequestRepresentation'), require('./model/TaskQueryRequestRepresentation'), require('./model/TaskRepresentation'), require('./model/TaskUpdateRepresentation'), require('./model/TenantEvent'), require('./model/TenantRepresentation'), require('./model/UserAccountCredentialsRepresentation'), require('./model/UserActionRepresentation'), require('./model/UserFilterOrderRepresentation'), require('./model/UserProcessInstanceFilterRepresentation'), require('./model/UserRepresentation'), require('./model/UserTaskFilterRepresentation'), require('./model/ValidationErrorRepresentation'), require('./model/VariableScopeRepresentation'), require('./api/AboutApi'), require('./api/AdminEndpointsApi'), require('./api/AdminGroupsApi'), require('./api/AdminTenantsApi'), require('./api/AdminUsersApi'), require('./api/AlfrescoApi'), require('./api/AppsApi'), require('./api/AppsDefinitionApi'), require('./api/AppsRuntimeApi'), require('./api/CommentsApi'), require('./api/ContentApi'), require('./api/ContentRenditionApi'), require('./api/EditorApi'), require('./api/GroupsApi'), require('./api/IDMSyncApi'), require('./api/IntegrationApi'), require('./api/IntegrationAccountApi'), require('./api/IntegrationAlfrescoCloudApi'), require('./api/IntegrationAlfrescoOnPremiseApi'), require('./api/IntegrationBoxApi'), require('./api/IntegrationDriveApi'), require('./api/ModelBpmnApi'), require('./api/ModelJsonBpmnApi'), require('./api/ModelsApi'), require('./api/ModelsHistoryApi'), require('./api/ProcessApi'), require('./api/ProcessDefinitionsApi'), require('./api/ProcessDefinitionsFormApi'), require('./api/ProcessInstancesApi'), require('./api/ProcessInstancesInformationApi'), require('./api/ProcessInstancesListingApi'), require('./api/ProcessInstanceVariablesApi'), require('./api/ProcessScopeApi'), require('./api/ProfileApi'), require('./api/ScriptFileApi'), require('./api/SystemPropertiesApi'), require('./api/TaskApi'), require('./api/TaskActionsApi'), require('./api/TaskCheckListApi'), require('./api/TaskFormsApi'), require('./api/TemporaryApi'), require('./api/UserApi'), require('./api/UserFiltersApi'), require('./api/UsersWorkflowApi')); + module.exports = factory(require('../../alfrescoApiClient'), require('./model/AbstractGroupRepresentation'), require('./model/AbstractRepresentation'), require('./model/AbstractUserRepresentation'), require('./model/AddGroupCapabilitiesRepresentation'), require('./model/AppDefinition'), require('./model/AppDefinitionPublishRepresentation'), require('./model/AppDefinitionRepresentation'), require('./model/AppDefinitionUpdateResultRepresentation'), require('./model/AppModelDefinition'), require('./model/ArrayNode'), require('./model/BoxUserAccountCredentialsRepresentation'), require('./model/BulkUserUpdateRepresentation'), require('./model/ChangePasswordRepresentation'), require('./model/ChecklistOrderRepresentation'), require('./model/CommentRepresentation'), require('./model/CompleteFormRepresentation'), require('./model/ConditionRepresentation'), require('./model/CreateEndpointBasicAuthRepresentation'), require('./model/CreateProcessInstanceRepresentation'), require('./model/CreateTenantRepresentation'), require('./model/EndpointBasicAuthRepresentation'), require('./model/EndpointConfigurationRepresentation'), require('./model/EndpointRequestHeaderRepresentation'), require('./model/EntityAttributeScopeRepresentation'), require('./model/EntityVariableScopeRepresentation'), require('./model/File'), require('./model/FormDefinitionRepresentation'), require('./model/FormFieldRepresentation'), require('./model/FormJavascriptEventRepresentation'), require('./model/FormOutcomeRepresentation'), require('./model/FormRepresentation'), require('./model/FormSaveRepresentation'), require('./model/FormScopeRepresentation'), require('./model/FormTabRepresentation'), require('./model/FormValueRepresentation'), require('./model/GroupCapabilityRepresentation'), require('./model/GroupRepresentation'), require('./model/ImageUploadRepresentation'), require('./model/LayoutRepresentation'), require('./model/LightAppRepresentation'), require('./model/LightGroupRepresentation'), require('./model/LightTenantRepresentation'), require('./model/LightUserRepresentation'), require('./model/MaplongListstring'), require('./model/MapstringListEntityVariableScopeRepresentation'), require('./model/MapstringListVariableScopeRepresentation'), require('./model/Mapstringstring'), require('./model/ModelRepresentation'), require('./model/ObjectNode'), require('./model/OptionRepresentation'), require('./model/ProcessFilterRequestRepresentation'), require('./model/ProcessInstanceFilterRepresentation'), require('./model/ProcessInstanceFilterRequestRepresentation'), require('./model/ProcessInstanceRepresentation'), require('./model/ProcessInstanceVariableRepresentation'), require('./model/ProcessScopeIdentifierRepresentation'), require('./model/ProcessScopeRepresentation'), require('./model/ProcessScopesRequestRepresentation'), require('./model/PublishIdentityInfoRepresentation'), require('./model/RelatedContentRepresentation'), require('./model/ResetPasswordRepresentation'), require('./model/RestVariable'), require('./model/ResultListDataRepresentation'), require('./model/RuntimeAppDefinitionSaveRepresentation'), require('./model/SaveFormRepresentation'), require('./model/SyncLogEntryRepresentation'), require('./model/SystemPropertiesRepresentation'), require('./model/TaskFilterRepresentation'), require('./model/TaskFilterRequestRepresentation'), require('./model/TaskQueryRequestRepresentation'), require('./model/TaskRepresentation'), require('./model/TaskUpdateRepresentation'), require('./model/TenantEvent'), require('./model/TenantRepresentation'), require('./model/UserAccountCredentialsRepresentation'), require('./model/UserActionRepresentation'), require('./model/UserFilterOrderRepresentation'), require('./model/UserProcessInstanceFilterRepresentation'), require('./model/UserRepresentation'), require('./model/UserTaskFilterRepresentation'), require('./model/ValidationErrorRepresentation'), require('./model/VariableScopeRepresentation'), require('./api/AboutApi'), require('./api/AdminEndpointsApi'), require('./api/AdminGroupsApi'), require('./api/AdminTenantsApi'), require('./api/AdminUsersApi'), require('./api/AlfrescoApi'), require('./api/AppsApi'), require('./api/AppsDefinitionApi'), require('./api/AppsRuntimeApi'), require('./api/CommentsApi'), require('./api/ContentApi'), require('./api/ContentRenditionApi'), require('./api/EditorApi'), require('./api/GroupsApi'), require('./api/IDMSyncApi'), require('./api/IntegrationApi'), require('./api/IntegrationAccountApi'), require('./api/IntegrationAlfrescoCloudApi'), require('./api/IntegrationAlfrescoOnPremiseApi'), require('./api/IntegrationBoxApi'), require('./api/IntegrationDriveApi'), require('./api/ModelBpmnApi'), require('./api/ModelJsonBpmnApi'), require('./api/ModelsApi'), require('./api/ModelsHistoryApi'), require('./api/ProcessApi'), require('./api/ProcessDefinitionsApi'), require('./api/ProcessDefinitionsFormApi'), require('./api/ProcessInstancesApi'), require('./api/ProcessInstancesInformationApi'), require('./api/ProcessInstancesListingApi'), require('./api/ProcessInstanceVariablesApi'), require('./api/ProcessScopeApi'), require('./api/ProfileApi'), require('./api/ScriptFileApi'), require('./api/SystemPropertiesApi'), require('./api/TaskApi'), require('./api/TaskActionsApi'), require('./api/TaskCheckListApi'), require('./api/TaskFormsApi'), require('./api/TemporaryApi'), require('./api/UserApi'), require('./api/UserFiltersApi'), require('./api/UsersWorkflowApi'), require('./api/ReportApi')); } -})(function (ApiClient, AbstractGroupRepresentation, AbstractRepresentation, AbstractUserRepresentation, AddGroupCapabilitiesRepresentation, AppDefinition, AppDefinitionPublishRepresentation, AppDefinitionRepresentation, AppDefinitionUpdateResultRepresentation, AppModelDefinition, ArrayNode, BoxUserAccountCredentialsRepresentation, BulkUserUpdateRepresentation, ChangePasswordRepresentation, ChecklistOrderRepresentation, CommentRepresentation, CompleteFormRepresentation, ConditionRepresentation, CreateEndpointBasicAuthRepresentation, CreateProcessInstanceRepresentation, CreateTenantRepresentation, EndpointBasicAuthRepresentation, EndpointConfigurationRepresentation, EndpointRequestHeaderRepresentation, EntityAttributeScopeRepresentation, EntityVariableScopeRepresentation, File, FormDefinitionRepresentation, FormFieldRepresentation, FormJavascriptEventRepresentation, FormOutcomeRepresentation, FormRepresentation, FormSaveRepresentation, FormScopeRepresentation, FormTabRepresentation, FormValueRepresentation, GroupCapabilityRepresentation, GroupRepresentation, ImageUploadRepresentation, LayoutRepresentation, LightAppRepresentation, LightGroupRepresentation, LightTenantRepresentation, LightUserRepresentation, MaplongListstring, MapstringListEntityVariableScopeRepresentation, MapstringListVariableScopeRepresentation, Mapstringstring, ModelRepresentation, ObjectNode, OptionRepresentation, ProcessFilterRequestRepresentation, ProcessInstanceFilterRepresentation, ProcessInstanceFilterRequestRepresentation, ProcessInstanceRepresentation, ProcessInstanceVariableRepresentation, ProcessScopeIdentifierRepresentation, ProcessScopeRepresentation, ProcessScopesRequestRepresentation, PublishIdentityInfoRepresentation, RelatedContentRepresentation, ResetPasswordRepresentation, RestVariable, ResultListDataRepresentation, RuntimeAppDefinitionSaveRepresentation, SaveFormRepresentation, SyncLogEntryRepresentation, SystemPropertiesRepresentation, TaskFilterRepresentation, TaskFilterRequestRepresentation, TaskQueryRequestRepresentation, TaskRepresentation, TaskUpdateRepresentation, TenantEvent, TenantRepresentation, UserAccountCredentialsRepresentation, UserActionRepresentation, UserFilterOrderRepresentation, UserProcessInstanceFilterRepresentation, UserRepresentation, UserTaskFilterRepresentation, ValidationErrorRepresentation, VariableScopeRepresentation, AboutApi, AdminEndpointsApi, AdminGroupsApi, AdminTenantsApi, AdminUsersApi, AlfrescoApi, AppsApi, AppsDefinitionApi, AppsRuntimeApi, CommentsApi, ContentApi, ContentRenditionApi, EditorApi, GroupsApi, IDMSyncApi, IntegrationApi, IntegrationAccountApi, IntegrationAlfrescoCloudApi, IntegrationAlfrescoOnPremiseApi, IntegrationBoxApi, IntegrationDriveApi, ModelBpmnApi, ModelJsonBpmnApi, ModelsApi, ModelsHistoryApi, ProcessApi, ProcessDefinitionsApi, ProcessDefinitionsFormApi, ProcessInstancesApi, ProcessInstancesInformationApi, ProcessInstancesListingApi, ProcessInstanceVariablesApi, ProcessScopeApi, ProfileApi, ScriptFileApi, SystemPropertiesApi, TaskApi, TaskActionsApi, TaskCheckListApi, TaskFormsApi, TemporaryApi, UserApi, UserFiltersApi, UsersWorkflowApi) { +})(function (ApiClient, AbstractGroupRepresentation, AbstractRepresentation, AbstractUserRepresentation, AddGroupCapabilitiesRepresentation, AppDefinition, AppDefinitionPublishRepresentation, AppDefinitionRepresentation, AppDefinitionUpdateResultRepresentation, AppModelDefinition, ArrayNode, BoxUserAccountCredentialsRepresentation, BulkUserUpdateRepresentation, ChangePasswordRepresentation, ChecklistOrderRepresentation, CommentRepresentation, CompleteFormRepresentation, ConditionRepresentation, CreateEndpointBasicAuthRepresentation, CreateProcessInstanceRepresentation, CreateTenantRepresentation, EndpointBasicAuthRepresentation, EndpointConfigurationRepresentation, EndpointRequestHeaderRepresentation, EntityAttributeScopeRepresentation, EntityVariableScopeRepresentation, File, FormDefinitionRepresentation, FormFieldRepresentation, FormJavascriptEventRepresentation, FormOutcomeRepresentation, FormRepresentation, FormSaveRepresentation, FormScopeRepresentation, FormTabRepresentation, FormValueRepresentation, GroupCapabilityRepresentation, GroupRepresentation, ImageUploadRepresentation, LayoutRepresentation, LightAppRepresentation, LightGroupRepresentation, LightTenantRepresentation, LightUserRepresentation, MaplongListstring, MapstringListEntityVariableScopeRepresentation, MapstringListVariableScopeRepresentation, Mapstringstring, ModelRepresentation, ObjectNode, OptionRepresentation, ProcessFilterRequestRepresentation, ProcessInstanceFilterRepresentation, ProcessInstanceFilterRequestRepresentation, ProcessInstanceRepresentation, ProcessInstanceVariableRepresentation, ProcessScopeIdentifierRepresentation, ProcessScopeRepresentation, ProcessScopesRequestRepresentation, PublishIdentityInfoRepresentation, RelatedContentRepresentation, ResetPasswordRepresentation, RestVariable, ResultListDataRepresentation, RuntimeAppDefinitionSaveRepresentation, SaveFormRepresentation, SyncLogEntryRepresentation, SystemPropertiesRepresentation, TaskFilterRepresentation, TaskFilterRequestRepresentation, TaskQueryRequestRepresentation, TaskRepresentation, TaskUpdateRepresentation, TenantEvent, TenantRepresentation, UserAccountCredentialsRepresentation, UserActionRepresentation, UserFilterOrderRepresentation, UserProcessInstanceFilterRepresentation, UserRepresentation, UserTaskFilterRepresentation, ValidationErrorRepresentation, VariableScopeRepresentation, AboutApi, AdminEndpointsApi, AdminGroupsApi, AdminTenantsApi, AdminUsersApi, AlfrescoApi, AppsApi, AppsDefinitionApi, AppsRuntimeApi, CommentsApi, ContentApi, ContentRenditionApi, EditorApi, GroupsApi, IDMSyncApi, IntegrationApi, IntegrationAccountApi, IntegrationAlfrescoCloudApi, IntegrationAlfrescoOnPremiseApi, IntegrationBoxApi, IntegrationDriveApi, ModelBpmnApi, ModelJsonBpmnApi, ModelsApi, ModelsHistoryApi, ProcessApi, ProcessDefinitionsApi, ProcessDefinitionsFormApi, ProcessInstancesApi, ProcessInstancesInformationApi, ProcessInstancesListingApi, ProcessInstanceVariablesApi, ProcessScopeApi, ProfileApi, ScriptFileApi, SystemPropertiesApi, TaskApi, TaskActionsApi, TaskCheckListApi, TaskFormsApi, TemporaryApi, UserApi, UserFiltersApi, UsersWorkflowApi, ReportApi) { 'use strict'; /** @@ -31680,16 +32507,21 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * The UsersWorkflowApi service constructor. * @property {module:api/UsersWorkflowApi} */ - UsersWorkflowApi: UsersWorkflowApi + UsersWorkflowApi: UsersWorkflowApi, + /** + * The ReportApi service constructor. + * @property {module:api/ReportApi} + */ + ReportApi: ReportApi }; return exports; }); -},{"../../alfrescoApiClient":290,"./api/AboutApi":26,"./api/AdminEndpointsApi":27,"./api/AdminGroupsApi":28,"./api/AdminTenantsApi":29,"./api/AdminUsersApi":30,"./api/AlfrescoApi":31,"./api/AppsApi":32,"./api/AppsDefinitionApi":33,"./api/AppsRuntimeApi":34,"./api/CommentsApi":35,"./api/ContentApi":36,"./api/ContentRenditionApi":37,"./api/EditorApi":38,"./api/GroupsApi":39,"./api/IDMSyncApi":40,"./api/IntegrationAccountApi":41,"./api/IntegrationAlfrescoCloudApi":42,"./api/IntegrationAlfrescoOnPremiseApi":43,"./api/IntegrationApi":44,"./api/IntegrationBoxApi":45,"./api/IntegrationDriveApi":46,"./api/ModelBpmnApi":47,"./api/ModelJsonBpmnApi":48,"./api/ModelsApi":49,"./api/ModelsHistoryApi":50,"./api/ProcessApi":51,"./api/ProcessDefinitionsApi":52,"./api/ProcessDefinitionsFormApi":53,"./api/ProcessInstanceVariablesApi":54,"./api/ProcessInstancesApi":55,"./api/ProcessInstancesInformationApi":56,"./api/ProcessInstancesListingApi":57,"./api/ProcessScopeApi":58,"./api/ProfileApi":59,"./api/ScriptFileApi":60,"./api/SystemPropertiesApi":61,"./api/TaskActionsApi":62,"./api/TaskApi":63,"./api/TaskCheckListApi":64,"./api/TaskFormsApi":65,"./api/TemporaryApi":66,"./api/UserApi":67,"./api/UserFiltersApi":68,"./api/UsersWorkflowApi":69,"./model/AbstractGroupRepresentation":71,"./model/AbstractRepresentation":72,"./model/AbstractUserRepresentation":73,"./model/AddGroupCapabilitiesRepresentation":74,"./model/AppDefinition":75,"./model/AppDefinitionPublishRepresentation":76,"./model/AppDefinitionRepresentation":77,"./model/AppDefinitionUpdateResultRepresentation":78,"./model/AppModelDefinition":79,"./model/ArrayNode":80,"./model/BoxUserAccountCredentialsRepresentation":81,"./model/BulkUserUpdateRepresentation":82,"./model/ChangePasswordRepresentation":83,"./model/ChecklistOrderRepresentation":84,"./model/CommentRepresentation":85,"./model/CompleteFormRepresentation":86,"./model/ConditionRepresentation":87,"./model/CreateEndpointBasicAuthRepresentation":88,"./model/CreateProcessInstanceRepresentation":89,"./model/CreateTenantRepresentation":90,"./model/EndpointBasicAuthRepresentation":91,"./model/EndpointConfigurationRepresentation":92,"./model/EndpointRequestHeaderRepresentation":93,"./model/EntityAttributeScopeRepresentation":94,"./model/EntityVariableScopeRepresentation":95,"./model/File":96,"./model/FormDefinitionRepresentation":97,"./model/FormFieldRepresentation":98,"./model/FormJavascriptEventRepresentation":99,"./model/FormOutcomeRepresentation":100,"./model/FormRepresentation":101,"./model/FormSaveRepresentation":102,"./model/FormScopeRepresentation":103,"./model/FormTabRepresentation":104,"./model/FormValueRepresentation":105,"./model/GroupCapabilityRepresentation":106,"./model/GroupRepresentation":107,"./model/ImageUploadRepresentation":108,"./model/LayoutRepresentation":109,"./model/LightAppRepresentation":110,"./model/LightGroupRepresentation":111,"./model/LightTenantRepresentation":112,"./model/LightUserRepresentation":113,"./model/MaplongListstring":114,"./model/MapstringListEntityVariableScopeRepresentation":115,"./model/MapstringListVariableScopeRepresentation":116,"./model/Mapstringstring":117,"./model/ModelRepresentation":118,"./model/ObjectNode":119,"./model/OptionRepresentation":120,"./model/ProcessFilterRequestRepresentation":121,"./model/ProcessInstanceFilterRepresentation":122,"./model/ProcessInstanceFilterRequestRepresentation":123,"./model/ProcessInstanceRepresentation":124,"./model/ProcessInstanceVariableRepresentation":125,"./model/ProcessScopeIdentifierRepresentation":126,"./model/ProcessScopeRepresentation":127,"./model/ProcessScopesRequestRepresentation":128,"./model/PublishIdentityInfoRepresentation":129,"./model/RelatedContentRepresentation":130,"./model/ResetPasswordRepresentation":131,"./model/RestVariable":132,"./model/ResultListDataRepresentation":133,"./model/RuntimeAppDefinitionSaveRepresentation":134,"./model/SaveFormRepresentation":135,"./model/SyncLogEntryRepresentation":136,"./model/SystemPropertiesRepresentation":137,"./model/TaskFilterRepresentation":138,"./model/TaskFilterRequestRepresentation":139,"./model/TaskQueryRequestRepresentation":140,"./model/TaskRepresentation":141,"./model/TaskUpdateRepresentation":142,"./model/TenantEvent":143,"./model/TenantRepresentation":144,"./model/UserAccountCredentialsRepresentation":145,"./model/UserActionRepresentation":146,"./model/UserFilterOrderRepresentation":147,"./model/UserProcessInstanceFilterRepresentation":148,"./model/UserRepresentation":149,"./model/UserTaskFilterRepresentation":150,"./model/ValidationErrorRepresentation":151,"./model/VariableScopeRepresentation":152}],71:[function(require,module,exports){ +},{"../../alfrescoApiClient":295,"./api/AboutApi":26,"./api/AdminEndpointsApi":27,"./api/AdminGroupsApi":28,"./api/AdminTenantsApi":29,"./api/AdminUsersApi":30,"./api/AlfrescoApi":31,"./api/AppsApi":32,"./api/AppsDefinitionApi":33,"./api/AppsRuntimeApi":34,"./api/CommentsApi":35,"./api/ContentApi":36,"./api/ContentRenditionApi":37,"./api/EditorApi":38,"./api/GroupsApi":39,"./api/IDMSyncApi":40,"./api/IntegrationAccountApi":41,"./api/IntegrationAlfrescoCloudApi":42,"./api/IntegrationAlfrescoOnPremiseApi":43,"./api/IntegrationApi":44,"./api/IntegrationBoxApi":45,"./api/IntegrationDriveApi":46,"./api/ModelBpmnApi":47,"./api/ModelJsonBpmnApi":48,"./api/ModelsApi":49,"./api/ModelsHistoryApi":50,"./api/ProcessApi":51,"./api/ProcessDefinitionsApi":52,"./api/ProcessDefinitionsFormApi":53,"./api/ProcessInstanceVariablesApi":54,"./api/ProcessInstancesApi":55,"./api/ProcessInstancesInformationApi":56,"./api/ProcessInstancesListingApi":57,"./api/ProcessScopeApi":58,"./api/ProfileApi":59,"./api/ReportApi":60,"./api/ScriptFileApi":61,"./api/SystemPropertiesApi":62,"./api/TaskActionsApi":63,"./api/TaskApi":64,"./api/TaskCheckListApi":65,"./api/TaskFormsApi":66,"./api/TemporaryApi":67,"./api/UserApi":68,"./api/UserFiltersApi":69,"./api/UsersWorkflowApi":70,"./model/AbstractGroupRepresentation":72,"./model/AbstractRepresentation":73,"./model/AbstractUserRepresentation":74,"./model/AddGroupCapabilitiesRepresentation":75,"./model/AppDefinition":76,"./model/AppDefinitionPublishRepresentation":77,"./model/AppDefinitionRepresentation":78,"./model/AppDefinitionUpdateResultRepresentation":79,"./model/AppModelDefinition":80,"./model/ArrayNode":81,"./model/BoxUserAccountCredentialsRepresentation":82,"./model/BulkUserUpdateRepresentation":83,"./model/ChangePasswordRepresentation":84,"./model/ChecklistOrderRepresentation":86,"./model/CommentRepresentation":87,"./model/CompleteFormRepresentation":88,"./model/ConditionRepresentation":89,"./model/CreateEndpointBasicAuthRepresentation":90,"./model/CreateProcessInstanceRepresentation":91,"./model/CreateTenantRepresentation":92,"./model/EndpointBasicAuthRepresentation":93,"./model/EndpointConfigurationRepresentation":94,"./model/EndpointRequestHeaderRepresentation":95,"./model/EntityAttributeScopeRepresentation":96,"./model/EntityVariableScopeRepresentation":97,"./model/File":98,"./model/FormDefinitionRepresentation":99,"./model/FormFieldRepresentation":100,"./model/FormJavascriptEventRepresentation":101,"./model/FormOutcomeRepresentation":102,"./model/FormRepresentation":103,"./model/FormSaveRepresentation":104,"./model/FormScopeRepresentation":105,"./model/FormTabRepresentation":106,"./model/FormValueRepresentation":107,"./model/GroupCapabilityRepresentation":108,"./model/GroupRepresentation":109,"./model/ImageUploadRepresentation":110,"./model/LayoutRepresentation":111,"./model/LightAppRepresentation":112,"./model/LightGroupRepresentation":113,"./model/LightTenantRepresentation":114,"./model/LightUserRepresentation":115,"./model/MaplongListstring":116,"./model/MapstringListEntityVariableScopeRepresentation":117,"./model/MapstringListVariableScopeRepresentation":118,"./model/Mapstringstring":119,"./model/ModelRepresentation":120,"./model/ObjectNode":121,"./model/OptionRepresentation":122,"./model/ProcessFilterRequestRepresentation":124,"./model/ProcessInstanceFilterRepresentation":125,"./model/ProcessInstanceFilterRequestRepresentation":126,"./model/ProcessInstanceRepresentation":127,"./model/ProcessInstanceVariableRepresentation":128,"./model/ProcessScopeIdentifierRepresentation":129,"./model/ProcessScopeRepresentation":130,"./model/ProcessScopesRequestRepresentation":131,"./model/PublishIdentityInfoRepresentation":132,"./model/RelatedContentRepresentation":133,"./model/ResetPasswordRepresentation":136,"./model/RestVariable":137,"./model/ResultListDataRepresentation":138,"./model/RuntimeAppDefinitionSaveRepresentation":139,"./model/SaveFormRepresentation":140,"./model/SyncLogEntryRepresentation":141,"./model/SystemPropertiesRepresentation":142,"./model/TaskFilterRepresentation":143,"./model/TaskFilterRequestRepresentation":144,"./model/TaskQueryRequestRepresentation":145,"./model/TaskRepresentation":146,"./model/TaskUpdateRepresentation":147,"./model/TenantEvent":148,"./model/TenantRepresentation":149,"./model/UserAccountCredentialsRepresentation":150,"./model/UserActionRepresentation":151,"./model/UserFilterOrderRepresentation":152,"./model/UserProcessInstanceFilterRepresentation":153,"./model/UserRepresentation":154,"./model/UserTaskFilterRepresentation":155,"./model/ValidationErrorRepresentation":156,"./model/VariableScopeRepresentation":157}],72:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -31771,10 +32603,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],72:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],73:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -31826,10 +32658,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],73:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],74:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -31925,10 +32757,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],74:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],75:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -31989,10 +32821,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],75:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],76:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -32074,10 +32906,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./AppModelDefinition":79,"./PublishIdentityInfoRepresentation":129}],76:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./AppModelDefinition":80,"./PublishIdentityInfoRepresentation":132}],77:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -32145,10 +32977,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],77:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],78:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -32265,10 +33097,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],78:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],79:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -32371,10 +33203,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./AppDefinitionRepresentation":77}],79:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./AppDefinitionRepresentation":78}],80:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -32505,10 +33337,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],80:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],81:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -32761,10 +33593,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],81:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],82:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -32839,10 +33671,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],82:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],83:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -32938,10 +33770,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],83:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],84:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -33009,10 +33841,79 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],84:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],85:[function(require,module,exports){ +'use strict'; + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +(function (root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['../../../alfrescoApiClient'], factory); + } else if ((typeof module === 'undefined' ? 'undefined' : _typeof(module)) === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../../../alfrescoApiClient')); + } else { + // Browser globals (root is window) + if (!root.ActivitiPublicRestApi) { + root.ActivitiPublicRestApi = {}; + } + root.ActivitiPublicRestApi.Chart = factory(root.ActivitiPublicRestApi.ApiClient); + } +})(undefined, function (ApiClient) { + 'use strict'; + + /** + * The ReportQuery model module. + * @module model/Chart + * @version 1.4.0 + */ + + /** + * Constructs a new Chart. + * @alias module:model/Chart + * @class + */ + + var exports = function exports() { + var _this = this; + }; + + /** + * Constructs a ReportCharts from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @return {module:model/ReportCharts} The populated ReportCharts instance. + */ + exports.constructFromObject = function (data, obj) { + if (data) { + obj = data || new exports(); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'String'); + } + if (data.hasOwnProperty('type')) { + obj['type'] = ApiClient.convertToType(data['type'], 'String'); + } + } + return obj; + }; + + /** + * @member {String} processDefinitionId + */ + exports.prototype['id'] = undefined; + /** + * @member {String} status + */ + exports.prototype['type'] = undefined; + + return exports; +}); + +},{"../../../alfrescoApiClient":295}],86:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -33073,10 +33974,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],85:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],87:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -33158,10 +34059,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./LightUserRepresentation":113}],86:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./LightUserRepresentation":115}],88:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -33229,10 +34130,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],87:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],89:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -33342,10 +34243,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],88:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],90:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -33427,10 +34328,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],89:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],91:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -33512,10 +34413,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],90:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],92:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -33597,10 +34498,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],91:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],93:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -33696,10 +34597,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],92:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],94:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -33823,10 +34724,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./EndpointRequestHeaderRepresentation":93}],93:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./EndpointRequestHeaderRepresentation":95}],95:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -33894,10 +34795,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],94:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],96:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -33965,10 +34866,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],95:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],97:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -34050,10 +34951,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./EntityAttributeScopeRepresentation":94}],96:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./EntityAttributeScopeRepresentation":96}],98:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -34212,10 +35113,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],97:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],99:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -34402,10 +35303,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./FormFieldRepresentation":98,"./FormJavascriptEventRepresentation":99,"./FormOutcomeRepresentation":100,"./FormTabRepresentation":104}],98:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./FormFieldRepresentation":100,"./FormJavascriptEventRepresentation":101,"./FormOutcomeRepresentation":102,"./FormTabRepresentation":106}],100:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -34669,10 +35570,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./ConditionRepresentation":87,"./LayoutRepresentation":109,"./OptionRepresentation":120}],99:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./ConditionRepresentation":89,"./LayoutRepresentation":111,"./OptionRepresentation":122}],101:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -34740,10 +35641,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],100:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],102:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -34811,10 +35712,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],101:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],103:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -34938,10 +35839,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./FormDefinitionRepresentation":97}],102:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./FormDefinitionRepresentation":99}],104:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -35037,10 +35938,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./FormRepresentation":101,"./ProcessScopeIdentifierRepresentation":126}],103:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./FormRepresentation":103,"./ProcessScopeIdentifierRepresentation":129}],105:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -35136,10 +36037,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./FormFieldRepresentation":98,"./FormOutcomeRepresentation":100}],104:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./FormFieldRepresentation":100,"./FormOutcomeRepresentation":102}],106:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -35214,10 +36115,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./ConditionRepresentation":87}],105:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./ConditionRepresentation":89}],107:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -35285,10 +36186,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],106:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],108:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -35356,10 +36257,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],107:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],109:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -35497,10 +36398,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./GroupCapabilityRepresentation":106,"./GroupRepresentation":107,"./UserRepresentation":149}],108:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./GroupCapabilityRepresentation":108,"./GroupRepresentation":109,"./UserRepresentation":154}],110:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -35582,10 +36483,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],109:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],111:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -35660,10 +36561,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],110:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],112:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -35752,10 +36653,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],111:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],113:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -35844,10 +36745,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./LightGroupRepresentation":111}],112:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./LightGroupRepresentation":113}],114:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -35915,10 +36816,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],113:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],115:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -36014,10 +36915,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],114:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],116:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -36073,10 +36974,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],115:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],117:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -36132,10 +37033,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],116:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],118:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -36191,10 +37092,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],117:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],119:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -36250,10 +37151,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],118:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],120:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -36419,10 +37320,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],119:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],121:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -36474,10 +37375,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],120:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],122:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -36545,10 +37446,95 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],121:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],123:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +(function (root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['../../../alfrescoApiClient'], factory); + } else if ((typeof module === 'undefined' ? 'undefined' : _typeof(module)) === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../../../alfrescoApiClient')); + } else { + // Browser globals (root is window) + if (!root.ActivitiPublicRestApi) { + root.ActivitiPublicRestApi = {}; + } + root.ActivitiPublicRestApi.ParameterValueRepresentation = factory(root.ActivitiPublicRestApi.ApiClient); + } +})(undefined, function (ApiClient) { + 'use strict'; + + /** + * The ParameterValueRepresentation model module. + * @module model/ParameterValueRepresentation + * @version 1.4.0 + */ + + /** + * Constructs a new ParameterValueRepresentation. + * @alias module:model/ParameterValueRepresentation + * @class + */ + + var exports = function exports() { + var _this = this; + }; + + /** + * Constructs a ParameterValueRepresentation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ParameterValueRepresentation} obj Optional instance to populate. + * @return {module:model/ParameterValueRepresentation} The populated ParameterValueRepresentation instance. + */ + exports.constructFromObject = function (data, obj) { + if (data) { + obj = data || new exports(); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('version')) { + obj['version'] = ApiClient.convertToType(data['version'], 'String'); + } + if (data.hasOwnProperty('value')) { + obj['value'] = ApiClient.convertToType(data['value'], 'String'); + } + } + return obj; + }; + + /** + * @member {String} id + */ + exports.prototype['id'] = undefined; + /** + * @member {String} name + */ + exports.prototype['name'] = undefined; + /** + * @member {String} version + */ + exports.prototype['version'] = undefined; + /** + * @member {String} value + */ + exports.prototype['value'] = undefined; + + return exports; +}); + +},{"../../../alfrescoApiClient":295}],124:[function(require,module,exports){ +'use strict'; + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -36650,10 +37636,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],122:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],125:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -36749,10 +37735,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],123:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],126:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -36841,10 +37827,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./ProcessInstanceFilterRepresentation":122}],124:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./ProcessInstanceFilterRepresentation":125}],127:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -37017,10 +38003,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./LightUserRepresentation":113,"./RestVariable":132}],125:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./LightUserRepresentation":115,"./RestVariable":137}],128:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -37095,10 +38081,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],126:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],129:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -37166,10 +38152,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],127:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],130:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -37321,10 +38307,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./FormScopeRepresentation":103}],128:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./FormScopeRepresentation":105}],131:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -37392,10 +38378,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./ProcessScopeIdentifierRepresentation":126}],129:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./ProcessScopeIdentifierRepresentation":129}],132:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -37470,10 +38456,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./LightGroupRepresentation":111,"./LightUserRepresentation":113}],130:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./LightGroupRepresentation":113,"./LightUserRepresentation":115}],133:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -37618,10 +38604,157 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./LightUserRepresentation":113}],131:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./LightUserRepresentation":115}],134:[function(require,module,exports){ +'use strict'; + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +(function (root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['../../../alfrescoApiClient', './Chart'], factory); + } else if ((typeof module === 'undefined' ? 'undefined' : _typeof(module)) === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../../../alfrescoApiClient'), require('./Chart')); + } else { + // Browser globals (root is window) + if (!root.ActivitiPublicRestApi) { + root.ActivitiPublicRestApi = {}; + } + root.ActivitiPublicRestApi.ReportCharts = factory(root.ActivitiPublicRestApi.ApiClient, root.ActivitiPublicRestApi.Chart); + } +})(undefined, function (ApiClient, Chart) { + 'use strict'; + + /** + * The ReportCharts model module. + * @module model/ReportCharts + * @version 1.4.0 + */ + + /** + * Constructs a new ReportCharts. + * @alias module:model/ReportCharts + * @class + */ + + var exports = function exports() { + var _this = this; + }; + + /** + * Constructs a ReportCharts from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @return {module:model/ReportCharts} The populated ReportCharts instance. + */ + exports.constructFromObject = function (data, obj) { + if (data) { + obj = data || new exports(); + + if (data.hasOwnProperty('elements')) { + obj['elements'] = ApiClient.convertToType(data['elements'], [Chart]); + } + } + return obj; + }; + + /** + * @member {String} elements + */ + exports.prototype['elements'] = undefined; + + return exports; +}); + +},{"../../../alfrescoApiClient":295,"./Chart":85}],135:[function(require,module,exports){ +'use strict'; + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +(function (root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['../../../alfrescoApiClient'], factory); + } else if ((typeof module === 'undefined' ? 'undefined' : _typeof(module)) === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../../../alfrescoApiClient')); + } else { + // Browser globals (root is window) + if (!root.ActivitiPublicRestApi) { + root.ActivitiPublicRestApi = {}; + } + root.ActivitiPublicRestApi.ReportParametersDefinition = factory(root.ActivitiPublicRestApi.ApiClient); + } +})(undefined, function (ApiClient) { + 'use strict'; + + /** + * The ReportParametersDefinition model module. + * @module model/ReportParametersDefinition + * @version 1.4.0 + */ + + /** + * Constructs a new ReportParametersDefinition. + * @alias module:model/ReportParametersDefinition + * @class + */ + + var exports = function exports() { + var _this = this; + }; + + /** + * Constructs a ReportParametersDefinition from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ReportParametersDefinition} obj Optional instance to populate. + * @return {module:model/ReportParametersDefinition} The populated ReportParametersDefinition instance. + */ + exports.constructFromObject = function (data, obj) { + if (data) { + obj = data || new exports(); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Integer'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('definition')) { + obj['definition'] = ApiClient.convertToType(data['definition'], 'String'); + } + if (data.hasOwnProperty('created')) { + obj['created'] = ApiClient.convertToType(data['created'], 'String'); + } + } + return obj; + }; + + /** + * @member {Integer} id + */ + exports.prototype['id'] = undefined; + /** + * @member {String} name + */ + exports.prototype['name'] = undefined; + /** + * @member {String} definition + */ + exports.prototype['definition'] = undefined; + /** + * @member {String} value + */ + exports.prototype['created'] = undefined; + + return exports; +}); + +},{"../../../alfrescoApiClient":295}],136:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -37682,10 +38815,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],132:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],137:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -37774,10 +38907,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],133:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],138:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -37859,10 +38992,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./AbstractRepresentation":72}],134:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./AbstractRepresentation":73}],139:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -37923,10 +39056,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./AppDefinitionRepresentation":77}],135:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./AppDefinitionRepresentation":78}],140:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -37987,10 +39120,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],136:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],141:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -38065,10 +39198,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],137:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],142:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -38129,10 +39262,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],138:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],143:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -38249,10 +39382,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],139:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],144:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -38350,10 +39483,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./TaskFilterRepresentation":138}],140:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./TaskFilterRepresentation":143}],145:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -38449,10 +39582,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],141:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],146:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -38702,10 +39835,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./LightUserRepresentation":113}],142:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./LightUserRepresentation":115}],147:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -38801,10 +39934,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],143:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],148:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -38907,10 +40040,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],144:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],149:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -39020,10 +40153,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],145:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],150:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -39091,10 +40224,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],146:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],151:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -39169,10 +40302,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],147:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],152:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -39240,10 +40373,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],148:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],153:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -39346,10 +40479,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./ProcessInstanceFilterRepresentation":122}],149:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./ProcessInstanceFilterRepresentation":125}],154:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -39543,10 +40676,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./GroupRepresentation":107,"./LightAppRepresentation":110}],150:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./GroupRepresentation":109,"./LightAppRepresentation":112}],155:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -39649,10 +40782,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./TaskFilterRepresentation":138}],151:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./TaskFilterRepresentation":143}],156:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -39755,10 +40888,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],152:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],157:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -39861,10 +40994,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],153:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],158:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -39972,10 +41105,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"../model/Error":155,"../model/LoginRequest":157,"../model/LoginTicketEntry":158,"../model/ValidateTicketEntry":160}],154:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"../model/Error":160,"../model/LoginRequest":162,"../model/LoginTicketEntry":163,"../model/ValidateTicketEntry":165}],159:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (factory) { if (typeof define === 'function' && define.amd) { @@ -40071,10 +41204,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../alfrescoApiClient":290,"./api/AuthenticationApi":153,"./model/Error":155,"./model/ErrorError":156,"./model/LoginRequest":157,"./model/LoginTicketEntry":158,"./model/LoginTicketEntryEntry":159,"./model/ValidateTicketEntry":160,"./model/ValidateTicketEntryEntry":161}],155:[function(require,module,exports){ +},{"../../alfrescoApiClient":295,"./api/AuthenticationApi":158,"./model/Error":160,"./model/ErrorError":161,"./model/LoginRequest":162,"./model/LoginTicketEntry":163,"./model/LoginTicketEntryEntry":164,"./model/ValidateTicketEntry":165,"./model/ValidateTicketEntryEntry":166}],160:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -40133,10 +41266,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./ErrorError":156}],156:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./ErrorError":161}],161:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -40246,10 +41379,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],157:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],162:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -40316,10 +41449,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],158:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],163:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -40378,10 +41511,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./LoginTicketEntryEntry":159}],159:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./LoginTicketEntryEntry":164}],164:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -40448,10 +41581,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],160:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],165:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -40510,10 +41643,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290,"./ValidateTicketEntryEntry":161}],161:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295,"./ValidateTicketEntryEntry":166}],166:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -40572,11 +41705,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],162:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],167:[function(require,module,exports){ (function (Buffer){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -41062,10 +42195,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }); }).call(this,require("buffer").Buffer) -},{"buffer":4,"fs":3,"superagent":25}],163:[function(require,module,exports){ +},{"buffer":4,"fs":3,"superagent":25}],168:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -41255,10 +42388,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"../model/AssocTargetBody":185,"../model/Error":203,"../model/NodeAssocPaging":217}],164:[function(require,module,exports){ +},{"../ApiClient":167,"../model/AssocTargetBody":190,"../model/Error":208,"../model/NodeAssocPaging":222}],169:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -42616,10 +43749,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"../model/AssocChildBody":183,"../model/AssocTargetBody":185,"../model/CopyBody":195,"../model/DeletedNodeEntry":197,"../model/DeletedNodesPaging":200,"../model/EmailSharedLinkBody":202,"../model/Error":203,"../model/MoveBody":213,"../model/NodeAssocPaging":217,"../model/NodeBody":219,"../model/NodeBody1":220,"../model/NodeChildAssocPaging":223,"../model/NodeEntry":225,"../model/NodePaging":229,"../model/NodeSharedLinkEntry":232,"../model/NodeSharedLinkPaging":233,"../model/RenditionBody":256,"../model/RenditionEntry":257,"../model/RenditionPaging":258,"../model/SharedLinkBody":260,"../model/SiteBody":262,"../model/SiteEntry":266}],165:[function(require,module,exports){ +},{"../ApiClient":167,"../model/AssocChildBody":188,"../model/AssocTargetBody":190,"../model/CopyBody":200,"../model/DeletedNodeEntry":202,"../model/DeletedNodesPaging":205,"../model/EmailSharedLinkBody":207,"../model/Error":208,"../model/MoveBody":218,"../model/NodeAssocPaging":222,"../model/NodeBody":224,"../model/NodeBody1":225,"../model/NodeChildAssocPaging":228,"../model/NodeEntry":230,"../model/NodePaging":234,"../model/NodeSharedLinkEntry":237,"../model/NodeSharedLinkPaging":238,"../model/RenditionBody":261,"../model/RenditionEntry":262,"../model/RenditionPaging":263,"../model/SharedLinkBody":265,"../model/SiteBody":267,"../model/SiteEntry":271}],170:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -42978,10 +44111,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"../model/AssocChildBody":183,"../model/Error":203,"../model/MoveBody":213,"../model/NodeAssocPaging":217,"../model/NodeBody1":220,"../model/NodeChildAssocPaging":223,"../model/NodeEntry":225,"../model/NodePaging":229}],166:[function(require,module,exports){ +},{"../ApiClient":167,"../model/AssocChildBody":188,"../model/Error":208,"../model/MoveBody":218,"../model/NodeAssocPaging":222,"../model/NodeBody1":225,"../model/NodeChildAssocPaging":228,"../model/NodeEntry":230,"../model/NodePaging":234}],171:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -43176,10 +44309,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"../model/CommentBody":188,"../model/CommentBody1":189,"../model/CommentEntry":190,"../model/CommentPaging":191,"../model/Error":203}],167:[function(require,module,exports){ +},{"../ApiClient":167,"../model/CommentBody":193,"../model/CommentBody1":194,"../model/CommentEntry":195,"../model/CommentPaging":196,"../model/Error":208}],172:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -43370,10 +44503,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"../model/Error":203,"../model/FavoriteBody":206,"../model/FavoriteEntry":207,"../model/FavoritePaging":208}],168:[function(require,module,exports){ +},{"../ApiClient":167,"../model/Error":208,"../model/FavoriteBody":211,"../model/FavoriteEntry":212,"../model/FavoritePaging":213}],173:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -43447,10 +44580,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"../model/Error":203,"../model/PersonNetworkEntry":242}],169:[function(require,module,exports){ +},{"../ApiClient":167,"../model/Error":208,"../model/PersonNetworkEntry":247}],174:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -43982,10 +45115,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"../model/CopyBody":195,"../model/DeletedNodeEntry":197,"../model/DeletedNodesPaging":200,"../model/Error":203,"../model/MoveBody":213,"../model/NodeBody":219,"../model/NodeBody1":220,"../model/NodeEntry":225,"../model/NodePaging":229}],170:[function(require,module,exports){ +},{"../ApiClient":167,"../model/CopyBody":200,"../model/DeletedNodeEntry":202,"../model/DeletedNodesPaging":205,"../model/Error":208,"../model/MoveBody":218,"../model/NodeBody":224,"../model/NodeBody1":225,"../model/NodeEntry":230,"../model/NodePaging":234}],175:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -44791,10 +45924,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"../model/ActivityPaging":181,"../model/Error":203,"../model/FavoriteBody":206,"../model/FavoriteEntry":207,"../model/FavoritePaging":208,"../model/FavoriteSiteBody":210,"../model/InlineResponse201":211,"../model/PersonEntry":240,"../model/PersonNetworkEntry":242,"../model/PersonNetworkPaging":243,"../model/PreferenceEntry":246,"../model/PreferencePaging":247,"../model/SiteEntry":266,"../model/SiteMembershipBody":272,"../model/SiteMembershipBody1":273,"../model/SiteMembershipRequestEntry":275,"../model/SiteMembershipRequestPaging":276,"../model/SitePaging":278}],171:[function(require,module,exports){ +},{"../ApiClient":167,"../model/ActivityPaging":186,"../model/Error":208,"../model/FavoriteBody":211,"../model/FavoriteEntry":212,"../model/FavoritePaging":213,"../model/FavoriteSiteBody":215,"../model/InlineResponse201":216,"../model/PersonEntry":245,"../model/PersonNetworkEntry":247,"../model/PersonNetworkPaging":248,"../model/PreferenceEntry":251,"../model/PreferencePaging":252,"../model/SiteEntry":271,"../model/SiteMembershipBody":277,"../model/SiteMembershipBody1":278,"../model/SiteMembershipRequestEntry":280,"../model/SiteMembershipRequestPaging":281,"../model/SitePaging":283}],176:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -44879,10 +46012,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"../model/Error":203,"../model/NodePaging":229}],172:[function(require,module,exports){ +},{"../ApiClient":167,"../model/Error":208,"../model/NodePaging":234}],177:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -45071,10 +46204,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"../model/Error":203,"../model/RatingBody":251,"../model/RatingEntry":252,"../model/RatingPaging":253}],173:[function(require,module,exports){ +},{"../ApiClient":167,"../model/Error":208,"../model/RatingBody":256,"../model/RatingEntry":257,"../model/RatingPaging":258}],178:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -45328,10 +46461,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"../model/Error":203,"../model/RenditionBody":256,"../model/RenditionEntry":257,"../model/RenditionPaging":258}],174:[function(require,module,exports){ +},{"../ApiClient":167,"../model/Error":208,"../model/RenditionBody":261,"../model/RenditionEntry":262,"../model/RenditionPaging":263}],179:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -45569,10 +46702,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"../model/EmailSharedLinkBody":202,"../model/Error":203,"../model/NodeSharedLinkEntry":232,"../model/NodeSharedLinkPaging":233,"../model/SharedLinkBody":260}],175:[function(require,module,exports){ +},{"../ApiClient":167,"../model/EmailSharedLinkBody":207,"../model/Error":208,"../model/NodeSharedLinkEntry":237,"../model/NodeSharedLinkPaging":238,"../model/SharedLinkBody":265}],180:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -46019,10 +47152,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"../model/Error":203,"../model/SiteBody":262,"../model/SiteContainerEntry":264,"../model/SiteContainerPaging":265,"../model/SiteEntry":266,"../model/SiteMemberBody":268,"../model/SiteMemberEntry":269,"../model/SiteMemberPaging":270,"../model/SiteMemberRoleBody":271,"../model/SitePaging":278}],176:[function(require,module,exports){ +},{"../ApiClient":167,"../model/Error":208,"../model/SiteBody":267,"../model/SiteContainerEntry":269,"../model/SiteContainerPaging":270,"../model/SiteEntry":271,"../model/SiteMemberBody":273,"../model/SiteMemberEntry":274,"../model/SiteMemberPaging":275,"../model/SiteMemberRoleBody":276,"../model/SitePaging":283}],181:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -46269,10 +47402,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"../model/Error":203,"../model/TagBody":281,"../model/TagBody1":282,"../model/TagEntry":283,"../model/TagPaging":284}],177:[function(require,module,exports){ +},{"../ApiClient":167,"../model/Error":208,"../model/TagBody":286,"../model/TagBody1":287,"../model/TagEntry":288,"../model/TagPaging":289}],182:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (factory) { if (typeof define === 'function' && define.amd) { @@ -46943,10 +48076,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"./ApiClient":162,"./api/AssociationsApi":163,"./api/ChangesApi":164,"./api/ChildAssociationsApi":165,"./api/CommentsApi":166,"./api/FavoritesApi":167,"./api/NetworksApi":168,"./api/NodesApi":169,"./api/PeopleApi":170,"./api/QueriesApi":171,"./api/RatingsApi":172,"./api/RenditionsApi":173,"./api/SharedlinksApi":174,"./api/SitesApi":175,"./api/TagsApi":176,"./model/Activity":178,"./model/ActivityActivitySummary":179,"./model/ActivityEntry":180,"./model/ActivityPaging":181,"./model/ActivityPagingList":182,"./model/AssocChildBody":183,"./model/AssocInfo":184,"./model/AssocTargetBody":185,"./model/ChildAssocInfo":186,"./model/Comment":187,"./model/CommentBody":188,"./model/CommentBody1":189,"./model/CommentEntry":190,"./model/CommentPaging":191,"./model/CommentPagingList":192,"./model/Company":193,"./model/ContentInfo":194,"./model/CopyBody":195,"./model/DeletedNode":196,"./model/DeletedNodeEntry":197,"./model/DeletedNodeMinimal":198,"./model/DeletedNodeMinimalEntry":199,"./model/DeletedNodesPaging":200,"./model/DeletedNodesPagingList":201,"./model/EmailSharedLinkBody":202,"./model/Error":203,"./model/ErrorError":204,"./model/Favorite":205,"./model/FavoriteBody":206,"./model/FavoriteEntry":207,"./model/FavoritePaging":208,"./model/FavoritePagingList":209,"./model/FavoriteSiteBody":210,"./model/InlineResponse201":211,"./model/InlineResponse201Entry":212,"./model/MoveBody":213,"./model/NetworkQuota":214,"./model/NodeAssocMinimal":215,"./model/NodeAssocMinimalEntry":216,"./model/NodeAssocPaging":217,"./model/NodeAssocPagingList":218,"./model/NodeBody":219,"./model/NodeBody1":220,"./model/NodeChildAssocMinimal":221,"./model/NodeChildAssocMinimalEntry":222,"./model/NodeChildAssocPaging":223,"./model/NodeChildAssocPagingList":224,"./model/NodeEntry":225,"./model/NodeFull":226,"./model/NodeMinimal":227,"./model/NodeMinimalEntry":228,"./model/NodePaging":229,"./model/NodePagingList":230,"./model/NodeSharedLink":231,"./model/NodeSharedLinkEntry":232,"./model/NodeSharedLinkPaging":233,"./model/NodeSharedLinkPagingList":234,"./model/NodesnodeIdchildrenContent":235,"./model/Pagination":236,"./model/PathElement":237,"./model/PathInfo":238,"./model/Person":239,"./model/PersonEntry":240,"./model/PersonNetwork":241,"./model/PersonNetworkEntry":242,"./model/PersonNetworkPaging":243,"./model/PersonNetworkPagingList":244,"./model/Preference":245,"./model/PreferenceEntry":246,"./model/PreferencePaging":247,"./model/PreferencePagingList":248,"./model/Rating":249,"./model/RatingAggregate":250,"./model/RatingBody":251,"./model/RatingEntry":252,"./model/RatingPaging":253,"./model/RatingPagingList":254,"./model/Rendition":255,"./model/RenditionBody":256,"./model/RenditionEntry":257,"./model/RenditionPaging":258,"./model/RenditionPagingList":259,"./model/SharedLinkBody":260,"./model/Site":261,"./model/SiteBody":262,"./model/SiteContainer":263,"./model/SiteContainerEntry":264,"./model/SiteContainerPaging":265,"./model/SiteEntry":266,"./model/SiteMember":267,"./model/SiteMemberBody":268,"./model/SiteMemberEntry":269,"./model/SiteMemberPaging":270,"./model/SiteMemberRoleBody":271,"./model/SiteMembershipBody":272,"./model/SiteMembershipBody1":273,"./model/SiteMembershipRequest":274,"./model/SiteMembershipRequestEntry":275,"./model/SiteMembershipRequestPaging":276,"./model/SiteMembershipRequestPagingList":277,"./model/SitePaging":278,"./model/SitePagingList":279,"./model/Tag":280,"./model/TagBody":281,"./model/TagBody1":282,"./model/TagEntry":283,"./model/TagPaging":284,"./model/TagPagingList":285,"./model/UserInfo":286}],178:[function(require,module,exports){ +},{"./ApiClient":167,"./api/AssociationsApi":168,"./api/ChangesApi":169,"./api/ChildAssociationsApi":170,"./api/CommentsApi":171,"./api/FavoritesApi":172,"./api/NetworksApi":173,"./api/NodesApi":174,"./api/PeopleApi":175,"./api/QueriesApi":176,"./api/RatingsApi":177,"./api/RenditionsApi":178,"./api/SharedlinksApi":179,"./api/SitesApi":180,"./api/TagsApi":181,"./model/Activity":183,"./model/ActivityActivitySummary":184,"./model/ActivityEntry":185,"./model/ActivityPaging":186,"./model/ActivityPagingList":187,"./model/AssocChildBody":188,"./model/AssocInfo":189,"./model/AssocTargetBody":190,"./model/ChildAssocInfo":191,"./model/Comment":192,"./model/CommentBody":193,"./model/CommentBody1":194,"./model/CommentEntry":195,"./model/CommentPaging":196,"./model/CommentPagingList":197,"./model/Company":198,"./model/ContentInfo":199,"./model/CopyBody":200,"./model/DeletedNode":201,"./model/DeletedNodeEntry":202,"./model/DeletedNodeMinimal":203,"./model/DeletedNodeMinimalEntry":204,"./model/DeletedNodesPaging":205,"./model/DeletedNodesPagingList":206,"./model/EmailSharedLinkBody":207,"./model/Error":208,"./model/ErrorError":209,"./model/Favorite":210,"./model/FavoriteBody":211,"./model/FavoriteEntry":212,"./model/FavoritePaging":213,"./model/FavoritePagingList":214,"./model/FavoriteSiteBody":215,"./model/InlineResponse201":216,"./model/InlineResponse201Entry":217,"./model/MoveBody":218,"./model/NetworkQuota":219,"./model/NodeAssocMinimal":220,"./model/NodeAssocMinimalEntry":221,"./model/NodeAssocPaging":222,"./model/NodeAssocPagingList":223,"./model/NodeBody":224,"./model/NodeBody1":225,"./model/NodeChildAssocMinimal":226,"./model/NodeChildAssocMinimalEntry":227,"./model/NodeChildAssocPaging":228,"./model/NodeChildAssocPagingList":229,"./model/NodeEntry":230,"./model/NodeFull":231,"./model/NodeMinimal":232,"./model/NodeMinimalEntry":233,"./model/NodePaging":234,"./model/NodePagingList":235,"./model/NodeSharedLink":236,"./model/NodeSharedLinkEntry":237,"./model/NodeSharedLinkPaging":238,"./model/NodeSharedLinkPagingList":239,"./model/NodesnodeIdchildrenContent":240,"./model/Pagination":241,"./model/PathElement":242,"./model/PathInfo":243,"./model/Person":244,"./model/PersonEntry":245,"./model/PersonNetwork":246,"./model/PersonNetworkEntry":247,"./model/PersonNetworkPaging":248,"./model/PersonNetworkPagingList":249,"./model/Preference":250,"./model/PreferenceEntry":251,"./model/PreferencePaging":252,"./model/PreferencePagingList":253,"./model/Rating":254,"./model/RatingAggregate":255,"./model/RatingBody":256,"./model/RatingEntry":257,"./model/RatingPaging":258,"./model/RatingPagingList":259,"./model/Rendition":260,"./model/RenditionBody":261,"./model/RenditionEntry":262,"./model/RenditionPaging":263,"./model/RenditionPagingList":264,"./model/SharedLinkBody":265,"./model/Site":266,"./model/SiteBody":267,"./model/SiteContainer":268,"./model/SiteContainerEntry":269,"./model/SiteContainerPaging":270,"./model/SiteEntry":271,"./model/SiteMember":272,"./model/SiteMemberBody":273,"./model/SiteMemberEntry":274,"./model/SiteMemberPaging":275,"./model/SiteMemberRoleBody":276,"./model/SiteMembershipBody":277,"./model/SiteMembershipBody1":278,"./model/SiteMembershipRequest":279,"./model/SiteMembershipRequestEntry":280,"./model/SiteMembershipRequestPaging":281,"./model/SiteMembershipRequestPagingList":282,"./model/SitePaging":283,"./model/SitePagingList":284,"./model/Tag":285,"./model/TagBody":286,"./model/TagBody1":287,"./model/TagEntry":288,"./model/TagPaging":289,"./model/TagPagingList":290,"./model/UserInfo":291}],183:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -47217,10 +48350,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./ActivityActivitySummary":179}],179:[function(require,module,exports){ +},{"../ApiClient":167,"./ActivityActivitySummary":184}],184:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -47312,10 +48445,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],180:[function(require,module,exports){ +},{"../ApiClient":167}],185:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -47378,10 +48511,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./Activity":178}],181:[function(require,module,exports){ +},{"../ApiClient":167,"./Activity":183}],186:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -47440,10 +48573,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./ActivityPagingList":182}],182:[function(require,module,exports){ +},{"../ApiClient":167,"./ActivityPagingList":187}],187:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -47516,10 +48649,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./ActivityEntry":180,"./Pagination":236}],183:[function(require,module,exports){ +},{"../ApiClient":167,"./ActivityEntry":185,"./Pagination":241}],188:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -47586,10 +48719,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],184:[function(require,module,exports){ +},{"../ApiClient":167}],189:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -47648,10 +48781,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],185:[function(require,module,exports){ +},{"../ApiClient":167}],190:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -47718,10 +48851,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],186:[function(require,module,exports){ +},{"../ApiClient":167}],191:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -47788,10 +48921,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],187:[function(require,module,exports){ +},{"../ApiClient":167}],192:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -47934,10 +49067,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./Person":239}],188:[function(require,module,exports){ +},{"../ApiClient":167,"./Person":244}],193:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -48000,10 +49133,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],189:[function(require,module,exports){ +},{"../ApiClient":167}],194:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -48066,10 +49199,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],190:[function(require,module,exports){ +},{"../ApiClient":167}],195:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -48132,10 +49265,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./Comment":187}],191:[function(require,module,exports){ +},{"../ApiClient":167,"./Comment":192}],196:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -48194,10 +49327,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./CommentPagingList":192}],192:[function(require,module,exports){ +},{"../ApiClient":167,"./CommentPagingList":197}],197:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -48270,10 +49403,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./CommentEntry":190,"./Pagination":236}],193:[function(require,module,exports){ +},{"../ApiClient":167,"./CommentEntry":195,"./Pagination":241}],198:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -48388,10 +49521,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],194:[function(require,module,exports){ +},{"../ApiClient":167}],199:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -48474,10 +49607,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],195:[function(require,module,exports){ +},{"../ApiClient":167}],200:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -48544,10 +49677,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],196:[function(require,module,exports){ +},{"../ApiClient":167}],201:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -48624,10 +49757,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./ContentInfo":194,"./NodeFull":226,"./UserInfo":286}],197:[function(require,module,exports){ +},{"../ApiClient":167,"./ContentInfo":199,"./NodeFull":231,"./UserInfo":291}],202:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -48686,10 +49819,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./DeletedNode":196}],198:[function(require,module,exports){ +},{"../ApiClient":167,"./DeletedNode":201}],203:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -48766,10 +49899,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./ContentInfo":194,"./NodeMinimal":227,"./PathElement":237,"./UserInfo":286}],199:[function(require,module,exports){ +},{"../ApiClient":167,"./ContentInfo":199,"./NodeMinimal":232,"./PathElement":242,"./UserInfo":291}],204:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -48828,10 +49961,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./DeletedNodeMinimal":198}],200:[function(require,module,exports){ +},{"../ApiClient":167,"./DeletedNodeMinimal":203}],205:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -48890,10 +50023,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./DeletedNodesPagingList":201}],201:[function(require,module,exports){ +},{"../ApiClient":167,"./DeletedNodesPagingList":206}],206:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -48960,10 +50093,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./DeletedNodeMinimalEntry":199,"./Pagination":236}],202:[function(require,module,exports){ +},{"../ApiClient":167,"./DeletedNodeMinimalEntry":204,"./Pagination":241}],207:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -49046,10 +50179,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],203:[function(require,module,exports){ +},{"../ApiClient":167}],208:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -49108,10 +50241,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./ErrorError":204}],204:[function(require,module,exports){ +},{"../ApiClient":167,"./ErrorError":209}],209:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -49221,10 +50354,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],205:[function(require,module,exports){ +},{"../ApiClient":167}],210:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -49309,10 +50442,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],206:[function(require,module,exports){ +},{"../ApiClient":167}],211:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -49375,10 +50508,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],207:[function(require,module,exports){ +},{"../ApiClient":167}],212:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -49441,10 +50574,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./Favorite":205}],208:[function(require,module,exports){ +},{"../ApiClient":167,"./Favorite":210}],213:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -49503,10 +50636,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./FavoritePagingList":209}],209:[function(require,module,exports){ +},{"../ApiClient":167,"./FavoritePagingList":214}],214:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -49579,10 +50712,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./FavoriteEntry":207,"./Pagination":236}],210:[function(require,module,exports){ +},{"../ApiClient":167,"./FavoriteEntry":212,"./Pagination":241}],215:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -49641,10 +50774,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],211:[function(require,module,exports){ +},{"../ApiClient":167}],216:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -49703,10 +50836,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./InlineResponse201Entry":212}],212:[function(require,module,exports){ +},{"../ApiClient":167,"./InlineResponse201Entry":217}],217:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -49769,10 +50902,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],213:[function(require,module,exports){ +},{"../ApiClient":167}],218:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -49839,10 +50972,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],214:[function(require,module,exports){ +},{"../ApiClient":167}],219:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -49926,10 +51059,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],215:[function(require,module,exports){ +},{"../ApiClient":167}],220:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -50076,10 +51209,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./AssocInfo":184,"./ContentInfo":194,"./UserInfo":286}],216:[function(require,module,exports){ +},{"../ApiClient":167,"./AssocInfo":189,"./ContentInfo":199,"./UserInfo":291}],221:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -50142,10 +51275,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./NodeAssocMinimal":215}],217:[function(require,module,exports){ +},{"../ApiClient":167,"./NodeAssocMinimal":220}],222:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -50204,10 +51337,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./NodeAssocPagingList":218}],218:[function(require,module,exports){ +},{"../ApiClient":167,"./NodeAssocPagingList":223}],223:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -50274,10 +51407,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./NodeAssocMinimalEntry":216,"./Pagination":236}],219:[function(require,module,exports){ +},{"../ApiClient":167,"./NodeAssocMinimalEntry":221,"./Pagination":241}],224:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -50360,10 +51493,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],220:[function(require,module,exports){ +},{"../ApiClient":167}],225:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -50462,10 +51595,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./NodesnodeIdchildrenContent":235}],221:[function(require,module,exports){ +},{"../ApiClient":167,"./NodesnodeIdchildrenContent":240}],226:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -50612,10 +51745,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./ChildAssocInfo":186,"./ContentInfo":194,"./UserInfo":286}],222:[function(require,module,exports){ +},{"../ApiClient":167,"./ChildAssocInfo":191,"./ContentInfo":199,"./UserInfo":291}],227:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -50678,10 +51811,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./NodeChildAssocMinimal":221}],223:[function(require,module,exports){ +},{"../ApiClient":167,"./NodeChildAssocMinimal":226}],228:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -50740,10 +51873,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./NodeChildAssocPagingList":224}],224:[function(require,module,exports){ +},{"../ApiClient":167,"./NodeChildAssocPagingList":229}],229:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -50810,10 +51943,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./NodeChildAssocMinimalEntry":222,"./Pagination":236}],225:[function(require,module,exports){ +},{"../ApiClient":167,"./NodeChildAssocMinimalEntry":227,"./Pagination":241}],230:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -50876,10 +52009,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./NodeFull":226}],226:[function(require,module,exports){ +},{"../ApiClient":167,"./NodeFull":231}],231:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -51042,10 +52175,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./ContentInfo":194,"./UserInfo":286}],227:[function(require,module,exports){ +},{"../ApiClient":167,"./ContentInfo":199,"./UserInfo":291}],232:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -51195,10 +52328,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./ContentInfo":194,"./PathElement":237,"./UserInfo":286}],228:[function(require,module,exports){ +},{"../ApiClient":167,"./ContentInfo":199,"./PathElement":242,"./UserInfo":291}],233:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -51261,10 +52394,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./NodeMinimal":227}],229:[function(require,module,exports){ +},{"../ApiClient":167,"./NodeMinimal":232}],234:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -51323,10 +52456,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./NodePagingList":230}],230:[function(require,module,exports){ +},{"../ApiClient":167,"./NodePagingList":235}],235:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -51393,10 +52526,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./NodeMinimalEntry":228,"./Pagination":236}],231:[function(require,module,exports){ +},{"../ApiClient":167,"./NodeMinimalEntry":233,"./Pagination":241}],236:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -51511,10 +52644,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./ContentInfo":194,"./UserInfo":286}],232:[function(require,module,exports){ +},{"../ApiClient":167,"./ContentInfo":199,"./UserInfo":291}],237:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -51577,10 +52710,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./NodeSharedLink":231}],233:[function(require,module,exports){ +},{"../ApiClient":167,"./NodeSharedLink":236}],238:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -51639,10 +52772,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./NodeSharedLinkPagingList":234}],234:[function(require,module,exports){ +},{"../ApiClient":167,"./NodeSharedLinkPagingList":239}],239:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -51715,10 +52848,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./NodeSharedLinkEntry":232,"./Pagination":236}],235:[function(require,module,exports){ +},{"../ApiClient":167,"./NodeSharedLinkEntry":237,"./Pagination":241}],240:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -51785,10 +52918,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],236:[function(require,module,exports){ +},{"../ApiClient":167}],241:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -51895,10 +53028,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],237:[function(require,module,exports){ +},{"../ApiClient":167}],242:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -51965,10 +53098,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],238:[function(require,module,exports){ +},{"../ApiClient":167}],243:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -52043,10 +53176,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./PathElement":237}],239:[function(require,module,exports){ +},{"../ApiClient":167,"./PathElement":242}],244:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -52256,10 +53389,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./Company":193}],240:[function(require,module,exports){ +},{"../ApiClient":167,"./Company":198}],245:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -52322,10 +53455,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./Person":239}],241:[function(require,module,exports){ +},{"../ApiClient":167,"./Person":244}],246:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -52467,10 +53600,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./NetworkQuota":214}],242:[function(require,module,exports){ +},{"../ApiClient":167,"./NetworkQuota":219}],247:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -52533,10 +53666,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./PersonNetwork":241}],243:[function(require,module,exports){ +},{"../ApiClient":167,"./PersonNetwork":246}],248:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -52595,10 +53728,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./PersonNetworkPagingList":244}],244:[function(require,module,exports){ +},{"../ApiClient":167,"./PersonNetworkPagingList":249}],249:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -52671,10 +53804,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./Pagination":236,"./PersonNetworkEntry":242}],245:[function(require,module,exports){ +},{"../ApiClient":167,"./Pagination":241,"./PersonNetworkEntry":247}],250:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -52750,10 +53883,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],246:[function(require,module,exports){ +},{"../ApiClient":167}],251:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -52816,10 +53949,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./Preference":245}],247:[function(require,module,exports){ +},{"../ApiClient":167,"./Preference":250}],252:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -52878,10 +54011,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./PreferencePagingList":248}],248:[function(require,module,exports){ +},{"../ApiClient":167,"./PreferencePagingList":253}],253:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -52954,10 +54087,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./Pagination":236,"./PreferenceEntry":246}],249:[function(require,module,exports){ +},{"../ApiClient":167,"./Pagination":241,"./PreferenceEntry":251}],254:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -53046,10 +54179,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./RatingAggregate":250}],250:[function(require,module,exports){ +},{"../ApiClient":167,"./RatingAggregate":255}],255:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -53120,10 +54253,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],251:[function(require,module,exports){ +},{"../ApiClient":167}],256:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -53218,10 +54351,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],252:[function(require,module,exports){ +},{"../ApiClient":167}],257:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -53284,10 +54417,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./Rating":249}],253:[function(require,module,exports){ +},{"../ApiClient":167,"./Rating":254}],258:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -53346,10 +54479,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./RatingPagingList":254}],254:[function(require,module,exports){ +},{"../ApiClient":167,"./RatingPagingList":259}],259:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -53422,10 +54555,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./Pagination":236,"./RatingEntry":252}],255:[function(require,module,exports){ +},{"../ApiClient":167,"./Pagination":241,"./RatingEntry":257}],260:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -53500,10 +54633,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./ContentInfo":194}],256:[function(require,module,exports){ +},{"../ApiClient":167,"./ContentInfo":199}],261:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -53562,10 +54695,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],257:[function(require,module,exports){ +},{"../ApiClient":167}],262:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -53628,10 +54761,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./Rendition":255}],258:[function(require,module,exports){ +},{"../ApiClient":167,"./Rendition":260}],263:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -53690,10 +54823,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./RenditionPagingList":259}],259:[function(require,module,exports){ +},{"../ApiClient":167,"./RenditionPagingList":264}],264:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -53760,10 +54893,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./Pagination":236,"./RenditionEntry":257}],260:[function(require,module,exports){ +},{"../ApiClient":167,"./Pagination":241,"./RenditionEntry":262}],265:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -53822,10 +54955,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],261:[function(require,module,exports){ +},{"../ApiClient":167}],266:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -53960,10 +55093,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],262:[function(require,module,exports){ +},{"../ApiClient":167}],267:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -54079,10 +55212,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],263:[function(require,module,exports){ +},{"../ApiClient":167}],268:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -54155,10 +55288,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],264:[function(require,module,exports){ +},{"../ApiClient":167}],269:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -54221,10 +55354,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./SiteContainer":263}],265:[function(require,module,exports){ +},{"../ApiClient":167,"./SiteContainer":268}],270:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -54283,10 +55416,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./SitePagingList":279}],266:[function(require,module,exports){ +},{"../ApiClient":167,"./SitePagingList":284}],271:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -54349,10 +55482,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./Site":261}],267:[function(require,module,exports){ +},{"../ApiClient":167,"./Site":266}],272:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -54466,10 +55599,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./Person":239}],268:[function(require,module,exports){ +},{"../ApiClient":167,"./Person":244}],273:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -54567,10 +55700,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],269:[function(require,module,exports){ +},{"../ApiClient":167}],274:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -54633,10 +55766,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./SiteMember":267}],270:[function(require,module,exports){ +},{"../ApiClient":167,"./SiteMember":272}],275:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -54695,10 +55828,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./SitePagingList":279}],271:[function(require,module,exports){ +},{"../ApiClient":167,"./SitePagingList":284}],276:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -54788,10 +55921,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],272:[function(require,module,exports){ +},{"../ApiClient":167}],277:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -54866,10 +55999,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],273:[function(require,module,exports){ +},{"../ApiClient":167}],278:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -54928,10 +56061,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],274:[function(require,module,exports){ +},{"../ApiClient":167}],279:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -55014,10 +56147,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./Site":261}],275:[function(require,module,exports){ +},{"../ApiClient":167,"./Site":266}],280:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -55080,10 +56213,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./SiteMembershipRequest":274}],276:[function(require,module,exports){ +},{"../ApiClient":167,"./SiteMembershipRequest":279}],281:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -55142,10 +56275,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./SiteMembershipRequestPagingList":277}],277:[function(require,module,exports){ +},{"../ApiClient":167,"./SiteMembershipRequestPagingList":282}],282:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -55218,10 +56351,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./Pagination":236,"./SiteMembershipRequestEntry":275}],278:[function(require,module,exports){ +},{"../ApiClient":167,"./Pagination":241,"./SiteMembershipRequestEntry":280}],283:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -55280,10 +56413,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./SitePagingList":279}],279:[function(require,module,exports){ +},{"../ApiClient":167,"./SitePagingList":284}],284:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -55346,10 +56479,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./Pagination":236}],280:[function(require,module,exports){ +},{"../ApiClient":167,"./Pagination":241}],285:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -55422,10 +56555,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],281:[function(require,module,exports){ +},{"../ApiClient":167}],286:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -55488,10 +56621,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],282:[function(require,module,exports){ +},{"../ApiClient":167}],287:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -55550,10 +56683,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],283:[function(require,module,exports){ +},{"../ApiClient":167}],288:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -55616,10 +56749,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./Tag":280}],284:[function(require,module,exports){ +},{"../ApiClient":167,"./Tag":285}],289:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -55678,10 +56811,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./TagPagingList":285}],285:[function(require,module,exports){ +},{"../ApiClient":167,"./TagPagingList":290}],290:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -55754,10 +56887,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162,"./Pagination":236,"./TagEntry":283}],286:[function(require,module,exports){ +},{"../ApiClient":167,"./Pagination":241,"./TagEntry":288}],291:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -55824,10 +56957,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../ApiClient":162}],287:[function(require,module,exports){ +},{"../ApiClient":167}],292:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (root, factory) { if (typeof define === 'function' && define.amd) { @@ -56577,10 +57710,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../../alfrescoApiClient":290}],288:[function(require,module,exports){ +},{"../../../alfrescoApiClient":295}],293:[function(require,module,exports){ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (factory) { if (typeof define === 'function' && define.amd) { @@ -56609,7 +57742,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return exports; }); -},{"../../alfrescoApiClient":290,"./api/CustomModelApi":287}],289:[function(require,module,exports){ +},{"../../alfrescoApiClient":295,"./api/CustomModelApi":292}],294:[function(require,module,exports){ 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); @@ -56991,7 +58124,7 @@ module.exports.Activiti = AlfrescoActivitiApi; module.exports.Core = AlfrescoCoreRestApi; module.exports.Auth = AlfrescoAuthRestApi; -},{"./alfresco-activiti-rest-api/src/index":70,"./alfresco-auth-rest-api/src/index":154,"./alfresco-core-rest-api/src/index.js":177,"./alfresco-private-rest-api/src/index.js":288,"./alfrescoContent":291,"./alfrescoNode":292,"./alfrescoUpload":293,"./alfrescoWebScript":294,"./bpmAuth":295,"./bpmClient":296,"./ecmAuth":297,"./ecmClient":298,"./ecmPrivateClient":299,"event-emitter":21,"lodash":23}],290:[function(require,module,exports){ +},{"./alfresco-activiti-rest-api/src/index":71,"./alfresco-auth-rest-api/src/index":159,"./alfresco-core-rest-api/src/index.js":182,"./alfresco-private-rest-api/src/index.js":293,"./alfrescoContent":296,"./alfrescoNode":297,"./alfrescoUpload":298,"./alfrescoWebScript":299,"./bpmAuth":300,"./bpmClient":301,"./ecmAuth":302,"./ecmClient":303,"./ecmPrivateClient":304,"event-emitter":21,"lodash":23}],295:[function(require,module,exports){ 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); @@ -57016,7 +58149,7 @@ var AlfrescoApiClient = function (_ApiClient) { function AlfrescoApiClient(host) { _classCallCheck(this, AlfrescoApiClient); - var _this2 = _possibleConstructorReturn(this, Object.getPrototypeOf(AlfrescoApiClient).call(this)); + var _this2 = _possibleConstructorReturn(this, (AlfrescoApiClient.__proto__ || Object.getPrototypeOf(AlfrescoApiClient)).call(this)); _this2.host = host; Emitter.call(_this2); @@ -57269,7 +58402,7 @@ var AlfrescoApiClient = function (_ApiClient) { Emitter(AlfrescoApiClient.prototype); // jshint ignore:line module.exports = AlfrescoApiClient; -},{"./alfresco-core-rest-api/src/ApiClient":162,"event-emitter":21,"lodash":23,"superagent":25}],291:[function(require,module,exports){ +},{"./alfresco-core-rest-api/src/ApiClient":167,"event-emitter":21,"lodash":23,"superagent":25}],296:[function(require,module,exports){ 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); @@ -57337,7 +58470,7 @@ var AlfrescoContent = function () { module.exports = AlfrescoContent; -},{}],292:[function(require,module,exports){ +},{}],297:[function(require,module,exports){ 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); @@ -57357,7 +58490,7 @@ var AlfrescoNode = function (_AlfrescoCoreRestApi$) { function AlfrescoNode() { _classCallCheck(this, AlfrescoNode); - return _possibleConstructorReturn(this, Object.getPrototypeOf(AlfrescoNode).apply(this, arguments)); + return _possibleConstructorReturn(this, (AlfrescoNode.__proto__ || Object.getPrototypeOf(AlfrescoNode)).apply(this, arguments)); } _createClass(AlfrescoNode, [{ @@ -57450,7 +58583,7 @@ var AlfrescoNode = function (_AlfrescoCoreRestApi$) { module.exports = AlfrescoNode; -},{"./alfresco-core-rest-api/src/index.js":177,"lodash":23}],293:[function(require,module,exports){ +},{"./alfresco-core-rest-api/src/index.js":182,"lodash":23}],298:[function(require,module,exports){ 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); @@ -57471,7 +58604,7 @@ var AlfrescoUpload = function (_AlfrescoCoreRestApi$) { function AlfrescoUpload() { _classCallCheck(this, AlfrescoUpload); - var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(AlfrescoUpload).call(this)); + var _this = _possibleConstructorReturn(this, (AlfrescoUpload.__proto__ || Object.getPrototypeOf(AlfrescoUpload)).call(this)); Emitter.call(_this); return _this; @@ -57548,7 +58681,7 @@ var AlfrescoUpload = function (_AlfrescoCoreRestApi$) { Emitter(AlfrescoUpload.prototype); // jshint ignore:line module.exports = AlfrescoUpload; -},{"./alfresco-core-rest-api/src/index.js":177,"event-emitter":21,"lodash":23}],294:[function(require,module,exports){ +},{"./alfresco-core-rest-api/src/index.js":182,"event-emitter":21,"lodash":23}],299:[function(require,module,exports){ 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); @@ -57612,7 +58745,7 @@ var AlfrescoWebScriptApi = function () { module.exports = AlfrescoWebScriptApi; -},{"./alfresco-core-rest-api/src/ApiClient":162}],295:[function(require,module,exports){ +},{"./alfresco-core-rest-api/src/ApiClient":167}],300:[function(require,module,exports){ (function (Buffer){ 'use strict'; @@ -57636,7 +58769,7 @@ var BpmAuth = function (_AlfrescoApiClient) { function BpmAuth(config) { _classCallCheck(this, BpmAuth); - var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(BpmAuth).call(this)); + var _this = _possibleConstructorReturn(this, (BpmAuth.__proto__ || Object.getPrototypeOf(BpmAuth)).call(this)); _this.config = config; _this.ticket = undefined; @@ -57821,7 +58954,7 @@ Emitter(BpmAuth.prototype); // jshint ignore:line module.exports = BpmAuth; }).call(this,require("buffer").Buffer) -},{"./alfrescoApiClient":290,"buffer":4,"event-emitter":21}],296:[function(require,module,exports){ +},{"./alfrescoApiClient":295,"buffer":4,"event-emitter":21}],301:[function(require,module,exports){ 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); @@ -57844,7 +58977,7 @@ var BpmClient = function (_AlfrescoApiClient) { function BpmClient(host, config) { _classCallCheck(this, BpmClient); - var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(BpmClient).call(this)); + var _this = _possibleConstructorReturn(this, (BpmClient.__proto__ || Object.getPrototypeOf(BpmClient)).call(this)); _this.host = host; _this.config = config; @@ -57884,7 +59017,7 @@ var BpmClient = function (_AlfrescoApiClient) { module.exports = BpmClient; -},{"./alfrescoApiClient":290}],297:[function(require,module,exports){ +},{"./alfrescoApiClient":295}],302:[function(require,module,exports){ 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); @@ -57908,7 +59041,7 @@ var EcmAuth = function (_AlfrescoApiClient) { function EcmAuth(config) { _classCallCheck(this, EcmAuth); - var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(EcmAuth).call(this)); + var _this = _possibleConstructorReturn(this, (EcmAuth.__proto__ || Object.getPrototypeOf(EcmAuth)).call(this)); _this.config = config; @@ -58091,7 +59224,7 @@ var EcmAuth = function (_AlfrescoApiClient) { Emitter(EcmAuth.prototype); // jshint ignore:line module.exports = EcmAuth; -},{"./alfresco-auth-rest-api/src/index":154,"./alfrescoApiClient":290,"event-emitter":21}],298:[function(require,module,exports){ +},{"./alfresco-auth-rest-api/src/index":159,"./alfrescoApiClient":295,"event-emitter":21}],303:[function(require,module,exports){ 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); @@ -58115,7 +59248,7 @@ var EcmClient = function (_AlfrescoApiClient) { function EcmClient(host, contextRoot, config) { _classCallCheck(this, EcmClient); - var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(EcmClient).call(this)); + var _this = _possibleConstructorReturn(this, (EcmClient.__proto__ || Object.getPrototypeOf(EcmClient)).call(this)); _this.host = host; _this.config = config; @@ -58156,7 +59289,7 @@ var EcmClient = function (_AlfrescoApiClient) { module.exports = EcmClient; -},{"./alfrescoApiClient":290}],299:[function(require,module,exports){ +},{"./alfrescoApiClient":295}],304:[function(require,module,exports){ 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); @@ -58180,7 +59313,7 @@ var EcmClient = function (_AlfrescoApiClient) { function EcmClient(host, contextRoot, config) { _classCallCheck(this, EcmClient); - var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(EcmClient).call(this)); + var _this = _possibleConstructorReturn(this, (EcmClient.__proto__ || Object.getPrototypeOf(EcmClient)).call(this)); _this.host = host; _this.contextRoot = contextRoot; @@ -58221,5 +59354,5 @@ var EcmClient = function (_AlfrescoApiClient) { module.exports = EcmClient; -},{"./alfrescoApiClient":290}]},{},[1])(1) +},{"./alfrescoApiClient":295}]},{},[1])(1) }); \ No newline at end of file diff --git a/dist/alfresco-js-api.min.js b/dist/alfresco-js-api.min.js index bab6280019..8d14b43849 100644 --- a/dist/alfresco-js-api.min.js +++ b/dist/alfresco-js-api.min.js @@ -1,25 +1,26 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.AlfrescoApi = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o0)throw new Error("Invalid string. Length must be a multiple of 4");r="="===e[a-2]?2:"="===e[a-1]?1:0,s=new c(3*a/4-r),n=r>0?a-4:a;var p=0;for(t=0,i=0;t>16&255,s[p++]=o>>8&255,s[p++]=255&o;return 2===r?(o=l[e.charCodeAt(t)]<<2|l[e.charCodeAt(t+1)]>>4,s[p++]=255&o):1===r&&(o=l[e.charCodeAt(t)]<<10|l[e.charCodeAt(t+1)]<<4|l[e.charCodeAt(t+2)]>>2,s[p++]=o>>8&255,s[p++]=255&o),s}function r(e){return p[e>>18&63]+p[e>>12&63]+p[e>>6&63]+p[63&e]}function s(e,t,i){for(var n,o=[],s=t;sc?c:l+a));return 1===n?(t=e[i-1],o+=p[t>>2],o+=p[t<<4&63],o+="=="):2===n&&(t=(e[i-2]<<8)+e[i-1],o+=p[t>>10],o+=p[t>>4&63],o+=p[t<<2&63],o+="="),r.push(o),r.join("")}i.toByteArray=o,i.fromByteArray=a;var p=[],l=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array;n()},{}],3:[function(e,t,i){},{}],4:[function(e,t,i){(function(t){"use strict";function n(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}function o(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function r(e,t){if(o()=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function h(e){return+e!=e&&(e=0),s.alloc(+e)}function v(e,t){if(s.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var i=e.length;if(0===i)return 0;for(var n=!1;;)switch(t){case"ascii":case"binary":case"raw":case"raws":return i;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return K(e).length;default:if(n)return z(e).length;t=(""+t).toLowerCase(),n=!0}}function A(e,t,i){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if(i>>>=0,t>>>=0,i<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,i);case"utf8":case"utf-8":return j(this,t,i);case"ascii":return E(this,t,i);case"binary":return k(this,t,i);case"base64":return I(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,i);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function b(e,t,i,n){function o(e,t){return 1===r?e[t]:e.readUInt16BE(t*r)}var r=1,s=e.length,a=t.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;r=2,s/=2,a/=2,i/=2}for(var p=-1,l=i;lo&&(n=o)):n=o;var r=t.length;if(r%2!==0)throw new Error("Invalid hex string");n>r/2&&(n=r/2);for(var s=0;s239?4:r>223?3:r>191?2:1;if(o+a<=i){var p,l,c,u;switch(a){case 1:r<128&&(s=r);break;case 2:p=e[o+1],128===(192&p)&&(u=(31&r)<<6|63&p,u>127&&(s=u));break;case 3:p=e[o+1],l=e[o+2],128===(192&p)&&128===(192&l)&&(u=(15&r)<<12|(63&p)<<6|63&l,u>2047&&(u<55296||u>57343)&&(s=u));break;case 4:p=e[o+1],l=e[o+2],c=e[o+3],128===(192&p)&&128===(192&l)&&128===(192&c)&&(u=(15&r)<<18|(63&p)<<12|(63&l)<<6|63&c,u>65535&&u<1114112&&(s=u))}}null===s?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),o+=a}return O(n)}function O(e){var t=e.length;if(t<=Z)return String.fromCharCode.apply(String,e);for(var i="",n=0;nn)&&(i=n);for(var o="",r=t;ri)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,i,n,o,r){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function _(e,t,i,n){t<0&&(t=65535+t+1);for(var o=0,r=Math.min(e.length-i,2);o>>8*(n?o:1-o)}function D(e,t,i,n){t<0&&(t=4294967295+t+1);for(var o=0,r=Math.min(e.length-i,4);o>>8*(n?o:3-o)&255}function B(e,t,i,n,o,r){if(i+n>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function L(e,t,i,n,o){return o||B(e,t,i,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(e,t,i,n,23,4),i+4}function q(e,t,i,n,o){return o||B(e,t,i,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(e,t,i,n,52,8),i+8}function U(e){if(e=G(e).replace(ee,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function G(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function V(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){t=t||1/0;for(var i,n=e.length,o=null,r=[],s=0;s55295&&i<57344){if(!o){if(i>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&r.push(239,191,189);continue}o=i;continue}if(i<56320){(t-=3)>-1&&r.push(239,191,189),o=i;continue}i=(o-55296<<10|i-56320)+65536}else o&&(t-=3)>-1&&r.push(239,191,189);if(o=null,i<128){if((t-=1)<0)break;r.push(i)}else if(i<2048){if((t-=2)<0)break;r.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;r.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return r}function H(e){for(var t=[],i=0;i>8,o=i%256,r.push(o),r.push(n);return r}function K(e){return J.toByteArray(U(e))}function W(e,t,i,n){for(var o=0;o=t.length||o>=e.length);++o)t[o+i]=e[o];return o}function $(e){return e!==e}var J=e("base64-js"),X=e("ieee754"),Q=e("isarray");i.Buffer=s,i.SlowBuffer=h,i.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:n(),i.kMaxLength=o(),s.poolSize=8192,s._augment=function(e){return e.__proto__=s.prototype,e},s.from=function(e,t,i){return a(null,e,t,i)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(e,t,i){return l(null,e,t,i)},s.allocUnsafe=function(e){return c(null,e)},s.allocUnsafeSlow=function(e){return c(null,e)},s.isBuffer=function(e){return!(null==e||!e._isBuffer)},s.compare=function(e,t){if(!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var i=e.length,n=t.length,o=0,r=Math.min(i,n);o0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},s.prototype.compare=function(e,t,i,n,o){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||i>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=i)return 0;if(n>=o)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,o>>>=0,this===e)return 0;for(var r=o-n,a=i-t,p=Math.min(r,a),l=this.slice(n,o),c=e.slice(t,i),u=0;u2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t>>=0,0===this.length)return-1;if(t>=this.length)return-1;if(t<0&&(t=Math.max(this.length+t,0)),"string"==typeof e&&(e=s.from(e,i)),s.isBuffer(e))return 0===e.length?-1:b(this,e,t,i);if("number"==typeof e)return s.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,t):b(this,[e],t,i);throw new TypeError("val must be string, number or Buffer")},s.prototype.includes=function(e,t,i){return this.indexOf(e,t,i)!==-1},s.prototype.write=function(e,t,i,n){if(void 0===t)n="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)n=t,i=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t=0|t,isFinite(i)?(i=0|i,void 0===n&&(n="utf8")):(n=i,i=void 0)}var o=this.length-t;if((void 0===i||i>o)&&(i=o),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var r=!1;;)switch(n){case"hex":return C(this,e,t,i);case"utf8":case"utf-8":return R(this,e,t,i);case"ascii":return P(this,e,t,i);case"binary":return w(this,e,t,i);case"base64":return T(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,i);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),r=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;s.prototype.slice=function(e,t){var i=this.length;e=~~e,t=void 0===t?i:~~t,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t0&&(o*=256);)n+=this[e+--t]*o;return n},s.prototype.readUInt8=function(e,t){return t||x(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return t||x(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return t||x(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,i){e=0|e,t=0|t,i||x(e,t,this.length);for(var n=this[e],o=1,r=0;++r=o&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,i){e=0|e,t=0|t,i||x(e,t,this.length);for(var n=t,o=1,r=this[e+--n];n>0&&(o*=256);)r+=this[e+--n]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},s.prototype.readInt8=function(e,t){return t||x(e,1,this.length),128&this[e]?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){t||x(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},s.prototype.readInt16BE=function(e,t){t||x(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},s.prototype.readInt32LE=function(e,t){return t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return t||x(e,4,this.length),X.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return t||x(e,4,this.length),X.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return t||x(e,8,this.length),X.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return t||x(e,8,this.length),X.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,i,n){if(e=+e,t=0|t,i=0|i,!n){var o=Math.pow(2,8*i)-1;N(this,e,t,i,o,0)}var r=1,s=0;for(this[t]=255&e;++s=0&&(s*=256);)this[t+r]=e/s&255;return t+i},s.prototype.writeUInt8=function(e,t,i){return e=+e,t=0|t,i||N(this,e,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,i){return e=+e,t=0|t,i||N(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):_(this,e,t,!0),t+2},s.prototype.writeUInt16BE=function(e,t,i){return e=+e,t=0|t,i||N(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):_(this,e,t,!1),t+2},s.prototype.writeUInt32LE=function(e,t,i){return e=+e,t=0|t,i||N(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},s.prototype.writeUInt32BE=function(e,t,i){return e=+e,t=0|t,i||N(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},s.prototype.writeIntLE=function(e,t,i,n){if(e=+e,t=0|t,!n){var o=Math.pow(2,8*i-1);N(this,e,t,i,o-1,-o)}var r=0,s=1,a=0;for(this[t]=255&e;++r>0)-a&255;return t+i},s.prototype.writeIntBE=function(e,t,i,n){if(e=+e,t=0|t,!n){var o=Math.pow(2,8*i-1);N(this,e,t,i,o-1,-o)}var r=i-1,s=1,a=0;for(this[t+r]=255&e;--r>=0&&(s*=256);)e<0&&0===a&&0!==this[t+r+1]&&(a=1),this[t+r]=(e/s>>0)-a&255;return t+i},s.prototype.writeInt8=function(e,t,i){return e=+e,t=0|t,i||N(this,e,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,i){return e=+e,t=0|t,i||N(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):_(this,e,t,!0),t+2},s.prototype.writeInt16BE=function(e,t,i){return e=+e,t=0|t,i||N(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):_(this,e,t,!1),t+2},s.prototype.writeInt32LE=function(e,t,i){return e=+e,t=0|t,i||N(this,e,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},s.prototype.writeInt32BE=function(e,t,i){return e=+e,t=0|t,i||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},s.prototype.writeFloatLE=function(e,t,i){return L(this,e,t,!0,i)},s.prototype.writeFloatBE=function(e,t,i){return L(this,e,t,!1,i)},s.prototype.writeDoubleLE=function(e,t,i){return q(this,e,t,!0,i)},s.prototype.writeDoubleBE=function(e,t,i){return q(this,e,t,!1,i)},s.prototype.copy=function(e,t,i,n){if(i||(i=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--o)e[o+t]=this[o+i];else if(r<1e3||!s.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,i=void 0===i?this.length:i>>>0,e||(e=0);var r;if("number"==typeof e)for(r=t;r-1}},{}],21:[function(e,t,i){"use strict";var n,o,r,s,a,p,l,c=e("d"),u=e("es5-ext/object/valid-callable"),d=Function.prototype.apply,f=Function.prototype.call,y=Object.create,m=Object.defineProperty,h=Object.defineProperties,v=Object.prototype.hasOwnProperty,A={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var i;return u(t),v.call(this,"__ee__")?i=this.__ee__:(i=A.value=y(null),m(this,"__ee__",A),A.value=null),i[e]?"object"==typeof i[e]?i[e].push(t):i[e]=[i[e],t]:i[e]=t,this},o=function(e,t){var i,o;return u(t),o=this,n.call(this,e,i=function(){r.call(o,e,i),d.call(t,this,arguments)}),i.__eeOnceListener__=t,this},r=function(e,t){var i,n,o,r;if(u(t),!v.call(this,"__ee__"))return this;if(i=this.__ee__,!i[e])return this;if(n=i[e],"object"==typeof n)for(r=0;o=n[r];++r)o!==t&&o.__eeOnceListener__!==t||(2===n.length?i[e]=n[r?0:1]:n.splice(r,1));else n!==t&&n.__eeOnceListener__!==t||delete i[e];return this},s=function(e){var t,i,n,o,r;if(v.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(i=arguments.length,r=new Array(i-1),t=1;t>1,c=-7,u=i?o-1:0,d=i?-1:1,f=e[t+u];for(u+=d,r=f&(1<<-c)-1,f>>=-c,c+=a;c>0;r=256*r+e[t+u],u+=d,c-=8);for(s=r&(1<<-c)-1,r>>=-c,c+=n;c>0;s=256*s+e[t+u],u+=d,c-=8);if(0===r)r=1-l;else{if(r===p)return s?NaN:(f?-1:1)*(1/0);s+=Math.pow(2,n),r-=l}return(f?-1:1)*s*Math.pow(2,r-n)},i.write=function(e,t,i,n,o,r){var s,a,p,l=8*r-o-1,c=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:r-1,y=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(p=Math.pow(2,-s))<1&&(s--,p*=2),t+=s+u>=1?d/p:d*Math.pow(2,1-u),t*p>=2&&(s++,p/=2),s+u>=c?(a=0,s=c):s+u>=1?(a=(t*p-1)*Math.pow(2,o),s+=u):(a=t*Math.pow(2,u-1)*Math.pow(2,o),s=0));o>=8;e[i+f]=255&a,f+=y,a/=256,o-=8);for(s=s<0;e[i+f]=255&s,f+=y,s/=256,l-=8);e[i+f-y]|=128*m}},{}],23:[function(t,i,n){(function(t){(function(){function o(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function s(e,t,i){var n=i.length;switch(n){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}function a(e,t,i,n){for(var o=-1,r=e?e.length:0;++o-1}function f(e,t,i){for(var n=-1,o=e?e.length:0;++n-1;);return i}function F(e,t){for(var i=e.length;i--&&C(t,e[i],0)>-1;);return i}function x(e){return e&&e.Object===Object?e:null}function N(e,t){for(var i=e.length,n=0;i--;)e[i]===t&&n++;return n}function _(e){return Ii[e]}function D(e){return ji[e]}function B(e){return"\\"+Ei[e]}function L(e,t){return null==e?X:e[t]}function q(e,t,i){for(var n=e.length,o=t+(i?1:-1);i?o--:++o-1}function Wt(e,t){var i=this.__data__,n=fi(i,e);return n<0?i.push([e,t]):i[n][1]=t,this}function $t(e){var t=-1,i=e?e.length:0;for(this.clear();++t=t?e:t)),e}function Ii(e,t,i,n,o,r,s){var a;if(n&&(a=r?n(e,o,r,s):n(e)),a!==X)return a;if(!va(e))return e;var l=hu(e);if(l){if(a=Ho(e),!t)return io(e,a)}else{var c=Go(e),u=c==xe||c==Ne;if(vu(e))return zn(e,t);if(c==Be||c==Oe||u&&!r){if(U(e))return r?e:{};if(a=Yo(u?{}:e),!t)return oo(e,mi(a,e))}else{if(!Si[c])return r?e:{};a=Ko(e,c,Ii,t)}}s||(s=new oi);var d=s.get(e);if(d)return d;if(s.set(e,a),!l)var f=i?Mo(e):np(e);return p(f||e,function(o,r){f&&(r=o,o=e[r]),di(a,r,Ii(o,t,i,n,r,e,s))}),a}function ji(e){var t=np(e),i=t.length;return function(n){if(null==n)return!i;for(var o=i;o--;){var r=t[o],s=e[r],a=n[r];if(a===X&&!(r in Object(n))||!s(a))return!1}return!0}}function Oi(e){return va(e)?Gl(e):{}}function Ei(e,t,i){if("function"!=typeof e)throw new Rl(ee);return Hl(function(){e.apply(X,i)},t)}function Fi(e,t,i,n){var o=-1,r=d,s=!0,a=e.length,p=[],l=t.length;if(!a)return p;i&&(t=y(t,O(i))),n?(r=f,s=!1):t.length>=Z&&(r=k,s=!1,t=new ti(t));e:for(;++oo?0:o+i),n=n===X||n>o?o:La(n),n<0&&(n+=o),n=i>n?0:qa(n);i0&&i(a)?t>1?Ui(a,t-1,i,n,o):m(o,a):n||(o[o.length]=a)}return o}function Gi(e,t){return e&&wc(e,t,np)}function Vi(e,t){return e&&Tc(e,t,np)}function zi(e,t){return u(t,function(t){return ya(e[t])})}function Hi(e,t){t=Zo(t,e)?[t]:Gn(t);for(var i=0,n=t.length;null!=e&&it}function Wi(e,t){return null!=e&&(Ol.call(e,t)||"object"==typeof e&&t in e&&null===qo(e))}function $i(e,t){return null!=e&&t in Object(e)}function Ji(e,t,i){return e>=Zl(t,i)&&e=120&&c.length>=120)?new ti(s&&c):X}c=e[0];var u=-1,m=a[0];e:for(;++u-1;)a!==e&&zl.call(a,p,1),zl.call(e,p,1);return e}function Cn(e,t){for(var i=e?t.length:0,n=i-1;i--;){var o=t[i];if(i==n||o!==r){var r=o;if(Xo(o))zl.call(e,o,1);else if(Zo(o,e))delete e[cr(o)];else{var s=Gn(o),a=pr(e,s);null!=a&&delete a[cr(kr(s))]}}}return e}function Rn(e,t){return e+Kl(tc()*(t-e+1))}function Pn(e,t,i,n){for(var o=-1,r=Ql(Yl((t-e)/(i||1)),0),s=Array(r);r--;)s[n?r:++o]=e,e+=i;return s}function wn(e,t){var i="";if(!e||t<1||t>Pe)return i;do t%2&&(i+=e),t=Kl(t/2),t&&(e+=e);while(t);return i}function Tn(e,t,i,n){t=Zo(t,e)?[t]:Gn(t);for(var o=-1,r=t.length,s=r-1,a=e;null!=a&&++oo?0:o+t),i=i>o?o:i,i<0&&(i+=o),o=t>i?0:i-t>>>0,t>>>=0;for(var r=Array(o);++n>>1,s=e[r];null!==s&&!Ma(s)&&(i?s<=t:s=Z){var l=t?null:Ic(e);if(l)return H(l);s=!1,o=k,p=new ti}else p=t?[]:a;e:for(;++n=n?e:Sn(e,t,i)}function zn(e,t){if(t)return e.slice();var i=new e.constructor(e.length);return e.copy(i),i}function Hn(e){var t=new e.constructor(e.byteLength);return new Bl(t).set(new Bl(e)),t}function Yn(e,t){var i=t?Hn(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}function Kn(e,t,i){var n=t?i(V(e),!0):V(e);return h(n,o,new e.constructor)}function Wn(e){var t=new e.constructor(e.source,wt.exec(e));return t.lastIndex=e.lastIndex,t}function $n(e,t,i){var n=t?i(H(e),!0):H(e);return h(n,r,new e.constructor)}function Jn(e){return bc?Object(bc.call(e)):{}}function Xn(e,t){var i=t?Hn(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function Qn(e,t){if(e!==t){var i=e!==X,n=null===e,o=e===e,r=Ma(e),s=t!==X,a=null===t,p=t===t,l=Ma(t);if(!a&&!l&&!r&&e>t||r&&s&&p&&!a&&!l||n&&s&&p||!i&&p||!o)return 1;if(!n&&!r&&!l&&e=a)return p;var l=i[n];return p*("desc"==l?-1:1)}}return e.index-t.index}function eo(e,t,i,n){for(var o=-1,r=e.length,s=i.length,a=-1,p=t.length,l=Ql(r-s,0),c=Array(p+l),u=!n;++a1?i[o-1]:X,s=o>2?i[2]:X;for(r=e.length>3&&"function"==typeof r?(o--,r):X,s&&Qo(i[0],i[1],s)&&(r=o<3?X:r,o=1),t=Object(t);++n-1?t[r?r[s]:s]:X}}function ho(e){return Hs(function(t){t=Ui(t,1);var i=t.length,o=i,r=n.prototype.thru;for(e&&t.reverse();o--;){var s=t[o];if("function"!=typeof s)throw new Rl(ee);if(r&&!a&&"wrapper"==xo(s))var a=new n([],(!0))}for(o=a?o:i;++o=Z)return a.plant(n).value();for(var o=0,r=i?t[o].apply(this,e):n;++o1&&A.reverse(),u&&pa))return!1;var l=r.get(e);if(l)return l==t;var c=-1,u=!0,d=o&fe?new ti:X;for(r.set(e,t);++c-1&&e%1==0&&e=this.__values__.length,t=e?X:this.__values__[this.__index__++];return{done:e,value:t}}function ds(){return this}function fs(e){for(var t,n=this;n instanceof i;){var o=dr(n);o.__index__=0,o.__values__=X,t?r.__wrapped__=o:t=o;var r=o;n=n.__wrapped__}return r.__wrapped__=e,t}function ys(){var e=this.__wrapped__;if(e instanceof x){var t=e;return this.__actions__.length&&(t=new x(this)),t=t.reverse(),t.__actions__.push({func:ps,args:[Br],thisArg:X}),new n(t,this.__chain__)}return this.thru(Br)}function ms(){return Dn(this.__wrapped__,this.__actions__)}function hs(e,t,i){var n=hu(e)?c:xi;return i&&Qo(e,t,i)&&(t=X),n(e,_o(t,3))}function vs(e,t){var i=hu(e)?u:Bi;return i(e,_o(t,3))}function As(e,t){return Ui(ws(e,t),1)}function gs(e,t){return Ui(ws(e,t),Re)}function bs(e,t,i){return i=i===X?1:La(i),Ui(ws(e,t),i)}function Cs(e,t){var i=hu(e)?p:Rc;return i(e,_o(t,3))}function Rs(e,t){var i=hu(e)?l:Pc;return i(e,_o(t,3))}function Ps(e,t,i,n){e=oa(e)?e:hp(e),i=i&&!n?La(i):0;var o=e.length;return i<0&&(i=Ql(o+i,0)),ka(e)?i<=o&&e.indexOf(t,i)>-1:!!o&&C(e,t,i)>-1}function ws(e,t){var i=hu(e)?y:ln;return i(e,_o(t,3))}function Ts(e,t,i,n){return null==e?[]:(hu(t)||(t=null==t?[]:[t]),i=n?X:i,hu(i)||(i=null==i?[]:[i]),mn(e,t,i))}function Ss(e,t,i){var n=hu(e)?h:w,o=arguments.length<3;return n(e,_o(t,4),i,o,Rc)}function Is(e,t,i){var n=hu(e)?v:w,o=arguments.length<3;return n(e,_o(t,4),i,o,Pc)}function js(e,t){var i=hu(e)?u:Bi;return t=_o(t,3),i(e,function(e,i,n){return!t(e,i,n)})}function Os(e){var t=oa(e)?e:hp(e),i=t.length;return i>0?t[Rn(0,i-1)]:X}function Es(e,t,i){var n=-1,o=Da(e),r=o.length,s=r-1;for(t=(i?Qo(e,t,i):t===X)?1:gi(La(t),0,r);++n0&&(i=t.apply(this,arguments)),e<=1&&(t=X),i}}function Bs(e,t,i){t=i?X:t;var n=jo(e,se,X,X,X,X,X,t);return n.placeholder=Bs.placeholder,n}function Ls(e,t,i){t=i?X:t;var n=jo(e,ae,X,X,X,X,X,t);return n.placeholder=Ls.placeholder,n}function qs(e,t,i){function n(t){var i=d,n=f;return d=f=X,A=t,m=e.apply(n,i)}function o(e){return A=e,h=Hl(a,t),g?n(e):m}function r(e){var i=e-v,n=e-A,o=t-i;return b?Zl(o,y-n):o}function s(e){var i=e-v,n=e-A;return v===X||i>=t||i<0||b&&n>=y}function a(){var e=xs();return s(e)?p(e):void(h=Hl(a,r(e)))}function p(e){return h=X,C&&d?n(e):(d=f=X,m)}function l(){A=0,d=v=f=h=X}function c(){return h===X?m:p(xs())}function u(){var e=xs(),i=s(e);if(d=arguments,f=this,v=e,i){if(h===X)return o(v);if(b)return h=Hl(a,t),n(v)}return h===X&&(h=Hl(a,t)),m}var d,f,y,m,h,v,A=0,g=!1,b=!1,C=!0;if("function"!=typeof e)throw new Rl(ee);return t=Ua(t)||0,va(i)&&(g=!!i.leading,b="maxWait"in i,y=b?Ql(Ua(i.maxWait)||0,t):y,C="trailing"in i?!!i.trailing:C),u.cancel=l,u.flush=c,u}function Us(e){return jo(e,de)}function Gs(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new Rl(ee);var i=function(){var n=arguments,o=t?t.apply(this,n):n[0],r=i.cache;if(r.has(o))return r.get(o);var s=e.apply(this,n);return i.cache=r.set(o,s),s};return i.cache=new(Gs.Cache||$t),i}function Vs(e){if("function"!=typeof e)throw new Rl(ee);return function(){return!e.apply(this,arguments)}}function zs(e){return Ds(2,e)}function Hs(e,t){if("function"!=typeof e)throw new Rl(ee);return t=Ql(t===X?e.length-1:La(t),0),function(){for(var i=arguments,n=-1,o=Ql(i.length-t,0),r=Array(o);++n-1&&e%1==0&&e<=Pe}function va(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Aa(e){return!!e&&"object"==typeof e}function ga(e){return Aa(e)&&Go(e)==_e}function ba(e,t){return e===t||nn(e,t,Bo(t))}function Ca(e,t,i){return i="function"==typeof i?i:X,nn(e,t,Bo(t),i)}function Ra(e){return Sa(e)&&e!=+e}function Pa(e){if(kc(e))throw new gl("This method is not supported with `core-js`. Try https://github.com/es-shims.");return on(e)}function wa(e){return null===e}function Ta(e){return null==e}function Sa(e){return"number"==typeof e||Aa(e)&&Ml.call(e)==De}function Ia(e){if(!Aa(e)||Ml.call(e)!=Be||U(e))return!1;var t=qo(e);if(null===t)return!0;var i=Ol.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&jl.call(i)==kl}function ja(e){return va(e)&&Ml.call(e)==qe}function Oa(e){return ma(e)&&e>=-Pe&&e<=Pe}function Ea(e){return Aa(e)&&Go(e)==Ue}function ka(e){return"string"==typeof e||!hu(e)&&Aa(e)&&Ml.call(e)==Ge}function Ma(e){return"symbol"==typeof e||Aa(e)&&Ml.call(e)==Ve}function Fa(e){return Aa(e)&&ha(e.length)&&!!Ti[Ml.call(e)]}function xa(e){return e===X}function Na(e){return Aa(e)&&Go(e)==ze}function _a(e){return Aa(e)&&Ml.call(e)==He}function Da(e){if(!e)return[];if(oa(e))return ka(e)?W(e):io(e);if(Ul&&e[Ul])return G(e[Ul]());var t=Go(e),i=t==_e?V:t==Ue?H:hp;return i(e)}function Ba(e){if(!e)return 0===e?e:0;if(e=Ua(e),e===Re||e===-Re){var t=e<0?-1:1;return t*we}return e===e?e:0}function La(e){var t=Ba(e),i=t%1;return t===t?i?t-i:t:0}function qa(e){return e?gi(La(e),0,Se):0}function Ua(e){if("number"==typeof e)return e;if(Ma(e))return Te;if(va(e)){var t=ya(e.valueOf)?e.valueOf():e;e=va(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(At,"");var i=It.test(e);return i||Ot.test(e)?Mi(e.slice(2),i?2:8):St.test(e)?Te:+e}function Ga(e){return no(e,op(e))}function Va(e){return gi(La(e),-Pe,Pe)}function za(e){return null==e?"":Mn(e)}function Ha(e,t){var i=Oi(e);return t?mi(i,t):i}function Ya(e,t){return g(e,_o(t,3),Gi)}function Ka(e,t){return g(e,_o(t,3),Vi)}function Wa(e,t){return null==e?e:wc(e,_o(t,3),op)}function $a(e,t){return null==e?e:Tc(e,_o(t,3),op)}function Ja(e,t){return e&&Gi(e,_o(t,3))}function Xa(e,t){return e&&Vi(e,_o(t,3))}function Qa(e){return null==e?[]:zi(e,np(e))}function Za(e){return null==e?[]:zi(e,op(e))}function ep(e,t,i){var n=null==e?X:Hi(e,t);return n===X?i:n}function tp(e,t){return null!=e&&zo(e,t,Wi)}function ip(e,t){return null!=e&&zo(e,t,$i)}function np(e){var t=nr(e);if(!t&&!oa(e))return sn(e);var i=Wo(e),n=!!i,o=i||[],r=o.length;for(var s in e)!Wi(e,s)||n&&("length"==s||Xo(s,r))||t&&"constructor"==s||o.push(s);return o}function op(e){for(var t=-1,i=nr(e),n=an(e),o=n.length,r=Wo(e),s=!!r,a=r||[],p=a.length;++tt){var n=e;e=t,t=n}if(i||e%1||t%1){var o=tc();return Zl(e+o*(t-e+ki("1e-"+((o+"").length-1))),t)}return Rn(e,t)}function Cp(e){return Vu(za(e).toLowerCase())}function Rp(e){return e=za(e),e&&e.replace(kt,_).replace(Ai,"")}function Pp(e,t,i){e=za(e),t=Mn(t);var n=e.length;return i=i===X?n:gi(La(i),0,n),i-=t.length,i>=0&&e.indexOf(t,i)==i}function wp(e){return e=za(e),e&<.test(e)?e.replace(at,D):e}function Tp(e){return e=za(e),e&&vt.test(e)?e.replace(ht,"\\$&"):e}function Sp(e,t,i){e=za(e),t=La(t);var n=t?K(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return Co(Kl(o),i)+e+Co(Yl(o),i)}function Ip(e,t,i){e=za(e),t=La(t);var n=t?K(e):0;return t&&n>>0)?(e=za(e),e&&("string"==typeof t||null!=t&&!ja(t))&&(t=Mn(t),""==t&&Ci.test(e))?Vn(W(e),0,i):oc.call(e,t,i)):[]}function Fp(e,t,i){return e=za(e),i=gi(La(i),0,e.length),e.lastIndexOf(Mn(t),i)==i}function xp(e,i,n){var o=t.templateSettings;n&&Qo(e,i,n)&&(i=X),e=za(e),i=Ru({},i,o,ci);var r,s,a=Ru({},i.imports,o.imports,ci),p=np(a),l=E(a,p),c=0,u=i.interpolate||Mt,d="__p += '",f=Cl((i.escape||Mt).source+"|"+u.source+"|"+(u===dt?Pt:Mt).source+"|"+(i.evaluate||Mt).source+"|$","g"),y="//# sourceURL="+("sourceURL"in i?i.sourceURL:"lodash.templateSources["+ ++wi+"]")+"\n";e.replace(f,function(t,i,n,o,a,p){return n||(n=o),d+=e.slice(c,p).replace(Ft,B),i&&(r=!0,d+="' +\n__e("+i+") +\n'"),a&&(s=!0,d+="';\n"+a+";\n__p += '"),n&&(d+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=p+t.length,t}),d+="';\n";var m=i.variable;m||(d="with (obj) {\n"+d+"\n}\n"),d=(s?d.replace(nt,""):d).replace(ot,"$1").replace(rt,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var h=zu(function(){return Function(p,y+"return "+d).apply(X,l)});if(h.source=d,da(h))throw h;return h}function Np(e){return za(e).toLowerCase()}function _p(e){return za(e).toUpperCase()}function Dp(e,t,i){if(e=za(e),e&&(i||t===X))return e.replace(At,"");if(!e||!(t=Mn(t)))return e;var n=W(e),o=W(t),r=M(n,o),s=F(n,o)+1;return Vn(n,r,s).join("")}function Bp(e,t,i){if(e=za(e),e&&(i||t===X))return e.replace(bt,"");if(!e||!(t=Mn(t)))return e;var n=W(e),o=F(n,W(t))+1;return Vn(n,0,o).join("")}function Lp(e,t,i){if(e=za(e),e&&(i||t===X))return e.replace(gt,"");if(!e||!(t=Mn(t)))return e;var n=W(e),o=M(n,W(t));return Vn(n,o).join("")}function qp(e,t){var i=me,n=he;if(va(t)){var o="separator"in t?t.separator:o;i="length"in t?La(t.length):i,n="omission"in t?Mn(t.omission):n}e=za(e);var r=e.length;if(Ci.test(e)){var s=W(e);r=s.length}if(i>=r)return e;var a=i-K(n);if(a<1)return n;var p=s?Vn(s,0,a).join(""):e.slice(0,a);if(o===X)return p+n;if(s&&(a+=p.length-a),ja(o)){if(e.slice(a).search(o)){var l,c=p;for(o.global||(o=Cl(o.source,za(wt.exec(o))+"g")),o.lastIndex=0;l=o.exec(c);)var u=l.index;p=p.slice(0,u===X?a:u)}}else if(e.indexOf(Mn(o),a)!=a){var d=p.lastIndexOf(o);d>-1&&(p=p.slice(0,d))}return p+n}function Up(e){return e=za(e),e&&pt.test(e)?e.replace(st,$):e}function Gp(e,t,i){return e=za(e),t=i?X:t,t===X&&(t=Ri.test(e)?bi:Ct),e.match(t)||[]}function Vp(e){var t=e?e.length:0,i=_o();return e=t?y(e,function(e){if("function"!=typeof e[1])throw new Rl(ee);return[i(e[0]),e[1]]}):[],Hs(function(i){for(var n=-1;++nPe)return[];var i=Se,n=Zl(e,Se);t=_o(t),e-=Se;for(var o=I(n,t);++i0){if(++e>=ve)return i}else e=0;return Sc(i,n)}}(),Fc=Gs(function(e){var t=[];return za(e).replace(mt,function(e,i,n,o){t.push(n?o.replace(Rt,"$1"):i||e)}),t}),xc=Hs(function(e,t){return ra(e)?Fi(e,Ui(t,1,ra,!0)):[]}),Nc=Hs(function(e,t){var i=kr(t);return ra(i)&&(i=X),ra(e)?Fi(e,Ui(t,1,ra,!0),_o(i)):[]}),_c=Hs(function(e,t){var i=kr(t);return ra(i)&&(i=X),ra(e)?Fi(e,Ui(t,1,ra,!0),X,i):[]}),Dc=Hs(function(e){var t=y(e,qn);return t.length&&t[0]===e[0]?Xi(t):[]}),Bc=Hs(function(e){var t=kr(e),i=y(e,qn);return t===kr(i)?t=X:i.pop(),i.length&&i[0]===e[0]?Xi(i,_o(t)):[]}),Lc=Hs(function(e){var t=kr(e),i=y(e,qn);return t===kr(i)?t=X:i.pop(),i.length&&i[0]===e[0]?Xi(i,X,t):[]}),qc=Hs(xr),Uc=Hs(function(e,t){t=Ui(t,1);var i=e?e.length:0,n=hi(e,t);return Cn(e,y(t,function(e){return Xo(e,i)?+e:e}).sort(Qn)),n}),Gc=Hs(function(e){return Fn(Ui(e,1,ra,!0))}),Vc=Hs(function(e){var t=kr(e);return ra(t)&&(t=X),Fn(Ui(e,1,ra,!0),_o(t))}),zc=Hs(function(e){var t=kr(e);return ra(t)&&(t=X),Fn(Ui(e,1,ra,!0),X,t)}),Hc=Hs(function(e,t){return ra(e)?Fi(e,t):[]}),Yc=Hs(function(e){return Bn(u(e,ra))}),Kc=Hs(function(e){var t=kr(e);return ra(t)&&(t=X),Bn(u(e,ra),_o(t))}),Wc=Hs(function(e){var t=kr(e);return ra(t)&&(t=X),Bn(u(e,ra),X,t)}),$c=Hs(is),Jc=Hs(function(e){var t=e.length,i=t>1?e[t-1]:X;return i="function"==typeof i?(e.pop(),i):X,ns(e,i)}),Xc=Hs(function(e){e=Ui(e,1);var t=e.length,i=t?e[0]:0,o=this.__wrapped__,r=function(t){return hi(t,e)};return!(t>1||this.__actions__.length)&&o instanceof x&&Xo(i)?(o=o.slice(i,+i+(t?1:0)),o.__actions__.push({func:ps,args:[r],thisArg:X}),new n(o,this.__chain__).thru(function(e){return t&&!e.length&&e.push(X),e})):this.thru(r)}),Qc=ro(function(e,t,i){Ol.call(e,i)?++e[i]:e[i]=1}),Zc=mo(Cr),eu=mo(Rr),tu=ro(function(e,t,i){Ol.call(e,i)?e[i].push(t):e[i]=[t]}),iu=Hs(function(e,t,i){var n=-1,o="function"==typeof t,r=Zo(t),a=oa(e)?Array(e.length):[];return Rc(e,function(e){var p=o?t:r&&null!=e?e[t]:X;a[++n]=p?s(p,e,i):Zi(e,t,i)}),a}),nu=ro(function(e,t,i){e[i]=t}),ou=ro(function(e,t,i){e[i?0:1].push(t)},function(){return[[],[]]}),ru=Hs(function(e,t){if(null==e)return[];var i=t.length;return i>1&&Qo(e,t[0],t[1])?t=[]:i>2&&Qo(t[0],t[1],t[2])&&(t=[t[0]]),t=1==t.length&&hu(t[0])?t[0]:Ui(t,1,Jo),mn(e,t,[])}),su=Hs(function(e,t,i){var n=ne;if(i.length){var o=z(i,No(su));n|=pe}return jo(e,n,t,i,o)}),au=Hs(function(e,t,i){var n=ne|oe;if(i.length){var o=z(i,No(au));n|=pe}return jo(t,n,e,i,o)}),pu=Hs(function(e,t){return Ei(e,1,t)}),lu=Hs(function(e,t,i){return Ei(e,Ua(t)||0,i)});Gs.Cache=$t;var cu=Hs(function(e,t){t=1==t.length&&hu(t[0])?y(t[0],O(_o())):y(Ui(t,1,Jo),O(_o()));var i=t.length;return Hs(function(n){for(var o=-1,r=Zl(n.length,i);++o=t}),hu=Array.isArray,vu=Nl?function(e){return e instanceof Nl}:nl,Au=wo(pn),gu=wo(function(e,t){return e<=t}),bu=so(function(e,t){if(dc||nr(t)||oa(t))return void no(t,np(t),e);for(var i in t)Ol.call(t,i)&&di(e,i,t[i])}),Cu=so(function(e,t){if(dc||nr(t)||oa(t))return void no(t,op(t),e);for(var i in t)di(e,i,t[i])}),Ru=so(function(e,t,i,n){no(t,op(t),e,n)}),Pu=so(function(e,t,i,n){no(t,np(t),e,n)}),wu=Hs(function(e,t){return hi(e,Ui(t,1))}),Tu=Hs(function(e){return e.push(X,ci),s(Ru,X,e)}),Su=Hs(function(e){return e.push(X,ar),s(ku,X,e)}),Iu=Ao(function(e,t,i){e[t]=i},Hp(Yp)),ju=Ao(function(e,t,i){Ol.call(e,t)?e[t].push(i):e[t]=[i]},_o),Ou=Hs(Zi),Eu=so(function(e,t,i){dn(e,t,i)}),ku=so(function(e,t,i,n){dn(e,t,i,n)}),Mu=Hs(function(e,t){return null==e?{}:(t=y(Ui(t,1),cr),hn(e,Fi(Fo(e),t)))}),Fu=Hs(function(e,t){return null==e?{}:hn(e,y(Ui(t,1),cr))}),xu=Io(np),Nu=Io(op),_u=uo(function(e,t,i){return t=t.toLowerCase(),e+(i?Cp(t):t)}),Du=uo(function(e,t,i){return e+(i?"-":"")+t.toLowerCase()}),Bu=uo(function(e,t,i){return e+(i?" ":"")+t.toLowerCase()}),Lu=co("toLowerCase"),qu=uo(function(e,t,i){return e+(i?"_":"")+t.toLowerCase()}),Uu=uo(function(e,t,i){return e+(i?" ":"")+Vu(t)}),Gu=uo(function(e,t,i){return e+(i?" ":"")+t.toUpperCase()}),Vu=co("toUpperCase"),zu=Hs(function(e,t){try{return s(e,X,t)}catch(e){return da(e)?e:new gl(e)}}),Hu=Hs(function(e,t){return p(Ui(t,1),function(t){t=cr(t),e[t]=su(e[t],e)}),e}),Yu=ho(),Ku=ho(!0),Wu=Hs(function(e,t){return function(i){return Zi(i,e,t)}}),$u=Hs(function(e,t){return function(i){return Zi(e,i,t)}}),Ju=bo(y),Xu=bo(c),Qu=bo(A),Zu=Po(),ed=Po(!0),td=go(function(e,t){return e+t}),id=So("ceil"),nd=go(function(e,t){return e/t}),od=So("floor"),rd=go(function(e,t){return e*t}),sd=So("round"),ad=go(function(e,t){return e-t});return t.after=Ns,t.ary=_s,t.assign=bu,t.assignIn=Cu,t.assignInWith=Ru,t.assignWith=Pu,t.at=wu,t.before=Ds,t.bind=su,t.bindAll=Hu,t.bindKey=au,t.castArray=Js,t.chain=ss,t.chunk=fr,t.compact=yr,t.concat=mr,t.cond=Vp,t.conforms=zp,t.constant=Hp,t.countBy=Qc,t.create=Ha,t.curry=Bs,t.curryRight=Ls,t.debounce=qs,t.defaults=Tu,t.defaultsDeep=Su,t.defer=pu,t.delay=lu,t.difference=xc,t.differenceBy=Nc,t.differenceWith=_c,t.drop=hr,t.dropRight=vr,t.dropRightWhile=Ar,t.dropWhile=gr,t.fill=br,t.filter=vs,t.flatMap=As,t.flatMapDeep=gs,t.flatMapDepth=bs,t.flatten=Pr,t.flattenDeep=wr,t.flattenDepth=Tr,t.flip=Us,t.flow=Yu,t.flowRight=Ku,t.fromPairs=Sr,t.functions=Qa,t.functionsIn=Za,t.groupBy=tu,t.initial=Or,t.intersection=Dc,t.intersectionBy=Bc,t.intersectionWith=Lc,t.invert=Iu,t.invertBy=ju,t.invokeMap=iu,t.iteratee=Kp,t.keyBy=nu,t.keys=np,t.keysIn=op,t.map=ws,t.mapKeys=rp,t.mapValues=sp,t.matches=Wp,t.matchesProperty=$p,t.memoize=Gs,t.merge=Eu,t.mergeWith=ku,t.method=Wu,t.methodOf=$u,t.mixin=Jp,t.negate=Vs,t.nthArg=Zp,t.omit=Mu,t.omitBy=ap,t.once=zs,t.orderBy=Ts,t.over=Ju,t.overArgs=cu,t.overEvery=Xu,t.overSome=Qu,t.partial=uu,t.partialRight=du,t.partition=ou,t.pick=Fu,t.pickBy=pp,t.property=el,t.propertyOf=tl,t.pull=qc,t.pullAll=xr,t.pullAllBy=Nr,t.pullAllWith=_r,t.pullAt=Uc,t.range=Zu,t.rangeRight=ed,t.rearg=fu,t.reject=js,t.remove=Dr,t.rest=Hs,t.reverse=Br,t.sampleSize=Es,t.set=cp,t.setWith=up,t.shuffle=ks,t.slice=Lr,t.sortBy=ru,t.sortedUniq=Yr,t.sortedUniqBy=Kr,t.split=Mp,t.spread=Ys,t.tail=Wr,t.take=$r,t.takeRight=Jr,t.takeRightWhile=Xr,t.takeWhile=Qr,t.tap=as,t.throttle=Ks,t.thru=ps,t.toArray=Da,t.toPairs=xu,t.toPairsIn=Nu,t.toPath=pl,t.toPlainObject=Ga,t.transform=dp,t.unary=Ws,t.union=Gc,t.unionBy=Vc,t.unionWith=zc,t.uniq=Zr,t.uniqBy=es,t.uniqWith=ts,t.unset=fp,t.unzip=is,t.unzipWith=ns,t.update=yp,t.updateWith=mp,t.values=hp,t.valuesIn=vp,t.without=Hc,t.words=Gp,t.wrap=$s,t.xor=Yc,t.xorBy=Kc,t.xorWith=Wc,t.zip=$c,t.zipObject=os,t.zipObjectDeep=rs,t.zipWith=Jc,t.entries=xu,t.entriesIn=Nu,t.extend=Cu,t.extendWith=Ru,Jp(t,t),t.add=td,t.attempt=zu,t.camelCase=_u,t.capitalize=Cp,t.ceil=id,t.clamp=Ap,t.clone=Xs,t.cloneDeep=Zs,t.cloneDeepWith=ea,t.cloneWith=Qs,t.deburr=Rp,t.divide=nd,t.endsWith=Pp,t.eq=ta,t.escape=wp,t.escapeRegExp=Tp,t.every=hs,t.find=Zc,t.findIndex=Cr,t.findKey=Ya,t.findLast=eu,t.findLastIndex=Rr,t.findLastKey=Ka,t.floor=od,t.forEach=Cs,t.forEachRight=Rs,t.forIn=Wa,t.forInRight=$a,t.forOwn=Ja,t.forOwnRight=Xa,t.get=ep,t.gt=yu,t.gte=mu,t.has=tp,t.hasIn=ip,t.head=Ir,t.identity=Yp,t.includes=Ps,t.indexOf=jr,t.inRange=gp,t.invoke=Ou,t.isArguments=ia,t.isArray=hu,t.isArrayBuffer=na,t.isArrayLike=oa,t.isArrayLikeObject=ra,t.isBoolean=sa,t.isBuffer=vu,t.isDate=aa,t.isElement=pa,t.isEmpty=la,t.isEqual=ca,t.isEqualWith=ua,t.isError=da,t.isFinite=fa,t.isFunction=ya,t.isInteger=ma,t.isLength=ha,t.isMap=ga,t.isMatch=ba,t.isMatchWith=Ca,t.isNaN=Ra,t.isNative=Pa,t.isNil=Ta,t.isNull=wa,t.isNumber=Sa,t.isObject=va,t.isObjectLike=Aa,t.isPlainObject=Ia,t.isRegExp=ja,t.isSafeInteger=Oa,t.isSet=Ea,t.isString=ka,t.isSymbol=Ma,t.isTypedArray=Fa,t.isUndefined=xa,t.isWeakMap=Na,t.isWeakSet=_a,t.join=Er,t.kebabCase=Du,t.last=kr,t.lastIndexOf=Mr,t.lowerCase=Bu,t.lowerFirst=Lu,t.lt=Au,t.lte=gu,t.max=cl,t.maxBy=ul,t.mean=dl,t.meanBy=fl,t.min=yl,t.minBy=ml,t.stubArray=il,t.stubFalse=nl,t.stubObject=ol,t.stubString=rl,t.stubTrue=sl,t.multiply=rd,t.nth=Fr,t.noConflict=Xp,t.noop=Qp,t.now=xs,t.pad=Sp,t.padEnd=Ip,t.padStart=jp,t.parseInt=Op,t.random=bp,t.reduce=Ss,t.reduceRight=Is,t.repeat=Ep,t.replace=kp,t.result=lp,t.round=sd,t.runInContext=J,t.sample=Os,t.size=Ms,t.snakeCase=qu,t.some=Fs,t.sortedIndex=qr,t.sortedIndexBy=Ur,t.sortedIndexOf=Gr,t.sortedLastIndex=Vr,t.sortedLastIndexBy=zr,t.sortedLastIndexOf=Hr,t.startCase=Uu,t.startsWith=Fp,t.subtract=ad,t.sum=hl,t.sumBy=vl,t.template=xp,t.times=al,t.toFinite=Ba,t.toInteger=La,t.toLength=qa,t.toLower=Np,t.toNumber=Ua,t.toSafeInteger=Va,t.toString=za,t.toUpper=_p,t.trim=Dp,t.trimEnd=Bp,t.trimStart=Lp,t.truncate=qp,t.unescape=Up,t.uniqueId=ll,t.upperCase=Gu,t.upperFirst=Vu,t.each=Cs,t.eachRight=Rs,t.first=Ir,Jp(t,function(){var e={};return Gi(t,function(i,n){Ol.call(t.prototype,n)||(e[n]=i)}),e}(),{chain:!1}),t.VERSION=Q,p(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){t[e].placeholder=t}),p(["drop","take"],function(e,t){x.prototype[e]=function(i){var n=this.__filtered__;if(n&&!t)return new x(this);i=i===X?1:Ql(La(i),0);var o=this.clone();return n?o.__takeCount__=Zl(i,o.__takeCount__):o.__views__.push({size:Zl(i,Se),type:e+(o.__dir__<0?"Right":"")}),o},x.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),p(["filter","map","takeWhile"],function(e,t){var i=t+1,n=i==ge||i==Ce;x.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:_o(e,3),type:i}),t.__filtered__=t.__filtered__||n,t}}),p(["head","last"],function(e,t){var i="take"+(t?"Right":"");x.prototype[e]=function(){return this[i](1).value()[0]}}),p(["initial","tail"],function(e,t){var i="drop"+(t?"":"Right");x.prototype[e]=function(){return this.__filtered__?new x(this):this[i](1)}}),x.prototype.compact=function(){return this.filter(Yp)},x.prototype.find=function(e){return this.filter(e).head()},x.prototype.findLast=function(e){return this.reverse().find(e)},x.prototype.invokeMap=Hs(function(e,t){return"function"==typeof e?new x(this):this.map(function(i){return Zi(i,e,t)})}),x.prototype.reject=function(e){return e=_o(e,3),this.filter(function(t){return!e(t)})},x.prototype.slice=function(e,t){e=La(e);var i=this;return i.__filtered__&&(e>0||t<0)?new x(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==X&&(t=La(t),i=t<0?i.dropRight(-t):i.take(t-e)),i)},x.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},x.prototype.toArray=function(){return this.take(Se)},Gi(x.prototype,function(e,i){var o=/^(?:filter|find|map|reject)|While$/.test(i),r=/^(?:head|last)$/.test(i),s=t[r?"take"+("last"==i?"Right":""):i],a=r||/^find/.test(i);s&&(t.prototype[i]=function(){var i=this.__wrapped__,p=r?[1]:arguments,l=i instanceof x,c=p[0],u=l||hu(i),d=function(e){var i=s.apply(t,m([e],p));return r&&f?i[0]:i};u&&o&&"function"==typeof c&&1!=c.length&&(l=u=!1);var f=this.__chain__,y=!!this.__actions__.length,h=a&&!f,v=l&&!y;if(!a&&u){i=v?i:new x(this);var A=e.apply(i,p);return A.__actions__.push({func:ps,args:[d],thisArg:X}),new n(A,f)}return h&&v?e.apply(this,p):(A=this.thru(d),h?r?A.value()[0]:A.value():A)})}),p(["pop","push","shift","sort","splice","unshift"],function(e){var i=Pl[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);t.prototype[e]=function(){var e=arguments;if(o&&!this.__chain__){var t=this.value();return i.apply(hu(t)?t:[],e)}return this[n](function(t){return i.apply(hu(t)?t:[],e)})}}),Gi(x.prototype,function(e,i){var n=t[i];if(n){var o=n.name+"",r=fc[o]||(fc[o]=[]);r.push({name:i,func:n})}}),fc[vo(X,oe).name]=[{name:"wrapper",func:X}],x.prototype.clone=xt,x.prototype.reverse=Nt,x.prototype.value=_t,t.prototype.at=Xc,t.prototype.chain=ls,t.prototype.commit=cs,t.prototype.next=us,t.prototype.plant=fs,t.prototype.reverse=ys,t.prototype.toJSON=t.prototype.valueOf=t.prototype.value=ms,Ul&&(t.prototype[Ul]=ds),t}var X,Q="4.13.1",Z=200,ee="Expected a function",te="__lodash_hash_undefined__",ie="__lodash_placeholder__",ne=1,oe=2,re=4,se=8,ae=16,pe=32,le=64,ce=128,ue=256,de=512,fe=1,ye=2,me=30,he="...",ve=150,Ae=16,ge=1,be=2,Ce=3,Re=1/0,Pe=9007199254740991,we=1.7976931348623157e308,Te=NaN,Se=4294967295,Ie=Se-1,je=Se>>>1,Oe="[object Arguments]",Ee="[object Array]",ke="[object Boolean]",Me="[object Date]",Fe="[object Error]",xe="[object Function]",Ne="[object GeneratorFunction]",_e="[object Map]",De="[object Number]",Be="[object Object]",Le="[object Promise]",qe="[object RegExp]",Ue="[object Set]",Ge="[object String]",Ve="[object Symbol]",ze="[object WeakMap]",He="[object WeakSet]",Ye="[object ArrayBuffer]",Ke="[object DataView]",We="[object Float32Array]",$e="[object Float64Array]",Je="[object Int8Array]",Xe="[object Int16Array]",Qe="[object Int32Array]",Ze="[object Uint8Array]",et="[object Uint8ClampedArray]",tt="[object Uint16Array]",it="[object Uint32Array]",nt=/\b__p \+= '';/g,ot=/\b(__p \+=) '' \+/g,rt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,st=/&(?:amp|lt|gt|quot|#39|#96);/g,at=/[&<>"'`]/g,pt=RegExp(st.source),lt=RegExp(at.source),ct=/<%-([\s\S]+?)%>/g,ut=/<%([\s\S]+?)%>/g,dt=/<%=([\s\S]+?)%>/g,ft=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yt=/^\w*$/,mt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(\.|\[\])(?:\4|$))/g,ht=/[\\^$.*+?()[\]{}|]/g,vt=RegExp(ht.source),At=/^\s+|\s+$/g,gt=/^\s+/,bt=/\s+$/,Ct=/[a-zA-Z0-9]+/g,Rt=/\\(\\)?/g,Pt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,wt=/\w*$/,Tt=/^0x/i,St=/^[-+]0x[0-9a-f]+$/i,It=/^0b[01]+$/i,jt=/^\[object .+?Constructor\]$/,Ot=/^0o[0-7]+$/i,Et=/^(?:0|[1-9]\d*)$/,kt=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,Mt=/($^)/,Ft=/['\n\r\u2028\u2029\\]/g,xt="\\ud800-\\udfff",Nt="\\u0300-\\u036f\\ufe20-\\ufe23",_t="\\u20d0-\\u20f0",Dt="\\u2700-\\u27bf",Bt="a-z\\xdf-\\xf6\\xf8-\\xff",Lt="\\xac\\xb1\\xd7\\xf7",qt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ut="\\u2000-\\u206f",Gt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Vt="A-Z\\xc0-\\xd6\\xd8-\\xde",zt="\\ufe0e\\ufe0f",Ht=Lt+qt+Ut+Gt,Yt="['’]",Kt="["+xt+"]",Wt="["+Ht+"]",$t="["+Nt+_t+"]",Jt="\\d+",Xt="["+Dt+"]",Qt="["+Bt+"]",Zt="[^"+xt+Ht+Jt+Dt+Bt+Vt+"]",ei="\\ud83c[\\udffb-\\udfff]",ti="(?:"+$t+"|"+ei+")",ii="[^"+xt+"]",ni="(?:\\ud83c[\\udde6-\\uddff]){2}",oi="[\\ud800-\\udbff][\\udc00-\\udfff]",ri="["+Vt+"]",si="\\u200d",ai="(?:"+Qt+"|"+Zt+")",pi="(?:"+ri+"|"+Zt+")",li="(?:"+Yt+"(?:d|ll|m|re|s|t|ve))?",ci="(?:"+Yt+"(?:D|LL|M|RE|S|T|VE))?",ui=ti+"?",di="["+zt+"]?",fi="(?:"+si+"(?:"+[ii,ni,oi].join("|")+")"+di+ui+")*",yi=di+ui+fi,mi="(?:"+[Xt,ni,oi].join("|")+")"+yi,hi="(?:"+[ii+$t+"?",$t,ni,oi,Kt].join("|")+")",vi=RegExp(Yt,"g"),Ai=RegExp($t,"g"),gi=RegExp(ei+"(?="+ei+")|"+hi+yi,"g"),bi=RegExp([ri+"?"+Qt+"+"+li+"(?="+[Wt,ri,"$"].join("|")+")",pi+"+"+ci+"(?="+[Wt,ri+ai,"$"].join("|")+")",ri+"?"+ai+"+"+li,ri+"+"+ci,Jt,mi].join("|"),"g"),Ci=RegExp("["+si+xt+Nt+_t+zt+"]"),Ri=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Pi=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","Reflect","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","isFinite","parseInt","setTimeout"],wi=-1,Ti={};Ti[We]=Ti[$e]=Ti[Je]=Ti[Xe]=Ti[Qe]=Ti[Ze]=Ti[et]=Ti[tt]=Ti[it]=!0,Ti[Oe]=Ti[Ee]=Ti[Ye]=Ti[ke]=Ti[Ke]=Ti[Me]=Ti[Fe]=Ti[xe]=Ti[_e]=Ti[De]=Ti[Be]=Ti[qe]=Ti[Ue]=Ti[Ge]=Ti[ze]=!1;var Si={};Si[Oe]=Si[Ee]=Si[Ye]=Si[Ke]=Si[ke]=Si[Me]=Si[We]=Si[$e]=Si[Je]=Si[Xe]=Si[Qe]=Si[_e]=Si[De]=Si[Be]=Si[qe]=Si[Ue]=Si[Ge]=Si[Ve]=Si[Ze]=Si[et]=Si[tt]=Si[it]=!0,Si[Fe]=Si[xe]=Si[ze]=!1;var Ii={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},ji={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Oi={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},Ei={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ki=parseFloat,Mi=parseInt,Fi="object"==typeof n&&n,xi=Fi&&"object"==typeof i&&i,Ni=xi&&xi.exports===Fi,_i=x("object"==typeof t&&t),Di=x("object"==typeof self&&self),Bi=x("object"==typeof this&&this),Li=_i||Di||Bi||Function("return this")(),qi=J();(Di||{})._=qi,"function"==typeof e&&"object"==typeof e.amd&&e.amd?e(function(){return qi}):xi?((xi.exports=qi)._=qi,Fi._=qi):Li._=qi}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],24:[function(e,t,i){t.exports=function(e,t,i){for(var n=0,o=e.length,r=3==arguments.length?i:e[n++];n=200&&t.status<300)return i.callback(e,t);var n=new Error(t.statusText||"Unsuccessful HTTP response");n.original=e,n.response=t,n.status=t.status,i.callback(n,t)})}function m(e,t){return"function"==typeof t?new y("GET",e).end(t):1==arguments.length?new y("GET",e):new y(e,t)}function h(e,t){var i=m("DELETE",e);return t&&i.end(t),i}var v,A=e("emitter"),g=e("reduce");v="undefined"!=typeof window?window:"undefined"!=typeof self?self:this,m.getXHR=function(){if(!(!v.XMLHttpRequest||v.location&&"file:"==v.location.protocol&&v.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}return!1};var b="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};m.serializeObject=s,m.parseString=p,m.types={html:"text/html",json:"application/json",xml:"application/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},m.serialize={"application/x-www-form-urlencoded":s,"application/json":JSON.stringify},m.parse={"application/x-www-form-urlencoded":p,"application/json":JSON.parse},f.prototype.get=function(e){return this.header[e.toLowerCase()]},f.prototype.setHeaderProperties=function(e){var t=this.header["content-type"]||"";this.type=u(t);var i=d(t);for(var n in i)this[n]=i[n]},f.prototype.parseBody=function(e){var t=m.parse[this.type];return t&&e&&(e.length||e instanceof Object)?t(e):null},f.prototype.setStatusProperties=function(e){1223===e&&(e=204);var t=e/100|0;this.status=this.statusCode=e,this.statusType=t,this.info=1==t,this.ok=2==t,this.clientError=4==t,this.serverError=5==t,this.error=(4==t||5==t)&&this.toError(),this.accepted=202==e,this.noContent=204==e,this.badRequest=400==e,this.unauthorized=401==e,this.notAcceptable=406==e,this.notFound=404==e,this.forbidden=403==e},f.prototype.toError=function(){var e=this.req,t=e.method,i=e.url,n="cannot "+t+" "+i+" ("+this.status+")",o=new Error(n);return o.status=this.status,o.method=t,o.url=i,o},m.Response=f,A(y.prototype),y.prototype.use=function(e){return e(this),this},y.prototype.timeout=function(e){return this._timeout=e,this},y.prototype.clearTimeout=function(){return this._timeout=0,clearTimeout(this._timer),this},y.prototype.abort=function(){if(!this.aborted)return this.aborted=!0,this.xhr.abort(),this.clearTimeout(),this.emit("abort"),this},y.prototype.set=function(e,t){if(r(e)){for(var i in e)this.set(i,e[i]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},y.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},y.prototype.getHeader=function(e){return this._header[e.toLowerCase()]},y.prototype.type=function(e){return this.set("Content-Type",m.types[e]||e),this},y.prototype.parse=function(e){return this._parser=e,this},y.prototype.accept=function(e){return this.set("Accept",m.types[e]||e),this},y.prototype.auth=function(e,t){var i=btoa(e+":"+t);return this.set("Authorization","Basic "+i),this},y.prototype.query=function(e){return"string"!=typeof e&&(e=s(e)),e&&this._query.push(e),this},y.prototype.field=function(e,t){return this._formData||(this._formData=new v.FormData),this._formData.append(e,t),this},y.prototype.attach=function(e,t,i){return this._formData||(this._formData=new v.FormData),this._formData.append(e,t,i||t.name),this},y.prototype.send=function(e){var t=r(e),i=this.getHeader("Content-Type");if(t&&r(this._data))for(var n in e)this._data[n]=e[n];else"string"==typeof e?(i||this.type("form"),i=this.getHeader("Content-Type"),"application/x-www-form-urlencoded"==i?this._data=this._data?this._data+"&"+e:e:this._data=(this._data||"")+e):this._data=e;return!t||o(e)?this:(i||this.type("json"),this)},y.prototype.callback=function(e,t){var i=this._callback;this.clearTimeout(),i(e,t)},y.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},y.prototype.timeoutError=function(){var e=this._timeout,t=new Error("timeout of "+e+"ms exceeded");t.timeout=e,this.callback(t)},y.prototype.withCredentials=function(){return this._withCredentials=!0,this},y.prototype.end=function(e){var t=this,i=this.xhr=m.getXHR(),r=this._query.join("&"),s=this._timeout,a=this._formData||this._data;this._callback=e||n,i.onreadystatechange=function(){if(4==i.readyState){var e;try{e=i.status}catch(t){e=0}if(0==e){if(t.timedout)return t.timeoutError();if(t.aborted)return;return t.crossDomainError()}t.emit("end")}};var p=function(e){e.total>0&&(e.percent=e.loaded/e.total*100),e.direction="download",t.emit("progress",e)};this.hasListeners("progress")&&(i.onprogress=p);try{i.upload&&this.hasListeners("progress")&&(i.upload.onprogress=p)}catch(e){}if(s&&!this._timer&&(this._timer=setTimeout(function(){t.timedout=!0,t.abort()},s)),r&&(r=m.serializeObject(r),this.url+=~this.url.indexOf("?")?"&"+r:"?"+r),i.open(this.method,this.url,!0),this._withCredentials&&(i.withCredentials=!0),"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof a&&!o(a)){var l=this.getHeader("Content-Type"),u=this._parser||m.serialize[l?l.split(";")[0]:""];!u&&c(l)&&(u=m.serialize["application/json"]),u&&(a=u(a))}for(var d in this.header)null!=this.header[d]&&i.setRequestHeader(d,this.header[d]);return this.emit("request",this),i.send("undefined"!=typeof a?a:null),this},y.prototype.then=function(e,t){return this.end(function(i,n){i?t(i):e(n)})},m.Request=y,m.get=function(e,t,i){var n=m("GET",e);return"function"==typeof t&&(i=t,t=null),t&&n.query(t),i&&n.end(i),n},m.head=function(e,t,i){var n=m("HEAD",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},m.del=h,m.delete=h,m.patch=function(e,t,i){var n=m("PATCH",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},m.post=function(e,t,i){var n=m("POST",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},m.put=function(e,t,i){var n=m("PUT",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},t.exports=m},{emitter:6,reduce:24}],26:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AboutApi=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(t){this.apiClient=t||e.instance,this.getAppVersion=function(){var e=null,t={},i={},n={},o={},r=[],s=["application/json"],a=["application/json"],p={String:"String"};return this.apiClient.callApi("/api/enterprise/app-version","GET",t,i,n,o,e,r,s,a,p)}};return t})},{"../../../alfrescoApiClient":290}],27:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/CreateEndpointBasicAuthRepresentation","../model/EndpointBasicAuthRepresentation","../model/EndpointConfigurationRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/CreateEndpointBasicAuthRepresentation"),t("../model/EndpointBasicAuthRepresentation"),t("../model/EndpointConfigurationRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AdminEndpointsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.CreateEndpointBasicAuthRepresentation,n.ActivitiPublicRestApi.EndpointBasicAuthRepresentation,n.ActivitiPublicRestApi.EndpointConfigurationRepresentation))}(void 0,function(e,t,i,n){var o=function(t){this.apiClient=t||e.instance,this.createBasicAuthConfiguration=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'createRepresentation' when calling createBasicAuthConfiguration";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/admin/basic-auths","POST",n,o,r,s,t,a,p,l,c)},this.createEndpointConfiguration=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'representation' when calling createEndpointConfiguration";var i={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/admin/endpoints","POST",i,o,r,s,t,a,p,l,c)},this.getBasicAuthConfiguration=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'basicAuthId' when calling getBasicAuthConfiguration";if(void 0==t||null==t)throw"Missing the required parameter 'tenantId' when calling getBasicAuthConfiguration";var o={basicAuthId:e},r={tenantId:t},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/admin/basic-auths/{basicAuthId}","GET",o,r,s,a,n,p,l,c,u)},this.getBasicAuthConfigurations=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling getBasicAuthConfigurations";var n={},o={tenantId:e},r={},s={},a=[],p=["application/json"],l=["application/json"],c=[i];return this.apiClient.callApi("/api/enterprise/admin/basic-auths","GET",n,o,r,s,t,a,p,l,c)},this.getEndpointConfiguration=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'endpointConfigurationId' when calling getEndpointConfiguration";if(void 0==t||null==t)throw"Missing the required parameter 'tenantId' when calling getEndpointConfiguration";var o={endpointConfigurationId:e},r={tenantId:t},s={},a={},p=[],l=["application/json"],c=["application/json"],u=n;return this.apiClient.callApi("/api/enterprise/admin/endpoints/{endpointConfigurationId}","GET",o,r,s,a,i,p,l,c,u)},this.getEndpointConfigurations=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling getEndpointConfigurations";var i={},o={tenantId:e},r={},s={},a=[],p=["application/json"],l=["application/json"],c=[n];return this.apiClient.callApi("/api/enterprise/admin/endpoints","GET",i,o,r,s,t,a,p,l,c)},this.removeBasicAuthonfiguration=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'basicAuthId' when calling removeBasicAuthonfiguration";if(void 0==t||null==t)throw"Missing the required parameter 'tenantId' when calling removeBasicAuthonfiguration";var n={basicAuthId:e},o={tenantId:t},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/basic-auths/{basicAuthId}","DELETE",n,o,r,s,i,a,p,l,c)},this.removeEndpointConfiguration=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'endpointConfigurationId' when calling removeEndpointConfiguration";if(void 0==t||null==t)throw"Missing the required parameter 'tenantId' when calling removeEndpointConfiguration";var n={endpointConfigurationId:e},o={tenantId:t},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/endpoints/{endpointConfigurationId}","DELETE",n,o,r,s,i,a,p,l,c)},this.updateBasicAuthConfiguration=function(e,t){var n=t;if(void 0==e||null==e)throw"Missing the required parameter 'basicAuthId' when calling updateBasicAuthConfiguration";if(void 0==t||null==t)throw"Missing the required parameter 'createRepresentation' when calling updateBasicAuthConfiguration";var o={basicAuthId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/admin/basic-auths/{basicAuthId}","PUT",o,r,s,a,n,p,l,c,u)},this.updateEndpointConfiguration=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'endpointConfigurationId' when calling updateEndpointConfiguration";if(void 0==t||null==t)throw"Missing the required parameter 'representation' when calling updateEndpointConfiguration";var o={endpointConfigurationId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=n;return this.apiClient.callApi("/api/enterprise/admin/endpoints/{endpointConfigurationId}","PUT",o,r,s,a,i,p,l,c,u)}};return o})},{"../../../alfrescoApiClient":290,"../model/CreateEndpointBasicAuthRepresentation":88,"../model/EndpointBasicAuthRepresentation":91,"../model/EndpointConfigurationRepresentation":92}],28:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/AddGroupCapabilitiesRepresentation","../model/GroupRepresentation","../model/ResultListDataRepresentation","../model/AbstractGroupRepresentation","../model/LightGroupRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/AddGroupCapabilitiesRepresentation"),t("../model/GroupRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/AbstractGroupRepresentation"),t("../model/LightGroupRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AdminGroupsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.AddGroupCapabilitiesRepresentation,n.ActivitiPublicRestApi.GroupRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.AbstractGroupRepresentation,n.ActivitiPublicRestApi.LightGroupRepresentation))}(void 0,function(e,t,i,n,o,r){var s=function(t){this.apiClient=t||e.instance,this.activate=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling activate";var i={groupId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/action/activate","POST",i,n,o,r,t,s,a,p,l)},this.addAllUsersToGroup=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling addAllUsersToGroup";var i={groupId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/add-all-users","POST",i,n,o,r,t,s,a,p,l)},this.addGroupCapabilities=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling addGroupCapabilities";if(void 0==t||null==t)throw"Missing the required parameter 'addGroupCapabilitiesRepresentation' when calling addGroupCapabilities";var n={groupId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/capabilities","POST",n,o,r,s,i,a,p,l,c)},this.addGroupMember=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling addGroupMember";if(void 0==t||null==t)throw"Missing the required parameter 'userId' when calling addGroupMember";var n={groupId:e,userId:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/members/{userId}","POST",n,o,r,s,i,a,p,l,c)},this.addRelatedGroup=function(e,t,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling addRelatedGroup";if(void 0==t||null==t)throw"Missing the required parameter 'relatedGroupId' when calling addRelatedGroup";if(void 0==i||null==i)throw"Missing the required parameter 'type' when calling addRelatedGroup";var o={groupId:e,relatedGroupId:t},r={type:i},s={},a={},p=[],l=["application/json"],c=["application/json"],u=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/related-groups/{relatedGroupId}","POST",o,r,s,a,n,p,l,c,u)},this.createNewGroup=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'groupRepresentation' when calling createNewGroup";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/admin/groups","POST",n,o,r,s,t,a,p,l,c)},this.deleteGroupCapability=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling deleteGroupCapability";if(void 0==t||null==t)throw"Missing the required parameter 'groupCapabilityId' when calling deleteGroupCapability";var n={groupId:e,groupCapabilityId:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/capabilities/{groupCapabilityId}","DELETE",n,o,r,s,i,a,p,l,c)},this.deleteGroupMember=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling deleteGroupMember";if(void 0==t||null==t)throw"Missing the required parameter 'userId' when calling deleteGroupMember";var n={groupId:e,userId:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/members/{userId}","DELETE",n,o,r,s,i,a,p,l,c)},this.deleteGroup=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling deleteGroup";var i={groupId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}","DELETE",i,n,o,r,t,s,a,p,l)},this.deleteRelatedGroup=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling deleteRelatedGroup";if(void 0==t||null==t)throw"Missing the required parameter 'relatedGroupId' when calling deleteRelatedGroup";var n={groupId:e,relatedGroupId:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/related-groups/{relatedGroupId}","DELETE",n,o,r,s,i,a,p,l,c)},this.getCapabilities=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling getCapabilities";var i={groupId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=["String"];return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/potential-capabilities","GET",i,n,o,r,t,s,a,p,l)},this.getGroupUsers=function(e,t){t=t||{};var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling getGroupUsers";var o={groupId:e},r={filter:t.filter,page:t.page,pageSize:t.pageSize},s={},a={},p=[],l=["application/json"],c=["application/json"],u=n;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/users","GET",o,r,s,a,i,p,l,c,u)},this.getGroup=function(e,t){t=t||{};var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling getGroup";var n={groupId:e},r={includeAllUsers:t.includeAllUsers,summary:t.summary},s={},a={},p=[],l=["application/json"],c=["application/json"],u=o;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}","GET",n,r,s,a,i,p,l,c,u)},this.getGroups=function(e){e=e||{};var t=null,i={},n={tenantId:e.tenantId,functional:e.functional,summary:e.summary},o={},s={},a=[],p=["application/json"],l=["application/json"],c=[r];return this.apiClient.callApi("/api/enterprise/admin/groups","GET",i,n,o,s,t,a,p,l,c)},this.getRelatedGroups=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling getRelatedGroups";var i={groupId:e},n={},o={},s={},a=[],p=["application/json"],l=["application/json"],c=[r];return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/related-groups","GET",i,n,o,s,t,a,p,l,c)},this.updateGroup=function(e,t){var n=t;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling updateGroup";if(void 0==t||null==t)throw"Missing the required parameter 'groupRepresentation' when calling updateGroup";var o={groupId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}","PUT",o,r,s,a,n,p,l,c,u)}};return s})},{"../../../alfrescoApiClient":290,"../model/AbstractGroupRepresentation":71,"../model/AddGroupCapabilitiesRepresentation":74,"../model/GroupRepresentation":107,"../model/LightGroupRepresentation":111,"../model/ResultListDataRepresentation":133}],29:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/LightTenantRepresentation","../model/CreateTenantRepresentation","../model/TenantEvent","../model/TenantRepresentation","../model/ImageUploadRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/LightTenantRepresentation"),t("../model/CreateTenantRepresentation"),t("../model/TenantEvent"),t("../model/TenantRepresentation"),t("../model/ImageUploadRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AdminTenantsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.LightTenantRepresentation,n.ActivitiPublicRestApi.CreateTenantRepresentation,n.ActivitiPublicRestApi.TenantEvent,n.ActivitiPublicRestApi.TenantRepresentation,n.ActivitiPublicRestApi.ImageUploadRepresentation))}(void 0,function(e,t,i,n,o,r){var s=function(i){this.apiClient=i||e.instance,this.createTenant=function(e){var i=e;if(void 0==e||null==e)throw"Missing the required parameter 'createTenantRepresentation' when calling createTenant";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/admin/tenants","POST",n,o,r,s,i,a,p,l,c)},this.deleteTenant=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling deleteTenant";var i={tenantId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/admin/tenants/{tenantId}","DELETE",i,n,o,r,t,s,a,p,l)},this.getTenantEvents=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling getTenantEvents";var i={tenantId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=[n];return this.apiClient.callApi("/api/enterprise/admin/tenants/{tenantId}/events","GET",i,o,r,s,t,a,p,l,c)},this.getTenantLogo=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling getTenantLogo";var i={tenantId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/admin/tenants/{tenantId}/logo","GET",i,n,o,r,t,s,a,p,l)},this.getTenant=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling getTenant";var i={tenantId:e},n={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=o;return this.apiClient.callApi("/api/enterprise/admin/tenants/{tenantId}","GET",i,n,r,s,t,a,p,l,c)},this.getTenants=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=[t];return this.apiClient.callApi("/api/enterprise/admin/tenants","GET",i,n,o,r,e,s,a,p,l)},this.update=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling update";if(void 0==t||null==t)throw"Missing the required parameter 'createTenantRepresentation' when calling update";var n={tenantId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=o;return this.apiClient.callApi("/api/enterprise/admin/tenants/{tenantId}","PUT",n,r,s,a,i,p,l,c,u)},this.uploadTenantLogo=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling uploadTenantLogo";if(void 0==t||null==t)throw"Missing the required parameter 'file' when calling uploadTenantLogo";var n={tenantId:e},o={},s={},a={file:t},p=[],l=["multipart/form-data"],c=["application/json"],u=r;return this.apiClient.callApi("/api/enterprise/admin/tenants/{tenantId}/logo","POST",n,o,s,a,i,p,l,c,u)}};return s})},{"../../../alfrescoApiClient":290,"../model/CreateTenantRepresentation":90,"../model/ImageUploadRepresentation":108,"../model/LightTenantRepresentation":112,"../model/TenantEvent":143,"../model/TenantRepresentation":144}],30:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/BulkUserUpdateRepresentation","../model/UserRepresentation","../model/AbstractUserRepresentation","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/BulkUserUpdateRepresentation"),t("../model/UserRepresentation"),t("../model/AbstractUserRepresentation"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AdminUsersApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.BulkUserUpdateRepresentation,n.ActivitiPublicRestApi.UserRepresentation,n.ActivitiPublicRestApi.AbstractUserRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t,i,n,o){var r=function(t){this.apiClient=t||e.instance,this.bulkUpdateUsers=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'update' when calling bulkUpdateUsers";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/admin/users","PUT",i,n,o,r,t,s,a,p,l)},this.createNewUser=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'userRepresentation' when calling createNewUser";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/admin/users","POST",n,o,r,s,t,a,p,l,c)},this.getUser=function(e,t){t=t||{};var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling getUser";var o={userId:e},r={summary:t.summary},s={},a={},p=[],l=["application/json"],c=["application/json"],u=n;return this.apiClient.callApi("/api/enterprise/admin/users/{userId}","GET",o,r,s,a,i,p,l,c,u)},this.getUsers=function(e){e=e||{};var t=null,i={},n={filter:e.filter,status:e.status,accountType:e.accountType,sort:e.sort,company:e.company,start:e.start,page:e.page,size:e.size,groupId:e.groupId,tenantId:e.tenantId,summary:e.summary},r={},s={},a=[],p=["application/json"],l=["application/json"],c=o;return this.apiClient.callApi("/api/enterprise/admin/users","GET",i,n,r,s,t,a,p,l,c)},this.updateUserDetails=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling updateUserDetails";if(void 0==t||null==t)throw"Missing the required parameter 'userRepresentation' when calling updateUserDetails";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/users/{userId}","PUT",n,o,r,s,i,a,p,l,c)}};return r})},{"../../../alfrescoApiClient":290,"../model/AbstractUserRepresentation":73,"../model/BulkUserUpdateRepresentation":82,"../model/ResultListDataRepresentation":133,"../model/UserRepresentation":149}],31:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AlfrescoApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.getAllNetworks=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks","GET",i,n,o,r,e,s,a,p,l)},this.getAllSites=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getAllSites";var n={networkId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/sites","GET",n,o,r,s,i,a,p,l,c)},this.getAllSites=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getAllSites";var n={repositoryId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/sites","GET",n,o,r,s,i,a,p,l,c)},this.getContentInFolder=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getContentInFolder";if(void 0==i||null==i)throw"Missing the required parameter 'folderId' when calling getContentInFolder";var o={networkId:e,folderId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/folders/{folderId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInFolder=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getContentInFolder";if(void 0==i||null==i)throw"Missing the required parameter 'folderId' when calling getContentInFolder";var o={repositoryId:e,folderId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/folders/{folderId}/content","GET",o,r,s,a,n,p,l,c,u); -},this.getContentInSite=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getContentInSite";if(void 0==i||null==i)throw"Missing the required parameter 'siteId' when calling getContentInSite";var o={networkId:e,siteId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/sites/{siteId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInSite=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getContentInSite";if(void 0==i||null==i)throw"Missing the required parameter 'siteId' when calling getContentInSite";var o={repositoryId:e,siteId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/sites/{siteId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getRepositories=function(e){e=e||{};var i=null,n={},o={tenantId:e.tenantId,includeAccounts:e.includeAccounts},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/profile/accounts/alfresco","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":290,"../model/ResultListDataRepresentation":133}],32:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/RuntimeAppDefinitionSaveRepresentation","../model/ResultListDataRepresentation","../model/AppDefinitionRepresentation","../model/AppDefinitionPublishRepresentation","../model/AppDefinitionUpdateResultRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/RuntimeAppDefinitionSaveRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/AppDefinitionRepresentation"),t("../model/AppDefinitionPublishRepresentation"),t("../model/AppDefinitionUpdateResultRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.RuntimeAppDefinitionSaveRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.AppDefinitionRepresentation,n.ActivitiPublicRestApi.AppDefinitionPublishRepresentation,n.ActivitiPublicRestApi.AppDefinitionUpdateResultRepresentation))}(void 0,function(e,t,i,n,o,r){var s=function(t){this.apiClient=t||e.instance,this.deployAppDefinitions=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'saveObject' when calling deployAppDefinitions";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/runtime-app-definitions","POST",i,n,o,r,t,s,a,p,l)},this.exportAppDefinition=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling exportAppDefinition";var i={modelId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/app-definitions/{modelId}/export","GET",i,n,o,r,t,s,a,p,l)},this.getAppDefinitions=function(){var e=null,t={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=i;return this.apiClient.callApi("/api/enterprise/runtime-app-definitions","GET",t,n,o,r,e,s,a,p,l)},this.importAppDefinition=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'file' when calling importAppDefinition";var i={},o={},r={},s={file:e},a=[],p=["multipart/form-data"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/app-definitions/import","POST",i,o,r,s,t,a,p,l,c)},this.importAppDefinition=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling importAppDefinition";if(void 0==t||null==t)throw"Missing the required parameter 'file' when calling importAppDefinition";var o={modelId:e},r={},s={},a={file:t},p=[],l=["multipart/form-data"],c=["application/json"],u=n;return this.apiClient.callApi("/api/enterprise/app-definitions/{modelId}/import","POST",o,r,s,a,i,p,l,c,u)},this.publishAppDefinition=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling publishAppDefinition";if(void 0==t||null==t)throw"Missing the required parameter 'publishModel' when calling publishAppDefinition";var n={modelId:e},o={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=r;return this.apiClient.callApi("/api/enterprise/app-definitions/{modelId}/publish","POST",n,o,s,a,i,p,l,c,u)}};return s})},{"../../../alfrescoApiClient":290,"../model/AppDefinitionPublishRepresentation":76,"../model/AppDefinitionRepresentation":77,"../model/AppDefinitionUpdateResultRepresentation":78,"../model/ResultListDataRepresentation":133,"../model/RuntimeAppDefinitionSaveRepresentation":134}],33:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/AppDefinitionRepresentation","../model/AppDefinitionPublishRepresentation","../model/AppDefinitionUpdateResultRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/AppDefinitionRepresentation"),t("../model/AppDefinitionPublishRepresentation"),t("../model/AppDefinitionUpdateResultRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppsDefinitionApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.AppDefinitionRepresentation,n.ActivitiPublicRestApi.AppDefinitionPublishRepresentation,n.ActivitiPublicRestApi.AppDefinitionUpdateResultRepresentation))}(void 0,function(e,t,i,n){var o=function(i){this.apiClient=i||e.instance,this.exportAppDefinition=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling exportAppDefinition";var i={modelId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/app-definitions/{modelId}/export","GET",i,n,o,r,t,s,a,p,l)},this.importAppDefinition=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'file' when calling importAppDefinition";var n={},o={},r={},s={file:e},a=[],p=["multipart/form-data"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/app-definitions/import","POST",n,o,r,s,i,a,p,l,c)},this.importAppDefinition=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling importAppDefinition";if(void 0==i||null==i)throw"Missing the required parameter 'file' when calling importAppDefinition";var o={modelId:e},r={},s={},a={file:i},p=[],l=["multipart/form-data"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/app-definitions/{modelId}/import","POST",o,r,s,a,n,p,l,c,u)},this.publishAppDefinition=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling publishAppDefinition";if(void 0==t||null==t)throw"Missing the required parameter 'publishModel' when calling publishAppDefinition";var o={modelId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=n;return this.apiClient.callApi("/api/enterprise/app-definitions/{modelId}/publish","POST",o,r,s,a,i,p,l,c,u)}};return o})},{"../../../alfrescoApiClient":290,"../model/AppDefinitionPublishRepresentation":76,"../model/AppDefinitionRepresentation":77,"../model/AppDefinitionUpdateResultRepresentation":78}],34:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/RuntimeAppDefinitionSaveRepresentation","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/RuntimeAppDefinitionSaveRepresentation"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppsRuntimeApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.RuntimeAppDefinitionSaveRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t,i){var n=function(t){this.apiClient=t||e.instance,this.deployAppDefinitions=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'saveObject' when calling deployAppDefinitions";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/runtime-app-definitions","POST",i,n,o,r,t,s,a,p,l)},this.getAppDefinitions=function(){var e=null,t={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=i;return this.apiClient.callApi("/api/enterprise/runtime-app-definitions","GET",t,n,o,r,e,s,a,p,l)}};return n})},{"../../../alfrescoApiClient":290,"../model/ResultListDataRepresentation":133,"../model/RuntimeAppDefinitionSaveRepresentation":134}],35:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/CommentRepresentation","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/CommentRepresentation"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.CommentsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.CommentRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t,i){var n=function(n){this.apiClient=n||e.instance,this.addProcessInstanceComment=function(e,i){var n=e;if(void 0==e||null==e)throw"Missing the required parameter 'commentRequest' when calling addProcessInstanceComment";if(void 0==i||null==i)throw"Missing the required parameter 'processInstanceId' when calling addProcessInstanceComment";var o={processInstanceId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/comments","POST",o,r,s,a,n,p,l,c,u)},this.addTaskComment=function(e,i){var n=e;if(void 0==e||null==e)throw"Missing the required parameter 'commentRequest' when calling addTaskComment";if(void 0==i||null==i)throw"Missing the required parameter 'taskId' when calling addTaskComment";var o={taskId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/comments","POST",o,r,s,a,n,p,l,c,u)},this.getProcessInstanceComments=function(e,t){t=t||{};var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceComments";var o={processInstanceId:e},r={latestFirst:t.latestFirst},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/comments","GET",o,r,s,a,n,p,l,c,u)},this.getTaskComments=function(e,t){t=t||{};var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getTaskComments";var o={taskId:e},r={latestFirst:t.latestFirst},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/comments","GET",o,r,s,a,n,p,l,c,u)}};return n})},{"../../../alfrescoApiClient":290,"../model/CommentRepresentation":85,"../model/ResultListDataRepresentation":133}],36:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/RelatedContentRepresentation","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/RelatedContentRepresentation"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ContentApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.RelatedContentRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t,i){var n=function(n){this.apiClient=n||e.instance,this.createRelatedContentOnProcessInstance=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling createRelatedContentOnProcessInstance";if(void 0==i||null==i)throw"Missing the required parameter 'relatedContent' when calling createRelatedContentOnProcessInstance";var o={processInstanceId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/content","POST",o,r,s,a,n,p,l,c,u)},this.createRelatedContentOnProcessInstance=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling createRelatedContentOnProcessInstance";if(void 0==i||null==i)throw"Missing the required parameter 'file' when calling createRelatedContentOnProcessInstance";var o={processInstanceId:e},r={},s={},a={file:i},p=[],l=["multipart/form-data"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/raw-content","POST",o,r,s,a,n,p,l,c,u)},this.createRelatedContentOnTask=function(e,i,n){n=n||{};var o=i;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling createRelatedContentOnTask";if(void 0==i||null==i)throw"Missing the required parameter 'relatedContent' when calling createRelatedContentOnTask";var r={taskId:e},s={isRelatedContent:n.isRelatedContent},a={},p={},l=[],c=["application/json"],u=["application/json"],d=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/content","POST",r,s,a,p,o,l,c,u,d)},this.createRelatedContentOnTask=function(e,i,n){n=n||{};var o=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling createRelatedContentOnTask";if(void 0==i||null==i)throw"Missing the required parameter 'file' when calling createRelatedContentOnTask";var r={taskId:e},s={isRelatedContent:n.isRelatedContent},a={},p={file:i},l=[],c=["multipart/form-data"],u=["application/json"],d=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/raw-content","POST",r,s,a,p,o,l,c,u,d)},this.createTemporaryRawRelatedContent=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'file' when calling createTemporaryRawRelatedContent";var n={},o={},r={},s={file:e},a=[],p=["multipart/form-data"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/content/raw","POST",n,o,r,s,i,a,p,l,c)},this.createTemporaryRelatedContent=function(e){var i=e;if(void 0==e||null==e)throw"Missing the required parameter 'relatedContent' when calling createTemporaryRelatedContent";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/content","POST",n,o,r,s,i,a,p,l,c)},this.deleteContent=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'contentId' when calling deleteContent";var i={contentId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/content/{contentId}","DELETE",i,n,o,r,t,s,a,p,l)},this.getContent=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'contentId' when calling getContent";var n={contentId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/content/{contentId}","GET",n,o,r,s,i,a,p,l,c)},this.getProcessInstanceContent=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceContent";var n={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/field-content","GET",n,o,r,s,t,a,p,l,c)},this.getRawContent3=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'contentId' when calling getRawContent3";var i={contentId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/content/{contentId}/raw","GET",i,n,o,r,t,s,a,p,l)},this.getRelatedContentForProcessInstance=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getRelatedContentForProcessInstance";var n={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/content","GET",n,o,r,s,t,a,p,l,c)},this.getRelatedContentForTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getRelatedContentForTask";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/content","GET",n,o,r,s,t,a,p,l,c)}};return n})},{"../../../alfrescoApiClient":290,"../model/RelatedContentRepresentation":130,"../model/ResultListDataRepresentation":133}],37:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ContentRenditionApi=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(t){this.apiClient=t||e.instance,this.getRawContent=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'contentId' when calling getRawContent";if(void 0==t||null==t)throw"Missing the required parameter 'renditionType' when calling getRawContent";var n={contentId:e,renditionType:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/content/{contentId}/rendition/{renditionType}","GET",n,o,r,s,i,a,p,l,c)}};return t})},{"../../../alfrescoApiClient":290}],38:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/FormRepresentation","../model/FormSaveRepresentation","../model/ValidationErrorRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/FormRepresentation"),t("../model/FormSaveRepresentation"),t("../model/ValidationErrorRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.EditorApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.FormRepresentation,n.ActivitiPublicRestApi.FormSaveRepresentation,n.ActivitiPublicRestApi.ValidationErrorRepresentation))}(void 0,function(e,t,i,n){var o=function(i){this.apiClient=i||e.instance,this.getFormHistory=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'formId' when calling getFormHistory";if(void 0==i||null==i)throw"Missing the required parameter 'formHistoryId' when calling getFormHistory";var o={formId:e,formHistoryId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/editor/form-models/{formId}/history/{formHistoryId}","GET",o,r,s,a,n,p,l,c,u)},this.getForm=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'formId' when calling getForm";var n={formId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/editor/form-models/{formId}","GET",n,o,r,s,i,a,p,l,c)},this.getForms=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=[t];return this.apiClient.callApi("/api/enterprise/editor/form-models/values","GET",i,n,o,r,e,s,a,p,l)},this.saveForm=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'formId' when calling saveForm";if(void 0==i||null==i)throw"Missing the required parameter 'saveRepresentation' when calling saveForm";var o={formId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/editor/form-models/{formId}","PUT",o,r,s,a,n,p,l,c,u)},this.validateModel=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'formId' when calling validateModel";if(void 0==t||null==t)throw"Missing the required parameter 'saveRepresentation' when calling validateModel";var o={formId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=[n];return this.apiClient.callApi("/api/enterprise/editor/form-models/{formId}/validate","PUT",o,r,s,a,i,p,l,c,u)}};return o})},{"../../../alfrescoApiClient":290,"../model/FormRepresentation":101,"../model/FormSaveRepresentation":102,"../model/ValidationErrorRepresentation":151}],39:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.GroupsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getGroups=function(e){e=e||{};var i=null,n={},o={filter:e.filter,groupId:e.groupId,externalId:e.externalId,externalIdCaseInsensitive:e.externalIdCaseInsensitive,tenantId:e.tenantId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/groups","GET",n,o,r,s,i,a,p,l,c)},this.getUsersForGroup=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling getUsersForGroup";var n={groupId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/groups/{groupId}/users","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":290,"../model/ResultListDataRepresentation":133}],40:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/SyncLogEntryRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/SyncLogEntryRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IDMSyncApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.SyncLogEntryRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getLogFile=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'syncLogEntryId' when calling getLogFile";var i={syncLogEntryId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/idm-sync-log-entries/{syncLogEntryId}/logfile","GET",i,n,o,r,t,s,a,p,l)},this.getSyncLogEntries=function(e){e=e||{};var i=null,n={},o={tenantId:e.tenantId,page:e.page,size:e.size},r={},s={},a=[],p=["application/json"],l=["application/json"],c=[t];return this.apiClient.callApi("/api/enterprise/idm-sync-log-entries","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":290,"../model/SyncLogEntryRepresentation":136}],41:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IntegrationAccountApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getAccounts=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=t;return this.apiClient.callApi("/api/enterprise/account/integration","GET",i,n,o,r,e,s,a,p,l)}};return i})},{"../../../alfrescoApiClient":290,"../model/ResultListDataRepresentation":133}],42:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IntegrationAlfrescoCloudApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.getAllNetworks=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks","GET",i,n,o,r,e,s,a,p,l)},this.getAllSites=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getAllSites";var n={networkId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/sites","GET",n,o,r,s,i,a,p,l,c)},this.getContentInFolder=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getContentInFolder";if(void 0==i||null==i)throw"Missing the required parameter 'folderId' when calling getContentInFolder";var o={networkId:e,folderId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/folders/{folderId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInSite=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getContentInSite";if(void 0==i||null==i)throw"Missing the required parameter 'siteId' when calling getContentInSite";var o={networkId:e,siteId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/sites/{siteId}/content","GET",o,r,s,a,n,p,l,c,u)}};return i})},{"../../../alfrescoApiClient":290,"../model/ResultListDataRepresentation":133}],43:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IntegrationAlfrescoOnPremiseApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getAllSites=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getAllSites";var n={repositoryId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/sites","GET",n,o,r,s,i,a,p,l,c)},this.getContentInFolder=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getContentInFolder";if(void 0==i||null==i)throw"Missing the required parameter 'folderId' when calling getContentInFolder";var o={repositoryId:e,folderId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/folders/{folderId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInSite=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getContentInSite";if(void 0==i||null==i)throw"Missing the required parameter 'siteId' when calling getContentInSite";var o={repositoryId:e,siteId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/sites/{siteId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getRepositories=function(e){e=e||{};var i=null,n={},o={tenantId:e.tenantId,includeAccounts:e.includeAccounts},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/profile/accounts/alfresco","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":290,"../model/ResultListDataRepresentation":133}],44:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/UserAccountCredentialsRepresentation","../model/ResultListDataRepresentation","../model/BoxUserAccountCredentialsRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/UserAccountCredentialsRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/BoxUserAccountCredentialsRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}), -n.ActivitiPublicRestApi.IntegrationApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.UserAccountCredentialsRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.BoxUserAccountCredentialsRepresentation))}(void 0,function(e,t,i,n){var o=function(t){this.apiClient=t||e.instance,this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/box/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/google-drive/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.createRepositoryAccount=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling createRepositoryAccount";if(void 0==t||null==t)throw"Missing the required parameter 'credentials' when calling createRepositoryAccount";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","POST",n,o,r,s,i,a,p,l,c)},this.deleteRepositoryAccount=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling deleteRepositoryAccount";var i={userId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","DELETE",i,n,o,r,t,s,a,p,l)},this.getAllNetworks=function(){var e=null,t={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks","GET",t,n,o,r,e,s,a,p,l)},this.getAllSites=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getAllSites";var n={networkId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/sites","GET",n,o,r,s,t,a,p,l,c)},this.getAllSites=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getAllSites";var n={repositoryId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/sites","GET",n,o,r,s,t,a,p,l,c)},this.getBoxPluginStatus=function(){var e=null,t={},i={},n={},o={},r=[],s=["application/json"],a=["application/json"],p="Boolean";return this.apiClient.callApi("/api/enterprise/integration/box/status","GET",t,i,n,o,e,r,s,a,p)},this.getContentInFolder=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getContentInFolder";if(void 0==t||null==t)throw"Missing the required parameter 'folderId' when calling getContentInFolder";var o={networkId:e,folderId:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/folders/{folderId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInFolder=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getContentInFolder";if(void 0==t||null==t)throw"Missing the required parameter 'folderId' when calling getContentInFolder";var o={repositoryId:e,folderId:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/folders/{folderId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInSite=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getContentInSite";if(void 0==t||null==t)throw"Missing the required parameter 'siteId' when calling getContentInSite";var o={networkId:e,siteId:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/sites/{siteId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInSite=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getContentInSite";if(void 0==t||null==t)throw"Missing the required parameter 'siteId' when calling getContentInSite";var o={repositoryId:e,siteId:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/sites/{siteId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getFiles=function(e){e=e||{};var t=null,n={},o={filter:e.filter,parent:e.parent},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/integration/box/files","GET",n,o,r,s,t,a,p,l,c)},this.getFiles=function(e){e=e||{};var t=null,n={},o={filter:e.filter,parent:e.parent,currentFolderOnly:e.currentFolderOnly},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/integration/google-drive/files","GET",n,o,r,s,t,a,p,l,c)},this.getRepositories=function(e){e=e||{};var t=null,n={},o={tenantId:e.tenantId,includeAccounts:e.includeAccounts},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/profile/accounts/alfresco","GET",n,o,r,s,t,a,p,l,c)},this.getRepositoryAccount=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling getRepositoryAccount";var i={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","GET",i,o,r,s,t,a,p,l,c)},this.updateRepositoryAccount=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling updateRepositoryAccount";if(void 0==t||null==t)throw"Missing the required parameter 'credentials' when calling updateRepositoryAccount";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","PUT",n,o,r,s,i,a,p,l,c)}};return o})},{"../../../alfrescoApiClient":290,"../model/BoxUserAccountCredentialsRepresentation":81,"../model/ResultListDataRepresentation":133,"../model/UserAccountCredentialsRepresentation":145}],45:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/UserAccountCredentialsRepresentation","../model/ResultListDataRepresentation","../model/BoxUserAccountCredentialsRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/UserAccountCredentialsRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/BoxUserAccountCredentialsRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IntegrationBoxApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.UserAccountCredentialsRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.BoxUserAccountCredentialsRepresentation))}(void 0,function(e,t,i,n){var o=function(t){this.apiClient=t||e.instance,this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/box/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.createRepositoryAccount=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling createRepositoryAccount";if(void 0==t||null==t)throw"Missing the required parameter 'credentials' when calling createRepositoryAccount";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","POST",n,o,r,s,i,a,p,l,c)},this.deleteRepositoryAccount=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling deleteRepositoryAccount";var i={userId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","DELETE",i,n,o,r,t,s,a,p,l)},this.getBoxPluginStatus=function(){var e=null,t={},i={},n={},o={},r=[],s=["application/json"],a=["application/json"],p="Boolean";return this.apiClient.callApi("/api/enterprise/integration/box/status","GET",t,i,n,o,e,r,s,a,p)},this.getFiles=function(e){e=e||{};var t=null,n={},o={filter:e.filter,parent:e.parent},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/integration/box/files","GET",n,o,r,s,t,a,p,l,c)},this.getRepositoryAccount=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling getRepositoryAccount";var i={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","GET",i,o,r,s,t,a,p,l,c)},this.updateRepositoryAccount=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling updateRepositoryAccount";if(void 0==t||null==t)throw"Missing the required parameter 'credentials' when calling updateRepositoryAccount";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","PUT",n,o,r,s,i,a,p,l,c)}};return o})},{"../../../alfrescoApiClient":290,"../model/BoxUserAccountCredentialsRepresentation":81,"../model/ResultListDataRepresentation":133,"../model/UserAccountCredentialsRepresentation":145}],46:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IntegrationDriveApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/google-drive/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.getFiles=function(e){e=e||{};var i=null,n={},o={filter:e.filter,parent:e.parent,currentFolderOnly:e.currentFolderOnly},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/integration/google-drive/files","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":290,"../model/ResultListDataRepresentation":133}],47:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ModelBpmnApi=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(t){this.apiClient=t||e.instance,this.getHistoricProcessModelBpmn20Xml=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'processModelId' when calling getHistoricProcessModelBpmn20Xml";if(void 0==t||null==t)throw"Missing the required parameter 'processModelHistoryId' when calling getHistoricProcessModelBpmn20Xml";var n={processModelId:e,processModelHistoryId:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/models/{processModelId}/history/{processModelHistoryId}/bpmn20","GET",n,o,r,s,i,a,p,l,c)},this.getProcessModelBpmn20Xml=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processModelId' when calling getProcessModelBpmn20Xml";var i={processModelId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/models/{processModelId}/bpmn20","GET",i,n,o,r,t,s,a,p,l)}};return t})},{"../../../alfrescoApiClient":290}],48:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ObjectNode"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ObjectNode")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ModelJsonBpmnApi=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getHistoricEditorDisplayJsonClient=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'processModelId' when calling getHistoricEditorDisplayJsonClient";if(void 0==i||null==i)throw"Missing the required parameter 'processModelHistoryId' when calling getHistoricEditorDisplayJsonClient";var o={processModelId:e,processModelHistoryId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/app/rest/models/{processModelId}/history/{processModelHistoryId}/model-json","GET",o,r,s,a,n,p,l,c,u)},this.getEditorDisplayJsonClient=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'processModelId' when calling getEditorDisplayJsonClient";var n={processModelId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/app/rest/models/{processModelId}/model-json","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":290,"../model/ObjectNode":119}],49:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ModelRepresentation","../model/ObjectNode","../model/ResultListDataRepresentation","../model/ValidationErrorRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ModelRepresentation"),t("../model/ObjectNode"),t("../model/ResultListDataRepresentation"),t("../model/ValidationErrorRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ModelsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ModelRepresentation,n.ActivitiPublicRestApi.ObjectNode,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.ValidationErrorRepresentation))}(void 0,function(e,t,i,n,o){var r=function(r){this.apiClient=r||e.instance,this.createModel=function(e){var i=e;if(void 0==e||null==e)throw"Missing the required parameter 'modelRepresentation' when calling createModel";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/models","POST",n,o,r,s,i,a,p,l,c)},this.deleteModel=function(e,t){t=t||{};var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling deleteModel";var n={modelId:e},o={cascade:t.cascade,deleteRuntimeApp:t.deleteRuntimeApp},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/models/{modelId}","DELETE",n,o,r,s,i,a,p,l,c)},this.duplicateModel=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling duplicateModel";if(void 0==i||null==i)throw"Missing the required parameter 'modelRepresentation' when calling duplicateModel";var o={modelId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/models/{modelId}/clone","POST",o,r,s,a,n,p,l,c,u)},this.getModelJSON=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling getModelJSON";var n={modelId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/models/{modelId}/editor/json","GET",n,o,r,s,t,a,p,l,c)},this.getModelThumbnail=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling getModelThumbnail";var i={modelId:e},n={},o={},r={},s=[],a=["application/json"],p=["image/png","application/json"],l=["String"];return this.apiClient.callApi("/api/enterprise/models/{modelId}/thumbnail","GET",i,n,o,r,t,s,a,p,l)},this.getModel=function(e,i){i=i||{};var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling getModel";var o={modelId:e},r={includePermissions:i.includePermissions},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/models/{modelId}","GET",o,r,s,a,n,p,l,c,u)},this.getModelsToIncludeInAppDefinition=function(){var e=null,t={},i={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=n;return this.apiClient.callApi("/api/enterprise/models-for-app-definition","GET",t,i,o,r,e,s,a,p,l)},this.getModels=function(e){e=e||{};var t=null,i={},o={filter:e.filter,filterText:e.filterText,sort:e.sort,modelType:e.modelType,referenceId:e.referenceId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/models","GET",i,o,r,s,t,a,p,l,c)},this.importNewVersion=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling importNewVersion";if(void 0==i||null==i)throw"Missing the required parameter 'file' when calling importNewVersion";var o={modelId:e},r={},s={},a={file:i},p=[],l=["multipart/form-data"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/models/{modelId}/newversion","POST",o,r,s,a,n,p,l,c,u)},this.importProcessModel=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'file' when calling importProcessModel";var n={},o={},r={},s={file:e},a=[],p=["multipart/form-data"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/process-models/import","POST",n,o,r,s,i,a,p,l,c)},this.saveModel=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling saveModel";if(void 0==i||null==i)throw"Missing the required parameter 'values' when calling saveModel";var o={modelId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/models/{modelId}/editor/json","POST",o,r,s,a,n,p,l,c,u)},this.updateModel=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling updateModel";if(void 0==i||null==i)throw"Missing the required parameter 'updatedModel' when calling updateModel";var o={modelId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/models/{modelId}","PUT",o,r,s,a,n,p,l,c,u)},this.validateModel=function(e,t){t=t||{};var i=t.values;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling validateModel";var n={modelId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=[o];return this.apiClient.callApi("/api/enterprise/models/{modelId}/editor/validate","POST",n,r,s,a,i,p,l,c,u)}};return r})},{"../../../alfrescoApiClient":290,"../model/ModelRepresentation":118,"../model/ObjectNode":119,"../model/ResultListDataRepresentation":133,"../model/ValidationErrorRepresentation":151}],50:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation","../model/ModelRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation"),t("../model/ModelRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ModelsHistoryApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.ModelRepresentation))}(void 0,function(e,t,i){var n=function(n){this.apiClient=n||e.instance,this.getModelHistoryCollection=function(e,i){i=i||{};var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling getModelHistoryCollection";var o={modelId:e},r={includeLatestVersion:i.includeLatestVersion},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/models/{modelId}/history","GET",o,r,s,a,n,p,l,c,u)},this.getProcessModelHistory=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling getProcessModelHistory";if(void 0==t||null==t)throw"Missing the required parameter 'modelHistoryId' when calling getProcessModelHistory";var o={modelId:e,modelHistoryId:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/models/{modelId}/history/{modelHistoryId}","GET",o,r,s,a,n,p,l,c,u)}};return n})},{"../../../alfrescoApiClient":290,"../model/ModelRepresentation":118,"../model/ResultListDataRepresentation":133}],51:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ProcessInstanceFilterRequestRepresentation","../model/ResultListDataRepresentation","../model/FormDefinitionRepresentation","../model/ProcessInstanceRepresentation","../model/ProcessFilterRequestRepresentation","../model/FormValueRepresentation","../model/CreateProcessInstanceRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ProcessInstanceFilterRequestRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/FormDefinitionRepresentation"),t("../model/ProcessInstanceRepresentation"),t("../model/ProcessFilterRequestRepresentation"),t("../model/FormValueRepresentation"),t("../model/CreateProcessInstanceRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ProcessInstanceFilterRequestRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.FormDefinitionRepresentation,n.ActivitiPublicRestApi.ProcessInstanceRepresentation,n.ActivitiPublicRestApi.ProcessFilterRequestRepresentation,n.ActivitiPublicRestApi.FormValueRepresentation,n.ActivitiPublicRestApi.CreateProcessInstanceRepresentation))}(void 0,function(e,t,i,n,o,r,s,a){var p=function(t){this.apiClient=t||e.instance,this.deleteProcessInstance=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling deleteProcessInstance";var i={processInstanceId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}","DELETE",i,n,o,r,t,s,a,p,l)},this.filterProcessInstances=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'filterRequest' when calling filterProcessInstances";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/filter","POST",n,o,r,s,t,a,p,l,c)},this.getProcessDefinitionStartForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processDefinitionId' when calling getProcessInstanceContent";var i={processDefinitionId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/process-definitions/{processDefinitionId}/start-form","GET",i,o,r,s,t,a,p,l,c)},this.getProcessDefinitions=function(e){e=e||{};var t=null,n={},o={latest:e.latest,appDefinitionId:e.appDefinitionId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-definitions","GET",n,o,r,s,t,a,p,l,c)},this.getProcessInstanceContent=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceContent";var n={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/field-content","GET",n,o,r,s,t,a,p,l,c)},this.getProcessInstanceStartForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceStartForm";var i={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/start-form","GET",i,o,r,s,t,a,p,l,c)},this.getProcessInstance=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstance";var i={processInstanceId:e},n={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=o;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}","GET",i,n,r,s,t,a,p,l,c)},this.getProcessInstances=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'requestNode' when calling getProcessInstances";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/query","POST",n,o,r,s,t,a,p,l,c)},this.getRestFieldValues=function(e,t){var i=null,n={processDefinitionId:e,field:t},o={},r={},a={},p=[],l=["application/json"],c=["application/json"],u=[s];return this.apiClient.callApi("/api/enterprise/process-definitions/{processDefinitionId}/start-form-values/{field}","GET",n,o,r,a,i,p,l,c,u)},this.getRestTableFieldValues=function(e,t,i){var n=null,o={processDefinitionId:e,field:t,column:i},r={},a={},p={},l=[],c=["application/json"],u=["application/json"],d=[s];return this.apiClient.callApi("/api/enterprise/process-definitions/{processDefinitionId}/start-form-values/{field}/{column}","GET",o,r,a,p,n,l,c,u,d)},this.startNewProcessInstance=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'startRequest' when calling startNewProcessInstance";var i={},n={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=o;return this.apiClient.callApi("/api/enterprise/process-instances","POST",i,n,r,s,t,a,p,l,c)}};return p})},{"../../../alfrescoApiClient":290,"../model/CreateProcessInstanceRepresentation":89,"../model/FormDefinitionRepresentation":97,"../model/FormValueRepresentation":105,"../model/ProcessFilterRequestRepresentation":121,"../model/ProcessInstanceFilterRequestRepresentation":123,"../model/ProcessInstanceRepresentation":124,"../model/ResultListDataRepresentation":133}],52:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessDefinitionsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getProcessDefinitions=function(e){e=e||{};var i=null,n={},o={latest:e.latest,appDefinitionId:e.appDefinitionId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/process-definitions","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":290,"../model/ResultListDataRepresentation":133}],53:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/FormDefinitionRepresentation","../model/FormValueRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/FormDefinitionRepresentation"),t("../model/FormValueRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessDefinitionsFormApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.FormDefinitionRepresentation,n.ActivitiPublicRestApi.FormValueRepresentation))}(void 0,function(e,t,i){var n=function(n){this.apiClient=n||e.instance,this.getProcessDefinitionStartForm=function(e){var i=null,n={processDefinitionId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/process-definitions/{processDefinitionId}/start-form","GET",n,o,r,s,i,a,p,l,c)},this.getRestFieldValues=function(e,t){var n=null,o={processDefinitionId:e,field:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=[i];return this.apiClient.callApi("/api/enterprise/process-definitions/{processDefinitionId}/start-form-values/{field}","GET",o,r,s,a,n,p,l,c,u)},this.getRestTableFieldValues=function(e,t,n){ -var o=null,r={processDefinitionId:e,field:t,column:n},s={},a={},p={},l=[],c=["application/json"],u=["application/json"],d=[i];return this.apiClient.callApi("/api/enterprise/process-definitions/{processDefinitionId}/start-form-values/{field}/{column}","GET",r,s,a,p,o,l,c,u,d)}};return n})},{"../../../alfrescoApiClient":290,"../model/FormDefinitionRepresentation":97,"../model/FormValueRepresentation":105}],54:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/RestVariable"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/RestVariable")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstanceVariablesApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.RestVariable))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getProcessInstanceVariables=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceVariables";var n={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=[t];return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/variables","GET",n,o,r,s,i,a,p,l,c)},this.createProcessInstanceVariables=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling createProcessInstanceVariables";if(void 0==i||null==i)throw"Missing the required parameter 'restVariables' when calling createProcessInstanceVariables";var o={processInstanceId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=[t];return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/variables","POST",o,r,s,a,n,p,l,c,u)},this.createOrUpdateProcessInstanceVariables=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling createOrUpdateProcessInstanceVariables";if(void 0==i||null==i)throw"Missing the required parameter 'restVariables' when calling createOrUpdateProcessInstanceVariables";var o={processInstanceId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=[t];return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/variables","PUT",o,r,s,a,n,p,l,c,u)},this.getProcessInstanceVariable=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceVariable";if(void 0==i||null==i)throw"Missing the required parameter 'variableName' when calling getProcessInstanceVariable";var o={processInstanceId:e,variableName:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/variables/{variableName}","GET",o,r,s,a,n,p,l,c,u)},this.updateProcessInstanceVariable=function(e,i,n){var o=n;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling updateProcessInstanceVariable";if(void 0==i||null==i)throw"Missing the required parameter 'variableName' when calling updateProcessInstanceVariable";var r={processInstanceId:e,variableName:i},s={},a={},p={},l=[],c=["application/json"],u=["application/json"],d=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/variables/{variableName}","PUT",r,s,a,p,o,l,c,u,d)},this.deleteProcessInstanceVariable=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling deleteProcessInstanceVariable";if(void 0==t||null==t)throw"Missing the required parameter 'variableName' when calling deleteProcessInstanceVariable";var n={processInstanceId:e,variableName:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/variables/{variableName}","DELETE",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":290,"../model/RestVariable":132}],55:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/CommentRepresentation","../model/ResultListDataRepresentation","../model/FormDefinitionRepresentation","../model/ProcessInstanceRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/CommentRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/FormDefinitionRepresentation"),t("../model/ProcessInstanceRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstancesApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.CommentRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.FormDefinitionRepresentation,n.ActivitiPublicRestApi.ProcessInstanceRepresentation))}(void 0,function(e,t,i,n,o){var r=function(r){this.apiClient=r||e.instance,this.addProcessInstanceComment=function(e,i){var n=e;if(void 0==e||null==e)throw"Missing the required parameter 'commentRequest' when calling addProcessInstanceComment";if(void 0==i||null==i)throw"Missing the required parameter 'processInstanceId' when calling addProcessInstanceComment";var o={processInstanceId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/comments","POST",o,r,s,a,n,p,l,c,u)},this.deleteProcessInstance=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling deleteProcessInstance";var i={processInstanceId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}","DELETE",i,n,o,r,t,s,a,p,l)},this.getProcessInstanceComments=function(e,t){t=t||{};var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceComments";var o={processInstanceId:e},r={latestFirst:t.latestFirst},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/comments","GET",o,r,s,a,n,p,l,c,u)},this.getProcessInstanceStartForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceStartForm";var i={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/start-form","GET",i,o,r,s,t,a,p,l,c)},this.getProcessInstance=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstance";var i={processInstanceId:e},n={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=o;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}","GET",i,n,r,s,t,a,p,l,c)}};return r})},{"../../../alfrescoApiClient":290,"../model/CommentRepresentation":85,"../model/FormDefinitionRepresentation":97,"../model/ProcessInstanceRepresentation":124,"../model/ResultListDataRepresentation":133}],56:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation","../model/CreateProcessInstanceRepresentation","../model/ProcessInstanceRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation"),t("../model/CreateProcessInstanceRepresentation"),t("../model/ProcessInstanceRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstancesInformationApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.CreateProcessInstanceRepresentation,n.ActivitiPublicRestApi.ProcessInstanceRepresentation))}(void 0,function(e,t,i,n){var o=function(i){this.apiClient=i||e.instance,this.getProcessInstanceContent=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceContent";var n={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/field-content","GET",n,o,r,s,i,a,p,l,c)},this.startNewProcessInstance=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'startRequest' when calling startNewProcessInstance";var i={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/process-instances","POST",i,o,r,s,t,a,p,l,c)}};return o})},{"../../../alfrescoApiClient":290,"../model/CreateProcessInstanceRepresentation":89,"../model/ProcessInstanceRepresentation":124,"../model/ResultListDataRepresentation":133}],57:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ProcessInstanceFilterRequestRepresentation","../model/ResultListDataRepresentation","../model/ObjectNode"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ProcessInstanceFilterRequestRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/ObjectNode")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstancesListingApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ProcessInstanceFilterRequestRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.ObjectNode))}(void 0,function(e,t,i,n){var o=function(t){this.apiClient=t||e.instance,this.filterProcessInstances=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'filterRequest' when calling filterProcessInstances";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/filter","POST",n,o,r,s,t,a,p,l,c)},this.getProcessInstances=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'requestNode' when calling getProcessInstances";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/query","POST",n,o,r,s,t,a,p,l,c)}};return o})},{"../../../alfrescoApiClient":290,"../model/ObjectNode":119,"../model/ProcessInstanceFilterRequestRepresentation":123,"../model/ResultListDataRepresentation":133}],58:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ProcessScopesRequestRepresentation","../model/ProcessScopeRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ProcessScopesRequestRepresentation"),t("../model/ProcessScopeRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessScopeApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ProcessScopesRequestRepresentation,n.ActivitiPublicRestApi.ProcessScopeRepresentation))}(void 0,function(e,t,i){var n=function(t){this.apiClient=t||e.instance,this.getRuntimeProcessScopes=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'processScopesRequest' when calling getRuntimeProcessScopes";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=[i];return this.apiClient.callApi("/api/enterprise/process-scopes","POST",n,o,r,s,t,a,p,l,c)}};return n})},{"../../../alfrescoApiClient":290,"../model/ProcessScopeRepresentation":127,"../model/ProcessScopesRequestRepresentation":128}],59:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ChangePasswordRepresentation","../model/UserRepresentation","../model/ImageUploadRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ChangePasswordRepresentation"),t("../model/UserRepresentation"),t("../model/ImageUploadRepresentation"),t("../model/File")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProfileApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ChangePasswordRepresentation,n.ActivitiPublicRestApi.UserRepresentation,n.ActivitiPublicRestApi.ImageUploadRepresentation,n.ActivitiPublicRestApi.File))}(void 0,function(e,t,i,n,o){var r=function(t){this.apiClient=t||e.instance,this.changePassword=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'changePasswordRepresentation' when calling changePassword";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/profile-password","POST",i,n,o,r,t,s,a,p,l)},this.getProfilePicture=function(){var e=null,t={},i={},n={},r={},s=[],a=["application/json"],p=["application/json"],l=o;return this.apiClient.callApi("/api/enterprise/profile-picture","GET",t,i,n,r,e,s,a,p,l)},this.getProfilePictureUrl=function(){return this.apiClient.basePath+"/app/rest/admin/profile-picture"},this.getProfile=function(){var e=null,t={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=i;return this.apiClient.callApi("/api/enterprise/profile","GET",t,n,o,r,e,s,a,p,l)},this.updateProfile=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'userRepresentation' when calling updateProfile";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/profile","POST",n,o,r,s,t,a,p,l,c)},this.uploadProfilePicture=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'file' when calling uploadProfilePicture";var i={},o={},r={},s={file:e},a=[],p=["multipart/form-data"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/profile-picture","POST",i,o,r,s,t,a,p,l,c)}};return r})},{"../../../alfrescoApiClient":290,"../model/ChangePasswordRepresentation":83,"../model/File":96,"../model/ImageUploadRepresentation":108,"../model/UserRepresentation":149}],60:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ScriptFileApi=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(t){this.apiClient=t||e.instance,this.getControllers=function(){var e=null,t={},i={},n={},o={},r=[],s=["application/json"],a=["application/json","application/javascript"],p="String";return this.apiClient.callApi("/api/enterprise/script-files/controllers","GET",t,i,n,o,e,r,s,a,p)},this.getLibraries=function(){var e=null,t={},i={},n={},o={},r=[],s=["application/json"],a=["application/json","application/javascript"],p="String";return this.apiClient.callApi("/api/enterprise/script-files/libraries","GET",t,i,n,o,e,r,s,a,p)}};return t})},{"../../../alfrescoApiClient":290}],61:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/SystemPropertiesRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/SystemPropertiesRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.SystemPropertiesApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.SystemPropertiesRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getProperties=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=t;return this.apiClient.callApi("/api/enterprise/system/properties","GET",i,n,o,r,e,s,a,p,l)}};return i})},{"../../../alfrescoApiClient":290,"../model/SystemPropertiesRepresentation":137}],62:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ObjectNode","../model/TaskRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ObjectNode"),t("../model/TaskRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskActionsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ObjectNode,n.ActivitiPublicRestApi.TaskRepresentation))}(void 0,function(e,t,i){var n=function(t){this.apiClient=t||e.instance,this.assignTask=function(e,t){var n=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling assignTask";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling assignTask";var o={taskId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/assign","PUT",o,r,s,a,n,p,l,c,u)},this.attachForm=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling attachForm";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling attachForm";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/attach-form","PUT",n,o,r,s,i,a,p,l,c)},this.claimTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling claimTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/claim","PUT",i,n,o,r,t,s,a,p,l)},this.completeTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling completeTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/complete","PUT",i,n,o,r,t,s,a,p,l)},this.involveUser=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling involveUser";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling involveUser";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/involve","PUT",n,o,r,s,i,a,p,l,c)},this.removeForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling removeForm";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/remove-form","DELETE",i,n,o,r,t,s,a,p,l)},this.removeInvolvedUser=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling removeInvolvedUser";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling removeInvolvedUser";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/remove-involved","PUT",n,o,r,s,i,a,p,l,c)},this.unclaimTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling unclaimTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/unclaim","PUT",i,n,o,r,t,s,a,p,l)}};return n})},{"../../../alfrescoApiClient":290,"../model/ObjectNode":119,"../model/TaskRepresentation":141}],63:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/TaskRepresentation","../model/CommentRepresentation","../model/ObjectNode","../model/CompleteFormRepresentation","../model/RelatedContentRepresentation","../model/TaskFilterRequestRepresentation","../model/ResultListDataRepresentation","../model/FormValueRepresentation","../model/FormDefinitionRepresentation","../model/ChecklistOrderRepresentation","../model/SaveFormRepresentation","../model/TaskUpdateRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/TaskRepresentation"),t("../model/CommentRepresentation"),t("../model/ObjectNode"),t("../model/CompleteFormRepresentation"),t("../model/RelatedContentRepresentation"),t("../model/TaskFilterRequestRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/FormValueRepresentation"),t("../model/FormDefinitionRepresentation"),t("../model/ChecklistOrderRepresentation"),t("../model/SaveFormRepresentation"),t("../model/TaskUpdateRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.TaskRepresentation,n.ActivitiPublicRestApi.CommentRepresentation,n.ActivitiPublicRestApi.ObjectNode,n.ActivitiPublicRestApi.CompleteFormRepresentation,n.ActivitiPublicRestApi.RelatedContentRepresentation,n.ActivitiPublicRestApi.TaskFilterRequestRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.FormValueRepresentation,n.ActivitiPublicRestApi.FormDefinitionRepresentation,n.ActivitiPublicRestApi.ChecklistOrderRepresentation,n.ActivitiPublicRestApi.SaveFormRepresentation,n.ActivitiPublicRestApi.TaskUpdateRepresentation))}(void 0,function(e,t,i,n,o,r,s,a,p,l,c,u,d){var f=function(n){this.apiClient=n||e.instance,this.addSubtask=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling addSubtask";if(void 0==i||null==i)throw"Missing the required parameter 'taskRepresentation' when calling addSubtask";var o={taskId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/checklist","POST",o,r,s,a,n,p,l,c,u)},this.addTaskComment=function(e,t){var n=e;if(void 0==e||null==e)throw"Missing the required parameter 'commentRequest' when calling addTaskComment";if(void 0==t||null==t)throw"Missing the required parameter 'taskId' when calling addTaskComment";var o={taskId:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/comments","POST",o,r,s,a,n,p,l,c,u)},this.assignTask=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling assignTask";if(void 0==i||null==i)throw"Missing the required parameter 'requestNode' when calling assignTask";var o={taskId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/assign","PUT",o,r,s,a,n,p,l,c,u)},this.attachForm=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling attachForm";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling attachForm";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/attach-form","PUT",n,o,r,s,i,a,p,l,c)},this.claimTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling claimTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/claim","PUT",i,n,o,r,t,s,a,p,l)},this.completeTaskForm=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling completeTaskForm";if(void 0==t||null==t)throw"Missing the required parameter 'completeTaskFormRepresentation' when calling completeTaskForm";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}","POST",n,o,r,s,i,a,p,l,c)},this.completeTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling completeTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/complete","PUT",i,n,o,r,t,s,a,p,l)},this.createNewTask=function(e){var i=e;if(void 0==e||null==e)throw"Missing the required parameter 'taskRepresentation' when calling createNewTask";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/tasks","POST",n,o,r,s,i,a,p,l,c)},this.createRelatedContentOnTask=function(e,t,i){i=i||{};var n=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling createRelatedContentOnTask";if(void 0==t||null==t)throw"Missing the required parameter 'relatedContent' when calling createRelatedContentOnTask";var o={taskId:e},s={isRelatedContent:i.isRelatedContent},a={},p={},l=[],c=["application/json"],u=["application/json"],d=r;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/content","POST",o,s,a,p,n,l,c,u,d)},this.createRelatedContentOnTask=function(e,t,i){i=i||{};var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling createRelatedContentOnTask";if(void 0==t||null==t)throw"Missing the required parameter 'file' when calling createRelatedContentOnTask";var o={taskId:e},s={isRelatedContent:i.isRelatedContent},a={},p={file:t},l=[],c=["multipart/form-data"],u=["application/json"],d=r;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/raw-content","POST",o,s,a,p,n,l,c,u,d)},this.deleteTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling deleteTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}","DELETE",i,n,o,r,t,s,a,p,l)},this.filterTasks=function(e){var t=e;void 0!=e&&null!=e||(console.log("a"),t=new s);var i={},n={},o={},r={},p=[],l=["application/json"],c=["application/json"],u=a;return this.apiClient.callApi("/api/enterprise/tasks/filter","POST",i,n,o,r,t,p,l,c,u)},this.getChecklist=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getChecklist";var i={taskId:e},n={},o={},r={},s=[],p=["application/json"],l=["application/json"],c=a;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/checklist","GET",i,n,o,r,t,s,p,l,c)},this.getRelatedContentForTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getRelatedContentForTask";var i={taskId:e},n={},o={},r={},s=[],p=["application/json"],l=["application/json"],c=a;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/content","GET",i,n,o,r,t,s,p,l,c)},this.getRestFieldValuesColumn=function(e,t,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getRestFieldValues";if(void 0==t||null==t)throw"Missing the required parameter 'field' when calling getRestFieldValues";if(void 0==i||null==i)throw"Missing the required parameter 'column' when calling getRestFieldValues";var o={taskId:e,field:t,column:i},r={},s={},a={},l=[],c=["application/json"],u=["application/json"],d=[p];return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}/form-values/{field}/{column}","GET",o,r,s,a,n,l,c,u,d)},this.getRestFieldValues=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getRestFieldValues";if(void 0==t||null==t)throw"Missing the required parameter 'field' when calling getRestFieldValues";var n={taskId:e,field:t},o={},r={},s={},a=[],l=["application/json"],c=["application/json"],u=[p];return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}/form-values/{field}","GET",n,o,r,s,i,a,l,c,u)},this.getTaskComments=function(e,t){t=t||{};var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getTaskComments";var n={taskId:e},o={latestFirst:t.latestFirst},r={},s={},p=[],l=["application/json"],c=["application/json"],u=a;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/comments","GET",n,o,r,s,i,p,l,c,u)},this.getTaskForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getTaskForm";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],c=l;return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}","GET",i,n,o,r,t,s,a,p,c)},this.getTask=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getTask";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}","GET",n,o,r,s,i,a,p,l,c)},this.involveUser=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling involveUser";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling involveUser";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/involve","PUT",n,o,r,s,i,a,p,l,c)},this.listTasks=function(e){var t=e||{},i={},n={},o={},r={},s=[],p=["application/json"],l=["application/json"],c=a;return this.apiClient.callApi("/api/enterprise/tasks/query","POST",i,n,o,r,t,s,p,l,c)},this.orderChecklist=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling orderChecklist"; -if(void 0==t||null==t)throw"Missing the required parameter 'orderRepresentation' when calling orderChecklist";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/checklist","PUT",n,o,r,s,i,a,p,l,c)},this.removeForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling removeForm";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/remove-form","DELETE",i,n,o,r,t,s,a,p,l)},this.removeInvolvedUser=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling removeInvolvedUser";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling removeInvolvedUser";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/remove-involved","PUT",n,o,r,s,i,a,p,l,c)},this.saveTaskForm=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling saveTaskForm";if(void 0==t||null==t)throw"Missing the required parameter 'saveTaskFormRepresentation' when calling saveTaskForm";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}/save-form","POST",n,o,r,s,i,a,p,l,c)},this.unclaimTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling unclaimTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/unclaim","PUT",i,n,o,r,t,s,a,p,l)},this.updateTask=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling updateTask";if(void 0==i||null==i)throw"Missing the required parameter 'updated' when calling updateTask";var o={taskId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}","PUT",o,r,s,a,n,p,l,c,u)}};return f})},{"../../../alfrescoApiClient":290,"../model/ChecklistOrderRepresentation":84,"../model/CommentRepresentation":85,"../model/CompleteFormRepresentation":86,"../model/FormDefinitionRepresentation":97,"../model/FormValueRepresentation":105,"../model/ObjectNode":119,"../model/RelatedContentRepresentation":130,"../model/ResultListDataRepresentation":133,"../model/SaveFormRepresentation":135,"../model/TaskFilterRequestRepresentation":139,"../model/TaskRepresentation":141,"../model/TaskUpdateRepresentation":142}],64:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/TaskRepresentation","../model/ResultListDataRepresentation","../model/ChecklistOrderRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/TaskRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/ChecklistOrderRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskCheckListApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.TaskRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.ChecklistOrderRepresentation))}(void 0,function(e,t,i,n){var o=function(n){this.apiClient=n||e.instance,this.addSubtask=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling addSubtask";if(void 0==i||null==i)throw"Missing the required parameter 'taskRepresentation' when calling addSubtask";var o={taskId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/checklist","POST",o,r,s,a,n,p,l,c,u)},this.getChecklist=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getChecklist";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/checklist","GET",n,o,r,s,t,a,p,l,c)},this.orderChecklist=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling orderChecklist";if(void 0==t||null==t)throw"Missing the required parameter 'orderRepresentation' when calling orderChecklist";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/checklist","PUT",n,o,r,s,i,a,p,l,c)}};return o})},{"../../../alfrescoApiClient":290,"../model/ChecklistOrderRepresentation":84,"../model/ResultListDataRepresentation":133,"../model/TaskRepresentation":141}],65:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/CompleteFormRepresentation","../model/FormValueRepresentation","../model/FormDefinitionRepresentation","../model/SaveFormRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/CompleteFormRepresentation"),t("../model/FormValueRepresentation"),t("../model/FormDefinitionRepresentation"),t("../model/SaveFormRepresentation"),t("../model/ProcessInstanceVariableRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskFormsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.CompleteFormRepresentation,n.ActivitiPublicRestApi.FormValueRepresentation,n.ActivitiPublicRestApi.FormDefinitionRepresentation,n.ActivitiPublicRestApi.SaveFormRepresentation,n.ActivitiPublicRestApi.ProcessInstanceVariableRepresentation))}(void 0,function(e,t,i,n,o,r){var s=function(t){this.apiClient=t||e.instance,this.completeTaskForm=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling completeTaskForm";if(void 0==t||null==t)throw"Missing the required parameter 'completeTaskFormRepresentation' when calling completeTaskForm";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}","POST",n,o,r,s,i,a,p,l,c)},this.getRestFieldValues=function(e,t,n){var o=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getRestFieldValues";if(void 0==t||null==t)throw"Missing the required parameter 'field' when calling getRestFieldValues";if(void 0==n||null==n)throw"Missing the required parameter 'column' when calling getRestFieldValues";var r={taskId:e,field:t,column:n},s={},a={},p={},l=[],c=["application/json"],u=["application/json"],d=[i];return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}/form-values/{field}/{column}","GET",r,s,a,p,o,l,c,u,d)},this.getRestFieldValues=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getRestFieldValues";if(void 0==t||null==t)throw"Missing the required parameter 'field' when calling getRestFieldValues";var o={taskId:e,field:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=[i];return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}/form-values/{field}","GET",o,r,s,a,n,p,l,c,u)},this.getTaskForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getTaskForm";var i={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}","GET",i,o,r,s,t,a,p,l,c)},this.getTaskFormVariables=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getTaskFormVariables";var i={taskId:e},n={},o={},s={},a=[],p=["application/json"],l=["application/json"],c=[r];return this.apiClient.callApi("/app/rest/task-forms/{taskId}/variables","GET",i,n,o,s,t,a,p,l,c)},this.saveTaskForm=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling saveTaskForm";if(void 0==t||null==t)throw"Missing the required parameter 'saveTaskFormRepresentation' when calling saveTaskForm";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}/save-form","POST",n,o,r,s,i,a,p,l,c)}};return s})},{"../../../alfrescoApiClient":290,"../model/CompleteFormRepresentation":86,"../model/FormDefinitionRepresentation":97,"../model/FormValueRepresentation":105,"../model/ProcessInstanceVariableRepresentation":125,"../model/SaveFormRepresentation":135}],66:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ArrayNode"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ArrayNode")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TemporaryApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ArrayNode))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.completeTasks=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling completeTasks";if(void 0==t||null==t)throw"Missing the required parameter 'processDefinitionKey' when calling completeTasks";var n={},o={userId:e,processDefinitionKey:t},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/temporary/generate-report-data/complete-tasks","GET",n,o,r,s,i,a,p,l,c)},this.generateData=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling generateData";if(void 0==t||null==t)throw"Missing the required parameter 'processDefinitionKey' when calling generateData";var n={},o={userId:e,processDefinitionKey:t},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/temporary/generate-report-data/start-process","GET",n,o,r,s,i,a,p,l,c)},this.getHeaders=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=t;return this.apiClient.callApi("/api/enterprise/temporary/example-headers","GET",i,n,o,r,e,s,a,p,l)},this.getOptions=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=t;return this.apiClient.callApi("/api/enterprise/temporary/example-options","GET",i,n,o,r,e,s,a,p,l)}};return i})},{"../../../alfrescoApiClient":290,"../model/ArrayNode":80}],67:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/UserActionRepresentation","../model/UserRepresentation","../model/ResultListDataRepresentation","../model/ResetPasswordRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/UserActionRepresentation"),t("../model/UserRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/ResetPasswordRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UserApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.UserActionRepresentation,n.ActivitiPublicRestApi.UserRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.ResetPasswordRepresentation))}(void 0,function(e,t,i,n,o){var r=function(t){this.apiClient=t||e.instance,this.executeAction=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling executeAction";if(void 0==t||null==t)throw"Missing the required parameter 'actionRequest' when calling executeAction";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/users/{userId}","POST",n,o,r,s,i,a,p,l,c)},this.getProfilePicture=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling getProfilePicture";var i={userId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/users/{userId}/picture","GET",i,n,o,r,t,s,a,p,l)},this.getUser=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling getUser";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/users/{userId}","GET",n,o,r,s,t,a,p,l,c)},this.getUsers=function(e){e=e||{};var t=null,i={},o={filter:e.filter,email:e.email,externalId:e.externalId,externalIdCaseInsensitive:e.externalIdCaseInsensitive,excludeTaskId:e.excludeTaskId,excludeProcessId:e.excludeProcessId,groupId:e.groupId,tenantId:e.tenantId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/users","GET",i,o,r,s,t,a,p,l,c)},this.requestPasswordReset=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'resetPassword' when calling requestPasswordReset";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/idm/passwords","POST",i,n,o,r,t,s,a,p,l)},this.updateUser=function(e,t){var n=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling updateUser";if(void 0==t||null==t)throw"Missing the required parameter 'userRequest' when calling updateUser";var o={userId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/users/{userId}","PUT",o,r,s,a,n,p,l,c,u)}};return r})},{"../../../alfrescoApiClient":290,"../model/ResetPasswordRepresentation":131,"../model/ResultListDataRepresentation":133,"../model/UserActionRepresentation":146,"../model/UserRepresentation":149}],68:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/UserProcessInstanceFilterRepresentation","../model/UserTaskFilterRepresentation","../model/ResultListDataRepresentation","../model/UserFilterOrderRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/UserProcessInstanceFilterRepresentation"),t("../model/UserTaskFilterRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/UserFilterOrderRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UserFiltersApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.UserProcessInstanceFilterRepresentation,n.ActivitiPublicRestApi.UserTaskFilterRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.UserFilterOrderRepresentation))}(void 0,function(e,t,i,n,o){var r=function(o){this.apiClient=o||e.instance,this.createUserProcessInstanceFilter=function(e){var i=e;if(void 0==e||null==e)throw"Missing the required parameter 'userProcessInstanceFilterRepresentation' when calling createUserProcessInstanceFilter";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/filters/processes","POST",n,o,r,s,i,a,p,l,c)},this.createUserTaskFilter=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'userTaskFilterRepresentation' when calling createUserTaskFilter";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/filters/tasks","POST",n,o,r,s,t,a,p,l,c)},this.deleteUserProcessInstanceFilter=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userFilterId' when calling deleteUserProcessInstanceFilter";var i={userFilterId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/filters/processes/{userFilterId}","DELETE",i,n,o,r,t,s,a,p,l)},this.deleteUserTaskFilter=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userFilterId' when calling deleteUserTaskFilter";var i={userFilterId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/filters/tasks/{userFilterId}","DELETE",i,n,o,r,t,s,a,p,l)},this.getUserProcessInstanceFilter=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'userFilterId' when calling getUserProcessInstanceFilter";var n={userFilterId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/filters/processes/{userFilterId}","GET",n,o,r,s,i,a,p,l,c)},this.getUserProcessInstanceFilters=function(e){e=e||{};var t=null,i={},o={appId:e.appId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/filters/processes","GET",i,o,r,s,t,a,p,l,c)},this.getUserTaskFilter=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userFilterId' when calling getUserTaskFilter";var n={userFilterId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/filters/tasks/{userFilterId}","GET",n,o,r,s,t,a,p,l,c)},this.getUserTaskFilters=function(e){e=e||{};var t=null,i={},o={appId:e.appId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/filters/tasks","GET",i,o,r,s,t,a,p,l,c)},this.orderUserProcessInstanceFilters=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'filterOrderRepresentation' when calling orderUserProcessInstanceFilters";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/filters/processes","PUT",i,n,o,r,t,s,a,p,l)},this.orderUserTaskFilters=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'filterOrderRepresentation' when calling orderUserTaskFilters";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/filters/tasks","PUT",i,n,o,r,t,s,a,p,l)},this.updateUserProcessInstanceFilter=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'userFilterId' when calling updateUserProcessInstanceFilter";if(void 0==i||null==i)throw"Missing the required parameter 'userProcessInstanceFilterRepresentation' when calling updateUserProcessInstanceFilter";var o={userFilterId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/filters/processes/{userFilterId}","PUT",o,r,s,a,n,p,l,c,u)},this.updateUserTaskFilter=function(e,t){var n=t;if(void 0==e||null==e)throw"Missing the required parameter 'userFilterId' when calling updateUserTaskFilter";if(void 0==t||null==t)throw"Missing the required parameter 'userTaskFilterRepresentation' when calling updateUserTaskFilter";var o={userFilterId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/filters/tasks/{userFilterId}","PUT",o,r,s,a,n,p,l,c,u)}};return r})},{"../../../alfrescoApiClient":290,"../model/ResultListDataRepresentation":133,"../model/UserFilterOrderRepresentation":147,"../model/UserProcessInstanceFilterRepresentation":148,"../model/UserTaskFilterRepresentation":150}],69:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UsersWorkflowApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getUsers=function(e){e=e||{};var i=null,n={},o={filter:e.filter,email:e.email,externalId:e.externalId,externalIdCaseInsensitive:e.externalIdCaseInsensitive,excludeTaskId:e.excludeTaskId,excludeProcessId:e.excludeProcessId,groupId:e.groupId,tenantId:e.tenantId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/users","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":290,"../model/ResultListDataRepresentation":133}],70:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n){"function"==typeof e&&e.amd?e(["../../alfrescoApiClient","./model/AbstractGroupRepresentation","./model/AbstractRepresentation","./model/AbstractUserRepresentation","./model/AddGroupCapabilitiesRepresentation","./model/AppDefinition","./model/AppDefinitionPublishRepresentation","./model/AppDefinitionRepresentation","./model/AppDefinitionUpdateResultRepresentation","./model/AppModelDefinition","./model/ArrayNode","./model/BoxUserAccountCredentialsRepresentation","./model/BulkUserUpdateRepresentation","./model/ChangePasswordRepresentation","./model/ChecklistOrderRepresentation","./model/CommentRepresentation","./model/CompleteFormRepresentation","./model/ConditionRepresentation","./model/CreateEndpointBasicAuthRepresentation","./model/CreateProcessInstanceRepresentation","./model/CreateTenantRepresentation","./model/EndpointBasicAuthRepresentation","./model/EndpointConfigurationRepresentation","./model/EndpointRequestHeaderRepresentation","./model/EntityAttributeScopeRepresentation","./model/EntityVariableScopeRepresentation","./model/File","./model/FormDefinitionRepresentation","./model/FormFieldRepresentation","./model/FormJavascriptEventRepresentation","./model/FormOutcomeRepresentation","./model/FormRepresentation","./model/FormSaveRepresentation","./model/FormScopeRepresentation","./model/FormTabRepresentation","./model/FormValueRepresentation","./model/GroupCapabilityRepresentation","./model/GroupRepresentation","./model/ImageUploadRepresentation","./model/LayoutRepresentation","./model/LightAppRepresentation","./model/LightGroupRepresentation","./model/LightTenantRepresentation","./model/LightUserRepresentation","./model/MaplongListstring","./model/MapstringListEntityVariableScopeRepresentation","./model/MapstringListVariableScopeRepresentation","./model/Mapstringstring","./model/ModelRepresentation","./model/ObjectNode","./model/OptionRepresentation","./model/ProcessFilterRequestRepresentation","./model/ProcessInstanceFilterRepresentation","./model/ProcessInstanceFilterRequestRepresentation","./model/ProcessInstanceRepresentation","./model/ProcessInstanceVariableRepresentation","./model/ProcessScopeIdentifierRepresentation","./model/ProcessScopeRepresentation","./model/ProcessScopesRequestRepresentation","./model/PublishIdentityInfoRepresentation","./model/RelatedContentRepresentation","./model/ResetPasswordRepresentation","./model/RestVariable","./model/ResultListDataRepresentation","./model/RuntimeAppDefinitionSaveRepresentation","./model/SaveFormRepresentation","./model/SyncLogEntryRepresentation","./model/SystemPropertiesRepresentation","./model/TaskFilterRepresentation","./model/TaskFilterRequestRepresentation","./model/TaskQueryRequestRepresentation","./model/TaskRepresentation","./model/TaskUpdateRepresentation","./model/TenantEvent","./model/TenantRepresentation","./model/UserAccountCredentialsRepresentation","./model/UserActionRepresentation","./model/UserFilterOrderRepresentation","./model/UserProcessInstanceFilterRepresentation","./model/UserRepresentation","./model/UserTaskFilterRepresentation","./model/ValidationErrorRepresentation","./model/VariableScopeRepresentation","./api/AboutApi","./api/AdminEndpointsApi","./api/AdminGroupsApi","./api/AdminTenantsApi","./api/AdminUsersApi","./api/AlfrescoApi","./api/AppsApi","./api/AppsDefinitionApi","./api/AppsRuntimeApi","./api/CommentsApi","./api/ContentApi","./api/ContentRenditionApi","./api/EditorApi","./api/GroupsApi","./api/IDMSyncApi","./api/IntegrationApi","./api/IntegrationAccountApi","./api/IntegrationAlfrescoCloudApi","./api/IntegrationAlfrescoOnPremiseApi","./api/IntegrationBoxApi","./api/IntegrationDriveApi","./api/ModelBpmnApi","./api/ModelJsonBpmnApi","./api/ModelsApi","./api/ModelsHistoryApi","./api/ProcessApi","./api/ProcessDefinitionsApi","./api/ProcessDefinitionsFormApi","./api/ProcessInstancesApi","./api/ProcessInstancesInformationApi","./api/ProcessInstancesListingApi","./api/ProcessInstanceVariablesApi","./api/ProcessScopeApi","./api/ProfileApi","./api/ScriptFileApi","./api/SystemPropertiesApi","./api/TaskApi","./api/TaskActionsApi","./api/TaskCheckListApi","./api/TaskFormsApi","./api/TemporaryApi","./api/UserApi","./api/UserFiltersApi","./api/UsersWorkflowApi"],n):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports&&(i.exports=n(t("../../alfrescoApiClient"),t("./model/AbstractGroupRepresentation"),t("./model/AbstractRepresentation"),t("./model/AbstractUserRepresentation"),t("./model/AddGroupCapabilitiesRepresentation"),t("./model/AppDefinition"),t("./model/AppDefinitionPublishRepresentation"),t("./model/AppDefinitionRepresentation"),t("./model/AppDefinitionUpdateResultRepresentation"),t("./model/AppModelDefinition"),t("./model/ArrayNode"),t("./model/BoxUserAccountCredentialsRepresentation"),t("./model/BulkUserUpdateRepresentation"),t("./model/ChangePasswordRepresentation"),t("./model/ChecklistOrderRepresentation"),t("./model/CommentRepresentation"),t("./model/CompleteFormRepresentation"),t("./model/ConditionRepresentation"),t("./model/CreateEndpointBasicAuthRepresentation"),t("./model/CreateProcessInstanceRepresentation"),t("./model/CreateTenantRepresentation"),t("./model/EndpointBasicAuthRepresentation"),t("./model/EndpointConfigurationRepresentation"),t("./model/EndpointRequestHeaderRepresentation"),t("./model/EntityAttributeScopeRepresentation"),t("./model/EntityVariableScopeRepresentation"),t("./model/File"),t("./model/FormDefinitionRepresentation"),t("./model/FormFieldRepresentation"),t("./model/FormJavascriptEventRepresentation"),t("./model/FormOutcomeRepresentation"),t("./model/FormRepresentation"),t("./model/FormSaveRepresentation"),t("./model/FormScopeRepresentation"),t("./model/FormTabRepresentation"),t("./model/FormValueRepresentation"),t("./model/GroupCapabilityRepresentation"),t("./model/GroupRepresentation"),t("./model/ImageUploadRepresentation"),t("./model/LayoutRepresentation"),t("./model/LightAppRepresentation"),t("./model/LightGroupRepresentation"),t("./model/LightTenantRepresentation"),t("./model/LightUserRepresentation"),t("./model/MaplongListstring"),t("./model/MapstringListEntityVariableScopeRepresentation"),t("./model/MapstringListVariableScopeRepresentation"),t("./model/Mapstringstring"),t("./model/ModelRepresentation"),t("./model/ObjectNode"),t("./model/OptionRepresentation"),t("./model/ProcessFilterRequestRepresentation"),t("./model/ProcessInstanceFilterRepresentation"),t("./model/ProcessInstanceFilterRequestRepresentation"),t("./model/ProcessInstanceRepresentation"),t("./model/ProcessInstanceVariableRepresentation"),t("./model/ProcessScopeIdentifierRepresentation"),t("./model/ProcessScopeRepresentation"),t("./model/ProcessScopesRequestRepresentation"),t("./model/PublishIdentityInfoRepresentation"),t("./model/RelatedContentRepresentation"),t("./model/ResetPasswordRepresentation"),t("./model/RestVariable"),t("./model/ResultListDataRepresentation"),t("./model/RuntimeAppDefinitionSaveRepresentation"),t("./model/SaveFormRepresentation"),t("./model/SyncLogEntryRepresentation"),t("./model/SystemPropertiesRepresentation"),t("./model/TaskFilterRepresentation"),t("./model/TaskFilterRequestRepresentation"),t("./model/TaskQueryRequestRepresentation"),t("./model/TaskRepresentation"),t("./model/TaskUpdateRepresentation"),t("./model/TenantEvent"),t("./model/TenantRepresentation"),t("./model/UserAccountCredentialsRepresentation"),t("./model/UserActionRepresentation"),t("./model/UserFilterOrderRepresentation"),t("./model/UserProcessInstanceFilterRepresentation"),t("./model/UserRepresentation"),t("./model/UserTaskFilterRepresentation"),t("./model/ValidationErrorRepresentation"),t("./model/VariableScopeRepresentation"),t("./api/AboutApi"),t("./api/AdminEndpointsApi"),t("./api/AdminGroupsApi"),t("./api/AdminTenantsApi"),t("./api/AdminUsersApi"),t("./api/AlfrescoApi"),t("./api/AppsApi"),t("./api/AppsDefinitionApi"),t("./api/AppsRuntimeApi"),t("./api/CommentsApi"),t("./api/ContentApi"),t("./api/ContentRenditionApi"),t("./api/EditorApi"),t("./api/GroupsApi"),t("./api/IDMSyncApi"),t("./api/IntegrationApi"),t("./api/IntegrationAccountApi"),t("./api/IntegrationAlfrescoCloudApi"),t("./api/IntegrationAlfrescoOnPremiseApi"),t("./api/IntegrationBoxApi"),t("./api/IntegrationDriveApi"),t("./api/ModelBpmnApi"),t("./api/ModelJsonBpmnApi"),t("./api/ModelsApi"),t("./api/ModelsHistoryApi"),t("./api/ProcessApi"),t("./api/ProcessDefinitionsApi"),t("./api/ProcessDefinitionsFormApi"),t("./api/ProcessInstancesApi"),t("./api/ProcessInstancesInformationApi"),t("./api/ProcessInstancesListingApi"),t("./api/ProcessInstanceVariablesApi"),t("./api/ProcessScopeApi"),t("./api/ProfileApi"),t("./api/ScriptFileApi"),t("./api/SystemPropertiesApi"),t("./api/TaskApi"),t("./api/TaskActionsApi"),t("./api/TaskCheckListApi"),t("./api/TaskFormsApi"),t("./api/TemporaryApi"),t("./api/UserApi"),t("./api/UserFiltersApi"),t("./api/UsersWorkflowApi")))}(function(e,t,i,n,o,r,s,a,p,l,c,u,d,f,y,m,h,v,A,g,b,C,R,P,w,T,S,I,j,O,E,k,M,F,x,N,_,D,B,L,q,U,G,V,z,H,Y,K,W,$,J,X,Q,Z,ee,te,ie,ne,oe,re,se,ae,pe,le,ce,ue,de,fe,ye,me,he,ve,Ae,ge,be,Ce,Re,Pe,we,Te,Se,Ie,je,Oe,Ee,ke,Me,Fe,xe,Ne,_e,De,Be,Le,qe,Ue,Ge,Ve,ze,He,Ye,Ke,We,$e,Je,Xe,Qe,Ze,et,tt,it,nt,ot,rt,st,at,pt,lt,ct,ut,dt,ft,yt,mt,ht,vt,At){var gt={ApiClient:e,AbstractGroupRepresentation:t,AbstractRepresentation:i,AbstractUserRepresentation:n,AddGroupCapabilitiesRepresentation:o,AppDefinition:r,AppDefinitionPublishRepresentation:s,AppDefinitionRepresentation:a,AppDefinitionUpdateResultRepresentation:p,AppModelDefinition:l,ArrayNode:c,BoxUserAccountCredentialsRepresentation:u,BulkUserUpdateRepresentation:d,ChangePasswordRepresentation:f,ChecklistOrderRepresentation:y,CommentRepresentation:m,CompleteFormRepresentation:h,ConditionRepresentation:v,CreateEndpointBasicAuthRepresentation:A,CreateProcessInstanceRepresentation:g,CreateTenantRepresentation:b,EndpointBasicAuthRepresentation:C, -EndpointConfigurationRepresentation:R,EndpointRequestHeaderRepresentation:P,EntityAttributeScopeRepresentation:w,EntityVariableScopeRepresentation:T,File:S,FormDefinitionRepresentation:I,FormFieldRepresentation:j,FormJavascriptEventRepresentation:O,FormOutcomeRepresentation:E,FormRepresentation:k,FormSaveRepresentation:M,FormScopeRepresentation:F,FormTabRepresentation:x,FormValueRepresentation:N,GroupCapabilityRepresentation:_,GroupRepresentation:D,ImageUploadRepresentation:B,LayoutRepresentation:L,LightAppRepresentation:q,LightGroupRepresentation:U,LightTenantRepresentation:G,LightUserRepresentation:V,MaplongListstring:z,MapstringListEntityVariableScopeRepresentation:H,MapstringListVariableScopeRepresentation:Y,Mapstringstring:K,ModelRepresentation:W,ObjectNode:$,OptionRepresentation:J,ProcessFilterRequestRepresentation:X,ProcessInstanceFilterRepresentation:Q,ProcessInstanceFilterRequestRepresentation:Z,ProcessInstanceRepresentation:ee,ProcessInstanceVariableRepresentation:te,ProcessScopeIdentifierRepresentation:ie,ProcessScopeRepresentation:ne,ProcessScopesRequestRepresentation:oe,PublishIdentityInfoRepresentation:re,RelatedContentRepresentation:se,ResetPasswordRepresentation:ae,RestVariable:pe,ResultListDataRepresentation:le,RuntimeAppDefinitionSaveRepresentation:ce,SaveFormRepresentation:ue,SyncLogEntryRepresentation:de,SystemPropertiesRepresentation:fe,TaskFilterRepresentation:ye,TaskFilterRequestRepresentation:me,TaskQueryRequestRepresentation:he,TaskRepresentation:ve,TaskUpdateRepresentation:Ae,TenantEvent:ge,TenantRepresentation:be,UserAccountCredentialsRepresentation:Ce,UserActionRepresentation:Re,UserFilterOrderRepresentation:Pe,UserProcessInstanceFilterRepresentation:we,UserRepresentation:Te,UserTaskFilterRepresentation:Se,ValidationErrorRepresentation:Ie,VariableScopeRepresentation:je,AboutApi:Oe,AdminEndpointsApi:Ee,AdminGroupsApi:ke,AdminTenantsApi:Me,AdminUsersApi:Fe,AlfrescoApi:xe,AppsApi:Ne,AppsDefinitionApi:_e,AppsRuntimeApi:De,CommentsApi:Be,ContentApi:Le,ContentRenditionApi:qe,EditorApi:Ue,GroupsApi:Ge,IDMSyncApi:Ve,IntegrationApi:ze,IntegrationAccountApi:He,IntegrationAlfrescoCloudApi:Ye,IntegrationAlfrescoOnPremiseApi:Ke,IntegrationBoxApi:We,IntegrationDriveApi:$e,ModelBpmnApi:Je,ModelJsonBpmnApi:Xe,ModelsApi:Qe,ModelsHistoryApi:Ze,ProcessApi:et,ProcessDefinitionsApi:tt,ProcessDefinitionsFormApi:it,ProcessInstancesApi:nt,ProcessInstancesInformationApi:ot,ProcessInstancesListingApi:rt,ProcessScopeApi:at,ProcessInstanceVariablesApi:st,ProfileApi:pt,ScriptFileApi:lt,SystemPropertiesApi:ct,TaskApi:ut,TaskActionsApi:dt,TaskCheckListApi:ft,TaskFormsApi:yt,TemporaryApi:mt,UserApi:ht,UserFiltersApi:vt,UsersWorkflowApi:At};return gt})},{"../../alfrescoApiClient":290,"./api/AboutApi":26,"./api/AdminEndpointsApi":27,"./api/AdminGroupsApi":28,"./api/AdminTenantsApi":29,"./api/AdminUsersApi":30,"./api/AlfrescoApi":31,"./api/AppsApi":32,"./api/AppsDefinitionApi":33,"./api/AppsRuntimeApi":34,"./api/CommentsApi":35,"./api/ContentApi":36,"./api/ContentRenditionApi":37,"./api/EditorApi":38,"./api/GroupsApi":39,"./api/IDMSyncApi":40,"./api/IntegrationAccountApi":41,"./api/IntegrationAlfrescoCloudApi":42,"./api/IntegrationAlfrescoOnPremiseApi":43,"./api/IntegrationApi":44,"./api/IntegrationBoxApi":45,"./api/IntegrationDriveApi":46,"./api/ModelBpmnApi":47,"./api/ModelJsonBpmnApi":48,"./api/ModelsApi":49,"./api/ModelsHistoryApi":50,"./api/ProcessApi":51,"./api/ProcessDefinitionsApi":52,"./api/ProcessDefinitionsFormApi":53,"./api/ProcessInstanceVariablesApi":54,"./api/ProcessInstancesApi":55,"./api/ProcessInstancesInformationApi":56,"./api/ProcessInstancesListingApi":57,"./api/ProcessScopeApi":58,"./api/ProfileApi":59,"./api/ScriptFileApi":60,"./api/SystemPropertiesApi":61,"./api/TaskActionsApi":62,"./api/TaskApi":63,"./api/TaskCheckListApi":64,"./api/TaskFormsApi":65,"./api/TemporaryApi":66,"./api/UserApi":67,"./api/UserFiltersApi":68,"./api/UsersWorkflowApi":69,"./model/AbstractGroupRepresentation":71,"./model/AbstractRepresentation":72,"./model/AbstractUserRepresentation":73,"./model/AddGroupCapabilitiesRepresentation":74,"./model/AppDefinition":75,"./model/AppDefinitionPublishRepresentation":76,"./model/AppDefinitionRepresentation":77,"./model/AppDefinitionUpdateResultRepresentation":78,"./model/AppModelDefinition":79,"./model/ArrayNode":80,"./model/BoxUserAccountCredentialsRepresentation":81,"./model/BulkUserUpdateRepresentation":82,"./model/ChangePasswordRepresentation":83,"./model/ChecklistOrderRepresentation":84,"./model/CommentRepresentation":85,"./model/CompleteFormRepresentation":86,"./model/ConditionRepresentation":87,"./model/CreateEndpointBasicAuthRepresentation":88,"./model/CreateProcessInstanceRepresentation":89,"./model/CreateTenantRepresentation":90,"./model/EndpointBasicAuthRepresentation":91,"./model/EndpointConfigurationRepresentation":92,"./model/EndpointRequestHeaderRepresentation":93,"./model/EntityAttributeScopeRepresentation":94,"./model/EntityVariableScopeRepresentation":95,"./model/File":96,"./model/FormDefinitionRepresentation":97,"./model/FormFieldRepresentation":98,"./model/FormJavascriptEventRepresentation":99,"./model/FormOutcomeRepresentation":100,"./model/FormRepresentation":101,"./model/FormSaveRepresentation":102,"./model/FormScopeRepresentation":103,"./model/FormTabRepresentation":104,"./model/FormValueRepresentation":105,"./model/GroupCapabilityRepresentation":106,"./model/GroupRepresentation":107,"./model/ImageUploadRepresentation":108,"./model/LayoutRepresentation":109,"./model/LightAppRepresentation":110,"./model/LightGroupRepresentation":111,"./model/LightTenantRepresentation":112,"./model/LightUserRepresentation":113,"./model/MaplongListstring":114,"./model/MapstringListEntityVariableScopeRepresentation":115,"./model/MapstringListVariableScopeRepresentation":116,"./model/Mapstringstring":117,"./model/ModelRepresentation":118,"./model/ObjectNode":119,"./model/OptionRepresentation":120,"./model/ProcessFilterRequestRepresentation":121,"./model/ProcessInstanceFilterRepresentation":122,"./model/ProcessInstanceFilterRequestRepresentation":123,"./model/ProcessInstanceRepresentation":124,"./model/ProcessInstanceVariableRepresentation":125,"./model/ProcessScopeIdentifierRepresentation":126,"./model/ProcessScopeRepresentation":127,"./model/ProcessScopesRequestRepresentation":128,"./model/PublishIdentityInfoRepresentation":129,"./model/RelatedContentRepresentation":130,"./model/ResetPasswordRepresentation":131,"./model/RestVariable":132,"./model/ResultListDataRepresentation":133,"./model/RuntimeAppDefinitionSaveRepresentation":134,"./model/SaveFormRepresentation":135,"./model/SyncLogEntryRepresentation":136,"./model/SystemPropertiesRepresentation":137,"./model/TaskFilterRepresentation":138,"./model/TaskFilterRequestRepresentation":139,"./model/TaskQueryRequestRepresentation":140,"./model/TaskRepresentation":141,"./model/TaskUpdateRepresentation":142,"./model/TenantEvent":143,"./model/TenantRepresentation":144,"./model/UserAccountCredentialsRepresentation":145,"./model/UserActionRepresentation":146,"./model/UserFilterOrderRepresentation":147,"./model/UserProcessInstanceFilterRepresentation":148,"./model/UserRepresentation":149,"./model/UserTaskFilterRepresentation":150,"./model/ValidationErrorRepresentation":151,"./model/VariableScopeRepresentation":152}],71:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AbstractGroupRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("externalId")&&(n.externalId=e.convertToType(i.externalId,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("status")&&(n.status=e.convertToType(i.status,"String"))),n},t.prototype.externalId=void 0,t.prototype.id=void 0,t.prototype.name=void 0,t.prototype.status=void 0,t})},{"../../../alfrescoApiClient":290}],72:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AbstractRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(e,i){return e&&(i=e||new t),i},t})},{"../../../alfrescoApiClient":290}],73:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AbstractUserRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("email")&&(n.email=e.convertToType(i.email,"String")),i.hasOwnProperty("externalId")&&(n.externalId=e.convertToType(i.externalId,"String")),i.hasOwnProperty("firstName")&&(n.firstName=e.convertToType(i.firstName,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("lastName")&&(n.lastName=e.convertToType(i.lastName,"String")),i.hasOwnProperty("pictureId")&&(n.pictureId=e.convertToType(i.pictureId,"Integer"))),n},t.prototype.email=void 0,t.prototype.externalId=void 0,t.prototype.firstName=void 0,t.prototype.id=void 0,t.prototype.lastName=void 0,t.prototype.pictureId=void 0,t})},{"../../../alfrescoApiClient":290}],74:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AddGroupCapabilitiesRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("capabilities")&&(n.capabilities=e.convertToType(i.capabilities,["String"]))),n},t.prototype.capabilities=void 0,t})},{"../../../alfrescoApiClient":290}],75:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/AppModelDefinition","../model/PublishIdentityInfoRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./AppModelDefinition"),t("./PublishIdentityInfoRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppDefinition=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.AppModelDefinition,n.ActivitiPublicRestApi.PublishIdentityInfoRepresentation))}(void 0,function(e,t,i){var n=function(){};return n.constructFromObject=function(o,r){return o&&(r=o||new n,o.hasOwnProperty("icon")&&(r.icon=e.convertToType(o.icon,"String")),o.hasOwnProperty("models")&&(r.models=e.convertToType(o.models,[t])),o.hasOwnProperty("publishIdentityInfo")&&(r.publishIdentityInfo=e.convertToType(o.publishIdentityInfo,[i])),o.hasOwnProperty("theme")&&(r.theme=e.convertToType(o.theme,"String"))),r},n.prototype.icon=void 0,n.prototype.models=void 0,n.prototype.publishIdentityInfo=void 0,n.prototype.theme=void 0,n})},{"../../../alfrescoApiClient":290,"./AppModelDefinition":79,"./PublishIdentityInfoRepresentation":129}],76:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppDefinitionPublishRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("comment")&&(n.comment=e.convertToType(i.comment,"String")),i.hasOwnProperty("force")&&(n.force=e.convertToType(i.force,"Boolean"))),n},t.prototype.comment=void 0,t.prototype.force=void 0,t})},{"../../../alfrescoApiClient":290}],77:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppDefinitionRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("defaultAppId")&&(n.defaultAppId=e.convertToType(i.defaultAppId,"String")),i.hasOwnProperty("deploymentId")&&(n.deploymentId=e.convertToType(i.deploymentId,"String")),i.hasOwnProperty("description")&&(n.description=e.convertToType(i.description,"String")),i.hasOwnProperty("icon")&&(n.icon=e.convertToType(i.icon,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("modelId")&&(n.modelId=e.convertToType(i.modelId,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("tenantId")&&(n.tenantId=e.convertToType(i.tenantId,"Integer")),i.hasOwnProperty("theme")&&(n.theme=e.convertToType(i.theme,"String"))),n},t.prototype.defaultAppId=void 0,t.prototype.deploymentId=void 0,t.prototype.description=void 0,t.prototype.icon=void 0,t.prototype.id=void 0,t.prototype.modelId=void 0,t.prototype.name=void 0,t.prototype.tenantId=void 0,t.prototype.theme=void 0,t})},{"../../../alfrescoApiClient":290}],78:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/AppDefinitionRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./AppDefinitionRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppDefinitionUpdateResultRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.AppDefinitionRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("appDefinition")&&(o.appDefinition=t.constructFromObject(n.appDefinition)),n.hasOwnProperty("customData")&&(o.customData=e.convertToType(n.customData,Object)),n.hasOwnProperty("error")&&(o.error=e.convertToType(n.error,"Boolean")),n.hasOwnProperty("errorDescription")&&(o.errorDescription=e.convertToType(n.errorDescription,"String")),n.hasOwnProperty("errorType")&&(o.errorType=e.convertToType(n.errorType,"Integer")),n.hasOwnProperty("message")&&(o.message=e.convertToType(n.message,"String")),n.hasOwnProperty("messageKey")&&(o.messageKey=e.convertToType(n.messageKey,"String"))),o},i.prototype.appDefinition=void 0,i.prototype.customData=void 0,i.prototype.error=void 0,i.prototype.errorDescription=void 0,i.prototype.errorType=void 0,i.prototype.message=void 0,i.prototype.messageKey=void 0,i})},{"../../../alfrescoApiClient":290,"./AppDefinitionRepresentation":77}],79:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppModelDefinition=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("createdBy")&&(n.createdBy=e.convertToType(i.createdBy,"Integer")),i.hasOwnProperty("createdByFullName")&&(n.createdByFullName=e.convertToType(i.createdByFullName,"String")),i.hasOwnProperty("description")&&(n.description=e.convertToType(i.description,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("lastUpdated")&&(n.lastUpdated=e.convertToType(i.lastUpdated,"Date")),i.hasOwnProperty("lastUpdatedBy")&&(n.lastUpdatedBy=e.convertToType(i.lastUpdatedBy,"Integer")),i.hasOwnProperty("lastUpdatedByFullName")&&(n.lastUpdatedByFullName=e.convertToType(i.lastUpdatedByFullName,"String")),i.hasOwnProperty("modelType")&&(n.modelType=e.convertToType(i.modelType,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("stencilSetId")&&(n.stencilSetId=e.convertToType(i.stencilSetId,"Integer")),i.hasOwnProperty("version")&&(n.version=e.convertToType(i.version,"Integer"))),n},t.prototype.createdBy=void 0,t.prototype.createdByFullName=void 0,t.prototype.description=void 0,t.prototype.id=void 0,t.prototype.lastUpdated=void 0,t.prototype.lastUpdatedBy=void 0,t.prototype.lastUpdatedByFullName=void 0,t.prototype.modelType=void 0,t.prototype.name=void 0,t.prototype.stencilSetId=void 0,t.prototype.version=void 0,t})},{"../../../alfrescoApiClient":290}],80:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ArrayNode=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("array")&&(n.array=e.convertToType(i.array,"Boolean")),i.hasOwnProperty("bigDecimal")&&(n.bigDecimal=e.convertToType(i.bigDecimal,"Boolean")),i.hasOwnProperty("bigInteger")&&(n.bigInteger=e.convertToType(i.bigInteger,"Boolean")),i.hasOwnProperty("binary")&&(n.binary=e.convertToType(i.binary,"Boolean")),i.hasOwnProperty("boolean")&&(n.boolean=e.convertToType(i.boolean,"Boolean")),i.hasOwnProperty("containerNode")&&(n.containerNode=e.convertToType(i.containerNode,"Boolean")),i.hasOwnProperty("double")&&(n.double=e.convertToType(i.double,"Boolean")),i.hasOwnProperty("float")&&(n.float=e.convertToType(i.float,"Boolean")),i.hasOwnProperty("floatingPointNumber")&&(n.floatingPointNumber=e.convertToType(i.floatingPointNumber,"Boolean")),i.hasOwnProperty("int")&&(n.int=e.convertToType(i.int,"Boolean")),i.hasOwnProperty("integralNumber")&&(n.integralNumber=e.convertToType(i.integralNumber,"Boolean")),i.hasOwnProperty("long")&&(n.long=e.convertToType(i.long,"Boolean")),i.hasOwnProperty("missingNode")&&(n.missingNode=e.convertToType(i.missingNode,"Boolean")),i.hasOwnProperty("nodeType")&&(n.nodeType=e.convertToType(i.nodeType,"String")),i.hasOwnProperty("null")&&(n.null=e.convertToType(i.null,"Boolean")),i.hasOwnProperty("number")&&(n.number=e.convertToType(i.number,"Boolean")),i.hasOwnProperty("object")&&(n.object=e.convertToType(i.object,"Boolean")),i.hasOwnProperty("pojo")&&(n.pojo=e.convertToType(i.pojo,"Boolean")),i.hasOwnProperty("short")&&(n.short=e.convertToType(i.short,"Boolean")),i.hasOwnProperty("textual")&&(n.textual=e.convertToType(i.textual,"Boolean")),i.hasOwnProperty("valueNode")&&(n.valueNode=e.convertToType(i.valueNode,"Boolean"))),n},t.prototype.array=void 0,t.prototype.bigDecimal=void 0,t.prototype.bigInteger=void 0,t.prototype.binary=void 0,t.prototype.boolean=void 0,t.prototype.containerNode=void 0,t.prototype.double=void 0,t.prototype.float=void 0,t.prototype.floatingPointNumber=void 0,t.prototype.int=void 0,t.prototype.integralNumber=void 0,t.prototype.long=void 0,t.prototype.missingNode=void 0,t.prototype.nodeType=void 0,t.prototype.null=void 0,t.prototype.number=void 0,t.prototype.object=void 0,t.prototype.pojo=void 0,t.prototype.short=void 0,t.prototype.textual=void 0,t.prototype.valueNode=void 0,t.NodeTypeEnum={ARRAY:"ARRAY",BINARY:"BINARY",BOOLEAN:"BOOLEAN",MISSING:"MISSING",NULL:"NULL",NUMBER:"NUMBER",OBJECT:"OBJECT",POJO:"POJO",STRING:"STRING"},t})},{"../../../alfrescoApiClient":290}],81:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.BoxUserAccountCredentialsRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("authenticationURL")&&(n.authenticationURL=e.convertToType(i.authenticationURL,"String")),i.hasOwnProperty("expireDate")&&(n.expireDate=e.convertToType(i.expireDate,"Date")),i.hasOwnProperty("ownerEmail")&&(n.ownerEmail=e.convertToType(i.ownerEmail,"String"))),n},t.prototype.authenticationURL=void 0,t.prototype.expireDate=void 0,t.prototype.ownerEmail=void 0,t})},{"../../../alfrescoApiClient":290}],82:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.BulkUserUpdateRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("accountType")&&(n.accountType=e.convertToType(i.accountType,"String")),i.hasOwnProperty("password")&&(n.password=e.convertToType(i.password,"String")),i.hasOwnProperty("sendNotifications")&&(n.sendNotifications=e.convertToType(i.sendNotifications,"Boolean")),i.hasOwnProperty("status")&&(n.status=e.convertToType(i.status,"String")),i.hasOwnProperty("tenantId")&&(n.tenantId=e.convertToType(i.tenantId,"Integer")),i.hasOwnProperty("users")&&(n.users=e.convertToType(i.users,["Integer"]))),n},t.prototype.accountType=void 0,t.prototype.password=void 0,t.prototype.sendNotifications=void 0,t.prototype.status=void 0,t.prototype.tenantId=void 0,t.prototype.users=void 0,t})},{"../../../alfrescoApiClient":290}],83:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ChangePasswordRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("newPassword")&&(n.newPassword=e.convertToType(i.newPassword,"String")),i.hasOwnProperty("oldPassword")&&(n.oldPassword=e.convertToType(i.oldPassword,"String"))),n},t.prototype.newPassword=void 0,t.prototype.oldPassword=void 0,t})},{"../../../alfrescoApiClient":290}],84:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ChecklistOrderRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("order")&&(n.order=e.convertToType(i.order,["String"]))),n},t.prototype.order=void 0,t})},{"../../../alfrescoApiClient":290}],85:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/LightUserRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./LightUserRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.CommentRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.LightUserRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("created")&&(o.created=e.convertToType(n.created,"Date")),n.hasOwnProperty("createdBy")&&(o.createdBy=t.constructFromObject(n.createdBy)),n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"Integer")),n.hasOwnProperty("message")&&(o.message=e.convertToType(n.message,"String"))),o},i.prototype.created=void 0,i.prototype.createdBy=void 0,i.prototype.id=void 0,i.prototype.message=void 0,i})},{"../../../alfrescoApiClient":290,"./LightUserRepresentation":113}],86:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.CompleteFormRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("outcome")&&(n.outcome=e.convertToType(i.outcome,"String")),i.hasOwnProperty("values")&&(n.values=e.convertToType(i.values,Object))),n},t.prototype.outcome=void 0,t.prototype.values=void 0,t})},{"../../../alfrescoApiClient":290}],87:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ConditionRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("leftFormFieldId")&&(n.leftFormFieldId=e.convertToType(i.leftFormFieldId,"String")),i.hasOwnProperty("leftRestResponseId")&&(n.leftRestResponseId=e.convertToType(i.leftRestResponseId,"String")),i.hasOwnProperty("nextConditionOperator")&&(n.nextConditionOperator=e.convertToType(i.nextConditionOperator,"String")),i.hasOwnProperty("operator")&&(n.operator=e.convertToType(i.operator,"String")),i.hasOwnProperty("rightFormFieldId")&&(n.rightFormFieldId=e.convertToType(i.rightFormFieldId,"String")),i.hasOwnProperty("rightRestResponseId")&&(n.rightRestResponseId=e.convertToType(i.rightRestResponseId,"String")),i.hasOwnProperty("rightType")&&(n.rightType=e.convertToType(i.rightType,"String")),i.hasOwnProperty("rightValue")&&(n.rightValue=e.convertToType(i.rightValue,Object))),n},t.prototype.leftFormFieldId=void 0,t.prototype.leftRestResponseId=void 0,t.prototype.nextConditionOperator=void 0,t.prototype.operator=void 0,t.prototype.rightFormFieldId=void 0,t.prototype.rightRestResponseId=void 0,t.prototype.rightType=void 0,t.prototype.rightValue=void 0,t})},{"../../../alfrescoApiClient":290}],88:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.CreateEndpointBasicAuthRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("password")&&(n.password=e.convertToType(i.password,"String")),i.hasOwnProperty("tenantId")&&(n.tenantId=e.convertToType(i.tenantId,"Integer")),i.hasOwnProperty("username")&&(n.username=e.convertToType(i.username,"String"))),n},t.prototype.name=void 0,t.prototype.password=void 0,t.prototype.tenantId=void 0,t.prototype.username=void 0,t})},{"../../../alfrescoApiClient":290}],89:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.CreateProcessInstanceRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")), -i.hasOwnProperty("outcome")&&(n.outcome=e.convertToType(i.outcome,"String")),i.hasOwnProperty("processDefinitionId")&&(n.processDefinitionId=e.convertToType(i.processDefinitionId,"String")),i.hasOwnProperty("values")&&(n.values=e.convertToType(i.values,Object))),n},t.prototype.name=void 0,t.prototype.outcome=void 0,t.prototype.processDefinitionId=void 0,t.prototype.values=void 0,t})},{"../../../alfrescoApiClient":290}],90:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.CreateTenantRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("active")&&(n.active=e.convertToType(i.active,"Boolean")),i.hasOwnProperty("domain")&&(n.domain=e.convertToType(i.domain,"String")),i.hasOwnProperty("maxUsers")&&(n.maxUsers=e.convertToType(i.maxUsers,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String"))),n},t.prototype.active=void 0,t.prototype.domain=void 0,t.prototype.maxUsers=void 0,t.prototype.name=void 0,t})},{"../../../alfrescoApiClient":290}],91:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.EndpointBasicAuthRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("created")&&(n.created=e.convertToType(i.created,"Date")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("lastUpdated")&&(n.lastUpdated=e.convertToType(i.lastUpdated,"Date")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("tenantId")&&(n.tenantId=e.convertToType(i.tenantId,"Integer")),i.hasOwnProperty("username")&&(n.username=e.convertToType(i.username,"String"))),n},t.prototype.created=void 0,t.prototype.id=void 0,t.prototype.lastUpdated=void 0,t.prototype.name=void 0,t.prototype.tenantId=void 0,t.prototype.username=void 0,t})},{"../../../alfrescoApiClient":290}],92:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/EndpointRequestHeaderRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./EndpointRequestHeaderRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.EndpointConfigurationRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.EndpointRequestHeaderRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("basicAuthId")&&(o.basicAuthId=e.convertToType(n.basicAuthId,"Integer")),n.hasOwnProperty("basicAuthName")&&(o.basicAuthName=e.convertToType(n.basicAuthName,"String")),n.hasOwnProperty("host")&&(o.host=e.convertToType(n.host,"String")),n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"Integer")),n.hasOwnProperty("name")&&(o.name=e.convertToType(n.name,"String")),n.hasOwnProperty("path")&&(o.path=e.convertToType(n.path,"String")),n.hasOwnProperty("port")&&(o.port=e.convertToType(n.port,"String")),n.hasOwnProperty("protocol")&&(o.protocol=e.convertToType(n.protocol,"String")),n.hasOwnProperty("requestHeaders")&&(o.requestHeaders=e.convertToType(n.requestHeaders,[t])),n.hasOwnProperty("tenantId")&&(o.tenantId=e.convertToType(n.tenantId,"Integer"))),o},i.prototype.basicAuthId=void 0,i.prototype.basicAuthName=void 0,i.prototype.host=void 0,i.prototype.id=void 0,i.prototype.name=void 0,i.prototype.path=void 0,i.prototype.port=void 0,i.prototype.protocol=void 0,i.prototype.requestHeaders=void 0,i.prototype.tenantId=void 0,i})},{"../../../alfrescoApiClient":290,"./EndpointRequestHeaderRepresentation":93}],93:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.EndpointRequestHeaderRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("value")&&(n.value=e.convertToType(i.value,"String"))),n},t.prototype.name=void 0,t.prototype.value=void 0,t})},{"../../../alfrescoApiClient":290}],94:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.EntityAttributeScopeRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("type")&&(n.type=e.convertToType(i.type,"String"))),n},t.prototype.name=void 0,t.prototype.type=void 0,t})},{"../../../alfrescoApiClient":290}],95:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/EntityAttributeScopeRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./EntityAttributeScopeRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.EntityVariableScopeRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.EntityAttributeScopeRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("attributes")&&(o.attributes=e.convertToType(n.attributes,[t])),n.hasOwnProperty("entityName")&&(o.entityName=e.convertToType(n.entityName,"String")),n.hasOwnProperty("mappedDataModel")&&(o.mappedDataModel=e.convertToType(n.mappedDataModel,"Integer")),n.hasOwnProperty("mappedVariableName")&&(o.mappedVariableName=e.convertToType(n.mappedVariableName,"String"))),o},i.prototype.attributes=void 0,i.prototype.entityName=void 0,i.prototype.mappedDataModel=void 0,i.prototype.mappedVariableName=void 0,i})},{"../../../alfrescoApiClient":290,"./EntityAttributeScopeRepresentation":94}],96:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.File=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("absolute")&&(n.absolute=e.convertToType(i.absolute,"Boolean")),i.hasOwnProperty("absoluteFile")&&(n.absoluteFile=e.convertToType(i.absoluteFile,File)),i.hasOwnProperty("absolutePath")&&(n.absolutePath=e.convertToType(i.absolutePath,"String")),i.hasOwnProperty("canonicalFile")&&(n.canonicalFile=e.convertToType(i.canonicalFile,File)),i.hasOwnProperty("canonicalPath")&&(n.canonicalPath=e.convertToType(i.canonicalPath,"String")),i.hasOwnProperty("directory")&&(n.directory=e.convertToType(i.directory,"Boolean")),i.hasOwnProperty("file")&&(n.file=e.convertToType(i.file,"Boolean")),i.hasOwnProperty("freeSpace")&&(n.freeSpace=e.convertToType(i.freeSpace,"Integer")),i.hasOwnProperty("hidden")&&(n.hidden=e.convertToType(i.hidden,"Boolean")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("parent")&&(n.parent=e.convertToType(i.parent,"String")),i.hasOwnProperty("parentFile")&&(n.parentFile=e.convertToType(i.parentFile,File)),i.hasOwnProperty("path")&&(n.path=e.convertToType(i.path,"String")),i.hasOwnProperty("totalSpace")&&(n.totalSpace=e.convertToType(i.totalSpace,"Integer")),i.hasOwnProperty("usableSpace")&&(n.usableSpace=e.convertToType(i.usableSpace,"Integer"))),n},t.prototype.absolute=void 0,t.prototype.absoluteFile=void 0,t.prototype.absolutePath=void 0,t.prototype.canonicalFile=void 0,t.prototype.canonicalPath=void 0,t.prototype.directory=void 0,t.prototype.file=void 0,t.prototype.freeSpace=void 0,t.prototype.hidden=void 0,t.prototype.name=void 0,t.prototype.parent=void 0,t.prototype.parentFile=void 0,t.prototype.path=void 0,t.prototype.totalSpace=void 0,t.prototype.usableSpace=void 0,t})},{"../../../alfrescoApiClient":290}],97:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/FormFieldRepresentation","../model/FormJavascriptEventRepresentation","../model/FormOutcomeRepresentation","../model/FormTabRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./FormFieldRepresentation"),t("./FormJavascriptEventRepresentation"),t("./FormOutcomeRepresentation"),t("./FormTabRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormDefinitionRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.FormFieldRepresentation,n.ActivitiPublicRestApi.FormJavascriptEventRepresentation,n.ActivitiPublicRestApi.FormOutcomeRepresentation,n.ActivitiPublicRestApi.FormTabRepresentation))}(void 0,function(e,t,i,n,o){var r=function(){};return r.constructFromObject=function(s,a){return s&&(a=s||new r,s.hasOwnProperty("className")&&(a.className=e.convertToType(s.className,"String")),s.hasOwnProperty("customFieldTemplates")&&(a.customFieldTemplates=e.convertToType(s.customFieldTemplates,{String:"String"})),s.hasOwnProperty("fields")&&(a.fields=e.convertToType(s.fields,[t])),s.hasOwnProperty("gridsterForm")&&(a.gridsterForm=e.convertToType(s.gridsterForm,"Boolean")),s.hasOwnProperty("id")&&(a.id=e.convertToType(s.id,"Integer")),s.hasOwnProperty("javascriptEvents")&&(a.javascriptEvents=e.convertToType(s.javascriptEvents,[i])),s.hasOwnProperty("metadata")&&(a.metadata=e.convertToType(s.metadata,{String:"String"})),s.hasOwnProperty("name")&&(a.name=e.convertToType(s.name,"String")),s.hasOwnProperty("outcomeTarget")&&(a.outcomeTarget=e.convertToType(s.outcomeTarget,"String")),s.hasOwnProperty("outcomes")&&(a.outcomes=e.convertToType(s.outcomes,[n])),s.hasOwnProperty("processDefinitionId")&&(a.processDefinitionId=e.convertToType(s.processDefinitionId,"String")),s.hasOwnProperty("processDefinitionKey")&&(a.processDefinitionKey=e.convertToType(s.processDefinitionKey,"String")),s.hasOwnProperty("processDefinitionName")&&(a.processDefinitionName=e.convertToType(s.processDefinitionName,"String")),s.hasOwnProperty("selectedOutcome")&&(a.selectedOutcome=e.convertToType(s.selectedOutcome,"String")),s.hasOwnProperty("style")&&(a.style=e.convertToType(s.style,"String")),s.hasOwnProperty("tabs")&&(a.tabs=e.convertToType(s.tabs,[o])),s.hasOwnProperty("taskDefinitionKey")&&(a.taskDefinitionKey=e.convertToType(s.taskDefinitionKey,"String")),s.hasOwnProperty("taskId")&&(a.taskId=e.convertToType(s.taskId,"String")),s.hasOwnProperty("taskName")&&(a.taskName=e.convertToType(s.taskName,"String"))),a},r.prototype.className=void 0,r.prototype.customFieldTemplates=void 0,r.prototype.fields=void 0,r.prototype.gridsterForm=void 0,r.prototype.id=void 0,r.prototype.javascriptEvents=void 0,r.prototype.metadata=void 0,r.prototype.name=void 0,r.prototype.outcomeTarget=void 0,r.prototype.outcomes=void 0,r.prototype.processDefinitionId=void 0,r.prototype.processDefinitionKey=void 0,r.prototype.processDefinitionName=void 0,r.prototype.selectedOutcome=void 0,r.prototype.style=void 0,r.prototype.tabs=void 0,r.prototype.taskDefinitionKey=void 0,r.prototype.taskId=void 0,r.prototype.taskName=void 0,r})},{"../../../alfrescoApiClient":290,"./FormFieldRepresentation":98,"./FormJavascriptEventRepresentation":99,"./FormOutcomeRepresentation":100,"./FormTabRepresentation":104}],98:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ConditionRepresentation","../model/LayoutRepresentation","../model/OptionRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./ConditionRepresentation"),t("./LayoutRepresentation"),t("./OptionRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormFieldRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ConditionRepresentation,n.ActivitiPublicRestApi.LayoutRepresentation,n.ActivitiPublicRestApi.OptionRepresentation))}(void 0,function(e,t,i,n){var o=function(){};return o.constructFromObject=function(r,s){return r&&(s=r||new o,r.hasOwnProperty("className")&&(s.className=e.convertToType(r.className,"String")),r.hasOwnProperty("col")&&(s.col=e.convertToType(r.col,"Integer")),r.hasOwnProperty("colspan")&&(s.colspan=e.convertToType(r.colspan,"Integer")),r.hasOwnProperty("hasEmptyValue")&&(s.hasEmptyValue=e.convertToType(r.hasEmptyValue,"Boolean")),r.hasOwnProperty("id")&&(s.id=e.convertToType(r.id,"String")),r.hasOwnProperty("layout")&&(s.layout=i.constructFromObject(r.layout)),r.hasOwnProperty("maxLength")&&(s.maxLength=e.convertToType(r.maxLength,"Integer")),r.hasOwnProperty("maxValue")&&(s.maxValue=e.convertToType(r.maxValue,"String")),r.hasOwnProperty("minLength")&&(s.minLength=e.convertToType(r.minLength,"Integer")),r.hasOwnProperty("minValue")&&(s.minValue=e.convertToType(r.minValue,"String")),r.hasOwnProperty("name")&&(s.name=e.convertToType(r.name,"String")),r.hasOwnProperty("optionType")&&(s.optionType=e.convertToType(r.optionType,"String")),r.hasOwnProperty("options")&&(s.options=e.convertToType(r.options,[n])),r.hasOwnProperty("overrideId")&&(s.overrideId=e.convertToType(r.overrideId,"Boolean")),r.hasOwnProperty("params")&&(s.params=e.convertToType(r.params,Object)),r.hasOwnProperty("placeholder")&&(s.placeholder=e.convertToType(r.placeholder,"String")),r.hasOwnProperty("readOnly")&&(s.readOnly=e.convertToType(r.readOnly,"Boolean")),r.hasOwnProperty("regexPattern")&&(s.regexPattern=e.convertToType(r.regexPattern,"String")),r.hasOwnProperty("required")&&(s.required=e.convertToType(r.required,"Boolean")),r.hasOwnProperty("restIdProperty")&&(s.restIdProperty=e.convertToType(r.restIdProperty,"String")),r.hasOwnProperty("restLabelProperty")&&(s.restLabelProperty=e.convertToType(r.restLabelProperty,"String")),r.hasOwnProperty("restResponsePath")&&(s.restResponsePath=e.convertToType(r.restResponsePath,"String")),r.hasOwnProperty("restUrl")&&(s.restUrl=e.convertToType(r.restUrl,"String")),r.hasOwnProperty("row")&&(s.row=e.convertToType(r.row,"Integer")),r.hasOwnProperty("sizeX")&&(s.sizeX=e.convertToType(r.sizeX,"Integer")),r.hasOwnProperty("sizeY")&&(s.sizeY=e.convertToType(r.sizeY,"Integer")),r.hasOwnProperty("tab")&&(s.tab=e.convertToType(r.tab,"String")),r.hasOwnProperty("type")&&(s.type=e.convertToType(r.type,"String")),r.hasOwnProperty("value")&&(s.value=e.convertToType(r.value,Object)),r.hasOwnProperty("visibilityCondition")&&(s.visibilityCondition=t.constructFromObject(r.visibilityCondition))),s},o.prototype.className=void 0,o.prototype.col=void 0,o.prototype.colspan=void 0,o.prototype.hasEmptyValue=void 0,o.prototype.id=void 0,o.prototype.layout=void 0,o.prototype.maxLength=void 0,o.prototype.maxValue=void 0,o.prototype.minLength=void 0,o.prototype.minValue=void 0,o.prototype.name=void 0,o.prototype.optionType=void 0,o.prototype.options=void 0,o.prototype.overrideId=void 0,o.prototype.params=void 0,o.prototype.placeholder=void 0,o.prototype.readOnly=void 0,o.prototype.regexPattern=void 0,o.prototype.required=void 0,o.prototype.restIdProperty=void 0,o.prototype.restLabelProperty=void 0,o.prototype.restResponsePath=void 0,o.prototype.restUrl=void 0,o.prototype.row=void 0,o.prototype.sizeX=void 0,o.prototype.sizeY=void 0,o.prototype.tab=void 0,o.prototype.type=void 0,o.prototype.value=void 0,o.prototype.visibilityCondition=void 0,o})},{"../../../alfrescoApiClient":290,"./ConditionRepresentation":87,"./LayoutRepresentation":109,"./OptionRepresentation":120}],99:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormJavascriptEventRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("event")&&(n.event=e.convertToType(i.event,"String")),i.hasOwnProperty("javascriptLogic")&&(n.javascriptLogic=e.convertToType(i.javascriptLogic,"String"))),n},t.prototype.event=void 0,t.prototype.javascriptLogic=void 0,t})},{"../../../alfrescoApiClient":290}],100:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormOutcomeRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"String")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String"))),n},t.prototype.id=void 0,t.prototype.name=void 0,t})},{"../../../alfrescoApiClient":290}],101:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/FormDefinitionRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./FormDefinitionRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.FormDefinitionRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("description")&&(o.description=e.convertToType(n.description,"String")),n.hasOwnProperty("formDefinition")&&(o.formDefinition=t.constructFromObject(n.formDefinition)),n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"Integer")),n.hasOwnProperty("lastUpdated")&&(o.lastUpdated=e.convertToType(n.lastUpdated,"Date")),n.hasOwnProperty("lastUpdatedBy")&&(o.lastUpdatedBy=e.convertToType(n.lastUpdatedBy,"Integer")),n.hasOwnProperty("lastUpdatedByFullName")&&(o.lastUpdatedByFullName=e.convertToType(n.lastUpdatedByFullName,"String")),n.hasOwnProperty("name")&&(o.name=e.convertToType(n.name,"String")),n.hasOwnProperty("referenceId")&&(o.referenceId=e.convertToType(n.referenceId,"Integer")),n.hasOwnProperty("stencilSetId")&&(o.stencilSetId=e.convertToType(n.stencilSetId,"Integer")),n.hasOwnProperty("version")&&(o.version=e.convertToType(n.version,"Integer"))),o},i.prototype.description=void 0,i.prototype.formDefinition=void 0,i.prototype.id=void 0,i.prototype.lastUpdated=void 0,i.prototype.lastUpdatedBy=void 0,i.prototype.lastUpdatedByFullName=void 0,i.prototype.name=void 0,i.prototype.referenceId=void 0,i.prototype.stencilSetId=void 0,i.prototype.version=void 0,i})},{"../../../alfrescoApiClient":290,"./FormDefinitionRepresentation":97}],102:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/FormRepresentation","../model/ProcessScopeIdentifierRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./FormRepresentation"),t("./ProcessScopeIdentifierRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormSaveRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.FormRepresentation,n.ActivitiPublicRestApi.ProcessScopeIdentifierRepresentation))}(void 0,function(e,t,i){var n=function(){};return n.constructFromObject=function(o,r){return o&&(r=o||new n,o.hasOwnProperty("comment")&&(r.comment=e.convertToType(o.comment,"String")),o.hasOwnProperty("formImageBase64")&&(r.formImageBase64=e.convertToType(o.formImageBase64,"String")),o.hasOwnProperty("formRepresentation")&&(r.formRepresentation=t.constructFromObject(o.formRepresentation)),o.hasOwnProperty("newVersion")&&(r.newVersion=e.convertToType(o.newVersion,"Boolean")),o.hasOwnProperty("processScopeIdentifiers")&&(r.processScopeIdentifiers=e.convertToType(o.processScopeIdentifiers,[i])),o.hasOwnProperty("reusable")&&(r.reusable=e.convertToType(o.reusable,"Boolean"))),r},n.prototype.comment=void 0,n.prototype.formImageBase64=void 0,n.prototype.formRepresentation=void 0,n.prototype.newVersion=void 0,n.prototype.processScopeIdentifiers=void 0,n.prototype.reusable=void 0,n})},{"../../../alfrescoApiClient":290,"./FormRepresentation":101,"./ProcessScopeIdentifierRepresentation":126}],103:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/FormFieldRepresentation","../model/FormOutcomeRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./FormFieldRepresentation"),t("./FormOutcomeRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormScopeRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.FormFieldRepresentation,n.ActivitiPublicRestApi.FormOutcomeRepresentation))}(void 0,function(e,t,i){var n=function(){};return n.constructFromObject=function(o,r){return o&&(r=o||new n,o.hasOwnProperty("description")&&(r.description=e.convertToType(o.description,"String")),o.hasOwnProperty("fieldVariables")&&(r.fieldVariables=e.convertToType(o.fieldVariables,[t])),o.hasOwnProperty("fields")&&(r.fields=e.convertToType(o.fields,[t])),o.hasOwnProperty("id")&&(r.id=e.convertToType(o.id,"Integer")),o.hasOwnProperty("name")&&(r.name=e.convertToType(o.name,"String")),o.hasOwnProperty("outcomes")&&(r.outcomes=e.convertToType(o.outcomes,[i]))),r},n.prototype.description=void 0,n.prototype.fieldVariables=void 0,n.prototype.fields=void 0,n.prototype.id=void 0,n.prototype.name=void 0,n.prototype.outcomes=void 0,n})},{"../../../alfrescoApiClient":290,"./FormFieldRepresentation":98,"./FormOutcomeRepresentation":100}],104:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ConditionRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./ConditionRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormTabRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ConditionRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"String")),n.hasOwnProperty("title")&&(o.title=e.convertToType(n.title,"String")),n.hasOwnProperty("visibilityCondition")&&(o.visibilityCondition=t.constructFromObject(n.visibilityCondition))),o},i.prototype.id=void 0,i.prototype.title=void 0,i.prototype.visibilityCondition=void 0,i})},{"../../../alfrescoApiClient":290,"./ConditionRepresentation":87}],105:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormValueRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"String")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String"))),n},t.prototype.id=void 0,t.prototype.name=void 0,t})},{"../../../alfrescoApiClient":290}],106:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.GroupCapabilityRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String"))),n},t.prototype.id=void 0,t.prototype.name=void 0,t})},{"../../../alfrescoApiClient":290}],107:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/GroupCapabilityRepresentation","../model/GroupRepresentation","../model/UserRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./GroupCapabilityRepresentation"),t("./GroupRepresentation"),t("./UserRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.GroupRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.GroupCapabilityRepresentation,n.ActivitiPublicRestApi.GroupRepresentation,n.ActivitiPublicRestApi.UserRepresentation))}(void 0,function(e,t,i,n){var o=function(){};return o.constructFromObject=function(r,s){return r&&(s=r||new o,r.hasOwnProperty("capabilities")&&(s.capabilities=e.convertToType(r.capabilities,[t])),r.hasOwnProperty("externalId")&&(s.externalId=e.convertToType(r.externalId,"String")),r.hasOwnProperty("groups")&&(s.groups=e.convertToType(r.groups,[i])),r.hasOwnProperty("id")&&(s.id=e.convertToType(r.id,"Integer")),r.hasOwnProperty("lastSyncTimeStamp")&&(s.lastSyncTimeStamp=e.convertToType(r.lastSyncTimeStamp,"Date")),r.hasOwnProperty("name")&&(s.name=e.convertToType(r.name,"String")),r.hasOwnProperty("parentGroupId")&&(s.parentGroupId=e.convertToType(r.parentGroupId,"Integer")),r.hasOwnProperty("status")&&(s.status=e.convertToType(r.status,"String")),r.hasOwnProperty("tenantId")&&(s.tenantId=e.convertToType(r.tenantId,"Integer")),r.hasOwnProperty("type")&&(s.type=e.convertToType(r.type,"Integer")),r.hasOwnProperty("userCount")&&(s.userCount=e.convertToType(r.userCount,"Integer")),r.hasOwnProperty("users")&&(s.users=e.convertToType(r.users,[n]))),s},o.prototype.capabilities=void 0,o.prototype.externalId=void 0,o.prototype.groups=void 0,o.prototype.id=void 0,o.prototype.lastSyncTimeStamp=void 0,o.prototype.name=void 0,o.prototype.parentGroupId=void 0,o.prototype.status=void 0,o.prototype.tenantId=void 0,o.prototype.type=void 0,o.prototype.userCount=void 0,o.prototype.users=void 0,o})},{"../../../alfrescoApiClient":290,"./GroupCapabilityRepresentation":106,"./GroupRepresentation":107,"./UserRepresentation":149}],108:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ImageUploadRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("created")&&(n.created=e.convertToType(i.created,"Date")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("userId")&&(n.userId=e.convertToType(i.userId,"Integer"))),n},t.prototype.created=void 0,t.prototype.id=void 0,t.prototype.name=void 0,t.prototype.userId=void 0,t})},{"../../../alfrescoApiClient":290 -}],109:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.LayoutRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("colspan")&&(n.colspan=e.convertToType(i.colspan,"Integer")),i.hasOwnProperty("column")&&(n.column=e.convertToType(i.column,"Integer")),i.hasOwnProperty("row")&&(n.row=e.convertToType(i.row,"Integer"))),n},t.prototype.colspan=void 0,t.prototype.column=void 0,t.prototype.row=void 0,t})},{"../../../alfrescoApiClient":290}],110:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.LightAppRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("description")&&(n.description=e.convertToType(i.description,"String")),i.hasOwnProperty("icon")&&(n.icon=e.convertToType(i.icon,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("theme")&&(n.theme=e.convertToType(i.theme,"String"))),n},t.prototype.description=void 0,t.prototype.icon=void 0,t.prototype.id=void 0,t.prototype.name=void 0,t.prototype.theme=void 0,t})},{"../../../alfrescoApiClient":290}],111:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/LightGroupRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./LightGroupRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.LightGroupRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.LightGroupRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("externalId")&&(o.externalId=e.convertToType(n.externalId,"String")),n.hasOwnProperty("groups")&&(o.groups=e.convertToType(n.groups,[t])),n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"Integer")),n.hasOwnProperty("name")&&(o.name=e.convertToType(n.name,"String")),n.hasOwnProperty("status")&&(o.status=e.convertToType(n.status,"String"))),o},i.prototype.externalId=void 0,i.prototype.groups=void 0,i.prototype.id=void 0,i.prototype.name=void 0,i.prototype.status=void 0,i})},{"../../../alfrescoApiClient":290,"./LightGroupRepresentation":111}],112:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.LightTenantRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String"))),n},t.prototype.id=void 0,t.prototype.name=void 0,t})},{"../../../alfrescoApiClient":290}],113:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.LightUserRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("email")&&(n.email=e.convertToType(i.email,"String")),i.hasOwnProperty("externalId")&&(n.externalId=e.convertToType(i.externalId,"String")),i.hasOwnProperty("firstName")&&(n.firstName=e.convertToType(i.firstName,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("lastName")&&(n.lastName=e.convertToType(i.lastName,"String")),i.hasOwnProperty("pictureId")&&(n.pictureId=e.convertToType(i.pictureId,"Integer"))),n},t.prototype.email=void 0,t.prototype.externalId=void 0,t.prototype.firstName=void 0,t.prototype.id=void 0,t.prototype.lastName=void 0,t.prototype.pictureId=void 0,t})},{"../../../alfrescoApiClient":290}],114:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.MaplongListstring=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){var e=this;return e};return t.constructFromObject=function(i,n){return i&&(n=i||new t,e.constructFromObject(i,n,Array)),n},t})},{"../../../alfrescoApiClient":290}],115:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.MapstringListEntityVariableScopeRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){var e=this;return e};return t.constructFromObject=function(i,n){return i&&(n=i||new t,e.constructFromObject(i,n,Array)),n},t})},{"../../../alfrescoApiClient":290}],116:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.MapstringListVariableScopeRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){var e=this;return e};return t.constructFromObject=function(i,n){return i&&(n=i||new t,e.constructFromObject(i,n,Array)),n},t})},{"../../../alfrescoApiClient":290}],117:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.Mapstringstring=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){var e=this;return e};return t.constructFromObject=function(i,n){return i&&(n=i||new t,e.constructFromObject(i,n,String)),n},t})},{"../../../alfrescoApiClient":290}],118:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ModelRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("comment")&&(n.comment=e.convertToType(i.comment,"String")),i.hasOwnProperty("createdBy")&&(n.createdBy=e.convertToType(i.createdBy,"Integer")),i.hasOwnProperty("createdByFullName")&&(n.createdByFullName=e.convertToType(i.createdByFullName,"String")),i.hasOwnProperty("description")&&(n.description=e.convertToType(i.description,"String")),i.hasOwnProperty("favorite")&&(n.favorite=e.convertToType(i.favorite,"Boolean")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("lastUpdated")&&(n.lastUpdated=e.convertToType(i.lastUpdated,"Date")),i.hasOwnProperty("lastUpdatedBy")&&(n.lastUpdatedBy=e.convertToType(i.lastUpdatedBy,"Integer")),i.hasOwnProperty("lastUpdatedByFullName")&&(n.lastUpdatedByFullName=e.convertToType(i.lastUpdatedByFullName,"String")),i.hasOwnProperty("latestVersion")&&(n.latestVersion=e.convertToType(i.latestVersion,"Boolean")),i.hasOwnProperty("modelType")&&(n.modelType=e.convertToType(i.modelType,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("permission")&&(n.permission=e.convertToType(i.permission,"String")),i.hasOwnProperty("referenceId")&&(n.referenceId=e.convertToType(i.referenceId,"Integer")),i.hasOwnProperty("stencilSet")&&(n.stencilSet=e.convertToType(i.stencilSet,"Integer")),i.hasOwnProperty("version")&&(n.version=e.convertToType(i.version,"Integer"))),n},t.prototype.comment=void 0,t.prototype.createdBy=void 0,t.prototype.createdByFullName=void 0,t.prototype.description=void 0,t.prototype.favorite=void 0,t.prototype.id=void 0,t.prototype.lastUpdated=void 0,t.prototype.lastUpdatedBy=void 0,t.prototype.lastUpdatedByFullName=void 0,t.prototype.latestVersion=void 0,t.prototype.modelType=void 0,t.prototype.name=void 0,t.prototype.permission=void 0,t.prototype.referenceId=void 0,t.prototype.stencilSet=void 0,t.prototype.version=void 0,t})},{"../../../alfrescoApiClient":290}],119:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ObjectNode=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(e,i){return e&&(i=e||new t),i},t})},{"../../../alfrescoApiClient":290}],120:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.OptionRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"String")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String"))),n},t.prototype.id=void 0,t.prototype.name=void 0,t})},{"../../../alfrescoApiClient":290}],121:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessFilterRequestRepresentation.js=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("processDefinitionId")&&(n.processDefinitionId=e.convertToType(i.processDefinitionId,"Integer")),i.hasOwnProperty("appDefinitionId")&&(n.appDefinitionId=e.convertToType(i.appDefinitionId,"Integer")),i.hasOwnProperty("sort")&&(n.sort=e.convertToType(i.sort,"String")),i.hasOwnProperty("state")&&(n.state=e.convertToType(i.state,"String")),i.hasOwnProperty("page")&&(n.page=e.convertToType(i.page,"Integer")),i.hasOwnProperty("size")&&(n.size=e.convertToType(i.size,"Integer"))),n},t.prototype.processDefinitionId=void 0,t.prototype.appDefinitionId=void 0,t.prototype.state=void 0,t.prototype.sort=void 0,t.prototype.page=void 0,t.prototype.size=void 0,t})},{"../../../alfrescoApiClient":290}],122:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstanceFilterRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("asc")&&(n.asc=e.convertToType(i.asc,"Boolean")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("processDefinitionId")&&(n.processDefinitionId=e.convertToType(i.processDefinitionId,"String")),i.hasOwnProperty("processDefinitionKey")&&(n.processDefinitionKey=e.convertToType(i.processDefinitionKey,"String")),i.hasOwnProperty("sort")&&(n.sort=e.convertToType(i.sort,"String")),i.hasOwnProperty("state")&&(n.state=e.convertToType(i.state,"String"))),n},t.prototype.asc=void 0,t.prototype.name=void 0,t.prototype.processDefinitionId=void 0,t.prototype.processDefinitionKey=void 0,t.prototype.sort=void 0,t.prototype.state=void 0,t})},{"../../../alfrescoApiClient":290}],123:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ProcessInstanceFilterRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./ProcessInstanceFilterRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstanceFilterRequestRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ProcessInstanceFilterRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("appDefinitionId")&&(o.appDefinitionId=e.convertToType(n.appDefinitionId,"Integer")),n.hasOwnProperty("filter")&&(o.filter=t.constructFromObject(n.filter)),n.hasOwnProperty("filterId")&&(o.filterId=e.convertToType(n.filterId,"Integer")),n.hasOwnProperty("page")&&(o.page=e.convertToType(n.page,"Integer")),n.hasOwnProperty("size")&&(o.size=e.convertToType(n.size,"Integer"))),o},i.prototype.appDefinitionId=void 0,i.prototype.filter=void 0,i.prototype.filterId=void 0,i.prototype.page=void 0,i.prototype.size=void 0,i})},{"../../../alfrescoApiClient":290,"./ProcessInstanceFilterRepresentation":122}],124:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/LightUserRepresentation","../model/RestVariable"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./LightUserRepresentation"),t("./RestVariable")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstanceRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.LightUserRepresentation,n.ActivitiPublicRestApi.RestVariable))}(void 0,function(e,t,i){var n=function(){};return n.constructFromObject=function(o,r){return o&&(r=o||new n,o.hasOwnProperty("businessKey")&&(r.businessKey=e.convertToType(o.businessKey,"String")),o.hasOwnProperty("ended")&&(r.ended=e.convertToType(o.ended,"Date")),o.hasOwnProperty("graphicalNotationDefined")&&(r.graphicalNotationDefined=e.convertToType(o.graphicalNotationDefined,"Boolean")),o.hasOwnProperty("id")&&(r.id=e.convertToType(o.id,"String")),o.hasOwnProperty("name")&&(r.name=e.convertToType(o.name,"String")),o.hasOwnProperty("processDefinitionCategory")&&(r.processDefinitionCategory=e.convertToType(o.processDefinitionCategory,"String")),o.hasOwnProperty("processDefinitionDeploymentId")&&(r.processDefinitionDeploymentId=e.convertToType(o.processDefinitionDeploymentId,"String")),o.hasOwnProperty("processDefinitionDescription")&&(r.processDefinitionDescription=e.convertToType(o.processDefinitionDescription,"String")),o.hasOwnProperty("processDefinitionId")&&(r.processDefinitionId=e.convertToType(o.processDefinitionId,"String")),o.hasOwnProperty("processDefinitionKey")&&(r.processDefinitionKey=e.convertToType(o.processDefinitionKey,"String")),o.hasOwnProperty("processDefinitionName")&&(r.processDefinitionName=e.convertToType(o.processDefinitionName,"String")),o.hasOwnProperty("processDefinitionVersion")&&(r.processDefinitionVersion=e.convertToType(o.processDefinitionVersion,"Integer")),o.hasOwnProperty("startFormDefined")&&(r.startFormDefined=e.convertToType(o.startFormDefined,"Boolean")),o.hasOwnProperty("started")&&(r.started=e.convertToType(o.started,"Date")),o.hasOwnProperty("startedBy")&&(r.startedBy=t.constructFromObject(o.startedBy)),o.hasOwnProperty("tenantId")&&(r.tenantId=e.convertToType(o.tenantId,"String")),o.hasOwnProperty("variables")&&(r.variables=e.convertToType(o.variables,[i]))),r},n.prototype.businessKey=void 0,n.prototype.ended=void 0,n.prototype.graphicalNotationDefined=void 0,n.prototype.id=void 0,n.prototype.name=void 0,n.prototype.processDefinitionCategory=void 0,n.prototype.processDefinitionDeploymentId=void 0,n.prototype.processDefinitionDescription=void 0,n.prototype.processDefinitionId=void 0,n.prototype.processDefinitionKey=void 0,n.prototype.processDefinitionName=void 0,n.prototype.processDefinitionVersion=void 0,n.prototype.startFormDefined=void 0,n.prototype.started=void 0,n.prototype.startedBy=void 0,n.prototype.tenantId=void 0,n.prototype.variables=void 0,n})},{"../../../alfrescoApiClient":290,"./LightUserRepresentation":113,"./RestVariable":132}],125:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstanceVariableRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"String")),i.hasOwnProperty("type")&&(n.type=e.convertToType(i.type,"String")),i.hasOwnProperty("name")&&(n.value=e.convertToType(i.value,Object))),n},t.prototype.id=void 0,t.prototype.type=void 0,t.prototype.value=void 0,t})},{"../../../alfrescoApiClient":290}],126:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessScopeIdentifierRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("processActivityId")&&(n.processActivityId=e.convertToType(i.processActivityId,"String")),i.hasOwnProperty("processModelId")&&(n.processModelId=e.convertToType(i.processModelId,"Integer"))),n},t.prototype.processActivityId=void 0,t.prototype.processModelId=void 0,t})},{"../../../alfrescoApiClient":290}],127:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/FormScopeRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./FormScopeRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessScopeRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.FormScopeRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("activityIds")&&(o.activityIds=e.convertToType(n.activityIds,["String"])),n.hasOwnProperty("activityIdsByCollapsedSubProcessIdMap")&&(o.activityIdsByCollapsedSubProcessIdMap=e.convertToType(n.activityIdsByCollapsedSubProcessIdMap,{String:Array})),n.hasOwnProperty("activityIdsByDecisionTableIdMap")&&(o.activityIdsByDecisionTableIdMap=e.convertToType(n.activityIdsByDecisionTableIdMap,{String:Array})),n.hasOwnProperty("activityIdsByFormIdMap")&&(o.activityIdsByFormIdMap=e.convertToType(n.activityIdsByFormIdMap,{String:Array})),n.hasOwnProperty("activityIdsWithExcludedSubProcess")&&(o.activityIdsWithExcludedSubProcess=e.convertToType(n.activityIdsWithExcludedSubProcess,["String"])),n.hasOwnProperty("customStencilVariables")&&(o.customStencilVariables=e.convertToType(n.customStencilVariables,{String:Array})),n.hasOwnProperty("entityVariables")&&(o.entityVariables=e.convertToType(n.entityVariables,{String:Array})),n.hasOwnProperty("executionVariables")&&(o.executionVariables=e.convertToType(n.executionVariables,{String:Array})),n.hasOwnProperty("fieldToVariableMappings")&&(o.fieldToVariableMappings=e.convertToType(n.fieldToVariableMappings,{String:Array})),n.hasOwnProperty("forms")&&(o.forms=e.convertToType(n.forms,[t])),n.hasOwnProperty("metadataVariables")&&(o.metadataVariables=e.convertToType(n.metadataVariables,{String:Array})),n.hasOwnProperty("modelId")&&(o.modelId=e.convertToType(n.modelId,"Integer")),n.hasOwnProperty("processModelType")&&(o.processModelType=e.convertToType(n.processModelType,"Integer")),n.hasOwnProperty("responseVariables")&&(o.responseVariables=e.convertToType(n.responseVariables,{String:Array}))),o},i.prototype.activityIds=void 0,i.prototype.activityIdsByCollapsedSubProcessIdMap=void 0,i.prototype.activityIdsByDecisionTableIdMap=void 0,i.prototype.activityIdsByFormIdMap=void 0,i.prototype.activityIdsWithExcludedSubProcess=void 0,i.prototype.customStencilVariables=void 0,i.prototype.entityVariables=void 0,i.prototype.executionVariables=void 0,i.prototype.fieldToVariableMappings=void 0,i.prototype.forms=void 0,i.prototype.metadataVariables=void 0,i.prototype.modelId=void 0,i.prototype.processModelType=void 0,i.prototype.responseVariables=void 0,i})},{"../../../alfrescoApiClient":290,"./FormScopeRepresentation":103}],128:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ProcessScopeIdentifierRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./ProcessScopeIdentifierRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessScopesRequestRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ProcessScopeIdentifierRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("identifiers")&&(o.identifiers=e.convertToType(n.identifiers,[t])),n.hasOwnProperty("overriddenModel")&&(o.overriddenModel=e.convertToType(n.overriddenModel,"String"))),o},i.prototype.identifiers=void 0,i.prototype.overriddenModel=void 0,i})},{"../../../alfrescoApiClient":290,"./ProcessScopeIdentifierRepresentation":126}],129:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/LightGroupRepresentation","../model/LightUserRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./LightGroupRepresentation"),t("./LightUserRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.PublishIdentityInfoRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.LightGroupRepresentation,n.ActivitiPublicRestApi.LightUserRepresentation))}(void 0,function(e,t,i){var n=function(){};return n.constructFromObject=function(o,r){return o&&(r=o||new n,o.hasOwnProperty("group")&&(r.group=t.constructFromObject(o.group)),o.hasOwnProperty("person")&&(r.person=i.constructFromObject(o.person)),o.hasOwnProperty("type")&&(r.type=e.convertToType(o.type,"String"))),r},n.prototype.group=void 0,n.prototype.person=void 0,n.prototype.type=void 0,n})},{"../../../alfrescoApiClient":290,"./LightGroupRepresentation":111,"./LightUserRepresentation":113}],130:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/LightUserRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./LightUserRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.RelatedContentRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.LightUserRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("contentAvailable")&&(o.contentAvailable=e.convertToType(n.contentAvailable,"Boolean")),n.hasOwnProperty("created")&&(o.created=e.convertToType(n.created,"Date")),n.hasOwnProperty("createdBy")&&(o.createdBy=t.constructFromObject(n.createdBy)),n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"Integer")),n.hasOwnProperty("link")&&(o.link=e.convertToType(n.link,"Boolean")),n.hasOwnProperty("linkUrl")&&(o.linkUrl=e.convertToType(n.linkUrl,"String")),n.hasOwnProperty("mimeType")&&(o.mimeType=e.convertToType(n.mimeType,"String")),n.hasOwnProperty("name")&&(o.name=e.convertToType(n.name,"String")),n.hasOwnProperty("previewStatus")&&(o.previewStatus=e.convertToType(n.previewStatus,"String")),n.hasOwnProperty("simpleType")&&(o.simpleType=e.convertToType(n.simpleType,"String")),n.hasOwnProperty("source")&&(o.source=e.convertToType(n.source,"String")),n.hasOwnProperty("sourceId")&&(o.sourceId=e.convertToType(n.sourceId,"String")),n.hasOwnProperty("thumbnailStatus")&&(o.thumbnailStatus=e.convertToType(n.thumbnailStatus,"String"))),o},i.prototype.contentAvailable=void 0,i.prototype.created=void 0,i.prototype.createdBy=void 0,i.prototype.id=void 0,i.prototype.link=void 0,i.prototype.linkUrl=void 0,i.prototype.mimeType=void 0,i.prototype.name=void 0,i.prototype.previewStatus=void 0,i.prototype.simpleType=void 0,i.prototype.source=void 0,i.prototype.sourceId=void 0,i.prototype.thumbnailStatus=void 0,i})},{"../../../alfrescoApiClient":290,"./LightUserRepresentation":113}],131:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ResetPasswordRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("email")&&(n.email=e.convertToType(i.email,"String"))),n},t.prototype.email=void 0,t})},{"../../../alfrescoApiClient":290}],132:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.RestVariable=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("scope")&&(n.scope=e.convertToType(i.scope,"String")),i.hasOwnProperty("type")&&(n.type=e.convertToType(i.type,"String")),i.hasOwnProperty("value")&&(n.value=e.convertToType(i.value,Object)),i.hasOwnProperty("valueUrl")&&(n.valueUrl=e.convertToType(i.valueUrl,"String"))),n},t.prototype.name=void 0,t.prototype.scope=void 0,t.prototype.type=void 0,t.prototype.value=void 0,t.prototype.valueUrl=void 0, -t})},{"../../../alfrescoApiClient":290}],133:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/AbstractRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./AbstractRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ResultListDataRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.AbstractRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(t,n){return t&&(n=t||new i,t.hasOwnProperty("data")&&(n.data=e.convertToType(t.data,"object")),t.hasOwnProperty("size")&&(n.size=e.convertToType(t.size,"Integer")),t.hasOwnProperty("start")&&(n.start=e.convertToType(t.start,"Integer")),t.hasOwnProperty("total")&&(n.total=e.convertToType(t.total,"Integer"))),n},i.prototype.data=void 0,i.prototype.size=void 0,i.prototype.start=void 0,i.prototype.total=void 0,i})},{"../../../alfrescoApiClient":290,"./AbstractRepresentation":72}],134:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/AppDefinitionRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./AppDefinitionRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.RuntimeAppDefinitionSaveRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.AppDefinitionRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("appDefinitions")&&(o.appDefinitions=e.convertToType(n.appDefinitions,[t]))),o},i.prototype.appDefinitions=void 0,i})},{"../../../alfrescoApiClient":290,"./AppDefinitionRepresentation":77}],135:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.SaveFormRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("values")&&(n.values=e.convertToType(i.values,Object))),n},t.prototype.values=void 0,t})},{"../../../alfrescoApiClient":290}],136:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.SyncLogEntryRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("timeStamp")&&(n.timeStamp=e.convertToType(i.timeStamp,"Date")),i.hasOwnProperty("type")&&(n.type=e.convertToType(i.type,"String"))),n},t.prototype.id=void 0,t.prototype.timeStamp=void 0,t.prototype.type=void 0,t})},{"../../../alfrescoApiClient":290}],137:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.SystemPropertiesRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("allowInvolveByEmail")&&(n.allowInvolveByEmail=e.convertToType(i.allowInvolveByEmail,"Boolean"))),n},t.prototype.allowInvolveByEmail=void 0,t})},{"../../../alfrescoApiClient":290}],138:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskFilterRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("asc")&&(n.asc=e.convertToType(i.asc,"Boolean")),i.hasOwnProperty("assignment")&&(n.assignment=e.convertToType(i.assignment,"String")),i.hasOwnProperty("dueAfter")&&(n.dueAfter=e.convertToType(i.dueAfter,"Date")),i.hasOwnProperty("dueBefore")&&(n.dueBefore=e.convertToType(i.dueBefore,"Date")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("processDefinitionId")&&(n.processDefinitionId=e.convertToType(i.processDefinitionId,"String")),i.hasOwnProperty("processDefinitionKey")&&(n.processDefinitionKey=e.convertToType(i.processDefinitionKey,"String")),i.hasOwnProperty("sort")&&(n.sort=e.convertToType(i.sort,"String")),i.hasOwnProperty("state")&&(n.state=e.convertToType(i.state,"String"))),n},t.prototype.asc=void 0,t.prototype.assignment=void 0,t.prototype.dueAfter=void 0,t.prototype.dueBefore=void 0,t.prototype.name=void 0,t.prototype.processDefinitionId=void 0,t.prototype.processDefinitionKey=void 0,t.prototype.sort=void 0,t.prototype.state=void 0,t})},{"../../../alfrescoApiClient":290}],139:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/TaskFilterRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./TaskFilterRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskFilterRequestRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.TaskFilterRepresentation))}(void 0,function(e,t){var i=function(){this.hasOwnProperty("filter")||this.hasOwnProperty("filterId")||(this.filter=new t)};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("appDefinitionId")&&(o.appDefinitionId=e.convertToType(n.appDefinitionId,"Integer")),n.hasOwnProperty("filter")&&(o.filter=t.constructFromObject(n.filter)),n.hasOwnProperty("filterId")&&(o.filterId=e.convertToType(n.filterId,"Integer")),n.hasOwnProperty("page")&&(o.page=e.convertToType(n.page,"Integer")),n.hasOwnProperty("size")&&(o.size=e.convertToType(n.size,"Integer"))),o},i.prototype.appDefinitionId=void 0,i.prototype.filter=void 0,i.prototype.filterId=void 0,i.prototype.page=void 0,i.prototype.size=void 0,i})},{"../../../alfrescoApiClient":290,"./TaskFilterRepresentation":138}],140:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskQueryRequestRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("processInstanceId")&&(n.processInstanceId=e.convertToType(i.processInstanceId,"Integer")),i.hasOwnProperty("text")&&(n.text=TaskFilterRepresentation.constructFromObject(i.text,"String")),i.hasOwnProperty("assignment")&&(n.assignment=e.convertToType(i.assignment)),i.hasOwnProperty("state")&&(n.state=e.convertToType(i.state,"String")),i.hasOwnProperty("sort")&&(n.sort=e.convertToType(i.sort,"String")),i.hasOwnProperty("page")&&(n.page=e.convertToType(i.page,"Integer")),i.hasOwnProperty("size")&&(n.size=e.convertToType(i.size,"Integer"))),n},t.prototype.processInstanceId=void 0,t.prototype.text=void 0,t.prototype.assignment=void 0,t.prototype.state=void 0,t.prototype.sort=void 0,t.prototype.page=void 0,t.prototype.size=void 0,t})},{"../../../alfrescoApiClient":290}],141:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/LightUserRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./LightUserRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.LightUserRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("adhocTaskCanBeReassigned")&&(o.adhocTaskCanBeReassigned=e.convertToType(n.adhocTaskCanBeReassigned,"Boolean")),n.hasOwnProperty("assignee")&&(o.assignee=t.constructFromObject(n.assignee)),n.hasOwnProperty("category")&&(o.category=e.convertToType(n.category,"String")),n.hasOwnProperty("created")&&(o.created=e.convertToType(n.created,"Date")),n.hasOwnProperty("description")&&(o.description=e.convertToType(n.description,"String")),n.hasOwnProperty("dueDate")&&(o.dueDate=e.convertToType(n.dueDate,"Date")),n.hasOwnProperty("duration")&&(o.duration=e.convertToType(n.duration,"Integer")),n.hasOwnProperty("endDate")&&(o.endDate=e.convertToType(n.endDate,"Date")),n.hasOwnProperty("formKey")&&(o.formKey=e.convertToType(n.formKey,"String")),n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"String")),n.hasOwnProperty("initiatorCanCompleteTask")&&(o.initiatorCanCompleteTask=e.convertToType(n.initiatorCanCompleteTask,"Boolean")),n.hasOwnProperty("involvedPeople")&&(o.involvedPeople=e.convertToType(n.involvedPeople,[t])),n.hasOwnProperty("memberOfCandidateGroup")&&(o.memberOfCandidateGroup=e.convertToType(n.memberOfCandidateGroup,"Boolean")),n.hasOwnProperty("memberOfCandidateUsers")&&(o.memberOfCandidateUsers=e.convertToType(n.memberOfCandidateUsers,"Boolean")),n.hasOwnProperty("name")&&(o.name=e.convertToType(n.name,"String")),n.hasOwnProperty("parentTaskId")&&(o.parentTaskId=e.convertToType(n.parentTaskId,"String")),n.hasOwnProperty("parentTaskName")&&(o.parentTaskName=e.convertToType(n.parentTaskName,"String")),n.hasOwnProperty("priority")&&(o.priority=e.convertToType(n.priority,"Integer")),n.hasOwnProperty("processDefinitionCategory")&&(o.processDefinitionCategory=e.convertToType(n.processDefinitionCategory,"String")),n.hasOwnProperty("processDefinitionDeploymentId")&&(o.processDefinitionDeploymentId=e.convertToType(n.processDefinitionDeploymentId,"String")),n.hasOwnProperty("processDefinitionDescription")&&(o.processDefinitionDescription=e.convertToType(n.processDefinitionDescription,"String")),n.hasOwnProperty("processDefinitionId")&&(o.processDefinitionId=e.convertToType(n.processDefinitionId,"String")),n.hasOwnProperty("processDefinitionKey")&&(o.processDefinitionKey=e.convertToType(n.processDefinitionKey,"String")),n.hasOwnProperty("processDefinitionName")&&(o.processDefinitionName=e.convertToType(n.processDefinitionName,"String")),n.hasOwnProperty("processDefinitionVersion")&&(o.processDefinitionVersion=e.convertToType(n.processDefinitionVersion,"Integer")),n.hasOwnProperty("processInstanceId")&&(o.processInstanceId=e.convertToType(n.processInstanceId,"String")),n.hasOwnProperty("processInstanceName")&&(o.processInstanceName=e.convertToType(n.processInstanceName,"String")),n.hasOwnProperty("processInstanceStartUserId")&&(o.processInstanceStartUserId=e.convertToType(n.processInstanceStartUserId,"String"))),o},i.prototype.adhocTaskCanBeReassigned=void 0,i.prototype.assignee=void 0,i.prototype.category=void 0,i.prototype.created=void 0,i.prototype.description=void 0,i.prototype.dueDate=void 0,i.prototype.duration=void 0,i.prototype.endDate=void 0,i.prototype.formKey=void 0,i.prototype.id=void 0,i.prototype.initiatorCanCompleteTask=void 0,i.prototype.involvedPeople=void 0,i.prototype.memberOfCandidateGroup=void 0,i.prototype.memberOfCandidateUsers=void 0,i.prototype.name=void 0,i.prototype.parentTaskId=void 0,i.prototype.parentTaskName=void 0,i.prototype.priority=void 0,i.prototype.processDefinitionCategory=void 0,i.prototype.processDefinitionDeploymentId=void 0,i.prototype.processDefinitionDescription=void 0,i.prototype.processDefinitionId=void 0,i.prototype.processDefinitionKey=void 0,i.prototype.processDefinitionName=void 0,i.prototype.processDefinitionVersion=void 0,i.prototype.processInstanceId=void 0,i.prototype.processInstanceName=void 0,i.prototype.processInstanceStartUserId=void 0,i})},{"../../../alfrescoApiClient":290,"./LightUserRepresentation":113}],142:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskUpdateRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("description")&&(n.description=e.convertToType(i.description,"String")),i.hasOwnProperty("descriptionSet")&&(n.descriptionSet=e.convertToType(i.descriptionSet,"Boolean")),i.hasOwnProperty("dueDate")&&(n.dueDate=e.convertToType(i.dueDate,"Date")),i.hasOwnProperty("dueDateSet")&&(n.dueDateSet=e.convertToType(i.dueDateSet,"Boolean")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("nameSet")&&(n.nameSet=e.convertToType(i.nameSet,"Boolean"))),n},t.prototype.description=void 0,t.prototype.descriptionSet=void 0,t.prototype.dueDate=void 0,t.prototype.dueDateSet=void 0,t.prototype.name=void 0,t.prototype.nameSet=void 0,t})},{"../../../alfrescoApiClient":290}],143:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TenantEvent=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("eventTime")&&(n.eventTime=e.convertToType(i.eventTime,"Date")),i.hasOwnProperty("eventType")&&(n.eventType=e.convertToType(i.eventType,"String")),i.hasOwnProperty("extraInfo")&&(n.extraInfo=e.convertToType(i.extraInfo,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("tenantId")&&(n.tenantId=e.convertToType(i.tenantId,"Integer")),i.hasOwnProperty("userId")&&(n.userId=e.convertToType(i.userId,"Integer")),i.hasOwnProperty("userName")&&(n.userName=e.convertToType(i.userName,"String"))),n},t.prototype.eventTime=void 0,t.prototype.eventType=void 0,t.prototype.extraInfo=void 0,t.prototype.id=void 0,t.prototype.tenantId=void 0,t.prototype.userId=void 0,t.prototype.userName=void 0,t})},{"../../../alfrescoApiClient":290}],144:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TenantRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("active")&&(n.active=e.convertToType(i.active,"Boolean")),i.hasOwnProperty("created")&&(n.created=e.convertToType(i.created,"Date")),i.hasOwnProperty("domain")&&(n.domain=e.convertToType(i.domain,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("lastUpdate")&&(n.lastUpdate=e.convertToType(i.lastUpdate,"Date")),i.hasOwnProperty("logoId")&&(n.logoId=e.convertToType(i.logoId,"Integer")),i.hasOwnProperty("maxUsers")&&(n.maxUsers=e.convertToType(i.maxUsers,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String"))),n},t.prototype.active=void 0,t.prototype.created=void 0,t.prototype.domain=void 0,t.prototype.id=void 0,t.prototype.lastUpdate=void 0,t.prototype.logoId=void 0,t.prototype.maxUsers=void 0,t.prototype.name=void 0,t})},{"../../../alfrescoApiClient":290}],145:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UserAccountCredentialsRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("password")&&(n.password=e.convertToType(i.password,"String")),i.hasOwnProperty("username")&&(n.username=e.convertToType(i.username,"String"))),n},t.prototype.password=void 0,t.prototype.username=void 0,t})},{"../../../alfrescoApiClient":290}],146:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UserActionRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("action")&&(n.action=e.convertToType(i.action,"String")),i.hasOwnProperty("newPassword")&&(n.newPassword=e.convertToType(i.newPassword,"String")),i.hasOwnProperty("oldPassword")&&(n.oldPassword=e.convertToType(i.oldPassword,"String"))),n},t.prototype.action=void 0,t.prototype.newPassword=void 0,t.prototype.oldPassword=void 0,t})},{"../../../alfrescoApiClient":290}],147:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UserFilterOrderRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("appId")&&(n.appId=e.convertToType(i.appId,"Integer")),i.hasOwnProperty("order")&&(n.order=e.convertToType(i.order,["Integer"]))),n},t.prototype.appId=void 0,t.prototype.order=void 0,t})},{"../../../alfrescoApiClient":290}],148:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ProcessInstanceFilterRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./ProcessInstanceFilterRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UserProcessInstanceFilterRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ProcessInstanceFilterRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("appId")&&(o.appId=e.convertToType(n.appId,"Integer")),n.hasOwnProperty("filter")&&(o.filter=t.constructFromObject(n.filter)),n.hasOwnProperty("icon")&&(o.icon=e.convertToType(n.icon,"String")),n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"Integer")),n.hasOwnProperty("index")&&(o.index=e.convertToType(n.index,"Integer")),n.hasOwnProperty("name")&&(o.name=e.convertToType(n.name,"String")),n.hasOwnProperty("recent")&&(o.recent=e.convertToType(n.recent,"Boolean"))),o},i.prototype.appId=void 0,i.prototype.filter=void 0,i.prototype.icon=void 0,i.prototype.id=void 0,i.prototype.index=void 0,i.prototype.name=void 0,i.prototype.recent=void 0,i})},{"../../../alfrescoApiClient":290,"./ProcessInstanceFilterRepresentation":122}],149:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/GroupRepresentation","../model/LightAppRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./GroupRepresentation"),t("./LightAppRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UserRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.GroupRepresentation,n.ActivitiPublicRestApi.LightAppRepresentation))}(void 0,function(e,t,i){var n=function(){};return n.constructFromObject=function(o,r){return o&&(r=o||new n,o.hasOwnProperty("apps")&&(r.apps=e.convertToType(o.apps,[i])),o.hasOwnProperty("capabilities")&&(r.capabilities=e.convertToType(o.capabilities,["String"])),o.hasOwnProperty("company")&&(r.company=e.convertToType(o.company,"String")),o.hasOwnProperty("created")&&(r.created=e.convertToType(o.created,"Date")),o.hasOwnProperty("email")&&(r.email=e.convertToType(o.email,"String")),o.hasOwnProperty("externalId")&&(r.externalId=e.convertToType(o.externalId,"String")),o.hasOwnProperty("firstName")&&(r.firstName=e.convertToType(o.firstName,"String")),o.hasOwnProperty("fullname")&&(r.fullname=e.convertToType(o.fullname,"String")),o.hasOwnProperty("groups")&&(r.groups=e.convertToType(o.groups,[t])),o.hasOwnProperty("id")&&(r.id=e.convertToType(o.id,"Integer")),o.hasOwnProperty("lastName")&&(r.lastName=e.convertToType(o.lastName,"String")),o.hasOwnProperty("lastUpdate")&&(r.lastUpdate=e.convertToType(o.lastUpdate,"Date")),o.hasOwnProperty("latestSyncTimeStamp")&&(r.latestSyncTimeStamp=e.convertToType(o.latestSyncTimeStamp,"Date")),o.hasOwnProperty("password")&&(r.password=e.convertToType(o.password,"String")),o.hasOwnProperty("pictureId")&&(r.pictureId=e.convertToType(o.pictureId,"Integer")),o.hasOwnProperty("status")&&(r.status=e.convertToType(o.status,"String")),o.hasOwnProperty("tenantId")&&(r.tenantId=e.convertToType(o.tenantId,"Integer")),o.hasOwnProperty("tenantName")&&(r.tenantName=e.convertToType(o.tenantName,"String")),o.hasOwnProperty("tenantPictureId")&&(r.tenantPictureId=e.convertToType(o.tenantPictureId,"Integer")),o.hasOwnProperty("type")&&(r.type=e.convertToType(o.type,"String"))),r},n.prototype.apps=void 0,n.prototype.capabilities=void 0,n.prototype.company=void 0,n.prototype.created=void 0,n.prototype.email=void 0,n.prototype.externalId=void 0,n.prototype.firstName=void 0,n.prototype.fullname=void 0,n.prototype.groups=void 0,n.prototype.id=void 0,n.prototype.lastName=void 0,n.prototype.lastUpdate=void 0,n.prototype.latestSyncTimeStamp=void 0,n.prototype.password=void 0,n.prototype.pictureId=void 0,n.prototype.status=void 0,n.prototype.tenantId=void 0,n.prototype.tenantName=void 0,n.prototype.tenantPictureId=void 0,n.prototype.type=void 0,n})},{"../../../alfrescoApiClient":290,"./GroupRepresentation":107,"./LightAppRepresentation":110}],150:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/TaskFilterRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./TaskFilterRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UserTaskFilterRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.TaskFilterRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("appId")&&(o.appId=e.convertToType(n.appId,"Integer")),n.hasOwnProperty("filter")&&(o.filter=t.constructFromObject(n.filter)),n.hasOwnProperty("icon")&&(o.icon=e.convertToType(n.icon,"String")),n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"Integer")),n.hasOwnProperty("index")&&(o.index=e.convertToType(n.index,"Integer")),n.hasOwnProperty("name")&&(o.name=e.convertToType(n.name,"String")),n.hasOwnProperty("recent")&&(o.recent=e.convertToType(n.recent,"Boolean"))),o},i.prototype.appId=void 0,i.prototype.filter=void 0,i.prototype.icon=void 0,i.prototype.id=void 0,i.prototype.index=void 0,i.prototype.name=void 0,i.prototype.recent=void 0,i})},{"../../../alfrescoApiClient":290,"./TaskFilterRepresentation":138}],151:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ValidationErrorRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("defaultDescription")&&(n.defaultDescription=e.convertToType(i.defaultDescription,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"String")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("problem")&&(n.problem=e.convertToType(i.problem,"String")),i.hasOwnProperty("problemReference")&&(n.problemReference=e.convertToType(i.problemReference,"String")),i.hasOwnProperty("validatorSetName")&&(n.validatorSetName=e.convertToType(i.validatorSetName,"String")),i.hasOwnProperty("warning")&&(n.warning=e.convertToType(i.warning,"Boolean"))),n},t.prototype.defaultDescription=void 0,t.prototype.id=void 0,t.prototype.name=void 0,t.prototype.problem=void 0,t.prototype.problemReference=void 0,t.prototype.validatorSetName=void 0,t.prototype.warning=void 0,t})},{"../../../alfrescoApiClient":290}],152:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.VariableScopeRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("mapVariable")&&(n.mapVariable=e.convertToType(i.mapVariable,"String")),i.hasOwnProperty("mappedColumn")&&(n.mappedColumn=e.convertToType(i.mappedColumn,"String")),i.hasOwnProperty("mappedDataModel")&&(n.mappedDataModel=e.convertToType(i.mappedDataModel,"Integer")),i.hasOwnProperty("mappedEntity")&&(n.mappedEntity=e.convertToType(i.mappedEntity,"String")),i.hasOwnProperty("mappedVariableName")&&(n.mappedVariableName=e.convertToType(i.mappedVariableName,"String")),i.hasOwnProperty("processVariableName")&&(n.processVariableName=e.convertToType(i.processVariableName,"String")),i.hasOwnProperty("processVariableType")&&(n.processVariableType=e.convertToType(i.processVariableType,"String"))),n},t.prototype.mapVariable=void 0,t.prototype.mappedColumn=void 0,t.prototype.mappedDataModel=void 0,t.prototype.mappedEntity=void 0,t.prototype.mappedVariableName=void 0,t.prototype.processVariableName=void 0,t.prototype.processVariableType=void 0,t})},{"../../../alfrescoApiClient":290}],153:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/Error","../model/LoginTicketEntry","../model/LoginRequest","../model/ValidateTicketEntry"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/Error"),t("../model/LoginTicketEntry"),t("../model/LoginRequest"),t("../model/ValidateTicketEntry")):(n.AlfrescoAuthRestApi||(n.AlfrescoAuthRestApi={}),n.AlfrescoAuthRestApi.AuthenticationApi=r(n.AlfrescoAuthRestApi.ApiClient,n.AlfrescoAuthRestApi.Error,n.AlfrescoAuthRestApi.LoginTicketEntry,n.AlfrescoAuthRestApi.LoginRequest,n.AlfrescoAuthRestApi.ValidateTicketEntry))}(void 0,function(e,t,i,n,o){var r=function(t){this.apiClient=t||e.instance,this.createTicket=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'loginRequest' when calling createTicket";var n={},o={},r={},s={},a=["basicAuth"],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/tickets","POST",n,o,r,s,t,a,p,l,c); -},this.deleteTicket=function(){var e=null,t={},i={},n={},o={},r=["basicAuth"],s=["application/json"],a=["application/json"],p=null;return this.apiClient.callApi("/tickets/-me-","DELETE",t,i,n,o,e,r,s,a,p)},this.validateTicket=function(){var e=null,t={},i={},n={},r={},s=["basicAuth"],a=["application/json"],p=["application/json"],l=o;return this.apiClient.callApi("/tickets/-me-","GET",t,i,n,r,e,s,a,p,l)}};return r})},{"../../../alfrescoApiClient":290,"../model/Error":155,"../model/LoginRequest":157,"../model/LoginTicketEntry":158,"../model/ValidateTicketEntry":160}],154:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n){"function"==typeof e&&e.amd?e(["../../alfrescoApiClient","./model/Error","./model/ErrorError","./model/LoginRequest","./model/LoginTicketEntry","./model/LoginTicketEntryEntry","./model/ValidateTicketEntry","./model/ValidateTicketEntryEntry","./api/AuthenticationApi"],n):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports&&(i.exports=n(t("../../alfrescoApiClient"),t("./model/Error"),t("./model/ErrorError"),t("./model/LoginRequest"),t("./model/LoginTicketEntry"),t("./model/LoginTicketEntryEntry"),t("./model/ValidateTicketEntry"),t("./model/ValidateTicketEntryEntry"),t("./api/AuthenticationApi")))}(function(e,t,i,n,o,r,s,a,p){var l={ApiClient:e,Error:t,ErrorError:i,LoginRequest:n,LoginTicketEntry:o,LoginTicketEntryEntry:r,ValidateTicketEntry:s,ValidateTicketEntryEntry:a,AuthenticationApi:p};return l})},{"../../alfrescoApiClient":290,"./api/AuthenticationApi":153,"./model/Error":155,"./model/ErrorError":156,"./model/LoginRequest":157,"./model/LoginTicketEntry":158,"./model/LoginTicketEntryEntry":159,"./model/ValidateTicketEntry":160,"./model/ValidateTicketEntryEntry":161}],155:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","./ErrorError"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./ErrorError")):(n.AlfrescoAuthRestApi||(n.AlfrescoAuthRestApi={}),n.AlfrescoAuthRestApi.Error=r(n.AlfrescoAuthRestApi.ApiClient,n.AlfrescoAuthRestApi.ErrorError))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(e,n){return e&&(n=n||new i,e.hasOwnProperty("error")&&(n.error=t.constructFromObject(e.error))),n},i.prototype.error=void 0,i})},{"../../../alfrescoApiClient":290,"./ErrorError":156}],156:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.AlfrescoAuthRestApi||(n.AlfrescoAuthRestApi={}),n.AlfrescoAuthRestApi.ErrorError=r(n.AlfrescoAuthRestApi.ApiClient))}(void 0,function(e){var t=function(e,t,i,n){this.briefSummary=e,this.descriptionURL=t,this.stackTrace=i,this.statusCode=n};return t.constructFromObject=function(i,n){return i&&(n=n||new t,i.hasOwnProperty("errorKey")&&(n.errorKey=e.convertToType(i.errorKey,"String")),i.hasOwnProperty("briefSummary")&&(n.briefSummary=e.convertToType(i.briefSummary,"String")),i.hasOwnProperty("descriptionURL")&&(n.descriptionURL=e.convertToType(i.descriptionURL,"String")),i.hasOwnProperty("logId")&&(n.logId=e.convertToType(i.logId,"String")),i.hasOwnProperty("stackTrace")&&(n.stackTrace=e.convertToType(i.stackTrace,"String")),i.hasOwnProperty("statusCode")&&(n.statusCode=e.convertToType(i.statusCode,"Integer"))),n},t.prototype.errorKey=void 0,t.prototype.briefSummary=void 0,t.prototype.descriptionURL=void 0,t.prototype.logId=void 0,t.prototype.stackTrace=void 0,t.prototype.statusCode=void 0,t})},{"../../../alfrescoApiClient":290}],157:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.AlfrescoAuthRestApi||(n.AlfrescoAuthRestApi={}),n.AlfrescoAuthRestApi.LoginRequest=r(n.AlfrescoAuthRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=n||new t,i.hasOwnProperty("userId")&&(n.userId=e.convertToType(i.userId,"String")),i.hasOwnProperty("password")&&(n.password=e.convertToType(i.password,"String"))),n},t.prototype.userId=void 0,t.prototype.password=void 0,t})},{"../../../alfrescoApiClient":290}],158:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","./LoginTicketEntryEntry"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./LoginTicketEntryEntry")):(n.AlfrescoAuthRestApi||(n.AlfrescoAuthRestApi={}),n.AlfrescoAuthRestApi.LoginTicketEntry=r(n.AlfrescoAuthRestApi.ApiClient,n.AlfrescoAuthRestApi.LoginTicketEntryEntry))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(e,n){return e&&(n=n||new i,e.hasOwnProperty("entry")&&(n.entry=t.constructFromObject(e.entry))),n},i.prototype.entry=void 0,i})},{"../../../alfrescoApiClient":290,"./LoginTicketEntryEntry":159}],159:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.AlfrescoAuthRestApi||(n.AlfrescoAuthRestApi={}),n.AlfrescoAuthRestApi.LoginTicketEntryEntry=r(n.AlfrescoAuthRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=n||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"String")),i.hasOwnProperty("userId")&&(n.userId=e.convertToType(i.userId,"String"))),n},t.prototype.id=void 0,t.prototype.userId=void 0,t})},{"../../../alfrescoApiClient":290}],160:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","./ValidateTicketEntryEntry"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./ValidateTicketEntryEntry")):(n.AlfrescoAuthRestApi||(n.AlfrescoAuthRestApi={}),n.AlfrescoAuthRestApi.ValidateTicketEntry=r(n.AlfrescoAuthRestApi.ApiClient,n.AlfrescoAuthRestApi.ValidateTicketEntryEntry))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(e,n){return e&&(n=n||new i,e.hasOwnProperty("entry")&&(n.entry=t.constructFromObject(e.entry))),n},i.prototype.entry=void 0,i})},{"../../../alfrescoApiClient":290,"./ValidateTicketEntryEntry":161}],161:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.AlfrescoAuthRestApi||(n.AlfrescoAuthRestApi={}),n.AlfrescoAuthRestApi.ValidateTicketEntryEntry=r(n.AlfrescoAuthRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=n||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"String"))),n},t.prototype.id=void 0,t})},{"../../../alfrescoApiClient":290}],162:[function(t,i,n){(function(n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["superagent"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("superagent")):(n.AlfrescoCoreRestApi||(n.AlfrescoCoreRestApi={}),n.AlfrescoCoreRestApi.ApiClient=r(n.superagent))}(void 0,function(e){var i=function(){this.basePath="https://localhost/alfresco/api/-default-/public/alfresco/versions/1".replace(/\/+$/,""),this.authentications={basicAuth:{type:"basic"}},this.defaultHeaders={},this.timeout=6e4};return i.prototype.paramToString=function(e){return void 0==e||null==e?"":e instanceof Date?e.toJSON():e.toString()},i.prototype.buildUrl=function(e,t){e.match(/^\//)||(e="/"+e);var i=this.basePath+e,n=this;return i=i.replace(/\{([\w-]+)\}/g,function(e,i){var o;return o=t.hasOwnProperty(i)?n.paramToString(t[i]):e,encodeURIComponent(o)})},i.prototype.isJsonMime=function(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))},i.prototype.jsonPreferredMime=function(e){for(var t=0;t>e/4).toString(16):([1e16]+1e16).replace(/[01]/g,this.token)}},{key:"progress",value:function(e,t){if(e.lengthComputable&&this.promise){var i=Math.round(e.loaded/e.total*100);t.emit("progress",{total:e.total,loaded:e.loaded,percent:i})}}},{key:"buildUrlCustomBasePath",value:function(e,t,i){t.match(/^\//)||(t="/"+t);var n=e+t,o=this;return n=n.replace(/\{([\w-]+)\}/g,function(e,t){var n;return n=i.hasOwnProperty(t)?o.paramToString(i[t]):e,encodeURIComponent(n)})}}]),t}(p);a(u.prototype),t.exports=u},{"./alfresco-core-rest-api/src/ApiClient":162,"event-emitter":21,lodash:23,superagent:25}],291:[function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var i=0;i0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function o(e){return 3*e.length/4-n(e)}function r(e){var t,i,o,r,s,a,p=e.length;s=n(e),a=new u(3*p/4-s),o=s>0?p-4:p;var l=0;for(t=0,i=0;t>16&255,a[l++]=r>>8&255,a[l++]=255&r;return 2===s?(r=c[e.charCodeAt(t)]<<2|c[e.charCodeAt(t+1)]>>4,a[l++]=255&r):1===s&&(r=c[e.charCodeAt(t)]<<10|c[e.charCodeAt(t+1)]<<4|c[e.charCodeAt(t+2)]>>2,a[l++]=r>>8&255,a[l++]=255&r),a}function s(e){return l[e>>18&63]+l[e>>12&63]+l[e>>6&63]+l[63&e]}function a(e,t,i){for(var n,o=[],r=t;rc?c:p+s));return 1===n?(t=e[i-1],o+=l[t>>2],o+=l[t<<4&63],o+="=="):2===n&&(t=(e[i-2]<<8)+e[i-1],o+=l[t>>10],o+=l[t>>4&63],o+=l[t<<2&63],o+="="),r.push(o),r.join("")}i.byteLength=o,i.toByteArray=r,i.fromByteArray=p;for(var l=[],c=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,y=d.length;f=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function h(e){return+e!=e&&(e=0),s.alloc(+e)}function v(e,t){if(s.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var i=e.length;if(0===i)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return W(e).length;default:if(n)return H(e).length;t=(""+t).toLowerCase(),n=!0}}function A(e,t,i){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if(i>>>=0,t>>>=0,i<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return F(this,t,i);case"utf8":case"utf-8":return O(this,t,i);case"ascii":return k(this,t,i);case"latin1":case"binary":return M(this,t,i);case"base64":return j(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,i);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function b(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function g(e,t,i,n,o){if(0===e.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=o?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(o)return-1;i=e.length-1}else if(i<0){if(!o)return-1;i=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:C(e,t,i,n,o);if("number"==typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):C(e,[t],i,n,o);throw new TypeError("val must be string, number or Buffer")}function C(e,t,i,n,o){function r(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}var s=1,a=e.length,p=t.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,p/=2,i/=2}var l;if(o){var c=-1;for(l=i;la&&(i=a-p),l=i;l>=0;l--){for(var u=!0,d=0;do&&(n=o)):n=o;var r=t.length;if(r%2!==0)throw new TypeError("Invalid hex string");n>r/2&&(n=r/2);for(var s=0;s239?4:r>223?3:r>191?2:1;if(o+a<=i){var p,l,c,u;switch(a){case 1:r<128&&(s=r);break;case 2:p=e[o+1],128===(192&p)&&(u=(31&r)<<6|63&p,u>127&&(s=u));break;case 3:p=e[o+1],l=e[o+2],128===(192&p)&&128===(192&l)&&(u=(15&r)<<12|(63&p)<<6|63&l,u>2047&&(u<55296||u>57343)&&(s=u));break;case 4:p=e[o+1],l=e[o+2],c=e[o+3],128===(192&p)&&128===(192&l)&&128===(192&c)&&(u=(15&r)<<18|(63&p)<<12|(63&l)<<6|63&c,u>65535&&u<1114112&&(s=u))}}null===s?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),o+=a}return E(n)}function E(e){var t=e.length;if(t<=ee)return String.fromCharCode.apply(String,e);for(var i="",n=0;nn)&&(i=n);for(var o="",r=t;ri)throw new RangeError("Trying to access beyond buffer length")}function _(e,t,i,n,o,r){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function D(e,t,i,n){t<0&&(t=65535+t+1);for(var o=0,r=Math.min(e.length-i,2);o>>8*(n?o:1-o)}function B(e,t,i,n){t<0&&(t=4294967295+t+1);for(var o=0,r=Math.min(e.length-i,4);o>>8*(n?o:3-o)&255}function L(e,t,i,n,o,r){if(i+n>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function q(e,t,i,n,o){return o||L(e,t,i,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(e,t,i,n,23,4),i+4}function U(e,t,i,n,o){return o||L(e,t,i,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(e,t,i,n,52,8),i+8}function G(e){if(e=V(e).replace(te,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function V(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){t=t||1/0;for(var i,n=e.length,o=null,r=[],s=0;s55295&&i<57344){if(!o){if(i>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&r.push(239,191,189);continue}o=i;continue}if(i<56320){(t-=3)>-1&&r.push(239,191,189),o=i;continue}i=(o-55296<<10|i-56320)+65536}else o&&(t-=3)>-1&&r.push(239,191,189);if(o=null,i<128){if((t-=1)<0)break;r.push(i)}else if(i<2048){if((t-=2)<0)break;r.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;r.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return r}function Y(e){for(var t=[],i=0;i>8,o=i%256,r.push(o),r.push(n);return r}function W(e){return X.toByteArray(G(e))}function $(e,t,i,n){for(var o=0;o=t.length||o>=e.length);++o)t[o+i]=e[o];return o}function J(e){return e!==e}var X=e("base64-js"),Q=e("ieee754"),Z=e("isarray");i.Buffer=s,i.SlowBuffer=h,i.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:n(),i.kMaxLength=o(),s.poolSize=8192,s._augment=function(e){return e.__proto__=s.prototype,e},s.from=function(e,t,i){return a(null,e,t,i)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(e,t,i){return l(null,e,t,i)},s.allocUnsafe=function(e){return c(null,e)},s.allocUnsafeSlow=function(e){return c(null,e)},s.isBuffer=function(e){return!(null==e||!e._isBuffer)},s.compare=function(e,t){if(!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var i=e.length,n=t.length,o=0,r=Math.min(i,n);o0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},s.prototype.compare=function(e,t,i,n,o){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||i>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=i)return 0;if(n>=o)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,o>>>=0,this===e)return 0;for(var r=o-n,a=i-t,p=Math.min(r,a),l=this.slice(n,o),c=e.slice(t,i),u=0;uo)&&(i=o),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var r=!1;;)switch(n){case"hex":return R(this,e,t,i);case"utf8":case"utf-8":return P(this,e,t,i);case"ascii":return w(this,e,t,i);case"latin1":case"binary":return S(this,e,t,i);case"base64":return T(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,i);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),r=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ee=4096;s.prototype.slice=function(e,t){var i=this.length;e=~~e,t=void 0===t?i:~~t,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t0&&(o*=256);)n+=this[e+--t]*o;return n},s.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,i){e|=0,t|=0,i||N(e,t,this.length);for(var n=this[e],o=1,r=0;++r=o&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,i){e|=0,t|=0,i||N(e,t,this.length);for(var n=t,o=1,r=this[e+--n];n>0&&(o*=256);)r+=this[e+--n]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},s.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},s.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},s.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),Q.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),Q.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),Q.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),Q.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,i,n){if(e=+e,t|=0,i|=0,!n){var o=Math.pow(2,8*i)-1;_(this,e,t,i,o,0)}var r=1,s=0;for(this[t]=255&e;++s=0&&(s*=256);)this[t+r]=e/s&255;return t+i},s.prototype.writeUInt8=function(e,t,i){return e=+e,t|=0,i||_(this,e,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,i){return e=+e,t|=0,i||_(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},s.prototype.writeUInt16BE=function(e,t,i){return e=+e,t|=0,i||_(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},s.prototype.writeUInt32LE=function(e,t,i){return e=+e,t|=0,i||_(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):B(this,e,t,!0),t+4},s.prototype.writeUInt32BE=function(e,t,i){return e=+e,t|=0,i||_(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},s.prototype.writeIntLE=function(e,t,i,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*i-1);_(this,e,t,i,o-1,-o)}var r=0,s=1,a=0;for(this[t]=255&e;++r>0)-a&255;return t+i},s.prototype.writeIntBE=function(e,t,i,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*i-1);_(this,e,t,i,o-1,-o)}var r=i-1,s=1,a=0;for(this[t+r]=255&e;--r>=0&&(s*=256);)e<0&&0===a&&0!==this[t+r+1]&&(a=1),this[t+r]=(e/s>>0)-a&255;return t+i},s.prototype.writeInt8=function(e,t,i){return e=+e,t|=0,i||_(this,e,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,i){return e=+e,t|=0,i||_(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},s.prototype.writeInt16BE=function(e,t,i){return e=+e,t|=0,i||_(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},s.prototype.writeInt32LE=function(e,t,i){return e=+e,t|=0,i||_(this,e,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):B(this,e,t,!0),t+4},s.prototype.writeInt32BE=function(e,t,i){return e=+e,t|=0,i||_(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},s.prototype.writeFloatLE=function(e,t,i){return q(this,e,t,!0,i)},s.prototype.writeFloatBE=function(e,t,i){return q(this,e,t,!1,i)},s.prototype.writeDoubleLE=function(e,t,i){return U(this,e,t,!0,i)},s.prototype.writeDoubleBE=function(e,t,i){return U(this,e,t,!1,i)},s.prototype.copy=function(e,t,i,n){if(i||(i=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--o)e[o+t]=this[o+i];else if(r<1e3||!s.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,i=void 0===i?this.length:i>>>0,e||(e=0);var r;if("number"==typeof e)for(r=t;r-1}},{}],21:[function(e,t,i){"use strict";var n,o,r,s,a,p,l,c=e("d"),u=e("es5-ext/object/valid-callable"),d=Function.prototype.apply,f=Function.prototype.call,y=Object.create,m=Object.defineProperty,h=Object.defineProperties,v=Object.prototype.hasOwnProperty,A={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var i;return u(t),v.call(this,"__ee__")?i=this.__ee__:(i=A.value=y(null),m(this,"__ee__",A),A.value=null),i[e]?"object"==typeof i[e]?i[e].push(t):i[e]=[i[e],t]:i[e]=t,this},o=function(e,t){var i,o;return u(t),o=this,n.call(this,e,i=function(){r.call(o,e,i),d.call(t,this,arguments)}),i.__eeOnceListener__=t,this},r=function(e,t){var i,n,o,r;if(u(t),!v.call(this,"__ee__"))return this;if(i=this.__ee__,!i[e])return this;if(n=i[e],"object"==typeof n)for(r=0;o=n[r];++r)o!==t&&o.__eeOnceListener__!==t||(2===n.length?i[e]=n[r?0:1]:n.splice(r,1));else n!==t&&n.__eeOnceListener__!==t||delete i[e];return this},s=function(e){var t,i,n,o,r;if(v.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(i=arguments.length,r=new Array(i-1),t=1;t>1,c=-7,u=i?o-1:0,d=i?-1:1,f=e[t+u];for(u+=d,r=f&(1<<-c)-1,f>>=-c,c+=a;c>0;r=256*r+e[t+u],u+=d,c-=8);for(s=r&(1<<-c)-1,r>>=-c,c+=n;c>0;s=256*s+e[t+u],u+=d,c-=8);if(0===r)r=1-l;else{if(r===p)return s?NaN:(f?-1:1)*(1/0);s+=Math.pow(2,n),r-=l}return(f?-1:1)*s*Math.pow(2,r-n)},i.write=function(e,t,i,n,o,r){var s,a,p,l=8*r-o-1,c=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:r-1,y=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(p=Math.pow(2,-s))<1&&(s--,p*=2),t+=s+u>=1?d/p:d*Math.pow(2,1-u),t*p>=2&&(s++,p/=2),s+u>=c?(a=0,s=c):s+u>=1?(a=(t*p-1)*Math.pow(2,o),s+=u):(a=t*Math.pow(2,u-1)*Math.pow(2,o),s=0));o>=8;e[i+f]=255&a,f+=y,a/=256,o-=8);for(s=s<0;e[i+f]=255&s,f+=y,s/=256,l-=8);e[i+f-y]|=128*m}},{}],23:[function(t,i,n){(function(t){(function(){function o(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function s(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}function a(e,t,i,n){for(var o=-1,r=e?e.length:0;++o-1}function f(e,t,i){for(var n=-1,o=e?e.length:0;++n-1;);return i}function B(e,t){for(var i=e.length;i--&&P(t,e[i],0)>-1;);return i}function L(e,t){for(var i=e.length,n=0;i--;)e[i]===t&&++n;return n}function q(e){return"\\"+Vi[e]}function U(e,t){return null==e?ne:e[t]}function G(e){return xi.test(e)}function V(e){return Ni.test(e)}function z(e){for(var t,i=[];!(t=e.next()).done;)i.push(t.value);return i}function H(e){var t=-1,i=Array(e.size);return e.forEach(function(e,n){i[++t]=[n,e]}),i}function Y(e,t){return function(i){return e(t(i))}}function K(e,t){for(var i=-1,n=e.length,o=0,r=[];++i>>1,De=[["ary",Ae],["bind",ue],["bindKey",de],["curry",ye],["curryRight",me],["flip",ge],["partial",he],["partialRight",ve],["rearg",be]],Be="[object Arguments]",Le="[object Array]",qe="[object Boolean]",Ue="[object Date]",Ge="[object Error]",Ve="[object Function]",ze="[object GeneratorFunction]",He="[object Map]",Ye="[object Number]",Ke="[object Object]",We="[object Promise]",$e="[object Proxy]",Je="[object RegExp]",Xe="[object Set]",Qe="[object String]",Ze="[object Symbol]",et="[object WeakMap]",tt="[object WeakSet]",it="[object ArrayBuffer]",nt="[object DataView]",ot="[object Float32Array]",rt="[object Float64Array]",st="[object Int8Array]",at="[object Int16Array]",pt="[object Int32Array]",lt="[object Uint8Array]",ct="[object Uint8ClampedArray]",ut="[object Uint16Array]",dt="[object Uint32Array]",ft=/\b__p \+= '';/g,yt=/\b(__p \+=) '' \+/g,mt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ht=/&(?:amp|lt|gt|quot|#39);/g,vt=/[&<>"']/g,At=RegExp(ht.source),bt=RegExp(vt.source),gt=/<%-([\s\S]+?)%>/g,Ct=/<%([\s\S]+?)%>/g,Rt=/<%=([\s\S]+?)%>/g,Pt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wt=/^\w*$/,St=/^\./,Tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,It=/[\\^$.*+?()[\]{}|]/g,jt=RegExp(It.source),Ot=/^\s+|\s+$/g,Et=/^\s+/,kt=/\s+$/,Mt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ft=/\{\n\/\* \[wrapped with (.+)\] \*/,xt=/,? & /,Nt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,_t=/\\(\\)?/g,Dt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Bt=/\w*$/,Lt=/^[-+]0x[0-9a-f]+$/i,qt=/^0b[01]+$/i,Ut=/^\[object .+?Constructor\]$/,Gt=/^0o[0-7]+$/i,Vt=/^(?:0|[1-9]\d*)$/,zt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ht=/($^)/,Yt=/['\n\r\u2028\u2029\\]/g,Kt="\\ud800-\\udfff",Wt="\\u0300-\\u036f\\ufe20-\\ufe23",$t="\\u20d0-\\u20f0",Jt="\\u2700-\\u27bf",Xt="a-z\\xdf-\\xf6\\xf8-\\xff",Qt="\\xac\\xb1\\xd7\\xf7",Zt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ei="\\u2000-\\u206f",ti=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ii="A-Z\\xc0-\\xd6\\xd8-\\xde",ni="\\ufe0e\\ufe0f",oi=Qt+Zt+ei+ti,ri="['’]",si="["+Kt+"]",ai="["+oi+"]",pi="["+Wt+$t+"]",li="\\d+",ci="["+Jt+"]",ui="["+Xt+"]",di="[^"+Kt+oi+li+Jt+Xt+ii+"]",fi="\\ud83c[\\udffb-\\udfff]",yi="(?:"+pi+"|"+fi+")",mi="[^"+Kt+"]",hi="(?:\\ud83c[\\udde6-\\uddff]){2}",vi="[\\ud800-\\udbff][\\udc00-\\udfff]",Ai="["+ii+"]",bi="\\u200d",gi="(?:"+ui+"|"+di+")",Ci="(?:"+Ai+"|"+di+")",Ri="(?:"+ri+"(?:d|ll|m|re|s|t|ve))?",Pi="(?:"+ri+"(?:D|LL|M|RE|S|T|VE))?",wi=yi+"?",Si="["+ni+"]?",Ti="(?:"+bi+"(?:"+[mi,hi,vi].join("|")+")"+Si+wi+")*",Ii=Si+wi+Ti,ji="(?:"+[ci,hi,vi].join("|")+")"+Ii,Oi="(?:"+[mi+pi+"?",pi,hi,vi,si].join("|")+")",Ei=RegExp(ri,"g"),ki=RegExp(pi,"g"),Mi=RegExp(fi+"(?="+fi+")|"+Oi+Ii,"g"),Fi=RegExp([Ai+"?"+ui+"+"+Ri+"(?="+[ai,Ai,"$"].join("|")+")",Ci+"+"+Pi+"(?="+[ai,Ai+gi,"$"].join("|")+")",Ai+"?"+gi+"+"+Ri,Ai+"+"+Pi,li,ji].join("|"),"g"),xi=RegExp("["+bi+Kt+Wt+$t+ni+"]"),Ni=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_i=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Di=-1,Bi={};Bi[ot]=Bi[rt]=Bi[st]=Bi[at]=Bi[pt]=Bi[lt]=Bi[ct]=Bi[ut]=Bi[dt]=!0,Bi[Be]=Bi[Le]=Bi[it]=Bi[qe]=Bi[nt]=Bi[Ue]=Bi[Ge]=Bi[Ve]=Bi[He]=Bi[Ye]=Bi[Ke]=Bi[Je]=Bi[Xe]=Bi[Qe]=Bi[et]=!1;var Li={};Li[Be]=Li[Le]=Li[it]=Li[nt]=Li[qe]=Li[Ue]=Li[ot]=Li[rt]=Li[st]=Li[at]=Li[pt]=Li[He]=Li[Ye]=Li[Ke]=Li[Je]=Li[Xe]=Li[Qe]=Li[Ze]=Li[lt]=Li[ct]=Li[ut]=Li[dt]=!0,Li[Ge]=Li[Ve]=Li[et]=!1;var qi={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Ui={"&":"&","<":"<",">":">",'"':""","'":"'"},Gi={"&":"&","<":"<",">":">",""":'"',"'":"'"},Vi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},zi=parseFloat,Hi=parseInt,Yi="object"==typeof t&&t&&t.Object===Object&&t,Ki="object"==typeof self&&self&&self.Object===Object&&self,Wi=Yi||Ki||Function("return this")(),$i="object"==typeof n&&n&&!n.nodeType&&n,Ji=$i&&"object"==typeof i&&i&&!i.nodeType&&i,Xi=Ji&&Ji.exports===$i,Qi=Xi&&Yi.process,Zi=function(){try{return Qi&&Qi.binding("util")}catch(e){}}(),en=Zi&&Zi.isArrayBuffer,tn=Zi&&Zi.isDate,nn=Zi&&Zi.isMap,on=Zi&&Zi.isRegExp,rn=Zi&&Zi.isSet,sn=Zi&&Zi.isTypedArray,an=I("length"),pn=j(qi),ln=j(Ui),cn=j(Gi),un=function e(t){function i(e){if(Xa(e)&&!ad(e)&&!(e instanceof j)){if(e instanceof b)return e;if(lc.call(e,"__wrapped__"))return Wr(e)}return new b(e)}function n(){}function b(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=ne}function j(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=xe,this.__views__=[]}function J(){var e=new j(this.__wrapped__);return e.__actions__=xo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=xo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=xo(this.__views__),e}function ee(){if(this.__filtered__){var e=new j(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function te(){var e=this.__wrapped__.value(),t=this.__dir__,i=ad(e),n=t<0,o=i?e.length:0,r=Ar(0,o,this.__views__),s=r.start,a=r.end,p=a-s,l=n?a:s-1,c=this.__iteratees__,u=c.length,d=0,f=Dc(p,this.__takeCount__);if(!i||o-1}function ni(e,t){var i=this.__data__,n=Ti(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this}function oi(e){var t=-1,i=e?e.length:0;for(this.clear();++t=t?e:t)),e}function xi(e,t,i,n,o,r,s){var a;if(n&&(a=r?n(e,o,r,s):n(e)),a!==ne)return a;if(!Ja(e))return e;var l=ad(e);if(l){if(a=Cr(e),!t)return xo(e,a)}else{var c=vu(e),u=c==Ve||c==ze;if(ld(e))return Ro(e,t);if(c==Ke||c==Be||u&&!r){if(a=Rr(u?{}:e),!t)return _o(e,ji(a,e))}else{if(!Li[c])return r?e:{};a=Pr(e,c,xi,t)}}s||(s=new fi);var d=s.get(e);if(d)return d;s.set(e,a);var f=l?ne:(i?cr:Mp)(e);return p(f||e,function(o,r){f&&(r=o,o=e[r]),Si(a,r,xi(o,t,i,n,r,e,s))}),a}function Ni(e){var t=Mp(e);return function(i){return qi(i,e,t)}}function qi(e,t,i){var n=i.length;if(null==e)return!n;for(e=Zl(e);n--;){var o=i[n],r=t[o],s=e[o];if(s===ne&&!(o in e)||!r(s))return!1}return!0}function Ui(e,t,i){if("function"!=typeof e)throw new ic(ae);return gu(function(){e.apply(ne,i)},t)}function Gi(e,t,i,n){var o=-1,r=d,s=!0,a=e.length,p=[],l=t.length;if(!a)return p;i&&(t=y(t,x(i))),n?(r=f,s=!1):t.length>=re&&(r=_,s=!1,t=new ci(t));e:for(;++oo?0:o+i),n=n===ne||n>o?o:yp(n),n<0&&(n+=o),n=i>n?0:mp(n);i0&&i(a)?t>1?Ji(a,t-1,i,n,o):m(o,a):n||(o[o.length]=a)}return o}function Qi(e,t){return e&&au(e,t,Mp)}function Zi(e,t){return e&&pu(e,t,Mp)}function an(e,t){return u(t,function(t){return Ka(e[t])})}function un(e,t){t=jr(t,e)?[t]:go(t);for(var i=0,n=t.length;null!=e&&it}function hn(e,t){return null!=e&&lc.call(e,t)}function vn(e,t){return null!=e&&t in Zl(e)}function An(e,t,i){return e>=Dc(t,i)&&e<_c(t,i)}function bn(e,t,i){for(var n=i?f:d,o=e[0].length,r=e.length,s=r,a=Wl(r),p=1/0,l=[];s--;){var c=e[s];s&&t&&(c=y(c,x(t))),p=Dc(c.length,p),a[s]=!i&&(t||o>=120&&c.length>=120)?new ci(s&&c):ne}c=e[0];var u=-1,m=a[0];e:for(;++u-1;)a!==e&&Pc.call(a,p,1),Pc.call(e,p,1);return e}function Wn(e,t){for(var i=e?t.length:0,n=i-1;i--;){var o=t[i];if(i==n||o!==r){var r=o;if(Tr(o))Pc.call(e,o,1);else if(jr(o,e))delete e[Hr(o)];else{var s=go(o),a=qr(e,s);null!=a&&delete a[Hr(fs(s))]}}}return e}function $n(e,t){return e+Ec(qc()*(t-e+1))}function Jn(e,t,i,n){for(var o=-1,r=_c(Oc((t-e)/(i||1)),0),s=Wl(r);r--;)s[n?r:++o]=e,e+=i;return s}function Xn(e,t){var i="";if(!e||t<1||t>ke)return i;do t%2&&(i+=e),t=Ec(t/2),t&&(e+=e);while(t);return i}function Qn(e,t){return Cu(Lr(e,t,Rl),e+"")}function Zn(e){return gi(Hp(e))}function eo(e,t){var i=Hp(e);return zr(i,Fi(t,0,i.length))}function to(e,t,i,n){if(!Ja(e))return e;t=jr(t,e)?[t]:go(t);for(var o=-1,r=t.length,s=r-1,a=e;null!=a&&++oo?0:o+t),i=i>o?o:i,i<0&&(i+=o),o=t>i?0:i-t>>>0,t>>>=0;for(var r=Wl(o);++n>>1,s=e[r];null!==s&&!pp(s)&&(i?s<=t:s=re){var l=t?null:fu(e);if(l)return W(l);s=!1,o=_,p=new ci}else p=t?[]:a;e:for(;++n=n?e:no(e,t,i)}function Ro(e,t){if(t)return e.slice();var i=e.length,n=Ac?Ac(i):new e.constructor(i);return e.copy(n),n}function Po(e){var t=new e.constructor(e.byteLength);return new vc(t).set(new vc(e)),t}function wo(e,t){var i=t?Po(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}function So(e,t,i){var n=t?i(H(e),!0):H(e);return h(n,o,new e.constructor)}function To(e){var t=new e.constructor(e.source,Bt.exec(e));return t.lastIndex=e.lastIndex,t}function Io(e,t,i){var n=t?i(W(e),!0):W(e);return h(n,r,new e.constructor)}function jo(e){return iu?Zl(iu.call(e)):{}}function Oo(e,t){var i=t?Po(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function Eo(e,t){if(e!==t){var i=e!==ne,n=null===e,o=e===e,r=pp(e),s=t!==ne,a=null===t,p=t===t,l=pp(t);if(!a&&!l&&!r&&e>t||r&&s&&p&&!a&&!l||n&&s&&p||!i&&p||!o)return 1;if(!n&&!r&&!l&&e=a)return p;var l=i[n];return p*("desc"==l?-1:1)}}return e.index-t.index}function Mo(e,t,i,n){for(var o=-1,r=e.length,s=i.length,a=-1,p=t.length,l=_c(r-s,0),c=Wl(p+l),u=!n;++a1?i[o-1]:ne,s=o>2?i[2]:ne;for(r=e.length>3&&"function"==typeof r?(o--,r):ne,s&&Ir(i[0],i[1],s)&&(r=o<3?ne:r,o=1),t=Zl(t);++n-1?o[r?t[s]:s]:ne}}function Ko(e){return lr(function(t){var i=t.length,n=i,o=b.prototype.thru;for(e&&t.reverse();n--;){var r=t[n];if("function"!=typeof r)throw new ic(ae);if(o&&!s&&"wrapper"==dr(r))var s=new b([],!0)}for(n=s?n:i;++n=re)return s.plant(n).value();for(var o=0,r=i?t[o].apply(this,e):n;++o1&&A.reverse(),u&&pa))return!1;var l=r.get(e);if(l&&r.get(t))return l==t;var c=-1,u=!0,d=o&Ce?new ci:ne;for(r.set(e,t),r.set(t,e);++c1?"& ":"")+t[n],t=t.join(i>2?", ":" "),e.replace(Mt,"{\n/* [wrapped with "+t+"] */\n")}function Sr(e){return ad(e)||sd(e)||!!(wc&&e&&e[wc])}function Tr(e,t){return t=null==t?ke:t,!!t&&("number"==typeof e||Vt.test(e))&&e>-1&&e%1==0&&e0){if(++t>=Se)return arguments[0]}else t=0;return e.apply(ne,arguments)}}function zr(e,t){var i=-1,n=e.length,o=n-1;for(t=t===ne?n:t;++i=this.__values__.length,t=e?ne:this.__values__[this.__index__++];return{done:e,value:t}}function Ws(){return this}function $s(e){for(var t,i=this;i instanceof n;){var o=Wr(i);o.__index__=0,o.__values__=ne,t?r.__wrapped__=o:t=o;var r=o;i=i.__wrapped__}return r.__wrapped__=e,t}function Js(){var e=this.__wrapped__;if(e instanceof j){var t=e;return this.__actions__.length&&(t=new j(this)),t=t.reverse(),t.__actions__.push({func:zs,args:[gs],thisArg:ne}),new b(t,this.__chain__)}return this.thru(gs)}function Xs(){return mo(this.__wrapped__,this.__actions__)}function Qs(e,t,i){var n=ad(e)?c:Vi;return i&&Ir(e,t,i)&&(t=ne),n(e,yr(t,3))}function Zs(e,t){var i=ad(e)?u:$i;return i(e,yr(t,3))}function ea(e,t){return Ji(sa(e,t),1)}function ta(e,t){return Ji(sa(e,t),Ee)}function ia(e,t,i){return i=i===ne?1:yp(i),Ji(sa(e,t),i)}function na(e,t){var i=ad(e)?p:ru;return i(e,yr(t,3))}function oa(e,t){var i=ad(e)?l:su;return i(e,yr(t,3))}function ra(e,t,i,n){e=Ba(e)?e:Hp(e),i=i&&!n?yp(i):0;var o=e.length;return i<0&&(i=_c(o+i,0)),ap(e)?i<=o&&e.indexOf(t,i)>-1:!!o&&P(e,t,i)>-1}function sa(e,t){var i=ad(e)?y:Dn;return i(e,yr(t,3))}function aa(e,t,i,n){return null==e?[]:(ad(t)||(t=null==t?[]:[t]),i=n?ne:i,ad(i)||(i=null==i?[]:[i]),Vn(e,t,i))}function pa(e,t,i){var n=ad(e)?h:O,o=arguments.length<3;return n(e,yr(t,4),i,o,ru)}function la(e,t,i){var n=ad(e)?v:O,o=arguments.length<3;return n(e,yr(t,4),i,o,su)}function ca(e,t){var i=ad(e)?u:$i;return i(e,wa(yr(t,3)))}function ua(e){var t=ad(e)?gi:Zn;return t(e)}function da(e,t,i){t=(i?Ir(e,t,i):t===ne)?1:yp(t);var n=ad(e)?Ci:eo;return n(e,t)}function fa(e){var t=ad(e)?Ri:io;return t(e)}function ya(e){if(null==e)return 0;if(Ba(e))return ap(e)?Q(e):e.length;var t=vu(e);return t==He||t==Xe?e.size:xn(e).length}function ma(e,t,i){var n=ad(e)?A:oo;return i&&Ir(e,t,i)&&(t=ne),n(e,yr(t,3))}function ha(e,t){if("function"!=typeof t)throw new ic(ae);return e=yp(e),function(){if(--e<1)return t.apply(this,arguments)}}function va(e,t,i){return t=i?ne:t,t=e&&null==t?e.length:t,rr(e,Ae,ne,ne,ne,ne,t)}function Aa(e,t){var i;if("function"!=typeof t)throw new ic(ae);return e=yp(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=ne),i}}function ba(e,t,i){t=i?ne:t;var n=rr(e,ye,ne,ne,ne,ne,ne,t);return n.placeholder=ba.placeholder,n}function ga(e,t,i){t=i?ne:t;var n=rr(e,me,ne,ne,ne,ne,ne,t);return n.placeholder=ga.placeholder,n}function Ca(e,t,i){function n(t){var i=d,n=f;return d=f=ne,A=t,m=e.apply(n,i)}function o(e){return A=e,h=gu(a,t),b?n(e):m}function r(e){var i=e-v,n=e-A,o=t-i;return g?Dc(o,y-n):o}function s(e){var i=e-v,n=e-A;return v===ne||i>=t||i<0||g&&n>=y}function a(){var e=$u();return s(e)?p(e):void(h=gu(a,r(e)))}function p(e){return h=ne,C&&d?n(e):(d=f=ne,m)}function l(){h!==ne&&du(h),A=0,d=v=f=h=ne}function c(){return h===ne?m:p($u())}function u(){var e=$u(),i=s(e);if(d=arguments,f=this,v=e,i){if(h===ne)return o(v);if(g)return h=gu(a,t),n(v)}return h===ne&&(h=gu(a,t)),m}var d,f,y,m,h,v,A=0,b=!1,g=!1,C=!0;if("function"!=typeof e)throw new ic(ae);return t=hp(t)||0,Ja(i)&&(b=!!i.leading,g="maxWait"in i,y=g?_c(hp(i.maxWait)||0,t):y,C="trailing"in i?!!i.trailing:C),u.cancel=l,u.flush=c,u}function Ra(e){return rr(e,ge)}function Pa(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new ic(ae);var i=function(){var n=arguments,o=t?t.apply(this,n):n[0],r=i.cache;if(r.has(o))return r.get(o);var s=e.apply(this,n);return i.cache=r.set(o,s)||r,s};return i.cache=new(Pa.Cache||oi),i}function wa(e){if("function"!=typeof e)throw new ic(ae);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Sa(e){return Aa(2,e)}function Ta(e,t){if("function"!=typeof e)throw new ic(ae);return t=t===ne?t:yp(t),Qn(e,t)}function Ia(e,t){if("function"!=typeof e)throw new ic(ae);return t=t===ne?0:_c(yp(t),0),Qn(function(i){var n=i[t],o=Co(i,0,t);return n&&m(o,n),s(e,this,o)})}function ja(e,t,i){var n=!0,o=!0;if("function"!=typeof e)throw new ic(ae);return Ja(i)&&(n="leading"in i?!!i.leading:n,o="trailing"in i?!!i.trailing:o),Ca(e,t,{leading:n,maxWait:t,trailing:o})}function Oa(e){return va(e,1)}function Ea(e,t){return t=null==t?Rl:t,td(t,e)}function ka(){if(!arguments.length)return[];var e=arguments[0];return ad(e)?e:[e]}function Ma(e){return xi(e,!1,!0)}function Fa(e,t){return xi(e,!1,!0,t)}function xa(e){return xi(e,!0,!0)}function Na(e,t){return xi(e,!0,!0,t)}function _a(e,t){return null==t||qi(e,t,Mp(t))}function Da(e,t){return e===t||e!==e&&t!==t}function Ba(e){return null!=e&&$a(e.length)&&!Ka(e)}function La(e){return Xa(e)&&Ba(e)}function qa(e){return e===!0||e===!1||Xa(e)&&dc.call(e)==qe}function Ua(e){return null!=e&&1===e.nodeType&&Xa(e)&&!rp(e)}function Ga(e){if(Ba(e)&&(ad(e)||"string"==typeof e||"function"==typeof e.splice||ld(e)||yd(e)||sd(e)))return!e.length;var t=vu(e);if(t==He||t==Xe)return!e.size;if(Mr(e))return!xn(e).length;for(var i in e)if(lc.call(e,i))return!1;return!0}function Va(e,t){return Sn(e,t)}function za(e,t,i){i="function"==typeof i?i:ne;var n=i?i(e,t):ne;return n===ne?Sn(e,t,i):!!n}function Ha(e){return!!Xa(e)&&(dc.call(e)==Ge||"string"==typeof e.message&&"string"==typeof e.name)}function Ya(e){return"number"==typeof e&&Fc(e)}function Ka(e){var t=Ja(e)?dc.call(e):"";return t==Ve||t==ze||t==$e}function Wa(e){return"number"==typeof e&&e==yp(e)}function $a(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=ke}function Ja(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Xa(e){return null!=e&&"object"==typeof e}function Qa(e,t){return e===t||jn(e,t,hr(t))}function Za(e,t,i){return i="function"==typeof i?i:ne,jn(e,t,hr(t),i)}function ep(e){return op(e)&&e!=+e}function tp(e){if(Au(e))throw new Jl(se);return On(e)}function ip(e){return null===e}function np(e){return null==e}function op(e){return"number"==typeof e||Xa(e)&&dc.call(e)==Ye}function rp(e){if(!Xa(e)||dc.call(e)!=Ke)return!1;var t=bc(e);if(null===t)return!0;var i=lc.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&pc.call(i)==uc}function sp(e){return Wa(e)&&e>=-ke&&e<=ke}function ap(e){return"string"==typeof e||!ad(e)&&Xa(e)&&dc.call(e)==Qe}function pp(e){return"symbol"==typeof e||Xa(e)&&dc.call(e)==Ze}function lp(e){return e===ne}function cp(e){return Xa(e)&&vu(e)==et}function up(e){return Xa(e)&&dc.call(e)==tt}function dp(e){if(!e)return[];if(Ba(e))return ap(e)?Z(e):xo(e);if(gc&&e[gc])return z(e[gc]());var t=vu(e),i=t==He?H:t==Xe?W:Hp;return i(e)}function fp(e){if(!e)return 0===e?e:0;if(e=hp(e),e===Ee||e===-Ee){var t=e<0?-1:1;return t*Me}return e===e?e:0}function yp(e){var t=fp(e),i=t%1;return t===t?i?t-i:t:0}function mp(e){return e?Fi(yp(e),0,xe):0}function hp(e){if("number"==typeof e)return e;if(pp(e))return Fe;if(Ja(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ja(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ot,"");var i=qt.test(e);return i||Gt.test(e)?Hi(e.slice(2),i?2:8):Lt.test(e)?Fe:+e}function vp(e){return No(e,Fp(e))}function Ap(e){return Fi(yp(e),-ke,ke)}function bp(e){return null==e?"":lo(e)}function gp(e,t){var i=ou(e);return t?ji(i,t):i}function Cp(e,t){return C(e,yr(t,3),Qi)}function Rp(e,t){return C(e,yr(t,3),Zi)}function Pp(e,t){return null==e?e:au(e,yr(t,3),Fp)}function wp(e,t){return null==e?e:pu(e,yr(t,3),Fp)}function Sp(e,t){return e&&Qi(e,yr(t,3))}function Tp(e,t){return e&&Zi(e,yr(t,3))}function Ip(e){return null==e?[]:an(e,Mp(e))}function jp(e){return null==e?[]:an(e,Fp(e))}function Op(e,t,i){var n=null==e?ne:un(e,t);return n===ne?i:n}function Ep(e,t){return null!=e&&gr(e,t,hn)}function kp(e,t){return null!=e&&gr(e,t,vn)}function Mp(e){return Ba(e)?bi(e):xn(e)}function Fp(e){return Ba(e)?bi(e,!0):Nn(e)}function xp(e,t){var i={};return t=yr(t,3),Qi(e,function(e,n,o){Oi(i,t(e,n,o),e)}),i}function Np(e,t){var i={};return t=yr(t,3),Qi(e,function(e,n,o){Oi(i,n,t(e,n,o))}),i}function _p(e,t){return Dp(e,wa(yr(t)))}function Dp(e,t){return null==e?{}:Hn(e,ur(e),yr(t))}function Bp(e,t,i){t=jr(t,e)?[t]:go(t);var n=-1,o=t.length;for(o||(e=ne,o=1);++nt){var n=e;e=t,t=n}if(i||e%1||t%1){var o=qc();return Dc(e+o*(t-e+zi("1e-"+((o+"").length-1))),t)}return $n(e,t)}function Jp(e){return qd(bp(e).toLowerCase())}function Xp(e){return e=bp(e),e&&e.replace(zt,pn).replace(ki,"")}function Qp(e,t,i){e=bp(e),t=lo(t);var n=e.length;i=i===ne?n:Fi(yp(i),0,n);var o=i;return i-=t.length,i>=0&&e.slice(i,o)==t}function Zp(e){return e=bp(e),e&&bt.test(e)?e.replace(vt,ln):e}function el(e){return e=bp(e),e&&jt.test(e)?e.replace(It,"\\$&"):e}function tl(e,t,i){e=bp(e),t=yp(t);var n=t?Q(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return Qo(Ec(o),i)+e+Qo(Oc(o),i)}function il(e,t,i){e=bp(e),t=yp(t);var n=t?Q(e):0;return t&&n>>0)?(e=bp(e),e&&("string"==typeof t||null!=t&&!dd(t))&&(t=lo(t),!t&&G(e))?Co(Z(e),0,i):e.split(t,i)):[]}function pl(e,t,i){return e=bp(e),i=Fi(yp(i),0,e.length),t=lo(t),e.slice(i,i+t.length)==t}function ll(e,t,n){var o=i.templateSettings;n&&Ir(e,t,n)&&(t=ne),e=bp(e),t=bd({},t,o,Pi);var r,s,a=bd({},t.imports,o.imports,Pi),p=Mp(a),l=N(a,p),c=0,u=t.interpolate||Ht,d="__p += '",f=ec((t.escape||Ht).source+"|"+u.source+"|"+(u===Rt?Dt:Ht).source+"|"+(t.evaluate||Ht).source+"|$","g"),y="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++Di+"]")+"\n";e.replace(f,function(t,i,n,o,a,p){return n||(n=o),d+=e.slice(c,p).replace(Yt,q),i&&(r=!0,d+="' +\n__e("+i+") +\n'"),a&&(s=!0,d+="';\n"+a+";\n__p += '"),n&&(d+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=p+t.length,t}),d+="';\n";var m=t.variable;m||(d="with (obj) {\n"+d+"\n}\n"),d=(s?d.replace(ft,""):d).replace(yt,"$1").replace(mt,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var h=Ud(function(){return Xl(p,y+"return "+d).apply(ne,l)});if(h.source=d,Ha(h))throw h;return h}function cl(e){return bp(e).toLowerCase()}function ul(e){return bp(e).toUpperCase()}function dl(e,t,i){if(e=bp(e),e&&(i||t===ne))return e.replace(Ot,"");if(!e||!(t=lo(t)))return e;var n=Z(e),o=Z(t),r=D(n,o),s=B(n,o)+1;return Co(n,r,s).join("")}function fl(e,t,i){if(e=bp(e),e&&(i||t===ne))return e.replace(kt,"");if(!e||!(t=lo(t)))return e;var n=Z(e),o=B(n,Z(t))+1;return Co(n,0,o).join("")}function yl(e,t,i){if(e=bp(e),e&&(i||t===ne))return e.replace(Et,"");if(!e||!(t=lo(t)))return e;var n=Z(e),o=D(n,Z(t));return Co(n,o).join("")}function ml(e,t){var i=Pe,n=we;if(Ja(t)){var o="separator"in t?t.separator:o;i="length"in t?yp(t.length):i,n="omission"in t?lo(t.omission):n}e=bp(e);var r=e.length;if(G(e)){var s=Z(e);r=s.length}if(i>=r)return e;var a=i-Q(n);if(a<1)return n;var p=s?Co(s,0,a).join(""):e.slice(0,a);if(o===ne)return p+n;if(s&&(a+=p.length-a),dd(o)){if(e.slice(a).search(o)){var l,c=p;for(o.global||(o=ec(o.source,bp(Bt.exec(o))+"g")),o.lastIndex=0;l=o.exec(c);)var u=l.index;p=p.slice(0,u===ne?a:u)}}else if(e.indexOf(lo(o),a)!=a){var d=p.lastIndexOf(o);d>-1&&(p=p.slice(0,d))}return p+n}function hl(e){return e=bp(e),e&&At.test(e)?e.replace(ht,cn):e}function vl(e,t,i){return e=bp(e),t=i?ne:t,t===ne?V(e)?ie(e):g(e):e.match(t)||[]}function Al(e){var t=e?e.length:0,i=yr();return e=t?y(e,function(e){if("function"!=typeof e[1])throw new ic(ae);return[i(e[0]),e[1]]}):[],Qn(function(i){for(var n=-1;++nke)return[];var i=xe,n=Dc(e,xe);t=yr(t),e-=xe;for(var o=M(n,t);++i1?e[t-1]:ne;return i="function"==typeof i?(e.pop(),i):ne,Ls(e,i)}),qu=lr(function(e){var t=e.length,i=t?e[0]:0,n=this.__wrapped__,o=function(t){return Mi(t,e)};return!(t>1||this.__actions__.length)&&n instanceof j&&Tr(i)?(n=n.slice(i,+i+(t?1:0)),n.__actions__.push({func:zs,args:[o],thisArg:ne}),new b(n,this.__chain__).thru(function(e){return t&&!e.length&&e.push(ne),e})):this.thru(o)}),Uu=Do(function(e,t,i){lc.call(e,i)?++e[i]:Oi(e,i,1)}),Gu=Yo(ns),Vu=Yo(os),zu=Do(function(e,t,i){lc.call(e,i)?e[i].push(t):Oi(e,i,[t])}),Hu=Qn(function(e,t,i){var n=-1,o="function"==typeof t,r=jr(t),a=Ba(e)?Wl(e.length):[];return ru(e,function(e){var p=o?t:r&&null!=e?e[t]:ne;a[++n]=p?s(p,e,i):Cn(e,t,i)}),a}),Yu=Do(function(e,t,i){Oi(e,i,t)}),Ku=Do(function(e,t,i){e[i?0:1].push(t)},function(){return[[],[]]}),Wu=Qn(function(e,t){if(null==e)return[];var i=t.length;return i>1&&Ir(e,t[0],t[1])?t=[]:i>2&&Ir(t[0],t[1],t[2])&&(t=[t[0]]),Vn(e,Ji(t,1),[])}),$u=Ic||function(){return Wi.Date.now()},Ju=Qn(function(e,t,i){var n=ue;if(i.length){var o=K(i,fr(Ju));n|=he}return rr(e,n,t,i,o)}),Xu=Qn(function(e,t,i){var n=ue|de;if(i.length){var o=K(i,fr(Xu));n|=he}return rr(t,n,e,i,o)}),Qu=Qn(function(e,t){return Ui(e,1,t)}),Zu=Qn(function(e,t,i){return Ui(e,hp(t)||0,i)});Pa.Cache=oi;var ed=uu(function(e,t){t=1==t.length&&ad(t[0])?y(t[0],x(yr())):y(Ji(t,1),x(yr()));var i=t.length;return Qn(function(n){for(var o=-1,r=Dc(n.length,i);++o=t}),sd=Rn(function(){return arguments}())?Rn:function(e){return Xa(e)&&lc.call(e,"callee")&&!Rc.call(e,"callee")},ad=Wl.isArray,pd=en?x(en):Pn,ld=Mc||Fl,cd=tn?x(tn):wn,ud=nn?x(nn):In,dd=on?x(on):En,fd=rn?x(rn):kn,yd=sn?x(sn):Mn,md=tr(_n),hd=tr(function(e,t){return e<=t}),vd=Bo(function(e,t){if(Mr(t)||Ba(t))return void No(t,Mp(t),e);for(var i in t)lc.call(t,i)&&Si(e,i,t[i])}),Ad=Bo(function(e,t){No(t,Fp(t),e)}),bd=Bo(function(e,t,i,n){No(t,Fp(t),e,n)}),gd=Bo(function(e,t,i,n){No(t,Mp(t),e,n)}),Cd=lr(Mi),Rd=Qn(function(e){return e.push(ne,Pi),s(bd,ne,e)}),Pd=Qn(function(e){return e.push(ne,Dr),s(jd,ne,e)}),wd=$o(function(e,t,i){e[t]=i},gl(Rl)),Sd=$o(function(e,t,i){lc.call(e,t)?e[t].push(i):e[t]=[i]},yr),Td=Qn(Cn),Id=Bo(function(e,t,i){qn(e,t,i)}),jd=Bo(function(e,t,i,n){qn(e,t,i,n)}),Od=lr(function(e,t){return null==e?{}:(t=y(t,Hr),zn(e,Gi(ur(e),t)))}),Ed=lr(function(e,t){return null==e?{}:zn(e,y(t,Hr))}),kd=or(Mp),Md=or(Fp),Fd=Vo(function(e,t,i){return t=t.toLowerCase(),e+(i?Jp(t):t)}),xd=Vo(function(e,t,i){return e+(i?"-":"")+t.toLowerCase()}),Nd=Vo(function(e,t,i){return e+(i?" ":"")+t.toLowerCase()}),_d=Go("toLowerCase"),Dd=Vo(function(e,t,i){return e+(i?"_":"")+t.toLowerCase()}),Bd=Vo(function(e,t,i){return e+(i?" ":"")+qd(t)}),Ld=Vo(function(e,t,i){return e+(i?" ":"")+t.toUpperCase()}),qd=Go("toUpperCase"),Ud=Qn(function(e,t){try{return s(e,ne,t)}catch(e){return Ha(e)?e:new Jl(e)}}),Gd=lr(function(e,t){return p(t,function(t){t=Hr(t),Oi(e,t,Ju(e[t],e))}),e}),Vd=Ko(),zd=Ko(!0),Hd=Qn(function(e,t){return function(i){return Cn(i,e,t)}}),Yd=Qn(function(e,t){return function(i){return Cn(e,i,t)}}),Kd=Xo(y),Wd=Xo(c),$d=Xo(A),Jd=er(),Xd=er(!0),Qd=Jo(function(e,t){return e+t},0),Zd=nr("ceil"),ef=Jo(function(e,t){return e/t},1),tf=nr("floor"),nf=Jo(function(e,t){return e*t},1),of=nr("round"),rf=Jo(function(e,t){return e-t},0);return i.after=ha,i.ary=va,i.assign=vd,i.assignIn=Ad,i.assignInWith=bd,i.assignWith=gd,i.at=Cd,i.before=Aa,i.bind=Ju,i.bindAll=Gd,i.bindKey=Xu,i.castArray=ka,i.chain=Gs,i.chunk=$r,i.compact=Jr,i.concat=Xr,i.cond=Al,i.conforms=bl,i.constant=gl,i.countBy=Uu,i.create=gp,i.curry=ba,i.curryRight=ga,i.debounce=Ca,i.defaults=Rd,i.defaultsDeep=Pd,i.defer=Qu,i.delay=Zu,i.difference=Pu,i.differenceBy=wu,i.differenceWith=Su,i.drop=Qr,i.dropRight=Zr,i.dropRightWhile=es,i.dropWhile=ts,i.fill=is,i.filter=Zs,i.flatMap=ea,i.flatMapDeep=ta,i.flatMapDepth=ia,i.flatten=rs,i.flattenDeep=ss,i.flattenDepth=as,i.flip=Ra,i.flow=Vd,i.flowRight=zd,i.fromPairs=ps,i.functions=Ip,i.functionsIn=jp,i.groupBy=zu,i.initial=us,i.intersection=Tu,i.intersectionBy=Iu,i.intersectionWith=ju,i.invert=wd,i.invertBy=Sd,i.invokeMap=Hu,i.iteratee=Pl,i.keyBy=Yu,i.keys=Mp,i.keysIn=Fp,i.map=sa,i.mapKeys=xp,i.mapValues=Np,i.matches=wl,i.matchesProperty=Sl,i.memoize=Pa,i.merge=Id,i.mergeWith=jd,i.method=Hd,i.methodOf=Yd,i.mixin=Tl,i.negate=wa,i.nthArg=Ol,i.omit=Od,i.omitBy=_p,i.once=Sa,i.orderBy=aa,i.over=Kd,i.overArgs=ed,i.overEvery=Wd,i.overSome=$d,i.partial=td,i.partialRight=id,i.partition=Ku,i.pick=Ed,i.pickBy=Dp,i.property=El,i.propertyOf=kl,i.pull=Ou,i.pullAll=hs,i.pullAllBy=vs,i.pullAllWith=As,i.pullAt=Eu,i.range=Jd,i.rangeRight=Xd,i.rearg=nd,i.reject=ca,i.remove=bs,i.rest=Ta,i.reverse=gs,i.sampleSize=da,i.set=Lp,i.setWith=qp,i.shuffle=fa,i.slice=Cs,i.sortBy=Wu,i.sortedUniq=js,i.sortedUniqBy=Os,i.split=al,i.spread=Ia,i.tail=Es,i.take=ks,i.takeRight=Ms,i.takeRightWhile=Fs,i.takeWhile=xs,i.tap=Vs,i.throttle=ja,i.thru=zs,i.toArray=dp,i.toPairs=kd,i.toPairsIn=Md,i.toPath=Bl,i.toPlainObject=vp,i.transform=Up,i.unary=Oa,i.union=ku,i.unionBy=Mu,i.unionWith=Fu,i.uniq=Ns,i.uniqBy=_s,i.uniqWith=Ds,i.unset=Gp,i.unzip=Bs,i.unzipWith=Ls,i.update=Vp,i.updateWith=zp,i.values=Hp,i.valuesIn=Yp,i.without=xu,i.words=vl,i.wrap=Ea,i.xor=Nu,i.xorBy=_u,i.xorWith=Du,i.zip=Bu,i.zipObject=qs,i.zipObjectDeep=Us,i.zipWith=Lu,i.entries=kd,i.entriesIn=Md,i.extend=Ad,i.extendWith=bd,Tl(i,i),i.add=Qd,i.attempt=Ud,i.camelCase=Fd,i.capitalize=Jp,i.ceil=Zd,i.clamp=Kp,i.clone=Ma,i.cloneDeep=xa,i.cloneDeepWith=Na,i.cloneWith=Fa,i.conformsTo=_a,i.deburr=Xp,i.defaultTo=Cl,i.divide=ef,i.endsWith=Qp,i.eq=Da,i.escape=Zp,i.escapeRegExp=el,i.every=Qs,i.find=Gu,i.findIndex=ns,i.findKey=Cp,i.findLast=Vu,i.findLastIndex=os,i.findLastKey=Rp,i.floor=tf,i.forEach=na,i.forEachRight=oa,i.forIn=Pp,i.forInRight=wp,i.forOwn=Sp,i.forOwnRight=Tp,i.get=Op,i.gt=od,i.gte=rd,i.has=Ep,i.hasIn=kp,i.head=ls,i.identity=Rl,i.includes=ra,i.indexOf=cs,i.inRange=Wp,i.invoke=Td,i.isArguments=sd,i.isArray=ad,i.isArrayBuffer=pd,i.isArrayLike=Ba,i.isArrayLikeObject=La,i.isBoolean=qa,i.isBuffer=ld,i.isDate=cd,i.isElement=Ua,i.isEmpty=Ga,i.isEqual=Va,i.isEqualWith=za,i.isError=Ha,i.isFinite=Ya,i.isFunction=Ka,i.isInteger=Wa,i.isLength=$a,i.isMap=ud,i.isMatch=Qa,i.isMatchWith=Za,i.isNaN=ep,i.isNative=tp,i.isNil=np,i.isNull=ip,i.isNumber=op,i.isObject=Ja,i.isObjectLike=Xa,i.isPlainObject=rp,i.isRegExp=dd,i.isSafeInteger=sp,i.isSet=fd,i.isString=ap,i.isSymbol=pp,i.isTypedArray=yd,i.isUndefined=lp,i.isWeakMap=cp,i.isWeakSet=up,i.join=ds,i.kebabCase=xd,i.last=fs,i.lastIndexOf=ys,i.lowerCase=Nd,i.lowerFirst=_d,i.lt=md,i.lte=hd,i.max=ql,i.maxBy=Ul,i.mean=Gl,i.meanBy=Vl,i.min=zl,i.minBy=Hl,i.stubArray=Ml,i.stubFalse=Fl,i.stubObject=xl,i.stubString=Nl,i.stubTrue=_l,i.multiply=nf,i.nth=ms,i.noConflict=Il,i.noop=jl,i.now=$u,i.pad=tl,i.padEnd=il,i.padStart=nl,i.parseInt=ol,i.random=$p,i.reduce=pa,i.reduceRight=la,i.repeat=rl,i.replace=sl,i.result=Bp,i.round=of,i.runInContext=e,i.sample=ua,i.size=ya,i.snakeCase=Dd,i.some=ma,i.sortedIndex=Rs,i.sortedIndexBy=Ps,i.sortedIndexOf=ws,i.sortedLastIndex=Ss,i.sortedLastIndexBy=Ts,i.sortedLastIndexOf=Is,i.startCase=Bd,i.startsWith=pl,i.subtract=rf,i.sum=Yl,i.sumBy=Kl,i.template=ll,i.times=Dl,i.toFinite=fp,i.toInteger=yp,i.toLength=mp,i.toLower=cl,i.toNumber=hp,i.toSafeInteger=Ap,i.toString=bp,i.toUpper=ul,i.trim=dl,i.trimEnd=fl,i.trimStart=yl,i.truncate=ml,i.unescape=hl,i.uniqueId=Ll,i.upperCase=Ld,i.upperFirst=qd,i.each=na,i.eachRight=oa,i.first=ls,Tl(i,function(){var e={};return Qi(i,function(t,n){lc.call(i.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),i.VERSION=oe,p(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){ +i[e].placeholder=i}),p(["drop","take"],function(e,t){j.prototype[e]=function(i){var n=this.__filtered__;if(n&&!t)return new j(this);i=i===ne?1:_c(yp(i),0);var o=this.clone();return n?o.__takeCount__=Dc(i,o.__takeCount__):o.__views__.push({size:Dc(i,xe),type:e+(o.__dir__<0?"Right":"")}),o},j.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),p(["filter","map","takeWhile"],function(e,t){var i=t+1,n=i==Ie||i==Oe;j.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:yr(e,3),type:i}),t.__filtered__=t.__filtered__||n,t}}),p(["head","last"],function(e,t){var i="take"+(t?"Right":"");j.prototype[e]=function(){return this[i](1).value()[0]}}),p(["initial","tail"],function(e,t){var i="drop"+(t?"":"Right");j.prototype[e]=function(){return this.__filtered__?new j(this):this[i](1)}}),j.prototype.compact=function(){return this.filter(Rl)},j.prototype.find=function(e){return this.filter(e).head()},j.prototype.findLast=function(e){return this.reverse().find(e)},j.prototype.invokeMap=Qn(function(e,t){return"function"==typeof e?new j(this):this.map(function(i){return Cn(i,e,t)})}),j.prototype.reject=function(e){return this.filter(wa(yr(e)))},j.prototype.slice=function(e,t){e=yp(e);var i=this;return i.__filtered__&&(e>0||t<0)?new j(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==ne&&(t=yp(t),i=t<0?i.dropRight(-t):i.take(t-e)),i)},j.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},j.prototype.toArray=function(){return this.take(xe)},Qi(j.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),r=i[o?"take"+("last"==t?"Right":""):t],s=o||/^find/.test(t);r&&(i.prototype[t]=function(){var t=this.__wrapped__,a=o?[1]:arguments,p=t instanceof j,l=a[0],c=p||ad(t),u=function(e){var t=r.apply(i,m([e],a));return o&&d?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(p=c=!1);var d=this.__chain__,f=!!this.__actions__.length,y=s&&!d,h=p&&!f;if(!s&&c){t=h?t:new j(this);var v=e.apply(t,a);return v.__actions__.push({func:zs,args:[u],thisArg:ne}),new b(v,d)}return y&&h?e.apply(this,a):(v=this.thru(u),y?o?v.value()[0]:v.value():v)})}),p(["pop","push","shift","sort","splice","unshift"],function(e){var t=nc[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);i.prototype[e]=function(){var e=arguments;if(o&&!this.__chain__){var i=this.value();return t.apply(ad(i)?i:[],e)}return this[n](function(i){return t.apply(ad(i)?i:[],e)})}}),Qi(j.prototype,function(e,t){var n=i[t];if(n){var o=n.name+"",r=$c[o]||($c[o]=[]);r.push({name:t,func:n})}}),$c[Wo(ne,de).name]=[{name:"wrapper",func:ne}],j.prototype.clone=J,j.prototype.reverse=ee,j.prototype.value=te,i.prototype.at=qu,i.prototype.chain=Hs,i.prototype.commit=Ys,i.prototype.next=Ks,i.prototype.plant=$s,i.prototype.reverse=Js,i.prototype.toJSON=i.prototype.valueOf=i.prototype.value=Xs,i.prototype.first=i.prototype.head,gc&&(i.prototype[gc]=Ws),i},dn=un();"function"==typeof e&&"object"==typeof e.amd&&e.amd?(Wi._=dn,e(function(){return dn})):Ji?((Ji.exports=dn)._=dn,$i._=dn):Wi._=dn}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],24:[function(e,t,i){t.exports=function(e,t,i){for(var n=0,o=e.length,r=3==arguments.length?i:e[n++];n=200&&t.status<300)return i.callback(e,t);var n=new Error(t.statusText||"Unsuccessful HTTP response");n.original=e,n.response=t,n.status=t.status,i.callback(n,t)})}function m(e,t){return"function"==typeof t?new y("GET",e).end(t):1==arguments.length?new y("GET",e):new y(e,t)}function h(e,t){var i=m("DELETE",e);return t&&i.end(t),i}var v,A=e("emitter"),b=e("reduce");v="undefined"!=typeof window?window:"undefined"!=typeof self?self:this,m.getXHR=function(){if(!(!v.XMLHttpRequest||v.location&&"file:"==v.location.protocol&&v.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}return!1};var g="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};m.serializeObject=s,m.parseString=p,m.types={html:"text/html",json:"application/json",xml:"application/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},m.serialize={"application/x-www-form-urlencoded":s,"application/json":JSON.stringify},m.parse={"application/x-www-form-urlencoded":p,"application/json":JSON.parse},f.prototype.get=function(e){return this.header[e.toLowerCase()]},f.prototype.setHeaderProperties=function(e){var t=this.header["content-type"]||"";this.type=u(t);var i=d(t);for(var n in i)this[n]=i[n]},f.prototype.parseBody=function(e){var t=m.parse[this.type];return t&&e&&(e.length||e instanceof Object)?t(e):null},f.prototype.setStatusProperties=function(e){1223===e&&(e=204);var t=e/100|0;this.status=this.statusCode=e,this.statusType=t,this.info=1==t,this.ok=2==t,this.clientError=4==t,this.serverError=5==t,this.error=(4==t||5==t)&&this.toError(),this.accepted=202==e,this.noContent=204==e,this.badRequest=400==e,this.unauthorized=401==e,this.notAcceptable=406==e,this.notFound=404==e,this.forbidden=403==e},f.prototype.toError=function(){var e=this.req,t=e.method,i=e.url,n="cannot "+t+" "+i+" ("+this.status+")",o=new Error(n);return o.status=this.status,o.method=t,o.url=i,o},m.Response=f,A(y.prototype),y.prototype.use=function(e){return e(this),this},y.prototype.timeout=function(e){return this._timeout=e,this},y.prototype.clearTimeout=function(){return this._timeout=0,clearTimeout(this._timer),this},y.prototype.abort=function(){if(!this.aborted)return this.aborted=!0,this.xhr.abort(),this.clearTimeout(),this.emit("abort"),this},y.prototype.set=function(e,t){if(r(e)){for(var i in e)this.set(i,e[i]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},y.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},y.prototype.getHeader=function(e){return this._header[e.toLowerCase()]},y.prototype.type=function(e){return this.set("Content-Type",m.types[e]||e),this},y.prototype.parse=function(e){return this._parser=e,this},y.prototype.accept=function(e){return this.set("Accept",m.types[e]||e),this},y.prototype.auth=function(e,t){var i=btoa(e+":"+t);return this.set("Authorization","Basic "+i),this},y.prototype.query=function(e){return"string"!=typeof e&&(e=s(e)),e&&this._query.push(e),this},y.prototype.field=function(e,t){return this._formData||(this._formData=new v.FormData),this._formData.append(e,t),this},y.prototype.attach=function(e,t,i){return this._formData||(this._formData=new v.FormData),this._formData.append(e,t,i||t.name),this},y.prototype.send=function(e){var t=r(e),i=this.getHeader("Content-Type");if(t&&r(this._data))for(var n in e)this._data[n]=e[n];else"string"==typeof e?(i||this.type("form"),i=this.getHeader("Content-Type"),"application/x-www-form-urlencoded"==i?this._data=this._data?this._data+"&"+e:e:this._data=(this._data||"")+e):this._data=e;return!t||o(e)?this:(i||this.type("json"),this)},y.prototype.callback=function(e,t){var i=this._callback;this.clearTimeout(),i(e,t)},y.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},y.prototype.timeoutError=function(){var e=this._timeout,t=new Error("timeout of "+e+"ms exceeded");t.timeout=e,this.callback(t)},y.prototype.withCredentials=function(){return this._withCredentials=!0,this},y.prototype.end=function(e){var t=this,i=this.xhr=m.getXHR(),r=this._query.join("&"),s=this._timeout,a=this._formData||this._data;this._callback=e||n,i.onreadystatechange=function(){if(4==i.readyState){var e;try{e=i.status}catch(t){e=0}if(0==e){if(t.timedout)return t.timeoutError();if(t.aborted)return;return t.crossDomainError()}t.emit("end")}};var p=function(e){e.total>0&&(e.percent=e.loaded/e.total*100),e.direction="download",t.emit("progress",e)};this.hasListeners("progress")&&(i.onprogress=p);try{i.upload&&this.hasListeners("progress")&&(i.upload.onprogress=p)}catch(e){}if(s&&!this._timer&&(this._timer=setTimeout(function(){t.timedout=!0,t.abort()},s)),r&&(r=m.serializeObject(r),this.url+=~this.url.indexOf("?")?"&"+r:"?"+r),i.open(this.method,this.url,!0),this._withCredentials&&(i.withCredentials=!0),"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof a&&!o(a)){var l=this.getHeader("Content-Type"),u=this._parser||m.serialize[l?l.split(";")[0]:""];!u&&c(l)&&(u=m.serialize["application/json"]),u&&(a=u(a))}for(var d in this.header)null!=this.header[d]&&i.setRequestHeader(d,this.header[d]);return this.emit("request",this),i.send("undefined"!=typeof a?a:null),this},y.prototype.then=function(e,t){return this.end(function(i,n){i?t(i):e(n)})},m.Request=y,m.get=function(e,t,i){var n=m("GET",e);return"function"==typeof t&&(i=t,t=null),t&&n.query(t),i&&n.end(i),n},m.head=function(e,t,i){var n=m("HEAD",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},m.del=h,m.delete=h,m.patch=function(e,t,i){var n=m("PATCH",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},m.post=function(e,t,i){var n=m("POST",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},m.put=function(e,t,i){var n=m("PUT",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},t.exports=m},{emitter:6,reduce:24}],26:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AboutApi=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(t){this.apiClient=t||e.instance,this.getAppVersion=function(){var e=null,t={},i={},n={},o={},r=[],s=["application/json"],a=["application/json"],p={String:"String"};return this.apiClient.callApi("/api/enterprise/app-version","GET",t,i,n,o,e,r,s,a,p)}};return t})},{"../../../alfrescoApiClient":295}],27:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/CreateEndpointBasicAuthRepresentation","../model/EndpointBasicAuthRepresentation","../model/EndpointConfigurationRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/CreateEndpointBasicAuthRepresentation"),t("../model/EndpointBasicAuthRepresentation"),t("../model/EndpointConfigurationRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AdminEndpointsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.CreateEndpointBasicAuthRepresentation,n.ActivitiPublicRestApi.EndpointBasicAuthRepresentation,n.ActivitiPublicRestApi.EndpointConfigurationRepresentation))}(void 0,function(e,t,i,n){var o=function(t){this.apiClient=t||e.instance,this.createBasicAuthConfiguration=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'createRepresentation' when calling createBasicAuthConfiguration";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/admin/basic-auths","POST",n,o,r,s,t,a,p,l,c)},this.createEndpointConfiguration=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'representation' when calling createEndpointConfiguration";var i={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/admin/endpoints","POST",i,o,r,s,t,a,p,l,c)},this.getBasicAuthConfiguration=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'basicAuthId' when calling getBasicAuthConfiguration";if(void 0==t||null==t)throw"Missing the required parameter 'tenantId' when calling getBasicAuthConfiguration";var o={basicAuthId:e},r={tenantId:t},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/admin/basic-auths/{basicAuthId}","GET",o,r,s,a,n,p,l,c,u)},this.getBasicAuthConfigurations=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling getBasicAuthConfigurations";var n={},o={tenantId:e},r={},s={},a=[],p=["application/json"],l=["application/json"],c=[i];return this.apiClient.callApi("/api/enterprise/admin/basic-auths","GET",n,o,r,s,t,a,p,l,c)},this.getEndpointConfiguration=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'endpointConfigurationId' when calling getEndpointConfiguration";if(void 0==t||null==t)throw"Missing the required parameter 'tenantId' when calling getEndpointConfiguration";var o={endpointConfigurationId:e},r={tenantId:t},s={},a={},p=[],l=["application/json"],c=["application/json"],u=n;return this.apiClient.callApi("/api/enterprise/admin/endpoints/{endpointConfigurationId}","GET",o,r,s,a,i,p,l,c,u)},this.getEndpointConfigurations=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling getEndpointConfigurations";var i={},o={tenantId:e},r={},s={},a=[],p=["application/json"],l=["application/json"],c=[n];return this.apiClient.callApi("/api/enterprise/admin/endpoints","GET",i,o,r,s,t,a,p,l,c)},this.removeBasicAuthonfiguration=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'basicAuthId' when calling removeBasicAuthonfiguration";if(void 0==t||null==t)throw"Missing the required parameter 'tenantId' when calling removeBasicAuthonfiguration";var n={basicAuthId:e},o={tenantId:t},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/basic-auths/{basicAuthId}","DELETE",n,o,r,s,i,a,p,l,c)},this.removeEndpointConfiguration=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'endpointConfigurationId' when calling removeEndpointConfiguration";if(void 0==t||null==t)throw"Missing the required parameter 'tenantId' when calling removeEndpointConfiguration";var n={endpointConfigurationId:e},o={tenantId:t},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/endpoints/{endpointConfigurationId}","DELETE",n,o,r,s,i,a,p,l,c)},this.updateBasicAuthConfiguration=function(e,t){var n=t;if(void 0==e||null==e)throw"Missing the required parameter 'basicAuthId' when calling updateBasicAuthConfiguration";if(void 0==t||null==t)throw"Missing the required parameter 'createRepresentation' when calling updateBasicAuthConfiguration";var o={basicAuthId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/admin/basic-auths/{basicAuthId}","PUT",o,r,s,a,n,p,l,c,u)},this.updateEndpointConfiguration=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'endpointConfigurationId' when calling updateEndpointConfiguration";if(void 0==t||null==t)throw"Missing the required parameter 'representation' when calling updateEndpointConfiguration";var o={endpointConfigurationId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=n;return this.apiClient.callApi("/api/enterprise/admin/endpoints/{endpointConfigurationId}","PUT",o,r,s,a,i,p,l,c,u)}};return o})},{"../../../alfrescoApiClient":295,"../model/CreateEndpointBasicAuthRepresentation":90,"../model/EndpointBasicAuthRepresentation":93,"../model/EndpointConfigurationRepresentation":94}],28:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/AddGroupCapabilitiesRepresentation","../model/GroupRepresentation","../model/ResultListDataRepresentation","../model/AbstractGroupRepresentation","../model/LightGroupRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/AddGroupCapabilitiesRepresentation"),t("../model/GroupRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/AbstractGroupRepresentation"),t("../model/LightGroupRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AdminGroupsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.AddGroupCapabilitiesRepresentation,n.ActivitiPublicRestApi.GroupRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.AbstractGroupRepresentation,n.ActivitiPublicRestApi.LightGroupRepresentation))}(void 0,function(e,t,i,n,o,r){var s=function(t){this.apiClient=t||e.instance,this.activate=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling activate";var i={groupId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/action/activate","POST",i,n,o,r,t,s,a,p,l)},this.addAllUsersToGroup=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling addAllUsersToGroup";var i={groupId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/add-all-users","POST",i,n,o,r,t,s,a,p,l)},this.addGroupCapabilities=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling addGroupCapabilities";if(void 0==t||null==t)throw"Missing the required parameter 'addGroupCapabilitiesRepresentation' when calling addGroupCapabilities";var n={groupId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/capabilities","POST",n,o,r,s,i,a,p,l,c)},this.addGroupMember=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling addGroupMember";if(void 0==t||null==t)throw"Missing the required parameter 'userId' when calling addGroupMember";var n={groupId:e,userId:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/members/{userId}","POST",n,o,r,s,i,a,p,l,c)},this.addRelatedGroup=function(e,t,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling addRelatedGroup";if(void 0==t||null==t)throw"Missing the required parameter 'relatedGroupId' when calling addRelatedGroup";if(void 0==i||null==i)throw"Missing the required parameter 'type' when calling addRelatedGroup";var o={groupId:e,relatedGroupId:t},r={type:i},s={},a={},p=[],l=["application/json"],c=["application/json"],u=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/related-groups/{relatedGroupId}","POST",o,r,s,a,n,p,l,c,u)},this.createNewGroup=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'groupRepresentation' when calling createNewGroup";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/admin/groups","POST",n,o,r,s,t,a,p,l,c)},this.deleteGroupCapability=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling deleteGroupCapability";if(void 0==t||null==t)throw"Missing the required parameter 'groupCapabilityId' when calling deleteGroupCapability";var n={groupId:e,groupCapabilityId:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/capabilities/{groupCapabilityId}","DELETE",n,o,r,s,i,a,p,l,c)},this.deleteGroupMember=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling deleteGroupMember";if(void 0==t||null==t)throw"Missing the required parameter 'userId' when calling deleteGroupMember";var n={groupId:e,userId:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/members/{userId}","DELETE",n,o,r,s,i,a,p,l,c)},this.deleteGroup=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling deleteGroup";var i={groupId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}","DELETE",i,n,o,r,t,s,a,p,l)},this.deleteRelatedGroup=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling deleteRelatedGroup";if(void 0==t||null==t)throw"Missing the required parameter 'relatedGroupId' when calling deleteRelatedGroup";var n={groupId:e,relatedGroupId:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/related-groups/{relatedGroupId}","DELETE",n,o,r,s,i,a,p,l,c)},this.getCapabilities=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling getCapabilities";var i={groupId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=["String"];return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/potential-capabilities","GET",i,n,o,r,t,s,a,p,l)},this.getGroupUsers=function(e,t){t=t||{};var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling getGroupUsers";var o={groupId:e},r={filter:t.filter,page:t.page,pageSize:t.pageSize},s={},a={},p=[],l=["application/json"],c=["application/json"],u=n;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/users","GET",o,r,s,a,i,p,l,c,u)},this.getGroup=function(e,t){t=t||{};var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling getGroup";var n={groupId:e},r={includeAllUsers:t.includeAllUsers,summary:t.summary},s={},a={},p=[],l=["application/json"],c=["application/json"],u=o;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}","GET",n,r,s,a,i,p,l,c,u)},this.getGroups=function(e){e=e||{};var t=null,i={},n={tenantId:e.tenantId,functional:e.functional,summary:e.summary},o={},s={},a=[],p=["application/json"],l=["application/json"],c=[r];return this.apiClient.callApi("/api/enterprise/admin/groups","GET",i,n,o,s,t,a,p,l,c)},this.getRelatedGroups=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling getRelatedGroups";var i={groupId:e},n={},o={},s={},a=[],p=["application/json"],l=["application/json"],c=[r];return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/related-groups","GET",i,n,o,s,t,a,p,l,c)},this.updateGroup=function(e,t){var n=t;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling updateGroup";if(void 0==t||null==t)throw"Missing the required parameter 'groupRepresentation' when calling updateGroup";var o={groupId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}","PUT",o,r,s,a,n,p,l,c,u)}};return s})},{"../../../alfrescoApiClient":295,"../model/AbstractGroupRepresentation":72,"../model/AddGroupCapabilitiesRepresentation":75,"../model/GroupRepresentation":109,"../model/LightGroupRepresentation":113,"../model/ResultListDataRepresentation":138}],29:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/LightTenantRepresentation","../model/CreateTenantRepresentation","../model/TenantEvent","../model/TenantRepresentation","../model/ImageUploadRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/LightTenantRepresentation"),t("../model/CreateTenantRepresentation"),t("../model/TenantEvent"),t("../model/TenantRepresentation"),t("../model/ImageUploadRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AdminTenantsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.LightTenantRepresentation,n.ActivitiPublicRestApi.CreateTenantRepresentation,n.ActivitiPublicRestApi.TenantEvent,n.ActivitiPublicRestApi.TenantRepresentation,n.ActivitiPublicRestApi.ImageUploadRepresentation))}(void 0,function(e,t,i,n,o,r){var s=function(i){this.apiClient=i||e.instance,this.createTenant=function(e){var i=e;if(void 0==e||null==e)throw"Missing the required parameter 'createTenantRepresentation' when calling createTenant";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/admin/tenants","POST",n,o,r,s,i,a,p,l,c)},this.deleteTenant=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling deleteTenant";var i={tenantId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/admin/tenants/{tenantId}","DELETE",i,n,o,r,t,s,a,p,l)},this.getTenantEvents=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling getTenantEvents";var i={tenantId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=[n];return this.apiClient.callApi("/api/enterprise/admin/tenants/{tenantId}/events","GET",i,o,r,s,t,a,p,l,c)},this.getTenantLogo=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling getTenantLogo";var i={tenantId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/admin/tenants/{tenantId}/logo","GET",i,n,o,r,t,s,a,p,l)},this.getTenant=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling getTenant";var i={tenantId:e},n={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=o;return this.apiClient.callApi("/api/enterprise/admin/tenants/{tenantId}","GET",i,n,r,s,t,a,p,l,c)},this.getTenants=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=[t];return this.apiClient.callApi("/api/enterprise/admin/tenants","GET",i,n,o,r,e,s,a,p,l)},this.update=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling update";if(void 0==t||null==t)throw"Missing the required parameter 'createTenantRepresentation' when calling update";var n={tenantId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=o;return this.apiClient.callApi("/api/enterprise/admin/tenants/{tenantId}","PUT",n,r,s,a,i,p,l,c,u)},this.uploadTenantLogo=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling uploadTenantLogo";if(void 0==t||null==t)throw"Missing the required parameter 'file' when calling uploadTenantLogo";var n={tenantId:e},o={},s={},a={file:t},p=[],l=["multipart/form-data"],c=["application/json"],u=r;return this.apiClient.callApi("/api/enterprise/admin/tenants/{tenantId}/logo","POST",n,o,s,a,i,p,l,c,u)}};return s})},{"../../../alfrescoApiClient":295,"../model/CreateTenantRepresentation":92,"../model/ImageUploadRepresentation":110,"../model/LightTenantRepresentation":114,"../model/TenantEvent":148,"../model/TenantRepresentation":149}],30:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/BulkUserUpdateRepresentation","../model/UserRepresentation","../model/AbstractUserRepresentation","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/BulkUserUpdateRepresentation"),t("../model/UserRepresentation"),t("../model/AbstractUserRepresentation"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AdminUsersApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.BulkUserUpdateRepresentation,n.ActivitiPublicRestApi.UserRepresentation,n.ActivitiPublicRestApi.AbstractUserRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t,i,n,o){var r=function(t){this.apiClient=t||e.instance,this.bulkUpdateUsers=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'update' when calling bulkUpdateUsers";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/admin/users","PUT",i,n,o,r,t,s,a,p,l); +},this.createNewUser=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'userRepresentation' when calling createNewUser";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/admin/users","POST",n,o,r,s,t,a,p,l,c)},this.getUser=function(e,t){t=t||{};var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling getUser";var o={userId:e},r={summary:t.summary},s={},a={},p=[],l=["application/json"],c=["application/json"],u=n;return this.apiClient.callApi("/api/enterprise/admin/users/{userId}","GET",o,r,s,a,i,p,l,c,u)},this.getUsers=function(e){e=e||{};var t=null,i={},n={filter:e.filter,status:e.status,accountType:e.accountType,sort:e.sort,company:e.company,start:e.start,page:e.page,size:e.size,groupId:e.groupId,tenantId:e.tenantId,summary:e.summary},r={},s={},a=[],p=["application/json"],l=["application/json"],c=o;return this.apiClient.callApi("/api/enterprise/admin/users","GET",i,n,r,s,t,a,p,l,c)},this.updateUserDetails=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling updateUserDetails";if(void 0==t||null==t)throw"Missing the required parameter 'userRepresentation' when calling updateUserDetails";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/users/{userId}","PUT",n,o,r,s,i,a,p,l,c)}};return r})},{"../../../alfrescoApiClient":295,"../model/AbstractUserRepresentation":74,"../model/BulkUserUpdateRepresentation":83,"../model/ResultListDataRepresentation":138,"../model/UserRepresentation":154}],31:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AlfrescoApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.getAllNetworks=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks","GET",i,n,o,r,e,s,a,p,l)},this.getAllSites=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getAllSites";var n={networkId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/sites","GET",n,o,r,s,i,a,p,l,c)},this.getAllSites=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getAllSites";var n={repositoryId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/sites","GET",n,o,r,s,i,a,p,l,c)},this.getContentInFolder=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getContentInFolder";if(void 0==i||null==i)throw"Missing the required parameter 'folderId' when calling getContentInFolder";var o={networkId:e,folderId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/folders/{folderId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInFolder=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getContentInFolder";if(void 0==i||null==i)throw"Missing the required parameter 'folderId' when calling getContentInFolder";var o={repositoryId:e,folderId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/folders/{folderId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInSite=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getContentInSite";if(void 0==i||null==i)throw"Missing the required parameter 'siteId' when calling getContentInSite";var o={networkId:e,siteId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/sites/{siteId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInSite=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getContentInSite";if(void 0==i||null==i)throw"Missing the required parameter 'siteId' when calling getContentInSite";var o={repositoryId:e,siteId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/sites/{siteId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getRepositories=function(e){e=e||{};var i=null,n={},o={tenantId:e.tenantId,includeAccounts:e.includeAccounts},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/profile/accounts/alfresco","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],32:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/RuntimeAppDefinitionSaveRepresentation","../model/ResultListDataRepresentation","../model/AppDefinitionRepresentation","../model/AppDefinitionPublishRepresentation","../model/AppDefinitionUpdateResultRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/RuntimeAppDefinitionSaveRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/AppDefinitionRepresentation"),t("../model/AppDefinitionPublishRepresentation"),t("../model/AppDefinitionUpdateResultRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.RuntimeAppDefinitionSaveRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.AppDefinitionRepresentation,n.ActivitiPublicRestApi.AppDefinitionPublishRepresentation,n.ActivitiPublicRestApi.AppDefinitionUpdateResultRepresentation))}(void 0,function(e,t,i,n,o,r){var s=function(t){this.apiClient=t||e.instance,this.deployAppDefinitions=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'saveObject' when calling deployAppDefinitions";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/runtime-app-definitions","POST",i,n,o,r,t,s,a,p,l)},this.exportAppDefinition=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling exportAppDefinition";var i={modelId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/app-definitions/{modelId}/export","GET",i,n,o,r,t,s,a,p,l)},this.getAppDefinitions=function(){var e=null,t={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=i;return this.apiClient.callApi("/api/enterprise/runtime-app-definitions","GET",t,n,o,r,e,s,a,p,l)},this.importAppDefinition=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'file' when calling importAppDefinition";var i={},o={},r={},s={file:e},a=[],p=["multipart/form-data"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/app-definitions/import","POST",i,o,r,s,t,a,p,l,c)},this.importAppDefinition=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling importAppDefinition";if(void 0==t||null==t)throw"Missing the required parameter 'file' when calling importAppDefinition";var o={modelId:e},r={},s={},a={file:t},p=[],l=["multipart/form-data"],c=["application/json"],u=n;return this.apiClient.callApi("/api/enterprise/app-definitions/{modelId}/import","POST",o,r,s,a,i,p,l,c,u)},this.publishAppDefinition=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling publishAppDefinition";if(void 0==t||null==t)throw"Missing the required parameter 'publishModel' when calling publishAppDefinition";var n={modelId:e},o={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=r;return this.apiClient.callApi("/api/enterprise/app-definitions/{modelId}/publish","POST",n,o,s,a,i,p,l,c,u)}};return s})},{"../../../alfrescoApiClient":295,"../model/AppDefinitionPublishRepresentation":77,"../model/AppDefinitionRepresentation":78,"../model/AppDefinitionUpdateResultRepresentation":79,"../model/ResultListDataRepresentation":138,"../model/RuntimeAppDefinitionSaveRepresentation":139}],33:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/AppDefinitionRepresentation","../model/AppDefinitionPublishRepresentation","../model/AppDefinitionUpdateResultRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/AppDefinitionRepresentation"),t("../model/AppDefinitionPublishRepresentation"),t("../model/AppDefinitionUpdateResultRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppsDefinitionApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.AppDefinitionRepresentation,n.ActivitiPublicRestApi.AppDefinitionPublishRepresentation,n.ActivitiPublicRestApi.AppDefinitionUpdateResultRepresentation))}(void 0,function(e,t,i,n){var o=function(i){this.apiClient=i||e.instance,this.exportAppDefinition=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling exportAppDefinition";var i={modelId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/app-definitions/{modelId}/export","GET",i,n,o,r,t,s,a,p,l)},this.importAppDefinition=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'file' when calling importAppDefinition";var n={},o={},r={},s={file:e},a=[],p=["multipart/form-data"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/app-definitions/import","POST",n,o,r,s,i,a,p,l,c)},this.importAppDefinition=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling importAppDefinition";if(void 0==i||null==i)throw"Missing the required parameter 'file' when calling importAppDefinition";var o={modelId:e},r={},s={},a={file:i},p=[],l=["multipart/form-data"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/app-definitions/{modelId}/import","POST",o,r,s,a,n,p,l,c,u)},this.publishAppDefinition=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling publishAppDefinition";if(void 0==t||null==t)throw"Missing the required parameter 'publishModel' when calling publishAppDefinition";var o={modelId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=n;return this.apiClient.callApi("/api/enterprise/app-definitions/{modelId}/publish","POST",o,r,s,a,i,p,l,c,u)}};return o})},{"../../../alfrescoApiClient":295,"../model/AppDefinitionPublishRepresentation":77,"../model/AppDefinitionRepresentation":78,"../model/AppDefinitionUpdateResultRepresentation":79}],34:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/RuntimeAppDefinitionSaveRepresentation","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/RuntimeAppDefinitionSaveRepresentation"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppsRuntimeApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.RuntimeAppDefinitionSaveRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t,i){var n=function(t){this.apiClient=t||e.instance,this.deployAppDefinitions=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'saveObject' when calling deployAppDefinitions";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/runtime-app-definitions","POST",i,n,o,r,t,s,a,p,l)},this.getAppDefinitions=function(){var e=null,t={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=i;return this.apiClient.callApi("/api/enterprise/runtime-app-definitions","GET",t,n,o,r,e,s,a,p,l)}};return n})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138,"../model/RuntimeAppDefinitionSaveRepresentation":139}],35:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/CommentRepresentation","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/CommentRepresentation"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.CommentsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.CommentRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t,i){var n=function(n){this.apiClient=n||e.instance,this.addProcessInstanceComment=function(e,i){var n=e;if(void 0==e||null==e)throw"Missing the required parameter 'commentRequest' when calling addProcessInstanceComment";if(void 0==i||null==i)throw"Missing the required parameter 'processInstanceId' when calling addProcessInstanceComment";var o={processInstanceId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/comments","POST",o,r,s,a,n,p,l,c,u)},this.addTaskComment=function(e,i){var n=e;if(void 0==e||null==e)throw"Missing the required parameter 'commentRequest' when calling addTaskComment";if(void 0==i||null==i)throw"Missing the required parameter 'taskId' when calling addTaskComment";var o={taskId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/comments","POST",o,r,s,a,n,p,l,c,u)},this.getProcessInstanceComments=function(e,t){t=t||{};var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceComments";var o={processInstanceId:e},r={latestFirst:t.latestFirst},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/comments","GET",o,r,s,a,n,p,l,c,u)},this.getTaskComments=function(e,t){t=t||{};var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getTaskComments";var o={taskId:e},r={latestFirst:t.latestFirst},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/comments","GET",o,r,s,a,n,p,l,c,u)}};return n})},{"../../../alfrescoApiClient":295,"../model/CommentRepresentation":87,"../model/ResultListDataRepresentation":138}],36:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/RelatedContentRepresentation","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/RelatedContentRepresentation"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ContentApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.RelatedContentRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t,i){var n=function(n){this.apiClient=n||e.instance,this.createRelatedContentOnProcessInstance=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling createRelatedContentOnProcessInstance";if(void 0==i||null==i)throw"Missing the required parameter 'relatedContent' when calling createRelatedContentOnProcessInstance";var o={processInstanceId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/content","POST",o,r,s,a,n,p,l,c,u)},this.createRelatedContentOnProcessInstance=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling createRelatedContentOnProcessInstance";if(void 0==i||null==i)throw"Missing the required parameter 'file' when calling createRelatedContentOnProcessInstance";var o={processInstanceId:e},r={},s={},a={file:i},p=[],l=["multipart/form-data"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/raw-content","POST",o,r,s,a,n,p,l,c,u)},this.createRelatedContentOnTask=function(e,i,n){n=n||{};var o=i;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling createRelatedContentOnTask";if(void 0==i||null==i)throw"Missing the required parameter 'relatedContent' when calling createRelatedContentOnTask";var r={taskId:e},s={isRelatedContent:n.isRelatedContent},a={},p={},l=[],c=["application/json"],u=["application/json"],d=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/content","POST",r,s,a,p,o,l,c,u,d)},this.createRelatedContentOnTask=function(e,i,n){n=n||{};var o=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling createRelatedContentOnTask";if(void 0==i||null==i)throw"Missing the required parameter 'file' when calling createRelatedContentOnTask";var r={taskId:e},s={isRelatedContent:n.isRelatedContent},a={},p={file:i},l=[],c=["multipart/form-data"],u=["application/json"],d=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/raw-content","POST",r,s,a,p,o,l,c,u,d)},this.createTemporaryRawRelatedContent=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'file' when calling createTemporaryRawRelatedContent";var n={},o={},r={},s={file:e},a=[],p=["multipart/form-data"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/content/raw","POST",n,o,r,s,i,a,p,l,c)},this.createTemporaryRelatedContent=function(e){var i=e;if(void 0==e||null==e)throw"Missing the required parameter 'relatedContent' when calling createTemporaryRelatedContent";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/content","POST",n,o,r,s,i,a,p,l,c)},this.deleteContent=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'contentId' when calling deleteContent";var i={contentId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/content/{contentId}","DELETE",i,n,o,r,t,s,a,p,l)},this.getContent=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'contentId' when calling getContent";var n={contentId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/content/{contentId}","GET",n,o,r,s,i,a,p,l,c)},this.getProcessInstanceContent=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceContent";var n={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/field-content","GET",n,o,r,s,t,a,p,l,c)},this.getRawContent3=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'contentId' when calling getRawContent3";var i={contentId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/content/{contentId}/raw","GET",i,n,o,r,t,s,a,p,l)},this.getRelatedContentForProcessInstance=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getRelatedContentForProcessInstance";var n={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/content","GET",n,o,r,s,t,a,p,l,c)},this.getRelatedContentForTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getRelatedContentForTask";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/content","GET",n,o,r,s,t,a,p,l,c)}};return n})},{"../../../alfrescoApiClient":295,"../model/RelatedContentRepresentation":133,"../model/ResultListDataRepresentation":138}],37:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ContentRenditionApi=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(t){this.apiClient=t||e.instance,this.getRawContent=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'contentId' when calling getRawContent";if(void 0==t||null==t)throw"Missing the required parameter 'renditionType' when calling getRawContent";var n={contentId:e,renditionType:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/content/{contentId}/rendition/{renditionType}","GET",n,o,r,s,i,a,p,l,c)}};return t})},{"../../../alfrescoApiClient":295}],38:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/FormRepresentation","../model/FormSaveRepresentation","../model/ValidationErrorRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/FormRepresentation"),t("../model/FormSaveRepresentation"),t("../model/ValidationErrorRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.EditorApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.FormRepresentation,n.ActivitiPublicRestApi.FormSaveRepresentation,n.ActivitiPublicRestApi.ValidationErrorRepresentation))}(void 0,function(e,t,i,n){var o=function(i){this.apiClient=i||e.instance,this.getFormHistory=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'formId' when calling getFormHistory";if(void 0==i||null==i)throw"Missing the required parameter 'formHistoryId' when calling getFormHistory";var o={formId:e,formHistoryId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/editor/form-models/{formId}/history/{formHistoryId}","GET",o,r,s,a,n,p,l,c,u)},this.getForm=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'formId' when calling getForm";var n={formId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/editor/form-models/{formId}","GET",n,o,r,s,i,a,p,l,c)},this.getForms=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=[t];return this.apiClient.callApi("/api/enterprise/editor/form-models/values","GET",i,n,o,r,e,s,a,p,l)},this.saveForm=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'formId' when calling saveForm";if(void 0==i||null==i)throw"Missing the required parameter 'saveRepresentation' when calling saveForm";var o={formId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/editor/form-models/{formId}","PUT",o,r,s,a,n,p,l,c,u)},this.validateModel=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'formId' when calling validateModel";if(void 0==t||null==t)throw"Missing the required parameter 'saveRepresentation' when calling validateModel";var o={formId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=[n];return this.apiClient.callApi("/api/enterprise/editor/form-models/{formId}/validate","PUT",o,r,s,a,i,p,l,c,u)}};return o})},{"../../../alfrescoApiClient":295,"../model/FormRepresentation":103,"../model/FormSaveRepresentation":104,"../model/ValidationErrorRepresentation":156}],39:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.GroupsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getGroups=function(e){e=e||{};var i=null,n={},o={filter:e.filter,groupId:e.groupId,externalId:e.externalId,externalIdCaseInsensitive:e.externalIdCaseInsensitive,tenantId:e.tenantId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/groups","GET",n,o,r,s,i,a,p,l,c)},this.getUsersForGroup=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling getUsersForGroup";var n={groupId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/groups/{groupId}/users","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],40:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/SyncLogEntryRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/SyncLogEntryRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IDMSyncApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.SyncLogEntryRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getLogFile=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'syncLogEntryId' when calling getLogFile";var i={syncLogEntryId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/idm-sync-log-entries/{syncLogEntryId}/logfile","GET",i,n,o,r,t,s,a,p,l)},this.getSyncLogEntries=function(e){e=e||{};var i=null,n={},o={tenantId:e.tenantId,page:e.page,size:e.size},r={},s={},a=[],p=["application/json"],l=["application/json"],c=[t];return this.apiClient.callApi("/api/enterprise/idm-sync-log-entries","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/SyncLogEntryRepresentation":141}],41:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IntegrationAccountApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getAccounts=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=t;return this.apiClient.callApi("/api/enterprise/account/integration","GET",i,n,o,r,e,s,a,p,l)}};return i})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],42:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IntegrationAlfrescoCloudApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation)); +}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.getAllNetworks=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks","GET",i,n,o,r,e,s,a,p,l)},this.getAllSites=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getAllSites";var n={networkId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/sites","GET",n,o,r,s,i,a,p,l,c)},this.getContentInFolder=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getContentInFolder";if(void 0==i||null==i)throw"Missing the required parameter 'folderId' when calling getContentInFolder";var o={networkId:e,folderId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/folders/{folderId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInSite=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getContentInSite";if(void 0==i||null==i)throw"Missing the required parameter 'siteId' when calling getContentInSite";var o={networkId:e,siteId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/sites/{siteId}/content","GET",o,r,s,a,n,p,l,c,u)}};return i})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],43:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IntegrationAlfrescoOnPremiseApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getAllSites=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getAllSites";var n={repositoryId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/sites","GET",n,o,r,s,i,a,p,l,c)},this.getContentInFolder=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getContentInFolder";if(void 0==i||null==i)throw"Missing the required parameter 'folderId' when calling getContentInFolder";var o={repositoryId:e,folderId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/folders/{folderId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInSite=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getContentInSite";if(void 0==i||null==i)throw"Missing the required parameter 'siteId' when calling getContentInSite";var o={repositoryId:e,siteId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/sites/{siteId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getRepositories=function(e){e=e||{};var i=null,n={},o={tenantId:e.tenantId,includeAccounts:e.includeAccounts},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/profile/accounts/alfresco","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],44:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/UserAccountCredentialsRepresentation","../model/ResultListDataRepresentation","../model/BoxUserAccountCredentialsRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/UserAccountCredentialsRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/BoxUserAccountCredentialsRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IntegrationApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.UserAccountCredentialsRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.BoxUserAccountCredentialsRepresentation))}(void 0,function(e,t,i,n){var o=function(t){this.apiClient=t||e.instance,this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/box/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/google-drive/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.createRepositoryAccount=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling createRepositoryAccount";if(void 0==t||null==t)throw"Missing the required parameter 'credentials' when calling createRepositoryAccount";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","POST",n,o,r,s,i,a,p,l,c)},this.deleteRepositoryAccount=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling deleteRepositoryAccount";var i={userId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","DELETE",i,n,o,r,t,s,a,p,l)},this.getAllNetworks=function(){var e=null,t={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks","GET",t,n,o,r,e,s,a,p,l)},this.getAllSites=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getAllSites";var n={networkId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/sites","GET",n,o,r,s,t,a,p,l,c)},this.getAllSites=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getAllSites";var n={repositoryId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/sites","GET",n,o,r,s,t,a,p,l,c)},this.getBoxPluginStatus=function(){var e=null,t={},i={},n={},o={},r=[],s=["application/json"],a=["application/json"],p="Boolean";return this.apiClient.callApi("/api/enterprise/integration/box/status","GET",t,i,n,o,e,r,s,a,p)},this.getContentInFolder=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getContentInFolder";if(void 0==t||null==t)throw"Missing the required parameter 'folderId' when calling getContentInFolder";var o={networkId:e,folderId:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/folders/{folderId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInFolder=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getContentInFolder";if(void 0==t||null==t)throw"Missing the required parameter 'folderId' when calling getContentInFolder";var o={repositoryId:e,folderId:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/folders/{folderId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInSite=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getContentInSite";if(void 0==t||null==t)throw"Missing the required parameter 'siteId' when calling getContentInSite";var o={networkId:e,siteId:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/sites/{siteId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInSite=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getContentInSite";if(void 0==t||null==t)throw"Missing the required parameter 'siteId' when calling getContentInSite";var o={repositoryId:e,siteId:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/sites/{siteId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getFiles=function(e){e=e||{};var t=null,n={},o={filter:e.filter,parent:e.parent},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/integration/box/files","GET",n,o,r,s,t,a,p,l,c)},this.getFiles=function(e){e=e||{};var t=null,n={},o={filter:e.filter,parent:e.parent,currentFolderOnly:e.currentFolderOnly},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/integration/google-drive/files","GET",n,o,r,s,t,a,p,l,c)},this.getRepositories=function(e){e=e||{};var t=null,n={},o={tenantId:e.tenantId,includeAccounts:e.includeAccounts},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/profile/accounts/alfresco","GET",n,o,r,s,t,a,p,l,c)},this.getRepositoryAccount=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling getRepositoryAccount";var i={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","GET",i,o,r,s,t,a,p,l,c)},this.updateRepositoryAccount=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling updateRepositoryAccount";if(void 0==t||null==t)throw"Missing the required parameter 'credentials' when calling updateRepositoryAccount";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","PUT",n,o,r,s,i,a,p,l,c)}};return o})},{"../../../alfrescoApiClient":295,"../model/BoxUserAccountCredentialsRepresentation":82,"../model/ResultListDataRepresentation":138,"../model/UserAccountCredentialsRepresentation":150}],45:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/UserAccountCredentialsRepresentation","../model/ResultListDataRepresentation","../model/BoxUserAccountCredentialsRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/UserAccountCredentialsRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/BoxUserAccountCredentialsRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IntegrationBoxApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.UserAccountCredentialsRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.BoxUserAccountCredentialsRepresentation))}(void 0,function(e,t,i,n){var o=function(t){this.apiClient=t||e.instance,this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/box/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.createRepositoryAccount=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling createRepositoryAccount";if(void 0==t||null==t)throw"Missing the required parameter 'credentials' when calling createRepositoryAccount";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","POST",n,o,r,s,i,a,p,l,c)},this.deleteRepositoryAccount=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling deleteRepositoryAccount";var i={userId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","DELETE",i,n,o,r,t,s,a,p,l)},this.getBoxPluginStatus=function(){var e=null,t={},i={},n={},o={},r=[],s=["application/json"],a=["application/json"],p="Boolean";return this.apiClient.callApi("/api/enterprise/integration/box/status","GET",t,i,n,o,e,r,s,a,p)},this.getFiles=function(e){e=e||{};var t=null,n={},o={filter:e.filter,parent:e.parent},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/integration/box/files","GET",n,o,r,s,t,a,p,l,c)},this.getRepositoryAccount=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling getRepositoryAccount";var i={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","GET",i,o,r,s,t,a,p,l,c)},this.updateRepositoryAccount=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling updateRepositoryAccount";if(void 0==t||null==t)throw"Missing the required parameter 'credentials' when calling updateRepositoryAccount";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","PUT",n,o,r,s,i,a,p,l,c)}};return o})},{"../../../alfrescoApiClient":295,"../model/BoxUserAccountCredentialsRepresentation":82,"../model/ResultListDataRepresentation":138,"../model/UserAccountCredentialsRepresentation":150}],46:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IntegrationDriveApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/google-drive/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.getFiles=function(e){e=e||{};var i=null,n={},o={filter:e.filter,parent:e.parent,currentFolderOnly:e.currentFolderOnly},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/integration/google-drive/files","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],47:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ModelBpmnApi=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(t){this.apiClient=t||e.instance,this.getHistoricProcessModelBpmn20Xml=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'processModelId' when calling getHistoricProcessModelBpmn20Xml";if(void 0==t||null==t)throw"Missing the required parameter 'processModelHistoryId' when calling getHistoricProcessModelBpmn20Xml";var n={processModelId:e,processModelHistoryId:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/models/{processModelId}/history/{processModelHistoryId}/bpmn20","GET",n,o,r,s,i,a,p,l,c)},this.getProcessModelBpmn20Xml=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processModelId' when calling getProcessModelBpmn20Xml";var i={processModelId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/models/{processModelId}/bpmn20","GET",i,n,o,r,t,s,a,p,l)}};return t})},{"../../../alfrescoApiClient":295}],48:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ObjectNode"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ObjectNode")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ModelJsonBpmnApi=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getHistoricEditorDisplayJsonClient=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'processModelId' when calling getHistoricEditorDisplayJsonClient";if(void 0==i||null==i)throw"Missing the required parameter 'processModelHistoryId' when calling getHistoricEditorDisplayJsonClient";var o={processModelId:e,processModelHistoryId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/app/rest/models/{processModelId}/history/{processModelHistoryId}/model-json","GET",o,r,s,a,n,p,l,c,u)},this.getEditorDisplayJsonClient=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'processModelId' when calling getEditorDisplayJsonClient";var n={processModelId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/app/rest/models/{processModelId}/model-json","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/ObjectNode":121}],49:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ModelRepresentation","../model/ObjectNode","../model/ResultListDataRepresentation","../model/ValidationErrorRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ModelRepresentation"),t("../model/ObjectNode"),t("../model/ResultListDataRepresentation"),t("../model/ValidationErrorRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ModelsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ModelRepresentation,n.ActivitiPublicRestApi.ObjectNode,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.ValidationErrorRepresentation))}(void 0,function(e,t,i,n,o){var r=function(r){this.apiClient=r||e.instance,this.createModel=function(e){var i=e;if(void 0==e||null==e)throw"Missing the required parameter 'modelRepresentation' when calling createModel";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/models","POST",n,o,r,s,i,a,p,l,c)},this.deleteModel=function(e,t){t=t||{};var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling deleteModel";var n={modelId:e},o={cascade:t.cascade,deleteRuntimeApp:t.deleteRuntimeApp},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/models/{modelId}","DELETE",n,o,r,s,i,a,p,l,c)},this.duplicateModel=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling duplicateModel";if(void 0==i||null==i)throw"Missing the required parameter 'modelRepresentation' when calling duplicateModel";var o={modelId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/models/{modelId}/clone","POST",o,r,s,a,n,p,l,c,u)},this.getModelJSON=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling getModelJSON";var n={modelId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/models/{modelId}/editor/json","GET",n,o,r,s,t,a,p,l,c)},this.getModelThumbnail=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling getModelThumbnail";var i={modelId:e},n={},o={},r={},s=[],a=["application/json"],p=["image/png","application/json"],l=["String"];return this.apiClient.callApi("/api/enterprise/models/{modelId}/thumbnail","GET",i,n,o,r,t,s,a,p,l)},this.getModel=function(e,i){i=i||{};var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling getModel";var o={modelId:e},r={includePermissions:i.includePermissions},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/models/{modelId}","GET",o,r,s,a,n,p,l,c,u)},this.getModelsToIncludeInAppDefinition=function(){var e=null,t={},i={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=n;return this.apiClient.callApi("/api/enterprise/models-for-app-definition","GET",t,i,o,r,e,s,a,p,l)},this.getModels=function(e){e=e||{};var t=null,i={},o={filter:e.filter,filterText:e.filterText,sort:e.sort,modelType:e.modelType,referenceId:e.referenceId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/models","GET",i,o,r,s,t,a,p,l,c)},this.importNewVersion=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling importNewVersion";if(void 0==i||null==i)throw"Missing the required parameter 'file' when calling importNewVersion";var o={modelId:e},r={},s={},a={file:i},p=[],l=["multipart/form-data"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/models/{modelId}/newversion","POST",o,r,s,a,n,p,l,c,u)},this.importProcessModel=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'file' when calling importProcessModel";var n={},o={},r={},s={file:e},a=[],p=["multipart/form-data"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/process-models/import","POST",n,o,r,s,i,a,p,l,c)},this.saveModel=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling saveModel";if(void 0==i||null==i)throw"Missing the required parameter 'values' when calling saveModel";var o={modelId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/models/{modelId}/editor/json","POST",o,r,s,a,n,p,l,c,u)},this.updateModel=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling updateModel";if(void 0==i||null==i)throw"Missing the required parameter 'updatedModel' when calling updateModel";var o={modelId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/models/{modelId}","PUT",o,r,s,a,n,p,l,c,u)},this.validateModel=function(e,t){t=t||{};var i=t.values;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling validateModel";var n={modelId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=[o];return this.apiClient.callApi("/api/enterprise/models/{modelId}/editor/validate","POST",n,r,s,a,i,p,l,c,u)}};return r})},{"../../../alfrescoApiClient":295,"../model/ModelRepresentation":120,"../model/ObjectNode":121,"../model/ResultListDataRepresentation":138,"../model/ValidationErrorRepresentation":156}],50:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation","../model/ModelRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation"),t("../model/ModelRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ModelsHistoryApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.ModelRepresentation))}(void 0,function(e,t,i){var n=function(n){this.apiClient=n||e.instance,this.getModelHistoryCollection=function(e,i){i=i||{};var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling getModelHistoryCollection";var o={modelId:e},r={includeLatestVersion:i.includeLatestVersion},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/models/{modelId}/history","GET",o,r,s,a,n,p,l,c,u)},this.getProcessModelHistory=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling getProcessModelHistory";if(void 0==t||null==t)throw"Missing the required parameter 'modelHistoryId' when calling getProcessModelHistory";var o={modelId:e,modelHistoryId:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/models/{modelId}/history/{modelHistoryId}","GET",o,r,s,a,n,p,l,c,u)}};return n})},{"../../../alfrescoApiClient":295,"../model/ModelRepresentation":120,"../model/ResultListDataRepresentation":138}],51:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ProcessInstanceFilterRequestRepresentation","../model/ResultListDataRepresentation","../model/FormDefinitionRepresentation","../model/ProcessInstanceRepresentation","../model/ProcessFilterRequestRepresentation","../model/FormValueRepresentation","../model/CreateProcessInstanceRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ProcessInstanceFilterRequestRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/FormDefinitionRepresentation"),t("../model/ProcessInstanceRepresentation"),t("../model/ProcessFilterRequestRepresentation"),t("../model/FormValueRepresentation"),t("../model/CreateProcessInstanceRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ProcessInstanceFilterRequestRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.FormDefinitionRepresentation,n.ActivitiPublicRestApi.ProcessInstanceRepresentation,n.ActivitiPublicRestApi.ProcessFilterRequestRepresentation,n.ActivitiPublicRestApi.FormValueRepresentation,n.ActivitiPublicRestApi.CreateProcessInstanceRepresentation))}(void 0,function(e,t,i,n,o,r,s,a){var p=function(t){this.apiClient=t||e.instance,this.deleteProcessInstance=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling deleteProcessInstance";var i={processInstanceId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}","DELETE",i,n,o,r,t,s,a,p,l)},this.filterProcessInstances=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'filterRequest' when calling filterProcessInstances";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/filter","POST",n,o,r,s,t,a,p,l,c)},this.getProcessDefinitionStartForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processDefinitionId' when calling getProcessInstanceContent";var i={processDefinitionId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/process-definitions/{processDefinitionId}/start-form","GET",i,o,r,s,t,a,p,l,c)},this.getProcessDefinitions=function(e){e=e||{};var t=null,n={},o={latest:e.latest,appDefinitionId:e.appDefinitionId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i; +return this.apiClient.callApi("/api/enterprise/process-definitions","GET",n,o,r,s,t,a,p,l,c)},this.getProcessInstanceContent=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceContent";var n={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/field-content","GET",n,o,r,s,t,a,p,l,c)},this.getProcessInstanceStartForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceStartForm";var i={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/start-form","GET",i,o,r,s,t,a,p,l,c)},this.getProcessInstance=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstance";var i={processInstanceId:e},n={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=o;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}","GET",i,n,r,s,t,a,p,l,c)},this.getProcessInstances=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'requestNode' when calling getProcessInstances";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/query","POST",n,o,r,s,t,a,p,l,c)},this.getRestFieldValues=function(e,t){var i=null,n={processDefinitionId:e,field:t},o={},r={},a={},p=[],l=["application/json"],c=["application/json"],u=[s];return this.apiClient.callApi("/api/enterprise/process-definitions/{processDefinitionId}/start-form-values/{field}","GET",n,o,r,a,i,p,l,c,u)},this.getRestTableFieldValues=function(e,t,i){var n=null,o={processDefinitionId:e,field:t,column:i},r={},a={},p={},l=[],c=["application/json"],u=["application/json"],d=[s];return this.apiClient.callApi("/api/enterprise/process-definitions/{processDefinitionId}/start-form-values/{field}/{column}","GET",o,r,a,p,n,l,c,u,d)},this.startNewProcessInstance=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'startRequest' when calling startNewProcessInstance";var i={},n={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=o;return this.apiClient.callApi("/api/enterprise/process-instances","POST",i,n,r,s,t,a,p,l,c)}};return p})},{"../../../alfrescoApiClient":295,"../model/CreateProcessInstanceRepresentation":91,"../model/FormDefinitionRepresentation":99,"../model/FormValueRepresentation":107,"../model/ProcessFilterRequestRepresentation":124,"../model/ProcessInstanceFilterRequestRepresentation":126,"../model/ProcessInstanceRepresentation":127,"../model/ResultListDataRepresentation":138}],52:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessDefinitionsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getProcessDefinitions=function(e){e=e||{};var i=null,n={},o={latest:e.latest,appDefinitionId:e.appDefinitionId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/process-definitions","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],53:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/FormDefinitionRepresentation","../model/FormValueRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/FormDefinitionRepresentation"),t("../model/FormValueRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessDefinitionsFormApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.FormDefinitionRepresentation,n.ActivitiPublicRestApi.FormValueRepresentation))}(void 0,function(e,t,i){var n=function(n){this.apiClient=n||e.instance,this.getProcessDefinitionStartForm=function(e){var i=null,n={processDefinitionId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/process-definitions/{processDefinitionId}/start-form","GET",n,o,r,s,i,a,p,l,c)},this.getRestFieldValues=function(e,t){var n=null,o={processDefinitionId:e,field:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=[i];return this.apiClient.callApi("/api/enterprise/process-definitions/{processDefinitionId}/start-form-values/{field}","GET",o,r,s,a,n,p,l,c,u)},this.getRestTableFieldValues=function(e,t,n){var o=null,r={processDefinitionId:e,field:t,column:n},s={},a={},p={},l=[],c=["application/json"],u=["application/json"],d=[i];return this.apiClient.callApi("/api/enterprise/process-definitions/{processDefinitionId}/start-form-values/{field}/{column}","GET",r,s,a,p,o,l,c,u,d)}};return n})},{"../../../alfrescoApiClient":295,"../model/FormDefinitionRepresentation":99,"../model/FormValueRepresentation":107}],54:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/RestVariable"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/RestVariable")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstanceVariablesApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.RestVariable))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getProcessInstanceVariables=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceVariables";var n={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=[t];return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/variables","GET",n,o,r,s,i,a,p,l,c)},this.createProcessInstanceVariables=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling createProcessInstanceVariables";if(void 0==i||null==i)throw"Missing the required parameter 'restVariables' when calling createProcessInstanceVariables";var o={processInstanceId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=[t];return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/variables","POST",o,r,s,a,n,p,l,c,u)},this.createOrUpdateProcessInstanceVariables=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling createOrUpdateProcessInstanceVariables";if(void 0==i||null==i)throw"Missing the required parameter 'restVariables' when calling createOrUpdateProcessInstanceVariables";var o={processInstanceId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=[t];return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/variables","PUT",o,r,s,a,n,p,l,c,u)},this.getProcessInstanceVariable=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceVariable";if(void 0==i||null==i)throw"Missing the required parameter 'variableName' when calling getProcessInstanceVariable";var o={processInstanceId:e,variableName:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/variables/{variableName}","GET",o,r,s,a,n,p,l,c,u)},this.updateProcessInstanceVariable=function(e,i,n){var o=n;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling updateProcessInstanceVariable";if(void 0==i||null==i)throw"Missing the required parameter 'variableName' when calling updateProcessInstanceVariable";var r={processInstanceId:e,variableName:i},s={},a={},p={},l=[],c=["application/json"],u=["application/json"],d=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/variables/{variableName}","PUT",r,s,a,p,o,l,c,u,d)},this.deleteProcessInstanceVariable=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling deleteProcessInstanceVariable";if(void 0==t||null==t)throw"Missing the required parameter 'variableName' when calling deleteProcessInstanceVariable";var n={processInstanceId:e,variableName:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/variables/{variableName}","DELETE",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/RestVariable":137}],55:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/CommentRepresentation","../model/ResultListDataRepresentation","../model/FormDefinitionRepresentation","../model/ProcessInstanceRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/CommentRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/FormDefinitionRepresentation"),t("../model/ProcessInstanceRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstancesApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.CommentRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.FormDefinitionRepresentation,n.ActivitiPublicRestApi.ProcessInstanceRepresentation))}(void 0,function(e,t,i,n,o){var r=function(r){this.apiClient=r||e.instance,this.addProcessInstanceComment=function(e,i){var n=e;if(void 0==e||null==e)throw"Missing the required parameter 'commentRequest' when calling addProcessInstanceComment";if(void 0==i||null==i)throw"Missing the required parameter 'processInstanceId' when calling addProcessInstanceComment";var o={processInstanceId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/comments","POST",o,r,s,a,n,p,l,c,u)},this.deleteProcessInstance=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling deleteProcessInstance";var i={processInstanceId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}","DELETE",i,n,o,r,t,s,a,p,l)},this.getProcessInstanceComments=function(e,t){t=t||{};var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceComments";var o={processInstanceId:e},r={latestFirst:t.latestFirst},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/comments","GET",o,r,s,a,n,p,l,c,u)},this.getProcessInstanceStartForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceStartForm";var i={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/start-form","GET",i,o,r,s,t,a,p,l,c)},this.getProcessInstance=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstance";var i={processInstanceId:e},n={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=o;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}","GET",i,n,r,s,t,a,p,l,c)}};return r})},{"../../../alfrescoApiClient":295,"../model/CommentRepresentation":87,"../model/FormDefinitionRepresentation":99,"../model/ProcessInstanceRepresentation":127,"../model/ResultListDataRepresentation":138}],56:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation","../model/CreateProcessInstanceRepresentation","../model/ProcessInstanceRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation"),t("../model/CreateProcessInstanceRepresentation"),t("../model/ProcessInstanceRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstancesInformationApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.CreateProcessInstanceRepresentation,n.ActivitiPublicRestApi.ProcessInstanceRepresentation))}(void 0,function(e,t,i,n){var o=function(i){this.apiClient=i||e.instance,this.getProcessInstanceContent=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceContent";var n={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/field-content","GET",n,o,r,s,i,a,p,l,c)},this.startNewProcessInstance=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'startRequest' when calling startNewProcessInstance";var i={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/process-instances","POST",i,o,r,s,t,a,p,l,c)}};return o})},{"../../../alfrescoApiClient":295,"../model/CreateProcessInstanceRepresentation":91,"../model/ProcessInstanceRepresentation":127,"../model/ResultListDataRepresentation":138}],57:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ProcessInstanceFilterRequestRepresentation","../model/ResultListDataRepresentation","../model/ObjectNode"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ProcessInstanceFilterRequestRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/ObjectNode")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstancesListingApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ProcessInstanceFilterRequestRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.ObjectNode))}(void 0,function(e,t,i,n){var o=function(t){this.apiClient=t||e.instance,this.filterProcessInstances=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'filterRequest' when calling filterProcessInstances";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/filter","POST",n,o,r,s,t,a,p,l,c)},this.getProcessInstances=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'requestNode' when calling getProcessInstances";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/query","POST",n,o,r,s,t,a,p,l,c)}};return o})},{"../../../alfrescoApiClient":295,"../model/ObjectNode":121,"../model/ProcessInstanceFilterRequestRepresentation":126,"../model/ResultListDataRepresentation":138}],58:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ProcessScopesRequestRepresentation","../model/ProcessScopeRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ProcessScopesRequestRepresentation"),t("../model/ProcessScopeRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessScopeApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ProcessScopesRequestRepresentation,n.ActivitiPublicRestApi.ProcessScopeRepresentation))}(void 0,function(e,t,i){var n=function(t){this.apiClient=t||e.instance,this.getRuntimeProcessScopes=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'processScopesRequest' when calling getRuntimeProcessScopes";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=[i];return this.apiClient.callApi("/api/enterprise/process-scopes","POST",n,o,r,s,t,a,p,l,c)}};return n})},{"../../../alfrescoApiClient":295,"../model/ProcessScopeRepresentation":130,"../model/ProcessScopesRequestRepresentation":131}],59:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ChangePasswordRepresentation","../model/UserRepresentation","../model/ImageUploadRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ChangePasswordRepresentation"),t("../model/UserRepresentation"),t("../model/ImageUploadRepresentation"),t("../model/File")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProfileApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ChangePasswordRepresentation,n.ActivitiPublicRestApi.UserRepresentation,n.ActivitiPublicRestApi.ImageUploadRepresentation,n.ActivitiPublicRestApi.File))}(void 0,function(e,t,i,n,o){var r=function(t){this.apiClient=t||e.instance,this.changePassword=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'changePasswordRepresentation' when calling changePassword";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/profile-password","POST",i,n,o,r,t,s,a,p,l)},this.getProfilePicture=function(){var e=null,t={},i={},n={},r={},s=[],a=["application/json"],p=["application/json"],l=o;return this.apiClient.callApi("/api/enterprise/profile-picture","GET",t,i,n,r,e,s,a,p,l)},this.getProfilePictureUrl=function(){return this.apiClient.basePath+"/app/rest/admin/profile-picture"},this.getProfile=function(){var e=null,t={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=i;return this.apiClient.callApi("/api/enterprise/profile","GET",t,n,o,r,e,s,a,p,l)},this.updateProfile=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'userRepresentation' when calling updateProfile";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/profile","POST",n,o,r,s,t,a,p,l,c)},this.uploadProfilePicture=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'file' when calling uploadProfilePicture";var i={},o={},r={},s={file:e},a=[],p=["multipart/form-data"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/profile-picture","POST",i,o,r,s,t,a,p,l,c)}};return r})},{"../../../alfrescoApiClient":295,"../model/ChangePasswordRepresentation":84,"../model/File":98,"../model/ImageUploadRepresentation":110,"../model/UserRepresentation":154}],60:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ReportCharts","../model/ParameterValueRepresentation","../model/ReportParametersDefinition"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ReportCharts"),t("../model/ParameterValueRepresentation"),t("../model/ReportParametersDefinition")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ReportApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ReportCharts,n.ActivitiPublicRestApi.ParameterValueRepresentation,n.ActivitiPublicRestApi.ReportParametersDefinition))}(void 0,function(e,t,i,n){var o=function(o){this.apiClient=o||e.instance,this.createDefaultReports=function(){var e=null,t={},i={},n={},o={},r=[],s=["application/json"],a=["application/json"],p=null;return this.apiClient.callApi("/app/rest/reporting/default-reports","POST",t,i,n,o,e,r,s,a,p)},this.getTasksByProcessDefinitionId=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'reportId' when calling getTasksByProcessDefinitionId";if(void 0==t||null==t)throw"Missing the required parameter 'processDefinitionId' when calling getTasksByProcessDefinitionId";var n={reportId:e},o={processDefinitionId:t},r={},s={},a=[],p=["application/json"],l=["application/json"],c=["String"];return this.apiClient.callApi("/app/rest/reporting/report-params/{reportId}/tasks","GET",n,o,r,s,i,a,p,l,c)},this.getReportsByParams=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'reportId' when calling getReportsByParams";var o={reportId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/app/rest/reporting/report-params/{reportId}","POST",o,r,s,a,n,p,l,c,u)},this.getProcessDefinitionsValuesNoApp=function(){var e=null,t={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=[i];return this.apiClient.callApi("/app/rest/reporting/process-definitions","GET",t,n,o,r,e,s,a,p,l)},this.getReportParams=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'reportId' when calling getReportParams";var i={reportId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/app/rest/reporting/report-params/{reportId}","GET",i,o,r,s,t,a,p,l,c)},this.getReportList=function(){var e=null,t={},i={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=[n];return this.apiClient.callApi("/app/rest/reporting/reports","GET",t,i,o,r,e,s,a,p,l)}};return o})},{"../../../alfrescoApiClient":295,"../model/ParameterValueRepresentation":123,"../model/ReportCharts":134,"../model/ReportParametersDefinition":135}],61:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ScriptFileApi=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(t){this.apiClient=t||e.instance,this.getControllers=function(){var e=null,t={},i={},n={},o={},r=[],s=["application/json"],a=["application/json","application/javascript"],p="String";return this.apiClient.callApi("/api/enterprise/script-files/controllers","GET",t,i,n,o,e,r,s,a,p)},this.getLibraries=function(){var e=null,t={},i={},n={},o={},r=[],s=["application/json"],a=["application/json","application/javascript"],p="String";return this.apiClient.callApi("/api/enterprise/script-files/libraries","GET",t,i,n,o,e,r,s,a,p)}};return t})},{"../../../alfrescoApiClient":295}],62:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/SystemPropertiesRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/SystemPropertiesRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.SystemPropertiesApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.SystemPropertiesRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getProperties=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=t;return this.apiClient.callApi("/api/enterprise/system/properties","GET",i,n,o,r,e,s,a,p,l)}};return i})},{"../../../alfrescoApiClient":295,"../model/SystemPropertiesRepresentation":142}],63:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ObjectNode","../model/TaskRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ObjectNode"),t("../model/TaskRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskActionsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ObjectNode,n.ActivitiPublicRestApi.TaskRepresentation))}(void 0,function(e,t,i){var n=function(t){this.apiClient=t||e.instance,this.assignTask=function(e,t){var n=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling assignTask";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling assignTask";var o={taskId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/assign","PUT",o,r,s,a,n,p,l,c,u)},this.attachForm=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling attachForm";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling attachForm";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/attach-form","PUT",n,o,r,s,i,a,p,l,c)},this.claimTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling claimTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/claim","PUT",i,n,o,r,t,s,a,p,l)},this.completeTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling completeTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/complete","PUT",i,n,o,r,t,s,a,p,l)},this.involveUser=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling involveUser";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling involveUser";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/involve","PUT",n,o,r,s,i,a,p,l,c)},this.removeForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling removeForm";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/remove-form","DELETE",i,n,o,r,t,s,a,p,l)},this.removeInvolvedUser=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling removeInvolvedUser";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling removeInvolvedUser";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/remove-involved","PUT",n,o,r,s,i,a,p,l,c)},this.unclaimTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling unclaimTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/unclaim","PUT",i,n,o,r,t,s,a,p,l)}};return n})},{"../../../alfrescoApiClient":295,"../model/ObjectNode":121,"../model/TaskRepresentation":146}],64:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/TaskRepresentation","../model/CommentRepresentation","../model/ObjectNode","../model/CompleteFormRepresentation","../model/RelatedContentRepresentation","../model/TaskFilterRequestRepresentation","../model/ResultListDataRepresentation","../model/FormValueRepresentation","../model/FormDefinitionRepresentation","../model/ChecklistOrderRepresentation","../model/SaveFormRepresentation","../model/TaskUpdateRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/TaskRepresentation"),t("../model/CommentRepresentation"),t("../model/ObjectNode"),t("../model/CompleteFormRepresentation"),t("../model/RelatedContentRepresentation"),t("../model/TaskFilterRequestRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/FormValueRepresentation"),t("../model/FormDefinitionRepresentation"),t("../model/ChecklistOrderRepresentation"),t("../model/SaveFormRepresentation"),t("../model/TaskUpdateRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.TaskRepresentation,n.ActivitiPublicRestApi.CommentRepresentation,n.ActivitiPublicRestApi.ObjectNode,n.ActivitiPublicRestApi.CompleteFormRepresentation,n.ActivitiPublicRestApi.RelatedContentRepresentation,n.ActivitiPublicRestApi.TaskFilterRequestRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.FormValueRepresentation,n.ActivitiPublicRestApi.FormDefinitionRepresentation,n.ActivitiPublicRestApi.ChecklistOrderRepresentation,n.ActivitiPublicRestApi.SaveFormRepresentation,n.ActivitiPublicRestApi.TaskUpdateRepresentation)); +}(void 0,function(e,t,i,n,o,r,s,a,p,l,c,u,d){var f=function(n){this.apiClient=n||e.instance,this.addSubtask=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling addSubtask";if(void 0==i||null==i)throw"Missing the required parameter 'taskRepresentation' when calling addSubtask";var o={taskId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/checklist","POST",o,r,s,a,n,p,l,c,u)},this.addTaskComment=function(e,t){var n=e;if(void 0==e||null==e)throw"Missing the required parameter 'commentRequest' when calling addTaskComment";if(void 0==t||null==t)throw"Missing the required parameter 'taskId' when calling addTaskComment";var o={taskId:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/comments","POST",o,r,s,a,n,p,l,c,u)},this.assignTask=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling assignTask";if(void 0==i||null==i)throw"Missing the required parameter 'requestNode' when calling assignTask";var o={taskId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/assign","PUT",o,r,s,a,n,p,l,c,u)},this.attachForm=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling attachForm";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling attachForm";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/attach-form","PUT",n,o,r,s,i,a,p,l,c)},this.claimTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling claimTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/claim","PUT",i,n,o,r,t,s,a,p,l)},this.completeTaskForm=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling completeTaskForm";if(void 0==t||null==t)throw"Missing the required parameter 'completeTaskFormRepresentation' when calling completeTaskForm";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}","POST",n,o,r,s,i,a,p,l,c)},this.completeTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling completeTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/complete","PUT",i,n,o,r,t,s,a,p,l)},this.createNewTask=function(e){var i=e;if(void 0==e||null==e)throw"Missing the required parameter 'taskRepresentation' when calling createNewTask";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/tasks","POST",n,o,r,s,i,a,p,l,c)},this.createRelatedContentOnTask=function(e,t,i){i=i||{};var n=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling createRelatedContentOnTask";if(void 0==t||null==t)throw"Missing the required parameter 'relatedContent' when calling createRelatedContentOnTask";var o={taskId:e},s={isRelatedContent:i.isRelatedContent},a={},p={},l=[],c=["application/json"],u=["application/json"],d=r;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/content","POST",o,s,a,p,n,l,c,u,d)},this.createRelatedContentOnTask=function(e,t,i){i=i||{};var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling createRelatedContentOnTask";if(void 0==t||null==t)throw"Missing the required parameter 'file' when calling createRelatedContentOnTask";var o={taskId:e},s={isRelatedContent:i.isRelatedContent},a={},p={file:t},l=[],c=["multipart/form-data"],u=["application/json"],d=r;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/raw-content","POST",o,s,a,p,n,l,c,u,d)},this.deleteTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling deleteTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}","DELETE",i,n,o,r,t,s,a,p,l)},this.filterTasks=function(e){var t=e;void 0!=e&&null!=e||(console.log("a"),t=new s);var i={},n={},o={},r={},p=[],l=["application/json"],c=["application/json"],u=a;return this.apiClient.callApi("/api/enterprise/tasks/filter","POST",i,n,o,r,t,p,l,c,u)},this.getChecklist=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getChecklist";var i={taskId:e},n={},o={},r={},s=[],p=["application/json"],l=["application/json"],c=a;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/checklist","GET",i,n,o,r,t,s,p,l,c)},this.getRelatedContentForTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getRelatedContentForTask";var i={taskId:e},n={},o={},r={},s=[],p=["application/json"],l=["application/json"],c=a;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/content","GET",i,n,o,r,t,s,p,l,c)},this.getRestFieldValuesColumn=function(e,t,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getRestFieldValues";if(void 0==t||null==t)throw"Missing the required parameter 'field' when calling getRestFieldValues";if(void 0==i||null==i)throw"Missing the required parameter 'column' when calling getRestFieldValues";var o={taskId:e,field:t,column:i},r={},s={},a={},l=[],c=["application/json"],u=["application/json"],d=[p];return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}/form-values/{field}/{column}","GET",o,r,s,a,n,l,c,u,d)},this.getRestFieldValues=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getRestFieldValues";if(void 0==t||null==t)throw"Missing the required parameter 'field' when calling getRestFieldValues";var n={taskId:e,field:t},o={},r={},s={},a=[],l=["application/json"],c=["application/json"],u=[p];return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}/form-values/{field}","GET",n,o,r,s,i,a,l,c,u)},this.getTaskComments=function(e,t){t=t||{};var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getTaskComments";var n={taskId:e},o={latestFirst:t.latestFirst},r={},s={},p=[],l=["application/json"],c=["application/json"],u=a;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/comments","GET",n,o,r,s,i,p,l,c,u)},this.getTaskForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getTaskForm";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],c=l;return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}","GET",i,n,o,r,t,s,a,p,c)},this.getTask=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getTask";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}","GET",n,o,r,s,i,a,p,l,c)},this.involveUser=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling involveUser";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling involveUser";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/involve","PUT",n,o,r,s,i,a,p,l,c)},this.listTasks=function(e){var t=e||{},i={},n={},o={},r={},s=[],p=["application/json"],l=["application/json"],c=a;return this.apiClient.callApi("/api/enterprise/tasks/query","POST",i,n,o,r,t,s,p,l,c)},this.orderChecklist=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling orderChecklist";if(void 0==t||null==t)throw"Missing the required parameter 'orderRepresentation' when calling orderChecklist";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/checklist","PUT",n,o,r,s,i,a,p,l,c)},this.removeForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling removeForm";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/remove-form","DELETE",i,n,o,r,t,s,a,p,l)},this.removeInvolvedUser=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling removeInvolvedUser";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling removeInvolvedUser";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/remove-involved","PUT",n,o,r,s,i,a,p,l,c)},this.saveTaskForm=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling saveTaskForm";if(void 0==t||null==t)throw"Missing the required parameter 'saveTaskFormRepresentation' when calling saveTaskForm";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}/save-form","POST",n,o,r,s,i,a,p,l,c)},this.unclaimTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling unclaimTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/unclaim","PUT",i,n,o,r,t,s,a,p,l)},this.updateTask=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling updateTask";if(void 0==i||null==i)throw"Missing the required parameter 'updated' when calling updateTask";var o={taskId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}","PUT",o,r,s,a,n,p,l,c,u)}};return f})},{"../../../alfrescoApiClient":295,"../model/ChecklistOrderRepresentation":86,"../model/CommentRepresentation":87,"../model/CompleteFormRepresentation":88,"../model/FormDefinitionRepresentation":99,"../model/FormValueRepresentation":107,"../model/ObjectNode":121,"../model/RelatedContentRepresentation":133,"../model/ResultListDataRepresentation":138,"../model/SaveFormRepresentation":140,"../model/TaskFilterRequestRepresentation":144,"../model/TaskRepresentation":146,"../model/TaskUpdateRepresentation":147}],65:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/TaskRepresentation","../model/ResultListDataRepresentation","../model/ChecklistOrderRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/TaskRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/ChecklistOrderRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskCheckListApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.TaskRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.ChecklistOrderRepresentation))}(void 0,function(e,t,i,n){var o=function(n){this.apiClient=n||e.instance,this.addSubtask=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling addSubtask";if(void 0==i||null==i)throw"Missing the required parameter 'taskRepresentation' when calling addSubtask";var o={taskId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/checklist","POST",o,r,s,a,n,p,l,c,u)},this.getChecklist=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getChecklist";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/checklist","GET",n,o,r,s,t,a,p,l,c)},this.orderChecklist=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling orderChecklist";if(void 0==t||null==t)throw"Missing the required parameter 'orderRepresentation' when calling orderChecklist";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/checklist","PUT",n,o,r,s,i,a,p,l,c)}};return o})},{"../../../alfrescoApiClient":295,"../model/ChecklistOrderRepresentation":86,"../model/ResultListDataRepresentation":138,"../model/TaskRepresentation":146}],66:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/CompleteFormRepresentation","../model/FormValueRepresentation","../model/FormDefinitionRepresentation","../model/SaveFormRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/CompleteFormRepresentation"),t("../model/FormValueRepresentation"),t("../model/FormDefinitionRepresentation"),t("../model/SaveFormRepresentation"),t("../model/ProcessInstanceVariableRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskFormsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.CompleteFormRepresentation,n.ActivitiPublicRestApi.FormValueRepresentation,n.ActivitiPublicRestApi.FormDefinitionRepresentation,n.ActivitiPublicRestApi.SaveFormRepresentation,n.ActivitiPublicRestApi.ProcessInstanceVariableRepresentation))}(void 0,function(e,t,i,n,o,r){var s=function(t){this.apiClient=t||e.instance,this.completeTaskForm=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling completeTaskForm";if(void 0==t||null==t)throw"Missing the required parameter 'completeTaskFormRepresentation' when calling completeTaskForm";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}","POST",n,o,r,s,i,a,p,l,c)},this.getRestFieldValues=function(e,t,n){var o=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getRestFieldValues";if(void 0==t||null==t)throw"Missing the required parameter 'field' when calling getRestFieldValues";if(void 0==n||null==n)throw"Missing the required parameter 'column' when calling getRestFieldValues";var r={taskId:e,field:t,column:n},s={},a={},p={},l=[],c=["application/json"],u=["application/json"],d=[i];return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}/form-values/{field}/{column}","GET",r,s,a,p,o,l,c,u,d)},this.getRestFieldValues=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getRestFieldValues";if(void 0==t||null==t)throw"Missing the required parameter 'field' when calling getRestFieldValues";var o={taskId:e,field:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=[i];return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}/form-values/{field}","GET",o,r,s,a,n,p,l,c,u)},this.getTaskForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getTaskForm";var i={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}","GET",i,o,r,s,t,a,p,l,c)},this.getTaskFormVariables=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getTaskFormVariables";var i={taskId:e},n={},o={},s={},a=[],p=["application/json"],l=["application/json"],c=[r];return this.apiClient.callApi("/app/rest/task-forms/{taskId}/variables","GET",i,n,o,s,t,a,p,l,c)},this.saveTaskForm=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling saveTaskForm";if(void 0==t||null==t)throw"Missing the required parameter 'saveTaskFormRepresentation' when calling saveTaskForm";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}/save-form","POST",n,o,r,s,i,a,p,l,c)}};return s})},{"../../../alfrescoApiClient":295,"../model/CompleteFormRepresentation":88,"../model/FormDefinitionRepresentation":99,"../model/FormValueRepresentation":107,"../model/ProcessInstanceVariableRepresentation":128,"../model/SaveFormRepresentation":140}],67:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ArrayNode"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ArrayNode")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TemporaryApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ArrayNode))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.completeTasks=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling completeTasks";if(void 0==t||null==t)throw"Missing the required parameter 'processDefinitionKey' when calling completeTasks";var n={},o={userId:e,processDefinitionKey:t},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/temporary/generate-report-data/complete-tasks","GET",n,o,r,s,i,a,p,l,c)},this.generateData=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling generateData";if(void 0==t||null==t)throw"Missing the required parameter 'processDefinitionKey' when calling generateData";var n={},o={userId:e,processDefinitionKey:t},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/temporary/generate-report-data/start-process","GET",n,o,r,s,i,a,p,l,c)},this.getHeaders=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=t;return this.apiClient.callApi("/api/enterprise/temporary/example-headers","GET",i,n,o,r,e,s,a,p,l)},this.getOptions=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=t;return this.apiClient.callApi("/api/enterprise/temporary/example-options","GET",i,n,o,r,e,s,a,p,l)}};return i})},{"../../../alfrescoApiClient":295,"../model/ArrayNode":81}],68:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/UserActionRepresentation","../model/UserRepresentation","../model/ResultListDataRepresentation","../model/ResetPasswordRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/UserActionRepresentation"),t("../model/UserRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/ResetPasswordRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UserApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.UserActionRepresentation,n.ActivitiPublicRestApi.UserRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.ResetPasswordRepresentation))}(void 0,function(e,t,i,n,o){var r=function(t){this.apiClient=t||e.instance,this.executeAction=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling executeAction";if(void 0==t||null==t)throw"Missing the required parameter 'actionRequest' when calling executeAction";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/users/{userId}","POST",n,o,r,s,i,a,p,l,c)},this.getProfilePicture=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling getProfilePicture";var i={userId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/users/{userId}/picture","GET",i,n,o,r,t,s,a,p,l)},this.getUser=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling getUser";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/users/{userId}","GET",n,o,r,s,t,a,p,l,c)},this.getUsers=function(e){e=e||{};var t=null,i={},o={filter:e.filter,email:e.email,externalId:e.externalId,externalIdCaseInsensitive:e.externalIdCaseInsensitive,excludeTaskId:e.excludeTaskId,excludeProcessId:e.excludeProcessId,groupId:e.groupId,tenantId:e.tenantId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/users","GET",i,o,r,s,t,a,p,l,c)},this.requestPasswordReset=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'resetPassword' when calling requestPasswordReset";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/idm/passwords","POST",i,n,o,r,t,s,a,p,l)},this.updateUser=function(e,t){var n=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling updateUser";if(void 0==t||null==t)throw"Missing the required parameter 'userRequest' when calling updateUser";var o={userId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/users/{userId}","PUT",o,r,s,a,n,p,l,c,u)}};return r})},{"../../../alfrescoApiClient":295,"../model/ResetPasswordRepresentation":136,"../model/ResultListDataRepresentation":138,"../model/UserActionRepresentation":151,"../model/UserRepresentation":154}],69:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/UserProcessInstanceFilterRepresentation","../model/UserTaskFilterRepresentation","../model/ResultListDataRepresentation","../model/UserFilterOrderRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/UserProcessInstanceFilterRepresentation"),t("../model/UserTaskFilterRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/UserFilterOrderRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UserFiltersApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.UserProcessInstanceFilterRepresentation,n.ActivitiPublicRestApi.UserTaskFilterRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.UserFilterOrderRepresentation))}(void 0,function(e,t,i,n,o){var r=function(o){this.apiClient=o||e.instance,this.createUserProcessInstanceFilter=function(e){var i=e;if(void 0==e||null==e)throw"Missing the required parameter 'userProcessInstanceFilterRepresentation' when calling createUserProcessInstanceFilter";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/filters/processes","POST",n,o,r,s,i,a,p,l,c)},this.createUserTaskFilter=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'userTaskFilterRepresentation' when calling createUserTaskFilter";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/filters/tasks","POST",n,o,r,s,t,a,p,l,c)},this.deleteUserProcessInstanceFilter=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userFilterId' when calling deleteUserProcessInstanceFilter";var i={userFilterId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/filters/processes/{userFilterId}","DELETE",i,n,o,r,t,s,a,p,l)},this.deleteUserTaskFilter=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userFilterId' when calling deleteUserTaskFilter";var i={userFilterId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/filters/tasks/{userFilterId}","DELETE",i,n,o,r,t,s,a,p,l)},this.getUserProcessInstanceFilter=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'userFilterId' when calling getUserProcessInstanceFilter";var n={userFilterId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/filters/processes/{userFilterId}","GET",n,o,r,s,i,a,p,l,c)},this.getUserProcessInstanceFilters=function(e){e=e||{};var t=null,i={},o={appId:e.appId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/filters/processes","GET",i,o,r,s,t,a,p,l,c)},this.getUserTaskFilter=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userFilterId' when calling getUserTaskFilter";var n={userFilterId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/filters/tasks/{userFilterId}","GET",n,o,r,s,t,a,p,l,c)},this.getUserTaskFilters=function(e){e=e||{};var t=null,i={},o={appId:e.appId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/filters/tasks","GET",i,o,r,s,t,a,p,l,c)},this.orderUserProcessInstanceFilters=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'filterOrderRepresentation' when calling orderUserProcessInstanceFilters";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/filters/processes","PUT",i,n,o,r,t,s,a,p,l)},this.orderUserTaskFilters=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'filterOrderRepresentation' when calling orderUserTaskFilters";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/filters/tasks","PUT",i,n,o,r,t,s,a,p,l)},this.updateUserProcessInstanceFilter=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'userFilterId' when calling updateUserProcessInstanceFilter";if(void 0==i||null==i)throw"Missing the required parameter 'userProcessInstanceFilterRepresentation' when calling updateUserProcessInstanceFilter";var o={userFilterId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/filters/processes/{userFilterId}","PUT",o,r,s,a,n,p,l,c,u)},this.updateUserTaskFilter=function(e,t){var n=t;if(void 0==e||null==e)throw"Missing the required parameter 'userFilterId' when calling updateUserTaskFilter";if(void 0==t||null==t)throw"Missing the required parameter 'userTaskFilterRepresentation' when calling updateUserTaskFilter";var o={userFilterId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/filters/tasks/{userFilterId}","PUT",o,r,s,a,n,p,l,c,u)}};return r})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138,"../model/UserFilterOrderRepresentation":152,"../model/UserProcessInstanceFilterRepresentation":153,"../model/UserTaskFilterRepresentation":155}],70:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UsersWorkflowApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getUsers=function(e){e=e||{};var i=null,n={},o={filter:e.filter,email:e.email,externalId:e.externalId,externalIdCaseInsensitive:e.externalIdCaseInsensitive,excludeTaskId:e.excludeTaskId,excludeProcessId:e.excludeProcessId,groupId:e.groupId,tenantId:e.tenantId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/users","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],71:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n){"function"==typeof e&&e.amd?e(["../../alfrescoApiClient","./model/AbstractGroupRepresentation","./model/AbstractRepresentation","./model/AbstractUserRepresentation","./model/AddGroupCapabilitiesRepresentation","./model/AppDefinition","./model/AppDefinitionPublishRepresentation","./model/AppDefinitionRepresentation","./model/AppDefinitionUpdateResultRepresentation","./model/AppModelDefinition","./model/ArrayNode","./model/BoxUserAccountCredentialsRepresentation","./model/BulkUserUpdateRepresentation","./model/ChangePasswordRepresentation","./model/ChecklistOrderRepresentation","./model/CommentRepresentation","./model/CompleteFormRepresentation","./model/ConditionRepresentation","./model/CreateEndpointBasicAuthRepresentation","./model/CreateProcessInstanceRepresentation","./model/CreateTenantRepresentation","./model/EndpointBasicAuthRepresentation","./model/EndpointConfigurationRepresentation","./model/EndpointRequestHeaderRepresentation","./model/EntityAttributeScopeRepresentation","./model/EntityVariableScopeRepresentation","./model/File","./model/FormDefinitionRepresentation","./model/FormFieldRepresentation","./model/FormJavascriptEventRepresentation","./model/FormOutcomeRepresentation","./model/FormRepresentation","./model/FormSaveRepresentation","./model/FormScopeRepresentation","./model/FormTabRepresentation","./model/FormValueRepresentation","./model/GroupCapabilityRepresentation","./model/GroupRepresentation","./model/ImageUploadRepresentation","./model/LayoutRepresentation","./model/LightAppRepresentation","./model/LightGroupRepresentation","./model/LightTenantRepresentation","./model/LightUserRepresentation","./model/MaplongListstring","./model/MapstringListEntityVariableScopeRepresentation","./model/MapstringListVariableScopeRepresentation","./model/Mapstringstring","./model/ModelRepresentation","./model/ObjectNode","./model/OptionRepresentation","./model/ProcessFilterRequestRepresentation","./model/ProcessInstanceFilterRepresentation","./model/ProcessInstanceFilterRequestRepresentation","./model/ProcessInstanceRepresentation","./model/ProcessInstanceVariableRepresentation","./model/ProcessScopeIdentifierRepresentation","./model/ProcessScopeRepresentation","./model/ProcessScopesRequestRepresentation","./model/PublishIdentityInfoRepresentation","./model/RelatedContentRepresentation","./model/ResetPasswordRepresentation","./model/RestVariable","./model/ResultListDataRepresentation","./model/RuntimeAppDefinitionSaveRepresentation","./model/SaveFormRepresentation","./model/SyncLogEntryRepresentation","./model/SystemPropertiesRepresentation","./model/TaskFilterRepresentation","./model/TaskFilterRequestRepresentation","./model/TaskQueryRequestRepresentation","./model/TaskRepresentation","./model/TaskUpdateRepresentation","./model/TenantEvent","./model/TenantRepresentation","./model/UserAccountCredentialsRepresentation","./model/UserActionRepresentation","./model/UserFilterOrderRepresentation","./model/UserProcessInstanceFilterRepresentation","./model/UserRepresentation","./model/UserTaskFilterRepresentation","./model/ValidationErrorRepresentation","./model/VariableScopeRepresentation","./api/AboutApi","./api/AdminEndpointsApi","./api/AdminGroupsApi","./api/AdminTenantsApi","./api/AdminUsersApi","./api/AlfrescoApi","./api/AppsApi","./api/AppsDefinitionApi","./api/AppsRuntimeApi","./api/CommentsApi","./api/ContentApi","./api/ContentRenditionApi","./api/EditorApi","./api/GroupsApi","./api/IDMSyncApi","./api/IntegrationApi","./api/IntegrationAccountApi","./api/IntegrationAlfrescoCloudApi","./api/IntegrationAlfrescoOnPremiseApi","./api/IntegrationBoxApi","./api/IntegrationDriveApi","./api/ModelBpmnApi","./api/ModelJsonBpmnApi","./api/ModelsApi","./api/ModelsHistoryApi","./api/ProcessApi","./api/ProcessDefinitionsApi","./api/ProcessDefinitionsFormApi","./api/ProcessInstancesApi","./api/ProcessInstancesInformationApi","./api/ProcessInstancesListingApi","./api/ProcessInstanceVariablesApi","./api/ProcessScopeApi","./api/ProfileApi","./api/ScriptFileApi","./api/SystemPropertiesApi","./api/TaskApi","./api/TaskActionsApi","./api/TaskCheckListApi","./api/TaskFormsApi","./api/TemporaryApi","./api/UserApi","./api/UserFiltersApi","./api/UsersWorkflowApi","./api/ReportApi"],n):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports&&(i.exports=n(t("../../alfrescoApiClient"),t("./model/AbstractGroupRepresentation"),t("./model/AbstractRepresentation"),t("./model/AbstractUserRepresentation"),t("./model/AddGroupCapabilitiesRepresentation"),t("./model/AppDefinition"),t("./model/AppDefinitionPublishRepresentation"),t("./model/AppDefinitionRepresentation"),t("./model/AppDefinitionUpdateResultRepresentation"),t("./model/AppModelDefinition"),t("./model/ArrayNode"),t("./model/BoxUserAccountCredentialsRepresentation"),t("./model/BulkUserUpdateRepresentation"),t("./model/ChangePasswordRepresentation"),t("./model/ChecklistOrderRepresentation"),t("./model/CommentRepresentation"),t("./model/CompleteFormRepresentation"),t("./model/ConditionRepresentation"),t("./model/CreateEndpointBasicAuthRepresentation"),t("./model/CreateProcessInstanceRepresentation"),t("./model/CreateTenantRepresentation"),t("./model/EndpointBasicAuthRepresentation"),t("./model/EndpointConfigurationRepresentation"),t("./model/EndpointRequestHeaderRepresentation"),t("./model/EntityAttributeScopeRepresentation"),t("./model/EntityVariableScopeRepresentation"),t("./model/File"),t("./model/FormDefinitionRepresentation"),t("./model/FormFieldRepresentation"),t("./model/FormJavascriptEventRepresentation"),t("./model/FormOutcomeRepresentation"),t("./model/FormRepresentation"),t("./model/FormSaveRepresentation"),t("./model/FormScopeRepresentation"),t("./model/FormTabRepresentation"),t("./model/FormValueRepresentation"),t("./model/GroupCapabilityRepresentation"),t("./model/GroupRepresentation"),t("./model/ImageUploadRepresentation"),t("./model/LayoutRepresentation"),t("./model/LightAppRepresentation"),t("./model/LightGroupRepresentation"),t("./model/LightTenantRepresentation"),t("./model/LightUserRepresentation"),t("./model/MaplongListstring"),t("./model/MapstringListEntityVariableScopeRepresentation"),t("./model/MapstringListVariableScopeRepresentation"),t("./model/Mapstringstring"),t("./model/ModelRepresentation"),t("./model/ObjectNode"),t("./model/OptionRepresentation"),t("./model/ProcessFilterRequestRepresentation"),t("./model/ProcessInstanceFilterRepresentation"),t("./model/ProcessInstanceFilterRequestRepresentation"),t("./model/ProcessInstanceRepresentation"),t("./model/ProcessInstanceVariableRepresentation"),t("./model/ProcessScopeIdentifierRepresentation"),t("./model/ProcessScopeRepresentation"),t("./model/ProcessScopesRequestRepresentation"),t("./model/PublishIdentityInfoRepresentation"),t("./model/RelatedContentRepresentation"),t("./model/ResetPasswordRepresentation"),t("./model/RestVariable"),t("./model/ResultListDataRepresentation"),t("./model/RuntimeAppDefinitionSaveRepresentation"),t("./model/SaveFormRepresentation"),t("./model/SyncLogEntryRepresentation"),t("./model/SystemPropertiesRepresentation"),t("./model/TaskFilterRepresentation"),t("./model/TaskFilterRequestRepresentation"),t("./model/TaskQueryRequestRepresentation"),t("./model/TaskRepresentation"),t("./model/TaskUpdateRepresentation"),t("./model/TenantEvent"),t("./model/TenantRepresentation"),t("./model/UserAccountCredentialsRepresentation"),t("./model/UserActionRepresentation"),t("./model/UserFilterOrderRepresentation"),t("./model/UserProcessInstanceFilterRepresentation"),t("./model/UserRepresentation"),t("./model/UserTaskFilterRepresentation"),t("./model/ValidationErrorRepresentation"),t("./model/VariableScopeRepresentation"),t("./api/AboutApi"),t("./api/AdminEndpointsApi"),t("./api/AdminGroupsApi"),t("./api/AdminTenantsApi"),t("./api/AdminUsersApi"),t("./api/AlfrescoApi"),t("./api/AppsApi"),t("./api/AppsDefinitionApi"),t("./api/AppsRuntimeApi"),t("./api/CommentsApi"),t("./api/ContentApi"),t("./api/ContentRenditionApi"),t("./api/EditorApi"),t("./api/GroupsApi"),t("./api/IDMSyncApi"),t("./api/IntegrationApi"),t("./api/IntegrationAccountApi"),t("./api/IntegrationAlfrescoCloudApi"),t("./api/IntegrationAlfrescoOnPremiseApi"),t("./api/IntegrationBoxApi"),t("./api/IntegrationDriveApi"),t("./api/ModelBpmnApi"),t("./api/ModelJsonBpmnApi"),t("./api/ModelsApi"),t("./api/ModelsHistoryApi"),t("./api/ProcessApi"),t("./api/ProcessDefinitionsApi"),t("./api/ProcessDefinitionsFormApi"),t("./api/ProcessInstancesApi"),t("./api/ProcessInstancesInformationApi"),t("./api/ProcessInstancesListingApi"),t("./api/ProcessInstanceVariablesApi"),t("./api/ProcessScopeApi"),t("./api/ProfileApi"),t("./api/ScriptFileApi"),t("./api/SystemPropertiesApi"),t("./api/TaskApi"),t("./api/TaskActionsApi"),t("./api/TaskCheckListApi"),t("./api/TaskFormsApi"),t("./api/TemporaryApi"),t("./api/UserApi"),t("./api/UserFiltersApi"),t("./api/UsersWorkflowApi"),t("./api/ReportApi"))); +}(function(e,t,i,n,o,r,s,a,p,l,c,u,d,f,y,m,h,v,A,b,g,C,R,P,w,S,T,I,j,O,E,k,M,F,x,N,_,D,B,L,q,U,G,V,z,H,Y,K,W,$,J,X,Q,Z,ee,te,ie,ne,oe,re,se,ae,pe,le,ce,ue,de,fe,ye,me,he,ve,Ae,be,ge,Ce,Re,Pe,we,Se,Te,Ie,je,Oe,Ee,ke,Me,Fe,xe,Ne,_e,De,Be,Le,qe,Ue,Ge,Ve,ze,He,Ye,Ke,We,$e,Je,Xe,Qe,Ze,et,tt,it,nt,ot,rt,st,at,pt,lt,ct,ut,dt,ft,yt,mt,ht,vt,At,bt){var gt={ApiClient:e,AbstractGroupRepresentation:t,AbstractRepresentation:i,AbstractUserRepresentation:n,AddGroupCapabilitiesRepresentation:o,AppDefinition:r,AppDefinitionPublishRepresentation:s,AppDefinitionRepresentation:a,AppDefinitionUpdateResultRepresentation:p,AppModelDefinition:l,ArrayNode:c,BoxUserAccountCredentialsRepresentation:u,BulkUserUpdateRepresentation:d,ChangePasswordRepresentation:f,ChecklistOrderRepresentation:y,CommentRepresentation:m,CompleteFormRepresentation:h,ConditionRepresentation:v,CreateEndpointBasicAuthRepresentation:A,CreateProcessInstanceRepresentation:b,CreateTenantRepresentation:g,EndpointBasicAuthRepresentation:C,EndpointConfigurationRepresentation:R,EndpointRequestHeaderRepresentation:P,EntityAttributeScopeRepresentation:w,EntityVariableScopeRepresentation:S,File:T,FormDefinitionRepresentation:I,FormFieldRepresentation:j,FormJavascriptEventRepresentation:O,FormOutcomeRepresentation:E,FormRepresentation:k,FormSaveRepresentation:M,FormScopeRepresentation:F,FormTabRepresentation:x,FormValueRepresentation:N,GroupCapabilityRepresentation:_,GroupRepresentation:D,ImageUploadRepresentation:B,LayoutRepresentation:L,LightAppRepresentation:q,LightGroupRepresentation:U,LightTenantRepresentation:G,LightUserRepresentation:V,MaplongListstring:z,MapstringListEntityVariableScopeRepresentation:H,MapstringListVariableScopeRepresentation:Y,Mapstringstring:K,ModelRepresentation:W,ObjectNode:$,OptionRepresentation:J,ProcessFilterRequestRepresentation:X,ProcessInstanceFilterRepresentation:Q,ProcessInstanceFilterRequestRepresentation:Z,ProcessInstanceRepresentation:ee,ProcessInstanceVariableRepresentation:te,ProcessScopeIdentifierRepresentation:ie,ProcessScopeRepresentation:ne,ProcessScopesRequestRepresentation:oe,PublishIdentityInfoRepresentation:re,RelatedContentRepresentation:se,ResetPasswordRepresentation:ae,RestVariable:pe,ResultListDataRepresentation:le,RuntimeAppDefinitionSaveRepresentation:ce,SaveFormRepresentation:ue,SyncLogEntryRepresentation:de,SystemPropertiesRepresentation:fe,TaskFilterRepresentation:ye,TaskFilterRequestRepresentation:me,TaskQueryRequestRepresentation:he,TaskRepresentation:ve,TaskUpdateRepresentation:Ae,TenantEvent:be,TenantRepresentation:ge,UserAccountCredentialsRepresentation:Ce,UserActionRepresentation:Re,UserFilterOrderRepresentation:Pe,UserProcessInstanceFilterRepresentation:we,UserRepresentation:Se,UserTaskFilterRepresentation:Te,ValidationErrorRepresentation:Ie,VariableScopeRepresentation:je,AboutApi:Oe,AdminEndpointsApi:Ee,AdminGroupsApi:ke,AdminTenantsApi:Me,AdminUsersApi:Fe,AlfrescoApi:xe,AppsApi:Ne,AppsDefinitionApi:_e,AppsRuntimeApi:De,CommentsApi:Be,ContentApi:Le,ContentRenditionApi:qe,EditorApi:Ue,GroupsApi:Ge,IDMSyncApi:Ve,IntegrationApi:ze,IntegrationAccountApi:He,IntegrationAlfrescoCloudApi:Ye,IntegrationAlfrescoOnPremiseApi:Ke,IntegrationBoxApi:We,IntegrationDriveApi:$e,ModelBpmnApi:Je,ModelJsonBpmnApi:Xe,ModelsApi:Qe,ModelsHistoryApi:Ze,ProcessApi:et,ProcessDefinitionsApi:tt,ProcessDefinitionsFormApi:it,ProcessInstancesApi:nt,ProcessInstancesInformationApi:ot,ProcessInstancesListingApi:rt,ProcessScopeApi:at,ProcessInstanceVariablesApi:st,ProfileApi:pt,ScriptFileApi:lt,SystemPropertiesApi:ct,TaskApi:ut,TaskActionsApi:dt,TaskCheckListApi:ft,TaskFormsApi:yt,TemporaryApi:mt,UserApi:ht,UserFiltersApi:vt,UsersWorkflowApi:At,ReportApi:bt};return gt})},{"../../alfrescoApiClient":295,"./api/AboutApi":26,"./api/AdminEndpointsApi":27,"./api/AdminGroupsApi":28,"./api/AdminTenantsApi":29,"./api/AdminUsersApi":30,"./api/AlfrescoApi":31,"./api/AppsApi":32,"./api/AppsDefinitionApi":33,"./api/AppsRuntimeApi":34,"./api/CommentsApi":35,"./api/ContentApi":36,"./api/ContentRenditionApi":37,"./api/EditorApi":38,"./api/GroupsApi":39,"./api/IDMSyncApi":40,"./api/IntegrationAccountApi":41,"./api/IntegrationAlfrescoCloudApi":42,"./api/IntegrationAlfrescoOnPremiseApi":43,"./api/IntegrationApi":44,"./api/IntegrationBoxApi":45,"./api/IntegrationDriveApi":46,"./api/ModelBpmnApi":47,"./api/ModelJsonBpmnApi":48,"./api/ModelsApi":49,"./api/ModelsHistoryApi":50,"./api/ProcessApi":51,"./api/ProcessDefinitionsApi":52,"./api/ProcessDefinitionsFormApi":53,"./api/ProcessInstanceVariablesApi":54,"./api/ProcessInstancesApi":55,"./api/ProcessInstancesInformationApi":56,"./api/ProcessInstancesListingApi":57,"./api/ProcessScopeApi":58,"./api/ProfileApi":59,"./api/ReportApi":60,"./api/ScriptFileApi":61,"./api/SystemPropertiesApi":62,"./api/TaskActionsApi":63,"./api/TaskApi":64,"./api/TaskCheckListApi":65,"./api/TaskFormsApi":66,"./api/TemporaryApi":67,"./api/UserApi":68,"./api/UserFiltersApi":69,"./api/UsersWorkflowApi":70,"./model/AbstractGroupRepresentation":72,"./model/AbstractRepresentation":73,"./model/AbstractUserRepresentation":74,"./model/AddGroupCapabilitiesRepresentation":75,"./model/AppDefinition":76,"./model/AppDefinitionPublishRepresentation":77,"./model/AppDefinitionRepresentation":78,"./model/AppDefinitionUpdateResultRepresentation":79,"./model/AppModelDefinition":80,"./model/ArrayNode":81,"./model/BoxUserAccountCredentialsRepresentation":82,"./model/BulkUserUpdateRepresentation":83,"./model/ChangePasswordRepresentation":84,"./model/ChecklistOrderRepresentation":86,"./model/CommentRepresentation":87,"./model/CompleteFormRepresentation":88,"./model/ConditionRepresentation":89,"./model/CreateEndpointBasicAuthRepresentation":90,"./model/CreateProcessInstanceRepresentation":91,"./model/CreateTenantRepresentation":92,"./model/EndpointBasicAuthRepresentation":93,"./model/EndpointConfigurationRepresentation":94,"./model/EndpointRequestHeaderRepresentation":95,"./model/EntityAttributeScopeRepresentation":96,"./model/EntityVariableScopeRepresentation":97,"./model/File":98,"./model/FormDefinitionRepresentation":99,"./model/FormFieldRepresentation":100,"./model/FormJavascriptEventRepresentation":101,"./model/FormOutcomeRepresentation":102,"./model/FormRepresentation":103,"./model/FormSaveRepresentation":104,"./model/FormScopeRepresentation":105,"./model/FormTabRepresentation":106,"./model/FormValueRepresentation":107,"./model/GroupCapabilityRepresentation":108,"./model/GroupRepresentation":109,"./model/ImageUploadRepresentation":110,"./model/LayoutRepresentation":111,"./model/LightAppRepresentation":112,"./model/LightGroupRepresentation":113,"./model/LightTenantRepresentation":114,"./model/LightUserRepresentation":115,"./model/MaplongListstring":116,"./model/MapstringListEntityVariableScopeRepresentation":117,"./model/MapstringListVariableScopeRepresentation":118,"./model/Mapstringstring":119,"./model/ModelRepresentation":120,"./model/ObjectNode":121,"./model/OptionRepresentation":122,"./model/ProcessFilterRequestRepresentation":124,"./model/ProcessInstanceFilterRepresentation":125,"./model/ProcessInstanceFilterRequestRepresentation":126,"./model/ProcessInstanceRepresentation":127,"./model/ProcessInstanceVariableRepresentation":128,"./model/ProcessScopeIdentifierRepresentation":129,"./model/ProcessScopeRepresentation":130,"./model/ProcessScopesRequestRepresentation":131,"./model/PublishIdentityInfoRepresentation":132,"./model/RelatedContentRepresentation":133,"./model/ResetPasswordRepresentation":136,"./model/RestVariable":137,"./model/ResultListDataRepresentation":138,"./model/RuntimeAppDefinitionSaveRepresentation":139,"./model/SaveFormRepresentation":140,"./model/SyncLogEntryRepresentation":141,"./model/SystemPropertiesRepresentation":142,"./model/TaskFilterRepresentation":143,"./model/TaskFilterRequestRepresentation":144,"./model/TaskQueryRequestRepresentation":145,"./model/TaskRepresentation":146,"./model/TaskUpdateRepresentation":147,"./model/TenantEvent":148,"./model/TenantRepresentation":149,"./model/UserAccountCredentialsRepresentation":150,"./model/UserActionRepresentation":151,"./model/UserFilterOrderRepresentation":152,"./model/UserProcessInstanceFilterRepresentation":153,"./model/UserRepresentation":154,"./model/UserTaskFilterRepresentation":155,"./model/ValidationErrorRepresentation":156,"./model/VariableScopeRepresentation":157}],72:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AbstractGroupRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("externalId")&&(n.externalId=e.convertToType(i.externalId,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("status")&&(n.status=e.convertToType(i.status,"String"))),n},t.prototype.externalId=void 0,t.prototype.id=void 0,t.prototype.name=void 0,t.prototype.status=void 0,t})},{"../../../alfrescoApiClient":295}],73:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AbstractRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(e,i){return e&&(i=e||new t),i},t})},{"../../../alfrescoApiClient":295}],74:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AbstractUserRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("email")&&(n.email=e.convertToType(i.email,"String")),i.hasOwnProperty("externalId")&&(n.externalId=e.convertToType(i.externalId,"String")),i.hasOwnProperty("firstName")&&(n.firstName=e.convertToType(i.firstName,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("lastName")&&(n.lastName=e.convertToType(i.lastName,"String")),i.hasOwnProperty("pictureId")&&(n.pictureId=e.convertToType(i.pictureId,"Integer"))),n},t.prototype.email=void 0,t.prototype.externalId=void 0,t.prototype.firstName=void 0,t.prototype.id=void 0,t.prototype.lastName=void 0,t.prototype.pictureId=void 0,t})},{"../../../alfrescoApiClient":295}],75:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AddGroupCapabilitiesRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("capabilities")&&(n.capabilities=e.convertToType(i.capabilities,["String"]))),n},t.prototype.capabilities=void 0,t})},{"../../../alfrescoApiClient":295}],76:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/AppModelDefinition","../model/PublishIdentityInfoRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./AppModelDefinition"),t("./PublishIdentityInfoRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppDefinition=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.AppModelDefinition,n.ActivitiPublicRestApi.PublishIdentityInfoRepresentation))}(void 0,function(e,t,i){var n=function(){};return n.constructFromObject=function(o,r){return o&&(r=o||new n,o.hasOwnProperty("icon")&&(r.icon=e.convertToType(o.icon,"String")),o.hasOwnProperty("models")&&(r.models=e.convertToType(o.models,[t])),o.hasOwnProperty("publishIdentityInfo")&&(r.publishIdentityInfo=e.convertToType(o.publishIdentityInfo,[i])),o.hasOwnProperty("theme")&&(r.theme=e.convertToType(o.theme,"String"))),r},n.prototype.icon=void 0,n.prototype.models=void 0,n.prototype.publishIdentityInfo=void 0,n.prototype.theme=void 0,n})},{"../../../alfrescoApiClient":295,"./AppModelDefinition":80,"./PublishIdentityInfoRepresentation":132}],77:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppDefinitionPublishRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("comment")&&(n.comment=e.convertToType(i.comment,"String")),i.hasOwnProperty("force")&&(n.force=e.convertToType(i.force,"Boolean"))),n},t.prototype.comment=void 0,t.prototype.force=void 0,t})},{"../../../alfrescoApiClient":295}],78:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppDefinitionRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("defaultAppId")&&(n.defaultAppId=e.convertToType(i.defaultAppId,"String")),i.hasOwnProperty("deploymentId")&&(n.deploymentId=e.convertToType(i.deploymentId,"String")),i.hasOwnProperty("description")&&(n.description=e.convertToType(i.description,"String")),i.hasOwnProperty("icon")&&(n.icon=e.convertToType(i.icon,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("modelId")&&(n.modelId=e.convertToType(i.modelId,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("tenantId")&&(n.tenantId=e.convertToType(i.tenantId,"Integer")),i.hasOwnProperty("theme")&&(n.theme=e.convertToType(i.theme,"String"))),n},t.prototype.defaultAppId=void 0,t.prototype.deploymentId=void 0,t.prototype.description=void 0,t.prototype.icon=void 0,t.prototype.id=void 0,t.prototype.modelId=void 0,t.prototype.name=void 0,t.prototype.tenantId=void 0,t.prototype.theme=void 0,t})},{"../../../alfrescoApiClient":295}],79:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/AppDefinitionRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./AppDefinitionRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppDefinitionUpdateResultRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.AppDefinitionRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("appDefinition")&&(o.appDefinition=t.constructFromObject(n.appDefinition)),n.hasOwnProperty("customData")&&(o.customData=e.convertToType(n.customData,Object)),n.hasOwnProperty("error")&&(o.error=e.convertToType(n.error,"Boolean")),n.hasOwnProperty("errorDescription")&&(o.errorDescription=e.convertToType(n.errorDescription,"String")),n.hasOwnProperty("errorType")&&(o.errorType=e.convertToType(n.errorType,"Integer")),n.hasOwnProperty("message")&&(o.message=e.convertToType(n.message,"String")),n.hasOwnProperty("messageKey")&&(o.messageKey=e.convertToType(n.messageKey,"String"))),o},i.prototype.appDefinition=void 0,i.prototype.customData=void 0,i.prototype.error=void 0,i.prototype.errorDescription=void 0,i.prototype.errorType=void 0,i.prototype.message=void 0,i.prototype.messageKey=void 0,i})},{"../../../alfrescoApiClient":295,"./AppDefinitionRepresentation":78}],80:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppModelDefinition=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("createdBy")&&(n.createdBy=e.convertToType(i.createdBy,"Integer")),i.hasOwnProperty("createdByFullName")&&(n.createdByFullName=e.convertToType(i.createdByFullName,"String")),i.hasOwnProperty("description")&&(n.description=e.convertToType(i.description,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("lastUpdated")&&(n.lastUpdated=e.convertToType(i.lastUpdated,"Date")),i.hasOwnProperty("lastUpdatedBy")&&(n.lastUpdatedBy=e.convertToType(i.lastUpdatedBy,"Integer")),i.hasOwnProperty("lastUpdatedByFullName")&&(n.lastUpdatedByFullName=e.convertToType(i.lastUpdatedByFullName,"String")),i.hasOwnProperty("modelType")&&(n.modelType=e.convertToType(i.modelType,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("stencilSetId")&&(n.stencilSetId=e.convertToType(i.stencilSetId,"Integer")),i.hasOwnProperty("version")&&(n.version=e.convertToType(i.version,"Integer"))),n},t.prototype.createdBy=void 0,t.prototype.createdByFullName=void 0,t.prototype.description=void 0,t.prototype.id=void 0,t.prototype.lastUpdated=void 0,t.prototype.lastUpdatedBy=void 0,t.prototype.lastUpdatedByFullName=void 0,t.prototype.modelType=void 0,t.prototype.name=void 0,t.prototype.stencilSetId=void 0,t.prototype.version=void 0,t})},{"../../../alfrescoApiClient":295}],81:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ArrayNode=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("array")&&(n.array=e.convertToType(i.array,"Boolean")),i.hasOwnProperty("bigDecimal")&&(n.bigDecimal=e.convertToType(i.bigDecimal,"Boolean")),i.hasOwnProperty("bigInteger")&&(n.bigInteger=e.convertToType(i.bigInteger,"Boolean")),i.hasOwnProperty("binary")&&(n.binary=e.convertToType(i.binary,"Boolean")),i.hasOwnProperty("boolean")&&(n.boolean=e.convertToType(i.boolean,"Boolean")),i.hasOwnProperty("containerNode")&&(n.containerNode=e.convertToType(i.containerNode,"Boolean")),i.hasOwnProperty("double")&&(n.double=e.convertToType(i.double,"Boolean")),i.hasOwnProperty("float")&&(n.float=e.convertToType(i.float,"Boolean")),i.hasOwnProperty("floatingPointNumber")&&(n.floatingPointNumber=e.convertToType(i.floatingPointNumber,"Boolean")),i.hasOwnProperty("int")&&(n.int=e.convertToType(i.int,"Boolean")),i.hasOwnProperty("integralNumber")&&(n.integralNumber=e.convertToType(i.integralNumber,"Boolean")),i.hasOwnProperty("long")&&(n.long=e.convertToType(i.long,"Boolean")),i.hasOwnProperty("missingNode")&&(n.missingNode=e.convertToType(i.missingNode,"Boolean")),i.hasOwnProperty("nodeType")&&(n.nodeType=e.convertToType(i.nodeType,"String")),i.hasOwnProperty("null")&&(n.null=e.convertToType(i.null,"Boolean")),i.hasOwnProperty("number")&&(n.number=e.convertToType(i.number,"Boolean")),i.hasOwnProperty("object")&&(n.object=e.convertToType(i.object,"Boolean")),i.hasOwnProperty("pojo")&&(n.pojo=e.convertToType(i.pojo,"Boolean")),i.hasOwnProperty("short")&&(n.short=e.convertToType(i.short,"Boolean")),i.hasOwnProperty("textual")&&(n.textual=e.convertToType(i.textual,"Boolean")),i.hasOwnProperty("valueNode")&&(n.valueNode=e.convertToType(i.valueNode,"Boolean"))),n},t.prototype.array=void 0,t.prototype.bigDecimal=void 0,t.prototype.bigInteger=void 0,t.prototype.binary=void 0,t.prototype.boolean=void 0,t.prototype.containerNode=void 0,t.prototype.double=void 0,t.prototype.float=void 0,t.prototype.floatingPointNumber=void 0,t.prototype.int=void 0,t.prototype.integralNumber=void 0,t.prototype.long=void 0,t.prototype.missingNode=void 0,t.prototype.nodeType=void 0,t.prototype.null=void 0,t.prototype.number=void 0,t.prototype.object=void 0,t.prototype.pojo=void 0,t.prototype.short=void 0,t.prototype.textual=void 0,t.prototype.valueNode=void 0,t.NodeTypeEnum={ARRAY:"ARRAY",BINARY:"BINARY",BOOLEAN:"BOOLEAN",MISSING:"MISSING",NULL:"NULL",NUMBER:"NUMBER",OBJECT:"OBJECT",POJO:"POJO",STRING:"STRING"},t})},{"../../../alfrescoApiClient":295}],82:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.BoxUserAccountCredentialsRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("authenticationURL")&&(n.authenticationURL=e.convertToType(i.authenticationURL,"String")),i.hasOwnProperty("expireDate")&&(n.expireDate=e.convertToType(i.expireDate,"Date")),i.hasOwnProperty("ownerEmail")&&(n.ownerEmail=e.convertToType(i.ownerEmail,"String"))),n},t.prototype.authenticationURL=void 0,t.prototype.expireDate=void 0,t.prototype.ownerEmail=void 0,t})},{"../../../alfrescoApiClient":295}],83:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.BulkUserUpdateRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("accountType")&&(n.accountType=e.convertToType(i.accountType,"String")),i.hasOwnProperty("password")&&(n.password=e.convertToType(i.password,"String")),i.hasOwnProperty("sendNotifications")&&(n.sendNotifications=e.convertToType(i.sendNotifications,"Boolean")),i.hasOwnProperty("status")&&(n.status=e.convertToType(i.status,"String")),i.hasOwnProperty("tenantId")&&(n.tenantId=e.convertToType(i.tenantId,"Integer")),i.hasOwnProperty("users")&&(n.users=e.convertToType(i.users,["Integer"]))),n},t.prototype.accountType=void 0,t.prototype.password=void 0,t.prototype.sendNotifications=void 0,t.prototype.status=void 0,t.prototype.tenantId=void 0,t.prototype.users=void 0,t})},{"../../../alfrescoApiClient":295}],84:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ChangePasswordRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("newPassword")&&(n.newPassword=e.convertToType(i.newPassword,"String")),i.hasOwnProperty("oldPassword")&&(n.oldPassword=e.convertToType(i.oldPassword,"String"))),n},t.prototype.newPassword=void 0,t.prototype.oldPassword=void 0,t})},{"../../../alfrescoApiClient":295}],85:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.Chart=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"String")),i.hasOwnProperty("type")&&(n.type=e.convertToType(i.type,"String"))),n},t.prototype.id=void 0,t.prototype.type=void 0,t})},{"../../../alfrescoApiClient":295}],86:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ChecklistOrderRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("order")&&(n.order=e.convertToType(i.order,["String"]))),n},t.prototype.order=void 0,t})},{"../../../alfrescoApiClient":295}],87:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/LightUserRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./LightUserRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.CommentRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.LightUserRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("created")&&(o.created=e.convertToType(n.created,"Date")),n.hasOwnProperty("createdBy")&&(o.createdBy=t.constructFromObject(n.createdBy)),n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"Integer")),n.hasOwnProperty("message")&&(o.message=e.convertToType(n.message,"String"))),o},i.prototype.created=void 0,i.prototype.createdBy=void 0,i.prototype.id=void 0,i.prototype.message=void 0,i})},{"../../../alfrescoApiClient":295,"./LightUserRepresentation":115}],88:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.CompleteFormRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("outcome")&&(n.outcome=e.convertToType(i.outcome,"String")),i.hasOwnProperty("values")&&(n.values=e.convertToType(i.values,Object))),n},t.prototype.outcome=void 0,t.prototype.values=void 0,t})},{"../../../alfrescoApiClient":295}],89:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ConditionRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("leftFormFieldId")&&(n.leftFormFieldId=e.convertToType(i.leftFormFieldId,"String")),i.hasOwnProperty("leftRestResponseId")&&(n.leftRestResponseId=e.convertToType(i.leftRestResponseId,"String")),i.hasOwnProperty("nextConditionOperator")&&(n.nextConditionOperator=e.convertToType(i.nextConditionOperator,"String")),i.hasOwnProperty("operator")&&(n.operator=e.convertToType(i.operator,"String")),i.hasOwnProperty("rightFormFieldId")&&(n.rightFormFieldId=e.convertToType(i.rightFormFieldId,"String")),i.hasOwnProperty("rightRestResponseId")&&(n.rightRestResponseId=e.convertToType(i.rightRestResponseId,"String")),i.hasOwnProperty("rightType")&&(n.rightType=e.convertToType(i.rightType,"String")), +i.hasOwnProperty("rightValue")&&(n.rightValue=e.convertToType(i.rightValue,Object))),n},t.prototype.leftFormFieldId=void 0,t.prototype.leftRestResponseId=void 0,t.prototype.nextConditionOperator=void 0,t.prototype.operator=void 0,t.prototype.rightFormFieldId=void 0,t.prototype.rightRestResponseId=void 0,t.prototype.rightType=void 0,t.prototype.rightValue=void 0,t})},{"../../../alfrescoApiClient":295}],90:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.CreateEndpointBasicAuthRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("password")&&(n.password=e.convertToType(i.password,"String")),i.hasOwnProperty("tenantId")&&(n.tenantId=e.convertToType(i.tenantId,"Integer")),i.hasOwnProperty("username")&&(n.username=e.convertToType(i.username,"String"))),n},t.prototype.name=void 0,t.prototype.password=void 0,t.prototype.tenantId=void 0,t.prototype.username=void 0,t})},{"../../../alfrescoApiClient":295}],91:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.CreateProcessInstanceRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("outcome")&&(n.outcome=e.convertToType(i.outcome,"String")),i.hasOwnProperty("processDefinitionId")&&(n.processDefinitionId=e.convertToType(i.processDefinitionId,"String")),i.hasOwnProperty("values")&&(n.values=e.convertToType(i.values,Object))),n},t.prototype.name=void 0,t.prototype.outcome=void 0,t.prototype.processDefinitionId=void 0,t.prototype.values=void 0,t})},{"../../../alfrescoApiClient":295}],92:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.CreateTenantRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("active")&&(n.active=e.convertToType(i.active,"Boolean")),i.hasOwnProperty("domain")&&(n.domain=e.convertToType(i.domain,"String")),i.hasOwnProperty("maxUsers")&&(n.maxUsers=e.convertToType(i.maxUsers,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String"))),n},t.prototype.active=void 0,t.prototype.domain=void 0,t.prototype.maxUsers=void 0,t.prototype.name=void 0,t})},{"../../../alfrescoApiClient":295}],93:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.EndpointBasicAuthRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("created")&&(n.created=e.convertToType(i.created,"Date")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("lastUpdated")&&(n.lastUpdated=e.convertToType(i.lastUpdated,"Date")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("tenantId")&&(n.tenantId=e.convertToType(i.tenantId,"Integer")),i.hasOwnProperty("username")&&(n.username=e.convertToType(i.username,"String"))),n},t.prototype.created=void 0,t.prototype.id=void 0,t.prototype.lastUpdated=void 0,t.prototype.name=void 0,t.prototype.tenantId=void 0,t.prototype.username=void 0,t})},{"../../../alfrescoApiClient":295}],94:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/EndpointRequestHeaderRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./EndpointRequestHeaderRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.EndpointConfigurationRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.EndpointRequestHeaderRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("basicAuthId")&&(o.basicAuthId=e.convertToType(n.basicAuthId,"Integer")),n.hasOwnProperty("basicAuthName")&&(o.basicAuthName=e.convertToType(n.basicAuthName,"String")),n.hasOwnProperty("host")&&(o.host=e.convertToType(n.host,"String")),n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"Integer")),n.hasOwnProperty("name")&&(o.name=e.convertToType(n.name,"String")),n.hasOwnProperty("path")&&(o.path=e.convertToType(n.path,"String")),n.hasOwnProperty("port")&&(o.port=e.convertToType(n.port,"String")),n.hasOwnProperty("protocol")&&(o.protocol=e.convertToType(n.protocol,"String")),n.hasOwnProperty("requestHeaders")&&(o.requestHeaders=e.convertToType(n.requestHeaders,[t])),n.hasOwnProperty("tenantId")&&(o.tenantId=e.convertToType(n.tenantId,"Integer"))),o},i.prototype.basicAuthId=void 0,i.prototype.basicAuthName=void 0,i.prototype.host=void 0,i.prototype.id=void 0,i.prototype.name=void 0,i.prototype.path=void 0,i.prototype.port=void 0,i.prototype.protocol=void 0,i.prototype.requestHeaders=void 0,i.prototype.tenantId=void 0,i})},{"../../../alfrescoApiClient":295,"./EndpointRequestHeaderRepresentation":95}],95:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.EndpointRequestHeaderRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("value")&&(n.value=e.convertToType(i.value,"String"))),n},t.prototype.name=void 0,t.prototype.value=void 0,t})},{"../../../alfrescoApiClient":295}],96:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.EntityAttributeScopeRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("type")&&(n.type=e.convertToType(i.type,"String"))),n},t.prototype.name=void 0,t.prototype.type=void 0,t})},{"../../../alfrescoApiClient":295}],97:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/EntityAttributeScopeRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./EntityAttributeScopeRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.EntityVariableScopeRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.EntityAttributeScopeRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("attributes")&&(o.attributes=e.convertToType(n.attributes,[t])),n.hasOwnProperty("entityName")&&(o.entityName=e.convertToType(n.entityName,"String")),n.hasOwnProperty("mappedDataModel")&&(o.mappedDataModel=e.convertToType(n.mappedDataModel,"Integer")),n.hasOwnProperty("mappedVariableName")&&(o.mappedVariableName=e.convertToType(n.mappedVariableName,"String"))),o},i.prototype.attributes=void 0,i.prototype.entityName=void 0,i.prototype.mappedDataModel=void 0,i.prototype.mappedVariableName=void 0,i})},{"../../../alfrescoApiClient":295,"./EntityAttributeScopeRepresentation":96}],98:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.File=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("absolute")&&(n.absolute=e.convertToType(i.absolute,"Boolean")),i.hasOwnProperty("absoluteFile")&&(n.absoluteFile=e.convertToType(i.absoluteFile,File)),i.hasOwnProperty("absolutePath")&&(n.absolutePath=e.convertToType(i.absolutePath,"String")),i.hasOwnProperty("canonicalFile")&&(n.canonicalFile=e.convertToType(i.canonicalFile,File)),i.hasOwnProperty("canonicalPath")&&(n.canonicalPath=e.convertToType(i.canonicalPath,"String")),i.hasOwnProperty("directory")&&(n.directory=e.convertToType(i.directory,"Boolean")),i.hasOwnProperty("file")&&(n.file=e.convertToType(i.file,"Boolean")),i.hasOwnProperty("freeSpace")&&(n.freeSpace=e.convertToType(i.freeSpace,"Integer")),i.hasOwnProperty("hidden")&&(n.hidden=e.convertToType(i.hidden,"Boolean")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("parent")&&(n.parent=e.convertToType(i.parent,"String")),i.hasOwnProperty("parentFile")&&(n.parentFile=e.convertToType(i.parentFile,File)),i.hasOwnProperty("path")&&(n.path=e.convertToType(i.path,"String")),i.hasOwnProperty("totalSpace")&&(n.totalSpace=e.convertToType(i.totalSpace,"Integer")),i.hasOwnProperty("usableSpace")&&(n.usableSpace=e.convertToType(i.usableSpace,"Integer"))),n},t.prototype.absolute=void 0,t.prototype.absoluteFile=void 0,t.prototype.absolutePath=void 0,t.prototype.canonicalFile=void 0,t.prototype.canonicalPath=void 0,t.prototype.directory=void 0,t.prototype.file=void 0,t.prototype.freeSpace=void 0,t.prototype.hidden=void 0,t.prototype.name=void 0,t.prototype.parent=void 0,t.prototype.parentFile=void 0,t.prototype.path=void 0,t.prototype.totalSpace=void 0,t.prototype.usableSpace=void 0,t})},{"../../../alfrescoApiClient":295}],99:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/FormFieldRepresentation","../model/FormJavascriptEventRepresentation","../model/FormOutcomeRepresentation","../model/FormTabRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./FormFieldRepresentation"),t("./FormJavascriptEventRepresentation"),t("./FormOutcomeRepresentation"),t("./FormTabRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormDefinitionRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.FormFieldRepresentation,n.ActivitiPublicRestApi.FormJavascriptEventRepresentation,n.ActivitiPublicRestApi.FormOutcomeRepresentation,n.ActivitiPublicRestApi.FormTabRepresentation))}(void 0,function(e,t,i,n,o){var r=function(){};return r.constructFromObject=function(s,a){return s&&(a=s||new r,s.hasOwnProperty("className")&&(a.className=e.convertToType(s.className,"String")),s.hasOwnProperty("customFieldTemplates")&&(a.customFieldTemplates=e.convertToType(s.customFieldTemplates,{String:"String"})),s.hasOwnProperty("fields")&&(a.fields=e.convertToType(s.fields,[t])),s.hasOwnProperty("gridsterForm")&&(a.gridsterForm=e.convertToType(s.gridsterForm,"Boolean")),s.hasOwnProperty("id")&&(a.id=e.convertToType(s.id,"Integer")),s.hasOwnProperty("javascriptEvents")&&(a.javascriptEvents=e.convertToType(s.javascriptEvents,[i])),s.hasOwnProperty("metadata")&&(a.metadata=e.convertToType(s.metadata,{String:"String"})),s.hasOwnProperty("name")&&(a.name=e.convertToType(s.name,"String")),s.hasOwnProperty("outcomeTarget")&&(a.outcomeTarget=e.convertToType(s.outcomeTarget,"String")),s.hasOwnProperty("outcomes")&&(a.outcomes=e.convertToType(s.outcomes,[n])),s.hasOwnProperty("processDefinitionId")&&(a.processDefinitionId=e.convertToType(s.processDefinitionId,"String")),s.hasOwnProperty("processDefinitionKey")&&(a.processDefinitionKey=e.convertToType(s.processDefinitionKey,"String")),s.hasOwnProperty("processDefinitionName")&&(a.processDefinitionName=e.convertToType(s.processDefinitionName,"String")),s.hasOwnProperty("selectedOutcome")&&(a.selectedOutcome=e.convertToType(s.selectedOutcome,"String")),s.hasOwnProperty("style")&&(a.style=e.convertToType(s.style,"String")),s.hasOwnProperty("tabs")&&(a.tabs=e.convertToType(s.tabs,[o])),s.hasOwnProperty("taskDefinitionKey")&&(a.taskDefinitionKey=e.convertToType(s.taskDefinitionKey,"String")),s.hasOwnProperty("taskId")&&(a.taskId=e.convertToType(s.taskId,"String")),s.hasOwnProperty("taskName")&&(a.taskName=e.convertToType(s.taskName,"String"))),a},r.prototype.className=void 0,r.prototype.customFieldTemplates=void 0,r.prototype.fields=void 0,r.prototype.gridsterForm=void 0,r.prototype.id=void 0,r.prototype.javascriptEvents=void 0,r.prototype.metadata=void 0,r.prototype.name=void 0,r.prototype.outcomeTarget=void 0,r.prototype.outcomes=void 0,r.prototype.processDefinitionId=void 0,r.prototype.processDefinitionKey=void 0,r.prototype.processDefinitionName=void 0,r.prototype.selectedOutcome=void 0,r.prototype.style=void 0,r.prototype.tabs=void 0,r.prototype.taskDefinitionKey=void 0,r.prototype.taskId=void 0,r.prototype.taskName=void 0,r})},{"../../../alfrescoApiClient":295,"./FormFieldRepresentation":100,"./FormJavascriptEventRepresentation":101,"./FormOutcomeRepresentation":102,"./FormTabRepresentation":106}],100:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ConditionRepresentation","../model/LayoutRepresentation","../model/OptionRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./ConditionRepresentation"),t("./LayoutRepresentation"),t("./OptionRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormFieldRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ConditionRepresentation,n.ActivitiPublicRestApi.LayoutRepresentation,n.ActivitiPublicRestApi.OptionRepresentation))}(void 0,function(e,t,i,n){var o=function(){};return o.constructFromObject=function(r,s){return r&&(s=r||new o,r.hasOwnProperty("className")&&(s.className=e.convertToType(r.className,"String")),r.hasOwnProperty("col")&&(s.col=e.convertToType(r.col,"Integer")),r.hasOwnProperty("colspan")&&(s.colspan=e.convertToType(r.colspan,"Integer")),r.hasOwnProperty("hasEmptyValue")&&(s.hasEmptyValue=e.convertToType(r.hasEmptyValue,"Boolean")),r.hasOwnProperty("id")&&(s.id=e.convertToType(r.id,"String")),r.hasOwnProperty("layout")&&(s.layout=i.constructFromObject(r.layout)),r.hasOwnProperty("maxLength")&&(s.maxLength=e.convertToType(r.maxLength,"Integer")),r.hasOwnProperty("maxValue")&&(s.maxValue=e.convertToType(r.maxValue,"String")),r.hasOwnProperty("minLength")&&(s.minLength=e.convertToType(r.minLength,"Integer")),r.hasOwnProperty("minValue")&&(s.minValue=e.convertToType(r.minValue,"String")),r.hasOwnProperty("name")&&(s.name=e.convertToType(r.name,"String")),r.hasOwnProperty("optionType")&&(s.optionType=e.convertToType(r.optionType,"String")),r.hasOwnProperty("options")&&(s.options=e.convertToType(r.options,[n])),r.hasOwnProperty("overrideId")&&(s.overrideId=e.convertToType(r.overrideId,"Boolean")),r.hasOwnProperty("params")&&(s.params=e.convertToType(r.params,Object)),r.hasOwnProperty("placeholder")&&(s.placeholder=e.convertToType(r.placeholder,"String")),r.hasOwnProperty("readOnly")&&(s.readOnly=e.convertToType(r.readOnly,"Boolean")),r.hasOwnProperty("regexPattern")&&(s.regexPattern=e.convertToType(r.regexPattern,"String")),r.hasOwnProperty("required")&&(s.required=e.convertToType(r.required,"Boolean")),r.hasOwnProperty("restIdProperty")&&(s.restIdProperty=e.convertToType(r.restIdProperty,"String")),r.hasOwnProperty("restLabelProperty")&&(s.restLabelProperty=e.convertToType(r.restLabelProperty,"String")),r.hasOwnProperty("restResponsePath")&&(s.restResponsePath=e.convertToType(r.restResponsePath,"String")),r.hasOwnProperty("restUrl")&&(s.restUrl=e.convertToType(r.restUrl,"String")),r.hasOwnProperty("row")&&(s.row=e.convertToType(r.row,"Integer")),r.hasOwnProperty("sizeX")&&(s.sizeX=e.convertToType(r.sizeX,"Integer")),r.hasOwnProperty("sizeY")&&(s.sizeY=e.convertToType(r.sizeY,"Integer")),r.hasOwnProperty("tab")&&(s.tab=e.convertToType(r.tab,"String")),r.hasOwnProperty("type")&&(s.type=e.convertToType(r.type,"String")),r.hasOwnProperty("value")&&(s.value=e.convertToType(r.value,Object)),r.hasOwnProperty("visibilityCondition")&&(s.visibilityCondition=t.constructFromObject(r.visibilityCondition))),s},o.prototype.className=void 0,o.prototype.col=void 0,o.prototype.colspan=void 0,o.prototype.hasEmptyValue=void 0,o.prototype.id=void 0,o.prototype.layout=void 0,o.prototype.maxLength=void 0,o.prototype.maxValue=void 0,o.prototype.minLength=void 0,o.prototype.minValue=void 0,o.prototype.name=void 0,o.prototype.optionType=void 0,o.prototype.options=void 0,o.prototype.overrideId=void 0,o.prototype.params=void 0,o.prototype.placeholder=void 0,o.prototype.readOnly=void 0,o.prototype.regexPattern=void 0,o.prototype.required=void 0,o.prototype.restIdProperty=void 0,o.prototype.restLabelProperty=void 0,o.prototype.restResponsePath=void 0,o.prototype.restUrl=void 0,o.prototype.row=void 0,o.prototype.sizeX=void 0,o.prototype.sizeY=void 0,o.prototype.tab=void 0,o.prototype.type=void 0,o.prototype.value=void 0,o.prototype.visibilityCondition=void 0,o})},{"../../../alfrescoApiClient":295,"./ConditionRepresentation":89,"./LayoutRepresentation":111,"./OptionRepresentation":122}],101:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormJavascriptEventRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("event")&&(n.event=e.convertToType(i.event,"String")),i.hasOwnProperty("javascriptLogic")&&(n.javascriptLogic=e.convertToType(i.javascriptLogic,"String"))),n},t.prototype.event=void 0,t.prototype.javascriptLogic=void 0,t})},{"../../../alfrescoApiClient":295}],102:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormOutcomeRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"String")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String"))),n},t.prototype.id=void 0,t.prototype.name=void 0,t})},{"../../../alfrescoApiClient":295}],103:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/FormDefinitionRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./FormDefinitionRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.FormDefinitionRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("description")&&(o.description=e.convertToType(n.description,"String")),n.hasOwnProperty("formDefinition")&&(o.formDefinition=t.constructFromObject(n.formDefinition)),n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"Integer")),n.hasOwnProperty("lastUpdated")&&(o.lastUpdated=e.convertToType(n.lastUpdated,"Date")),n.hasOwnProperty("lastUpdatedBy")&&(o.lastUpdatedBy=e.convertToType(n.lastUpdatedBy,"Integer")),n.hasOwnProperty("lastUpdatedByFullName")&&(o.lastUpdatedByFullName=e.convertToType(n.lastUpdatedByFullName,"String")),n.hasOwnProperty("name")&&(o.name=e.convertToType(n.name,"String")),n.hasOwnProperty("referenceId")&&(o.referenceId=e.convertToType(n.referenceId,"Integer")),n.hasOwnProperty("stencilSetId")&&(o.stencilSetId=e.convertToType(n.stencilSetId,"Integer")),n.hasOwnProperty("version")&&(o.version=e.convertToType(n.version,"Integer"))),o},i.prototype.description=void 0,i.prototype.formDefinition=void 0,i.prototype.id=void 0,i.prototype.lastUpdated=void 0,i.prototype.lastUpdatedBy=void 0,i.prototype.lastUpdatedByFullName=void 0,i.prototype.name=void 0,i.prototype.referenceId=void 0,i.prototype.stencilSetId=void 0,i.prototype.version=void 0,i})},{"../../../alfrescoApiClient":295,"./FormDefinitionRepresentation":99}],104:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/FormRepresentation","../model/ProcessScopeIdentifierRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./FormRepresentation"),t("./ProcessScopeIdentifierRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormSaveRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.FormRepresentation,n.ActivitiPublicRestApi.ProcessScopeIdentifierRepresentation))}(void 0,function(e,t,i){var n=function(){};return n.constructFromObject=function(o,r){return o&&(r=o||new n,o.hasOwnProperty("comment")&&(r.comment=e.convertToType(o.comment,"String")),o.hasOwnProperty("formImageBase64")&&(r.formImageBase64=e.convertToType(o.formImageBase64,"String")),o.hasOwnProperty("formRepresentation")&&(r.formRepresentation=t.constructFromObject(o.formRepresentation)),o.hasOwnProperty("newVersion")&&(r.newVersion=e.convertToType(o.newVersion,"Boolean")),o.hasOwnProperty("processScopeIdentifiers")&&(r.processScopeIdentifiers=e.convertToType(o.processScopeIdentifiers,[i])),o.hasOwnProperty("reusable")&&(r.reusable=e.convertToType(o.reusable,"Boolean"))),r},n.prototype.comment=void 0,n.prototype.formImageBase64=void 0,n.prototype.formRepresentation=void 0,n.prototype.newVersion=void 0,n.prototype.processScopeIdentifiers=void 0,n.prototype.reusable=void 0,n})},{"../../../alfrescoApiClient":295,"./FormRepresentation":103,"./ProcessScopeIdentifierRepresentation":129}],105:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/FormFieldRepresentation","../model/FormOutcomeRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./FormFieldRepresentation"),t("./FormOutcomeRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormScopeRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.FormFieldRepresentation,n.ActivitiPublicRestApi.FormOutcomeRepresentation))}(void 0,function(e,t,i){var n=function(){};return n.constructFromObject=function(o,r){return o&&(r=o||new n,o.hasOwnProperty("description")&&(r.description=e.convertToType(o.description,"String")),o.hasOwnProperty("fieldVariables")&&(r.fieldVariables=e.convertToType(o.fieldVariables,[t])),o.hasOwnProperty("fields")&&(r.fields=e.convertToType(o.fields,[t])),o.hasOwnProperty("id")&&(r.id=e.convertToType(o.id,"Integer")),o.hasOwnProperty("name")&&(r.name=e.convertToType(o.name,"String")),o.hasOwnProperty("outcomes")&&(r.outcomes=e.convertToType(o.outcomes,[i]))),r},n.prototype.description=void 0,n.prototype.fieldVariables=void 0,n.prototype.fields=void 0,n.prototype.id=void 0,n.prototype.name=void 0,n.prototype.outcomes=void 0,n})},{"../../../alfrescoApiClient":295,"./FormFieldRepresentation":100,"./FormOutcomeRepresentation":102}],106:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ConditionRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./ConditionRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormTabRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ConditionRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"String")),n.hasOwnProperty("title")&&(o.title=e.convertToType(n.title,"String")),n.hasOwnProperty("visibilityCondition")&&(o.visibilityCondition=t.constructFromObject(n.visibilityCondition))),o},i.prototype.id=void 0,i.prototype.title=void 0,i.prototype.visibilityCondition=void 0,i})},{"../../../alfrescoApiClient":295,"./ConditionRepresentation":89}],107:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormValueRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"String")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String"))),n},t.prototype.id=void 0,t.prototype.name=void 0,t})},{"../../../alfrescoApiClient":295}],108:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.GroupCapabilityRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String"))),n},t.prototype.id=void 0,t.prototype.name=void 0,t})},{"../../../alfrescoApiClient":295}],109:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/GroupCapabilityRepresentation","../model/GroupRepresentation","../model/UserRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./GroupCapabilityRepresentation"),t("./GroupRepresentation"),t("./UserRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.GroupRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.GroupCapabilityRepresentation,n.ActivitiPublicRestApi.GroupRepresentation,n.ActivitiPublicRestApi.UserRepresentation)); +}(void 0,function(e,t,i,n){var o=function(){};return o.constructFromObject=function(r,s){return r&&(s=r||new o,r.hasOwnProperty("capabilities")&&(s.capabilities=e.convertToType(r.capabilities,[t])),r.hasOwnProperty("externalId")&&(s.externalId=e.convertToType(r.externalId,"String")),r.hasOwnProperty("groups")&&(s.groups=e.convertToType(r.groups,[i])),r.hasOwnProperty("id")&&(s.id=e.convertToType(r.id,"Integer")),r.hasOwnProperty("lastSyncTimeStamp")&&(s.lastSyncTimeStamp=e.convertToType(r.lastSyncTimeStamp,"Date")),r.hasOwnProperty("name")&&(s.name=e.convertToType(r.name,"String")),r.hasOwnProperty("parentGroupId")&&(s.parentGroupId=e.convertToType(r.parentGroupId,"Integer")),r.hasOwnProperty("status")&&(s.status=e.convertToType(r.status,"String")),r.hasOwnProperty("tenantId")&&(s.tenantId=e.convertToType(r.tenantId,"Integer")),r.hasOwnProperty("type")&&(s.type=e.convertToType(r.type,"Integer")),r.hasOwnProperty("userCount")&&(s.userCount=e.convertToType(r.userCount,"Integer")),r.hasOwnProperty("users")&&(s.users=e.convertToType(r.users,[n]))),s},o.prototype.capabilities=void 0,o.prototype.externalId=void 0,o.prototype.groups=void 0,o.prototype.id=void 0,o.prototype.lastSyncTimeStamp=void 0,o.prototype.name=void 0,o.prototype.parentGroupId=void 0,o.prototype.status=void 0,o.prototype.tenantId=void 0,o.prototype.type=void 0,o.prototype.userCount=void 0,o.prototype.users=void 0,o})},{"../../../alfrescoApiClient":295,"./GroupCapabilityRepresentation":108,"./GroupRepresentation":109,"./UserRepresentation":154}],110:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ImageUploadRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("created")&&(n.created=e.convertToType(i.created,"Date")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("userId")&&(n.userId=e.convertToType(i.userId,"Integer"))),n},t.prototype.created=void 0,t.prototype.id=void 0,t.prototype.name=void 0,t.prototype.userId=void 0,t})},{"../../../alfrescoApiClient":295}],111:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.LayoutRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("colspan")&&(n.colspan=e.convertToType(i.colspan,"Integer")),i.hasOwnProperty("column")&&(n.column=e.convertToType(i.column,"Integer")),i.hasOwnProperty("row")&&(n.row=e.convertToType(i.row,"Integer"))),n},t.prototype.colspan=void 0,t.prototype.column=void 0,t.prototype.row=void 0,t})},{"../../../alfrescoApiClient":295}],112:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.LightAppRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("description")&&(n.description=e.convertToType(i.description,"String")),i.hasOwnProperty("icon")&&(n.icon=e.convertToType(i.icon,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("theme")&&(n.theme=e.convertToType(i.theme,"String"))),n},t.prototype.description=void 0,t.prototype.icon=void 0,t.prototype.id=void 0,t.prototype.name=void 0,t.prototype.theme=void 0,t})},{"../../../alfrescoApiClient":295}],113:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/LightGroupRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./LightGroupRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.LightGroupRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.LightGroupRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("externalId")&&(o.externalId=e.convertToType(n.externalId,"String")),n.hasOwnProperty("groups")&&(o.groups=e.convertToType(n.groups,[t])),n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"Integer")),n.hasOwnProperty("name")&&(o.name=e.convertToType(n.name,"String")),n.hasOwnProperty("status")&&(o.status=e.convertToType(n.status,"String"))),o},i.prototype.externalId=void 0,i.prototype.groups=void 0,i.prototype.id=void 0,i.prototype.name=void 0,i.prototype.status=void 0,i})},{"../../../alfrescoApiClient":295,"./LightGroupRepresentation":113}],114:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.LightTenantRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String"))),n},t.prototype.id=void 0,t.prototype.name=void 0,t})},{"../../../alfrescoApiClient":295}],115:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.LightUserRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("email")&&(n.email=e.convertToType(i.email,"String")),i.hasOwnProperty("externalId")&&(n.externalId=e.convertToType(i.externalId,"String")),i.hasOwnProperty("firstName")&&(n.firstName=e.convertToType(i.firstName,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("lastName")&&(n.lastName=e.convertToType(i.lastName,"String")),i.hasOwnProperty("pictureId")&&(n.pictureId=e.convertToType(i.pictureId,"Integer"))),n},t.prototype.email=void 0,t.prototype.externalId=void 0,t.prototype.firstName=void 0,t.prototype.id=void 0,t.prototype.lastName=void 0,t.prototype.pictureId=void 0,t})},{"../../../alfrescoApiClient":295}],116:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.MaplongListstring=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){var e=this;return e};return t.constructFromObject=function(i,n){return i&&(n=i||new t,e.constructFromObject(i,n,Array)),n},t})},{"../../../alfrescoApiClient":295}],117:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.MapstringListEntityVariableScopeRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){var e=this;return e};return t.constructFromObject=function(i,n){return i&&(n=i||new t,e.constructFromObject(i,n,Array)),n},t})},{"../../../alfrescoApiClient":295}],118:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.MapstringListVariableScopeRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){var e=this;return e};return t.constructFromObject=function(i,n){return i&&(n=i||new t,e.constructFromObject(i,n,Array)),n},t})},{"../../../alfrescoApiClient":295}],119:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.Mapstringstring=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){var e=this;return e};return t.constructFromObject=function(i,n){return i&&(n=i||new t,e.constructFromObject(i,n,String)),n},t})},{"../../../alfrescoApiClient":295}],120:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ModelRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("comment")&&(n.comment=e.convertToType(i.comment,"String")),i.hasOwnProperty("createdBy")&&(n.createdBy=e.convertToType(i.createdBy,"Integer")),i.hasOwnProperty("createdByFullName")&&(n.createdByFullName=e.convertToType(i.createdByFullName,"String")),i.hasOwnProperty("description")&&(n.description=e.convertToType(i.description,"String")),i.hasOwnProperty("favorite")&&(n.favorite=e.convertToType(i.favorite,"Boolean")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("lastUpdated")&&(n.lastUpdated=e.convertToType(i.lastUpdated,"Date")),i.hasOwnProperty("lastUpdatedBy")&&(n.lastUpdatedBy=e.convertToType(i.lastUpdatedBy,"Integer")),i.hasOwnProperty("lastUpdatedByFullName")&&(n.lastUpdatedByFullName=e.convertToType(i.lastUpdatedByFullName,"String")),i.hasOwnProperty("latestVersion")&&(n.latestVersion=e.convertToType(i.latestVersion,"Boolean")),i.hasOwnProperty("modelType")&&(n.modelType=e.convertToType(i.modelType,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("permission")&&(n.permission=e.convertToType(i.permission,"String")),i.hasOwnProperty("referenceId")&&(n.referenceId=e.convertToType(i.referenceId,"Integer")),i.hasOwnProperty("stencilSet")&&(n.stencilSet=e.convertToType(i.stencilSet,"Integer")),i.hasOwnProperty("version")&&(n.version=e.convertToType(i.version,"Integer"))),n},t.prototype.comment=void 0,t.prototype.createdBy=void 0,t.prototype.createdByFullName=void 0,t.prototype.description=void 0,t.prototype.favorite=void 0,t.prototype.id=void 0,t.prototype.lastUpdated=void 0,t.prototype.lastUpdatedBy=void 0,t.prototype.lastUpdatedByFullName=void 0,t.prototype.latestVersion=void 0,t.prototype.modelType=void 0,t.prototype.name=void 0,t.prototype.permission=void 0,t.prototype.referenceId=void 0,t.prototype.stencilSet=void 0,t.prototype.version=void 0,t})},{"../../../alfrescoApiClient":295}],121:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ObjectNode=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(e,i){return e&&(i=e||new t),i},t})},{"../../../alfrescoApiClient":295}],122:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.OptionRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"String")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String"))),n},t.prototype.id=void 0,t.prototype.name=void 0,t})},{"../../../alfrescoApiClient":295}],123:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ParameterValueRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"String")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("version")&&(n.version=e.convertToType(i.version,"String")),i.hasOwnProperty("value")&&(n.value=e.convertToType(i.value,"String"))),n},t.prototype.id=void 0,t.prototype.name=void 0,t.prototype.version=void 0,t.prototype.value=void 0,t})},{"../../../alfrescoApiClient":295}],124:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessFilterRequestRepresentation.js=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("processDefinitionId")&&(n.processDefinitionId=e.convertToType(i.processDefinitionId,"Integer")),i.hasOwnProperty("appDefinitionId")&&(n.appDefinitionId=e.convertToType(i.appDefinitionId,"Integer")),i.hasOwnProperty("sort")&&(n.sort=e.convertToType(i.sort,"String")),i.hasOwnProperty("state")&&(n.state=e.convertToType(i.state,"String")),i.hasOwnProperty("page")&&(n.page=e.convertToType(i.page,"Integer")),i.hasOwnProperty("size")&&(n.size=e.convertToType(i.size,"Integer"))),n},t.prototype.processDefinitionId=void 0,t.prototype.appDefinitionId=void 0,t.prototype.state=void 0,t.prototype.sort=void 0,t.prototype.page=void 0,t.prototype.size=void 0,t})},{"../../../alfrescoApiClient":295}],125:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstanceFilterRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("asc")&&(n.asc=e.convertToType(i.asc,"Boolean")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("processDefinitionId")&&(n.processDefinitionId=e.convertToType(i.processDefinitionId,"String")),i.hasOwnProperty("processDefinitionKey")&&(n.processDefinitionKey=e.convertToType(i.processDefinitionKey,"String")),i.hasOwnProperty("sort")&&(n.sort=e.convertToType(i.sort,"String")),i.hasOwnProperty("state")&&(n.state=e.convertToType(i.state,"String"))),n},t.prototype.asc=void 0,t.prototype.name=void 0,t.prototype.processDefinitionId=void 0,t.prototype.processDefinitionKey=void 0,t.prototype.sort=void 0,t.prototype.state=void 0,t})},{"../../../alfrescoApiClient":295}],126:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ProcessInstanceFilterRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./ProcessInstanceFilterRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstanceFilterRequestRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ProcessInstanceFilterRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("appDefinitionId")&&(o.appDefinitionId=e.convertToType(n.appDefinitionId,"Integer")),n.hasOwnProperty("filter")&&(o.filter=t.constructFromObject(n.filter)),n.hasOwnProperty("filterId")&&(o.filterId=e.convertToType(n.filterId,"Integer")),n.hasOwnProperty("page")&&(o.page=e.convertToType(n.page,"Integer")),n.hasOwnProperty("size")&&(o.size=e.convertToType(n.size,"Integer"))),o},i.prototype.appDefinitionId=void 0,i.prototype.filter=void 0,i.prototype.filterId=void 0,i.prototype.page=void 0,i.prototype.size=void 0,i})},{"../../../alfrescoApiClient":295,"./ProcessInstanceFilterRepresentation":125}],127:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/LightUserRepresentation","../model/RestVariable"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./LightUserRepresentation"),t("./RestVariable")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstanceRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.LightUserRepresentation,n.ActivitiPublicRestApi.RestVariable))}(void 0,function(e,t,i){var n=function(){};return n.constructFromObject=function(o,r){return o&&(r=o||new n,o.hasOwnProperty("businessKey")&&(r.businessKey=e.convertToType(o.businessKey,"String")),o.hasOwnProperty("ended")&&(r.ended=e.convertToType(o.ended,"Date")),o.hasOwnProperty("graphicalNotationDefined")&&(r.graphicalNotationDefined=e.convertToType(o.graphicalNotationDefined,"Boolean")),o.hasOwnProperty("id")&&(r.id=e.convertToType(o.id,"String")),o.hasOwnProperty("name")&&(r.name=e.convertToType(o.name,"String")),o.hasOwnProperty("processDefinitionCategory")&&(r.processDefinitionCategory=e.convertToType(o.processDefinitionCategory,"String")),o.hasOwnProperty("processDefinitionDeploymentId")&&(r.processDefinitionDeploymentId=e.convertToType(o.processDefinitionDeploymentId,"String")),o.hasOwnProperty("processDefinitionDescription")&&(r.processDefinitionDescription=e.convertToType(o.processDefinitionDescription,"String")),o.hasOwnProperty("processDefinitionId")&&(r.processDefinitionId=e.convertToType(o.processDefinitionId,"String")),o.hasOwnProperty("processDefinitionKey")&&(r.processDefinitionKey=e.convertToType(o.processDefinitionKey,"String")),o.hasOwnProperty("processDefinitionName")&&(r.processDefinitionName=e.convertToType(o.processDefinitionName,"String")),o.hasOwnProperty("processDefinitionVersion")&&(r.processDefinitionVersion=e.convertToType(o.processDefinitionVersion,"Integer")),o.hasOwnProperty("startFormDefined")&&(r.startFormDefined=e.convertToType(o.startFormDefined,"Boolean")),o.hasOwnProperty("started")&&(r.started=e.convertToType(o.started,"Date")),o.hasOwnProperty("startedBy")&&(r.startedBy=t.constructFromObject(o.startedBy)),o.hasOwnProperty("tenantId")&&(r.tenantId=e.convertToType(o.tenantId,"String")),o.hasOwnProperty("variables")&&(r.variables=e.convertToType(o.variables,[i]))),r},n.prototype.businessKey=void 0,n.prototype.ended=void 0,n.prototype.graphicalNotationDefined=void 0,n.prototype.id=void 0,n.prototype.name=void 0,n.prototype.processDefinitionCategory=void 0,n.prototype.processDefinitionDeploymentId=void 0,n.prototype.processDefinitionDescription=void 0,n.prototype.processDefinitionId=void 0,n.prototype.processDefinitionKey=void 0,n.prototype.processDefinitionName=void 0,n.prototype.processDefinitionVersion=void 0,n.prototype.startFormDefined=void 0,n.prototype.started=void 0,n.prototype.startedBy=void 0,n.prototype.tenantId=void 0,n.prototype.variables=void 0,n})},{"../../../alfrescoApiClient":295,"./LightUserRepresentation":115,"./RestVariable":137}],128:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstanceVariableRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"String")),i.hasOwnProperty("type")&&(n.type=e.convertToType(i.type,"String")),i.hasOwnProperty("name")&&(n.value=e.convertToType(i.value,Object))),n},t.prototype.id=void 0,t.prototype.type=void 0,t.prototype.value=void 0,t})},{"../../../alfrescoApiClient":295}],129:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessScopeIdentifierRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("processActivityId")&&(n.processActivityId=e.convertToType(i.processActivityId,"String")),i.hasOwnProperty("processModelId")&&(n.processModelId=e.convertToType(i.processModelId,"Integer"))),n},t.prototype.processActivityId=void 0,t.prototype.processModelId=void 0,t})},{"../../../alfrescoApiClient":295}],130:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/FormScopeRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./FormScopeRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessScopeRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.FormScopeRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("activityIds")&&(o.activityIds=e.convertToType(n.activityIds,["String"])),n.hasOwnProperty("activityIdsByCollapsedSubProcessIdMap")&&(o.activityIdsByCollapsedSubProcessIdMap=e.convertToType(n.activityIdsByCollapsedSubProcessIdMap,{String:Array})),n.hasOwnProperty("activityIdsByDecisionTableIdMap")&&(o.activityIdsByDecisionTableIdMap=e.convertToType(n.activityIdsByDecisionTableIdMap,{String:Array})),n.hasOwnProperty("activityIdsByFormIdMap")&&(o.activityIdsByFormIdMap=e.convertToType(n.activityIdsByFormIdMap,{String:Array})),n.hasOwnProperty("activityIdsWithExcludedSubProcess")&&(o.activityIdsWithExcludedSubProcess=e.convertToType(n.activityIdsWithExcludedSubProcess,["String"])),n.hasOwnProperty("customStencilVariables")&&(o.customStencilVariables=e.convertToType(n.customStencilVariables,{String:Array})),n.hasOwnProperty("entityVariables")&&(o.entityVariables=e.convertToType(n.entityVariables,{String:Array})),n.hasOwnProperty("executionVariables")&&(o.executionVariables=e.convertToType(n.executionVariables,{String:Array})),n.hasOwnProperty("fieldToVariableMappings")&&(o.fieldToVariableMappings=e.convertToType(n.fieldToVariableMappings,{String:Array})),n.hasOwnProperty("forms")&&(o.forms=e.convertToType(n.forms,[t])),n.hasOwnProperty("metadataVariables")&&(o.metadataVariables=e.convertToType(n.metadataVariables,{String:Array})),n.hasOwnProperty("modelId")&&(o.modelId=e.convertToType(n.modelId,"Integer")),n.hasOwnProperty("processModelType")&&(o.processModelType=e.convertToType(n.processModelType,"Integer")),n.hasOwnProperty("responseVariables")&&(o.responseVariables=e.convertToType(n.responseVariables,{String:Array}))),o},i.prototype.activityIds=void 0,i.prototype.activityIdsByCollapsedSubProcessIdMap=void 0,i.prototype.activityIdsByDecisionTableIdMap=void 0,i.prototype.activityIdsByFormIdMap=void 0,i.prototype.activityIdsWithExcludedSubProcess=void 0,i.prototype.customStencilVariables=void 0,i.prototype.entityVariables=void 0,i.prototype.executionVariables=void 0,i.prototype.fieldToVariableMappings=void 0,i.prototype.forms=void 0,i.prototype.metadataVariables=void 0,i.prototype.modelId=void 0,i.prototype.processModelType=void 0,i.prototype.responseVariables=void 0,i})},{"../../../alfrescoApiClient":295,"./FormScopeRepresentation":105}],131:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ProcessScopeIdentifierRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./ProcessScopeIdentifierRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessScopesRequestRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ProcessScopeIdentifierRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("identifiers")&&(o.identifiers=e.convertToType(n.identifiers,[t])),n.hasOwnProperty("overriddenModel")&&(o.overriddenModel=e.convertToType(n.overriddenModel,"String"))),o},i.prototype.identifiers=void 0,i.prototype.overriddenModel=void 0,i})},{"../../../alfrescoApiClient":295,"./ProcessScopeIdentifierRepresentation":129}],132:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/LightGroupRepresentation","../model/LightUserRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./LightGroupRepresentation"),t("./LightUserRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.PublishIdentityInfoRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.LightGroupRepresentation,n.ActivitiPublicRestApi.LightUserRepresentation))}(void 0,function(e,t,i){var n=function(){};return n.constructFromObject=function(o,r){return o&&(r=o||new n,o.hasOwnProperty("group")&&(r.group=t.constructFromObject(o.group)),o.hasOwnProperty("person")&&(r.person=i.constructFromObject(o.person)),o.hasOwnProperty("type")&&(r.type=e.convertToType(o.type,"String"))),r},n.prototype.group=void 0,n.prototype.person=void 0,n.prototype.type=void 0,n})},{"../../../alfrescoApiClient":295,"./LightGroupRepresentation":113,"./LightUserRepresentation":115 +}],133:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/LightUserRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./LightUserRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.RelatedContentRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.LightUserRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("contentAvailable")&&(o.contentAvailable=e.convertToType(n.contentAvailable,"Boolean")),n.hasOwnProperty("created")&&(o.created=e.convertToType(n.created,"Date")),n.hasOwnProperty("createdBy")&&(o.createdBy=t.constructFromObject(n.createdBy)),n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"Integer")),n.hasOwnProperty("link")&&(o.link=e.convertToType(n.link,"Boolean")),n.hasOwnProperty("linkUrl")&&(o.linkUrl=e.convertToType(n.linkUrl,"String")),n.hasOwnProperty("mimeType")&&(o.mimeType=e.convertToType(n.mimeType,"String")),n.hasOwnProperty("name")&&(o.name=e.convertToType(n.name,"String")),n.hasOwnProperty("previewStatus")&&(o.previewStatus=e.convertToType(n.previewStatus,"String")),n.hasOwnProperty("simpleType")&&(o.simpleType=e.convertToType(n.simpleType,"String")),n.hasOwnProperty("source")&&(o.source=e.convertToType(n.source,"String")),n.hasOwnProperty("sourceId")&&(o.sourceId=e.convertToType(n.sourceId,"String")),n.hasOwnProperty("thumbnailStatus")&&(o.thumbnailStatus=e.convertToType(n.thumbnailStatus,"String"))),o},i.prototype.contentAvailable=void 0,i.prototype.created=void 0,i.prototype.createdBy=void 0,i.prototype.id=void 0,i.prototype.link=void 0,i.prototype.linkUrl=void 0,i.prototype.mimeType=void 0,i.prototype.name=void 0,i.prototype.previewStatus=void 0,i.prototype.simpleType=void 0,i.prototype.source=void 0,i.prototype.sourceId=void 0,i.prototype.thumbnailStatus=void 0,i})},{"../../../alfrescoApiClient":295,"./LightUserRepresentation":115}],134:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","./Chart"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./Chart")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ReportCharts=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.Chart))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("elements")&&(o.elements=e.convertToType(n.elements,[t]))),o},i.prototype.elements=void 0,i})},{"../../../alfrescoApiClient":295,"./Chart":85}],135:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ReportParametersDefinition=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("definition")&&(n.definition=e.convertToType(i.definition,"String")),i.hasOwnProperty("created")&&(n.created=e.convertToType(i.created,"String"))),n},t.prototype.id=void 0,t.prototype.name=void 0,t.prototype.definition=void 0,t.prototype.created=void 0,t})},{"../../../alfrescoApiClient":295}],136:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ResetPasswordRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("email")&&(n.email=e.convertToType(i.email,"String"))),n},t.prototype.email=void 0,t})},{"../../../alfrescoApiClient":295}],137:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.RestVariable=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("scope")&&(n.scope=e.convertToType(i.scope,"String")),i.hasOwnProperty("type")&&(n.type=e.convertToType(i.type,"String")),i.hasOwnProperty("value")&&(n.value=e.convertToType(i.value,Object)),i.hasOwnProperty("valueUrl")&&(n.valueUrl=e.convertToType(i.valueUrl,"String"))),n},t.prototype.name=void 0,t.prototype.scope=void 0,t.prototype.type=void 0,t.prototype.value=void 0,t.prototype.valueUrl=void 0,t})},{"../../../alfrescoApiClient":295}],138:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/AbstractRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./AbstractRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ResultListDataRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.AbstractRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(t,n){return t&&(n=t||new i,t.hasOwnProperty("data")&&(n.data=e.convertToType(t.data,"object")),t.hasOwnProperty("size")&&(n.size=e.convertToType(t.size,"Integer")),t.hasOwnProperty("start")&&(n.start=e.convertToType(t.start,"Integer")),t.hasOwnProperty("total")&&(n.total=e.convertToType(t.total,"Integer"))),n},i.prototype.data=void 0,i.prototype.size=void 0,i.prototype.start=void 0,i.prototype.total=void 0,i})},{"../../../alfrescoApiClient":295,"./AbstractRepresentation":73}],139:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/AppDefinitionRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./AppDefinitionRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.RuntimeAppDefinitionSaveRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.AppDefinitionRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("appDefinitions")&&(o.appDefinitions=e.convertToType(n.appDefinitions,[t]))),o},i.prototype.appDefinitions=void 0,i})},{"../../../alfrescoApiClient":295,"./AppDefinitionRepresentation":78}],140:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.SaveFormRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("values")&&(n.values=e.convertToType(i.values,Object))),n},t.prototype.values=void 0,t})},{"../../../alfrescoApiClient":295}],141:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.SyncLogEntryRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("timeStamp")&&(n.timeStamp=e.convertToType(i.timeStamp,"Date")),i.hasOwnProperty("type")&&(n.type=e.convertToType(i.type,"String"))),n},t.prototype.id=void 0,t.prototype.timeStamp=void 0,t.prototype.type=void 0,t})},{"../../../alfrescoApiClient":295}],142:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.SystemPropertiesRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("allowInvolveByEmail")&&(n.allowInvolveByEmail=e.convertToType(i.allowInvolveByEmail,"Boolean"))),n},t.prototype.allowInvolveByEmail=void 0,t})},{"../../../alfrescoApiClient":295}],143:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskFilterRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("asc")&&(n.asc=e.convertToType(i.asc,"Boolean")),i.hasOwnProperty("assignment")&&(n.assignment=e.convertToType(i.assignment,"String")),i.hasOwnProperty("dueAfter")&&(n.dueAfter=e.convertToType(i.dueAfter,"Date")),i.hasOwnProperty("dueBefore")&&(n.dueBefore=e.convertToType(i.dueBefore,"Date")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("processDefinitionId")&&(n.processDefinitionId=e.convertToType(i.processDefinitionId,"String")),i.hasOwnProperty("processDefinitionKey")&&(n.processDefinitionKey=e.convertToType(i.processDefinitionKey,"String")),i.hasOwnProperty("sort")&&(n.sort=e.convertToType(i.sort,"String")),i.hasOwnProperty("state")&&(n.state=e.convertToType(i.state,"String"))),n},t.prototype.asc=void 0,t.prototype.assignment=void 0,t.prototype.dueAfter=void 0,t.prototype.dueBefore=void 0,t.prototype.name=void 0,t.prototype.processDefinitionId=void 0,t.prototype.processDefinitionKey=void 0,t.prototype.sort=void 0,t.prototype.state=void 0,t})},{"../../../alfrescoApiClient":295}],144:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/TaskFilterRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./TaskFilterRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskFilterRequestRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.TaskFilterRepresentation))}(void 0,function(e,t){var i=function(){this.hasOwnProperty("filter")||this.hasOwnProperty("filterId")||(this.filter=new t)};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("appDefinitionId")&&(o.appDefinitionId=e.convertToType(n.appDefinitionId,"Integer")),n.hasOwnProperty("filter")&&(o.filter=t.constructFromObject(n.filter)),n.hasOwnProperty("filterId")&&(o.filterId=e.convertToType(n.filterId,"Integer")),n.hasOwnProperty("page")&&(o.page=e.convertToType(n.page,"Integer")),n.hasOwnProperty("size")&&(o.size=e.convertToType(n.size,"Integer"))),o},i.prototype.appDefinitionId=void 0,i.prototype.filter=void 0,i.prototype.filterId=void 0,i.prototype.page=void 0,i.prototype.size=void 0,i})},{"../../../alfrescoApiClient":295,"./TaskFilterRepresentation":143}],145:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskQueryRequestRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("processInstanceId")&&(n.processInstanceId=e.convertToType(i.processInstanceId,"Integer")),i.hasOwnProperty("text")&&(n.text=TaskFilterRepresentation.constructFromObject(i.text,"String")),i.hasOwnProperty("assignment")&&(n.assignment=e.convertToType(i.assignment)),i.hasOwnProperty("state")&&(n.state=e.convertToType(i.state,"String")),i.hasOwnProperty("sort")&&(n.sort=e.convertToType(i.sort,"String")),i.hasOwnProperty("page")&&(n.page=e.convertToType(i.page,"Integer")),i.hasOwnProperty("size")&&(n.size=e.convertToType(i.size,"Integer"))),n},t.prototype.processInstanceId=void 0,t.prototype.text=void 0,t.prototype.assignment=void 0,t.prototype.state=void 0,t.prototype.sort=void 0,t.prototype.page=void 0,t.prototype.size=void 0,t})},{"../../../alfrescoApiClient":295}],146:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/LightUserRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./LightUserRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.LightUserRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("adhocTaskCanBeReassigned")&&(o.adhocTaskCanBeReassigned=e.convertToType(n.adhocTaskCanBeReassigned,"Boolean")),n.hasOwnProperty("assignee")&&(o.assignee=t.constructFromObject(n.assignee)),n.hasOwnProperty("category")&&(o.category=e.convertToType(n.category,"String")),n.hasOwnProperty("created")&&(o.created=e.convertToType(n.created,"Date")),n.hasOwnProperty("description")&&(o.description=e.convertToType(n.description,"String")),n.hasOwnProperty("dueDate")&&(o.dueDate=e.convertToType(n.dueDate,"Date")),n.hasOwnProperty("duration")&&(o.duration=e.convertToType(n.duration,"Integer")),n.hasOwnProperty("endDate")&&(o.endDate=e.convertToType(n.endDate,"Date")),n.hasOwnProperty("formKey")&&(o.formKey=e.convertToType(n.formKey,"String")),n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"String")),n.hasOwnProperty("initiatorCanCompleteTask")&&(o.initiatorCanCompleteTask=e.convertToType(n.initiatorCanCompleteTask,"Boolean")),n.hasOwnProperty("involvedPeople")&&(o.involvedPeople=e.convertToType(n.involvedPeople,[t])),n.hasOwnProperty("memberOfCandidateGroup")&&(o.memberOfCandidateGroup=e.convertToType(n.memberOfCandidateGroup,"Boolean")),n.hasOwnProperty("memberOfCandidateUsers")&&(o.memberOfCandidateUsers=e.convertToType(n.memberOfCandidateUsers,"Boolean")),n.hasOwnProperty("name")&&(o.name=e.convertToType(n.name,"String")),n.hasOwnProperty("parentTaskId")&&(o.parentTaskId=e.convertToType(n.parentTaskId,"String")),n.hasOwnProperty("parentTaskName")&&(o.parentTaskName=e.convertToType(n.parentTaskName,"String")),n.hasOwnProperty("priority")&&(o.priority=e.convertToType(n.priority,"Integer")),n.hasOwnProperty("processDefinitionCategory")&&(o.processDefinitionCategory=e.convertToType(n.processDefinitionCategory,"String")),n.hasOwnProperty("processDefinitionDeploymentId")&&(o.processDefinitionDeploymentId=e.convertToType(n.processDefinitionDeploymentId,"String")),n.hasOwnProperty("processDefinitionDescription")&&(o.processDefinitionDescription=e.convertToType(n.processDefinitionDescription,"String")),n.hasOwnProperty("processDefinitionId")&&(o.processDefinitionId=e.convertToType(n.processDefinitionId,"String")),n.hasOwnProperty("processDefinitionKey")&&(o.processDefinitionKey=e.convertToType(n.processDefinitionKey,"String")),n.hasOwnProperty("processDefinitionName")&&(o.processDefinitionName=e.convertToType(n.processDefinitionName,"String")),n.hasOwnProperty("processDefinitionVersion")&&(o.processDefinitionVersion=e.convertToType(n.processDefinitionVersion,"Integer")),n.hasOwnProperty("processInstanceId")&&(o.processInstanceId=e.convertToType(n.processInstanceId,"String")),n.hasOwnProperty("processInstanceName")&&(o.processInstanceName=e.convertToType(n.processInstanceName,"String")),n.hasOwnProperty("processInstanceStartUserId")&&(o.processInstanceStartUserId=e.convertToType(n.processInstanceStartUserId,"String"))),o},i.prototype.adhocTaskCanBeReassigned=void 0,i.prototype.assignee=void 0,i.prototype.category=void 0,i.prototype.created=void 0,i.prototype.description=void 0,i.prototype.dueDate=void 0,i.prototype.duration=void 0,i.prototype.endDate=void 0,i.prototype.formKey=void 0,i.prototype.id=void 0,i.prototype.initiatorCanCompleteTask=void 0,i.prototype.involvedPeople=void 0,i.prototype.memberOfCandidateGroup=void 0,i.prototype.memberOfCandidateUsers=void 0,i.prototype.name=void 0,i.prototype.parentTaskId=void 0,i.prototype.parentTaskName=void 0,i.prototype.priority=void 0,i.prototype.processDefinitionCategory=void 0,i.prototype.processDefinitionDeploymentId=void 0,i.prototype.processDefinitionDescription=void 0,i.prototype.processDefinitionId=void 0,i.prototype.processDefinitionKey=void 0,i.prototype.processDefinitionName=void 0,i.prototype.processDefinitionVersion=void 0,i.prototype.processInstanceId=void 0,i.prototype.processInstanceName=void 0,i.prototype.processInstanceStartUserId=void 0,i})},{"../../../alfrescoApiClient":295,"./LightUserRepresentation":115}],147:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskUpdateRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("description")&&(n.description=e.convertToType(i.description,"String")),i.hasOwnProperty("descriptionSet")&&(n.descriptionSet=e.convertToType(i.descriptionSet,"Boolean")),i.hasOwnProperty("dueDate")&&(n.dueDate=e.convertToType(i.dueDate,"Date")),i.hasOwnProperty("dueDateSet")&&(n.dueDateSet=e.convertToType(i.dueDateSet,"Boolean")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("nameSet")&&(n.nameSet=e.convertToType(i.nameSet,"Boolean"))),n},t.prototype.description=void 0,t.prototype.descriptionSet=void 0,t.prototype.dueDate=void 0,t.prototype.dueDateSet=void 0,t.prototype.name=void 0,t.prototype.nameSet=void 0,t})},{"../../../alfrescoApiClient":295}],148:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TenantEvent=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("eventTime")&&(n.eventTime=e.convertToType(i.eventTime,"Date")),i.hasOwnProperty("eventType")&&(n.eventType=e.convertToType(i.eventType,"String")),i.hasOwnProperty("extraInfo")&&(n.extraInfo=e.convertToType(i.extraInfo,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("tenantId")&&(n.tenantId=e.convertToType(i.tenantId,"Integer")),i.hasOwnProperty("userId")&&(n.userId=e.convertToType(i.userId,"Integer")),i.hasOwnProperty("userName")&&(n.userName=e.convertToType(i.userName,"String"))),n},t.prototype.eventTime=void 0,t.prototype.eventType=void 0,t.prototype.extraInfo=void 0,t.prototype.id=void 0,t.prototype.tenantId=void 0,t.prototype.userId=void 0,t.prototype.userName=void 0,t})},{"../../../alfrescoApiClient":295}],149:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TenantRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("active")&&(n.active=e.convertToType(i.active,"Boolean")),i.hasOwnProperty("created")&&(n.created=e.convertToType(i.created,"Date")),i.hasOwnProperty("domain")&&(n.domain=e.convertToType(i.domain,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("lastUpdate")&&(n.lastUpdate=e.convertToType(i.lastUpdate,"Date")),i.hasOwnProperty("logoId")&&(n.logoId=e.convertToType(i.logoId,"Integer")),i.hasOwnProperty("maxUsers")&&(n.maxUsers=e.convertToType(i.maxUsers,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String"))),n},t.prototype.active=void 0,t.prototype.created=void 0,t.prototype.domain=void 0,t.prototype.id=void 0,t.prototype.lastUpdate=void 0,t.prototype.logoId=void 0,t.prototype.maxUsers=void 0,t.prototype.name=void 0,t})},{"../../../alfrescoApiClient":295}],150:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UserAccountCredentialsRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("password")&&(n.password=e.convertToType(i.password,"String")),i.hasOwnProperty("username")&&(n.username=e.convertToType(i.username,"String"))),n},t.prototype.password=void 0,t.prototype.username=void 0,t})},{"../../../alfrescoApiClient":295}],151:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UserActionRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("action")&&(n.action=e.convertToType(i.action,"String")),i.hasOwnProperty("newPassword")&&(n.newPassword=e.convertToType(i.newPassword,"String")),i.hasOwnProperty("oldPassword")&&(n.oldPassword=e.convertToType(i.oldPassword,"String"))),n},t.prototype.action=void 0,t.prototype.newPassword=void 0,t.prototype.oldPassword=void 0,t})},{"../../../alfrescoApiClient":295}],152:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UserFilterOrderRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("appId")&&(n.appId=e.convertToType(i.appId,"Integer")),i.hasOwnProperty("order")&&(n.order=e.convertToType(i.order,["Integer"]))),n},t.prototype.appId=void 0,t.prototype.order=void 0,t})},{"../../../alfrescoApiClient":295}],153:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ProcessInstanceFilterRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./ProcessInstanceFilterRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UserProcessInstanceFilterRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ProcessInstanceFilterRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("appId")&&(o.appId=e.convertToType(n.appId,"Integer")),n.hasOwnProperty("filter")&&(o.filter=t.constructFromObject(n.filter)),n.hasOwnProperty("icon")&&(o.icon=e.convertToType(n.icon,"String")),n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"Integer")),n.hasOwnProperty("index")&&(o.index=e.convertToType(n.index,"Integer")),n.hasOwnProperty("name")&&(o.name=e.convertToType(n.name,"String")),n.hasOwnProperty("recent")&&(o.recent=e.convertToType(n.recent,"Boolean"))),o},i.prototype.appId=void 0,i.prototype.filter=void 0,i.prototype.icon=void 0,i.prototype.id=void 0,i.prototype.index=void 0,i.prototype.name=void 0,i.prototype.recent=void 0,i})},{"../../../alfrescoApiClient":295,"./ProcessInstanceFilterRepresentation":125}],154:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/GroupRepresentation","../model/LightAppRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./GroupRepresentation"),t("./LightAppRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UserRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.GroupRepresentation,n.ActivitiPublicRestApi.LightAppRepresentation))}(void 0,function(e,t,i){var n=function(){};return n.constructFromObject=function(o,r){return o&&(r=o||new n,o.hasOwnProperty("apps")&&(r.apps=e.convertToType(o.apps,[i])),o.hasOwnProperty("capabilities")&&(r.capabilities=e.convertToType(o.capabilities,["String"])),o.hasOwnProperty("company")&&(r.company=e.convertToType(o.company,"String")),o.hasOwnProperty("created")&&(r.created=e.convertToType(o.created,"Date")),o.hasOwnProperty("email")&&(r.email=e.convertToType(o.email,"String")),o.hasOwnProperty("externalId")&&(r.externalId=e.convertToType(o.externalId,"String")),o.hasOwnProperty("firstName")&&(r.firstName=e.convertToType(o.firstName,"String")),o.hasOwnProperty("fullname")&&(r.fullname=e.convertToType(o.fullname,"String")),o.hasOwnProperty("groups")&&(r.groups=e.convertToType(o.groups,[t])),o.hasOwnProperty("id")&&(r.id=e.convertToType(o.id,"Integer")),o.hasOwnProperty("lastName")&&(r.lastName=e.convertToType(o.lastName,"String")),o.hasOwnProperty("lastUpdate")&&(r.lastUpdate=e.convertToType(o.lastUpdate,"Date")),o.hasOwnProperty("latestSyncTimeStamp")&&(r.latestSyncTimeStamp=e.convertToType(o.latestSyncTimeStamp,"Date")),o.hasOwnProperty("password")&&(r.password=e.convertToType(o.password,"String")),o.hasOwnProperty("pictureId")&&(r.pictureId=e.convertToType(o.pictureId,"Integer")),o.hasOwnProperty("status")&&(r.status=e.convertToType(o.status,"String")),o.hasOwnProperty("tenantId")&&(r.tenantId=e.convertToType(o.tenantId,"Integer")),o.hasOwnProperty("tenantName")&&(r.tenantName=e.convertToType(o.tenantName,"String")),o.hasOwnProperty("tenantPictureId")&&(r.tenantPictureId=e.convertToType(o.tenantPictureId,"Integer")), +o.hasOwnProperty("type")&&(r.type=e.convertToType(o.type,"String"))),r},n.prototype.apps=void 0,n.prototype.capabilities=void 0,n.prototype.company=void 0,n.prototype.created=void 0,n.prototype.email=void 0,n.prototype.externalId=void 0,n.prototype.firstName=void 0,n.prototype.fullname=void 0,n.prototype.groups=void 0,n.prototype.id=void 0,n.prototype.lastName=void 0,n.prototype.lastUpdate=void 0,n.prototype.latestSyncTimeStamp=void 0,n.prototype.password=void 0,n.prototype.pictureId=void 0,n.prototype.status=void 0,n.prototype.tenantId=void 0,n.prototype.tenantName=void 0,n.prototype.tenantPictureId=void 0,n.prototype.type=void 0,n})},{"../../../alfrescoApiClient":295,"./GroupRepresentation":109,"./LightAppRepresentation":112}],155:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/TaskFilterRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./TaskFilterRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UserTaskFilterRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.TaskFilterRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("appId")&&(o.appId=e.convertToType(n.appId,"Integer")),n.hasOwnProperty("filter")&&(o.filter=t.constructFromObject(n.filter)),n.hasOwnProperty("icon")&&(o.icon=e.convertToType(n.icon,"String")),n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"Integer")),n.hasOwnProperty("index")&&(o.index=e.convertToType(n.index,"Integer")),n.hasOwnProperty("name")&&(o.name=e.convertToType(n.name,"String")),n.hasOwnProperty("recent")&&(o.recent=e.convertToType(n.recent,"Boolean"))),o},i.prototype.appId=void 0,i.prototype.filter=void 0,i.prototype.icon=void 0,i.prototype.id=void 0,i.prototype.index=void 0,i.prototype.name=void 0,i.prototype.recent=void 0,i})},{"../../../alfrescoApiClient":295,"./TaskFilterRepresentation":143}],156:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ValidationErrorRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("defaultDescription")&&(n.defaultDescription=e.convertToType(i.defaultDescription,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"String")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("problem")&&(n.problem=e.convertToType(i.problem,"String")),i.hasOwnProperty("problemReference")&&(n.problemReference=e.convertToType(i.problemReference,"String")),i.hasOwnProperty("validatorSetName")&&(n.validatorSetName=e.convertToType(i.validatorSetName,"String")),i.hasOwnProperty("warning")&&(n.warning=e.convertToType(i.warning,"Boolean"))),n},t.prototype.defaultDescription=void 0,t.prototype.id=void 0,t.prototype.name=void 0,t.prototype.problem=void 0,t.prototype.problemReference=void 0,t.prototype.validatorSetName=void 0,t.prototype.warning=void 0,t})},{"../../../alfrescoApiClient":295}],157:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.VariableScopeRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("mapVariable")&&(n.mapVariable=e.convertToType(i.mapVariable,"String")),i.hasOwnProperty("mappedColumn")&&(n.mappedColumn=e.convertToType(i.mappedColumn,"String")),i.hasOwnProperty("mappedDataModel")&&(n.mappedDataModel=e.convertToType(i.mappedDataModel,"Integer")),i.hasOwnProperty("mappedEntity")&&(n.mappedEntity=e.convertToType(i.mappedEntity,"String")),i.hasOwnProperty("mappedVariableName")&&(n.mappedVariableName=e.convertToType(i.mappedVariableName,"String")),i.hasOwnProperty("processVariableName")&&(n.processVariableName=e.convertToType(i.processVariableName,"String")),i.hasOwnProperty("processVariableType")&&(n.processVariableType=e.convertToType(i.processVariableType,"String"))),n},t.prototype.mapVariable=void 0,t.prototype.mappedColumn=void 0,t.prototype.mappedDataModel=void 0,t.prototype.mappedEntity=void 0,t.prototype.mappedVariableName=void 0,t.prototype.processVariableName=void 0,t.prototype.processVariableType=void 0,t})},{"../../../alfrescoApiClient":295}],158:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/Error","../model/LoginTicketEntry","../model/LoginRequest","../model/ValidateTicketEntry"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/Error"),t("../model/LoginTicketEntry"),t("../model/LoginRequest"),t("../model/ValidateTicketEntry")):(n.AlfrescoAuthRestApi||(n.AlfrescoAuthRestApi={}),n.AlfrescoAuthRestApi.AuthenticationApi=r(n.AlfrescoAuthRestApi.ApiClient,n.AlfrescoAuthRestApi.Error,n.AlfrescoAuthRestApi.LoginTicketEntry,n.AlfrescoAuthRestApi.LoginRequest,n.AlfrescoAuthRestApi.ValidateTicketEntry))}(void 0,function(e,t,i,n,o){var r=function(t){this.apiClient=t||e.instance,this.createTicket=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'loginRequest' when calling createTicket";var n={},o={},r={},s={},a=["basicAuth"],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/tickets","POST",n,o,r,s,t,a,p,l,c)},this.deleteTicket=function(){var e=null,t={},i={},n={},o={},r=["basicAuth"],s=["application/json"],a=["application/json"],p=null;return this.apiClient.callApi("/tickets/-me-","DELETE",t,i,n,o,e,r,s,a,p)},this.validateTicket=function(){var e=null,t={},i={},n={},r={},s=["basicAuth"],a=["application/json"],p=["application/json"],l=o;return this.apiClient.callApi("/tickets/-me-","GET",t,i,n,r,e,s,a,p,l)}};return r})},{"../../../alfrescoApiClient":295,"../model/Error":160,"../model/LoginRequest":162,"../model/LoginTicketEntry":163,"../model/ValidateTicketEntry":165}],159:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n){"function"==typeof e&&e.amd?e(["../../alfrescoApiClient","./model/Error","./model/ErrorError","./model/LoginRequest","./model/LoginTicketEntry","./model/LoginTicketEntryEntry","./model/ValidateTicketEntry","./model/ValidateTicketEntryEntry","./api/AuthenticationApi"],n):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports&&(i.exports=n(t("../../alfrescoApiClient"),t("./model/Error"),t("./model/ErrorError"),t("./model/LoginRequest"),t("./model/LoginTicketEntry"),t("./model/LoginTicketEntryEntry"),t("./model/ValidateTicketEntry"),t("./model/ValidateTicketEntryEntry"),t("./api/AuthenticationApi")))}(function(e,t,i,n,o,r,s,a,p){var l={ApiClient:e,Error:t,ErrorError:i,LoginRequest:n,LoginTicketEntry:o,LoginTicketEntryEntry:r,ValidateTicketEntry:s,ValidateTicketEntryEntry:a,AuthenticationApi:p};return l})},{"../../alfrescoApiClient":295,"./api/AuthenticationApi":158,"./model/Error":160,"./model/ErrorError":161,"./model/LoginRequest":162,"./model/LoginTicketEntry":163,"./model/LoginTicketEntryEntry":164,"./model/ValidateTicketEntry":165,"./model/ValidateTicketEntryEntry":166}],160:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","./ErrorError"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./ErrorError")):(n.AlfrescoAuthRestApi||(n.AlfrescoAuthRestApi={}),n.AlfrescoAuthRestApi.Error=r(n.AlfrescoAuthRestApi.ApiClient,n.AlfrescoAuthRestApi.ErrorError))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(e,n){return e&&(n=n||new i,e.hasOwnProperty("error")&&(n.error=t.constructFromObject(e.error))),n},i.prototype.error=void 0,i})},{"../../../alfrescoApiClient":295,"./ErrorError":161}],161:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.AlfrescoAuthRestApi||(n.AlfrescoAuthRestApi={}),n.AlfrescoAuthRestApi.ErrorError=r(n.AlfrescoAuthRestApi.ApiClient))}(void 0,function(e){var t=function(e,t,i,n){this.briefSummary=e,this.descriptionURL=t,this.stackTrace=i,this.statusCode=n};return t.constructFromObject=function(i,n){return i&&(n=n||new t,i.hasOwnProperty("errorKey")&&(n.errorKey=e.convertToType(i.errorKey,"String")),i.hasOwnProperty("briefSummary")&&(n.briefSummary=e.convertToType(i.briefSummary,"String")),i.hasOwnProperty("descriptionURL")&&(n.descriptionURL=e.convertToType(i.descriptionURL,"String")),i.hasOwnProperty("logId")&&(n.logId=e.convertToType(i.logId,"String")),i.hasOwnProperty("stackTrace")&&(n.stackTrace=e.convertToType(i.stackTrace,"String")),i.hasOwnProperty("statusCode")&&(n.statusCode=e.convertToType(i.statusCode,"Integer"))),n},t.prototype.errorKey=void 0,t.prototype.briefSummary=void 0,t.prototype.descriptionURL=void 0,t.prototype.logId=void 0,t.prototype.stackTrace=void 0,t.prototype.statusCode=void 0,t})},{"../../../alfrescoApiClient":295}],162:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.AlfrescoAuthRestApi||(n.AlfrescoAuthRestApi={}),n.AlfrescoAuthRestApi.LoginRequest=r(n.AlfrescoAuthRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=n||new t,i.hasOwnProperty("userId")&&(n.userId=e.convertToType(i.userId,"String")),i.hasOwnProperty("password")&&(n.password=e.convertToType(i.password,"String"))),n},t.prototype.userId=void 0,t.prototype.password=void 0,t})},{"../../../alfrescoApiClient":295}],163:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","./LoginTicketEntryEntry"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./LoginTicketEntryEntry")):(n.AlfrescoAuthRestApi||(n.AlfrescoAuthRestApi={}),n.AlfrescoAuthRestApi.LoginTicketEntry=r(n.AlfrescoAuthRestApi.ApiClient,n.AlfrescoAuthRestApi.LoginTicketEntryEntry))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(e,n){return e&&(n=n||new i,e.hasOwnProperty("entry")&&(n.entry=t.constructFromObject(e.entry))),n},i.prototype.entry=void 0,i})},{"../../../alfrescoApiClient":295,"./LoginTicketEntryEntry":164}],164:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.AlfrescoAuthRestApi||(n.AlfrescoAuthRestApi={}),n.AlfrescoAuthRestApi.LoginTicketEntryEntry=r(n.AlfrescoAuthRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=n||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"String")),i.hasOwnProperty("userId")&&(n.userId=e.convertToType(i.userId,"String"))),n},t.prototype.id=void 0,t.prototype.userId=void 0,t})},{"../../../alfrescoApiClient":295}],165:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","./ValidateTicketEntryEntry"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./ValidateTicketEntryEntry")):(n.AlfrescoAuthRestApi||(n.AlfrescoAuthRestApi={}),n.AlfrescoAuthRestApi.ValidateTicketEntry=r(n.AlfrescoAuthRestApi.ApiClient,n.AlfrescoAuthRestApi.ValidateTicketEntryEntry))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(e,n){return e&&(n=n||new i,e.hasOwnProperty("entry")&&(n.entry=t.constructFromObject(e.entry))),n},i.prototype.entry=void 0,i})},{"../../../alfrescoApiClient":295,"./ValidateTicketEntryEntry":166}],166:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.AlfrescoAuthRestApi||(n.AlfrescoAuthRestApi={}),n.AlfrescoAuthRestApi.ValidateTicketEntryEntry=r(n.AlfrescoAuthRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=n||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"String"))),n},t.prototype.id=void 0,t})},{"../../../alfrescoApiClient":295}],167:[function(t,i,n){(function(n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["superagent"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("superagent")):(n.AlfrescoCoreRestApi||(n.AlfrescoCoreRestApi={}),n.AlfrescoCoreRestApi.ApiClient=r(n.superagent))}(void 0,function(e){var i=function(){this.basePath="https://localhost/alfresco/api/-default-/public/alfresco/versions/1".replace(/\/+$/,""),this.authentications={basicAuth:{type:"basic"}},this.defaultHeaders={},this.timeout=6e4};return i.prototype.paramToString=function(e){return void 0==e||null==e?"":e instanceof Date?e.toJSON():e.toString()},i.prototype.buildUrl=function(e,t){e.match(/^\//)||(e="/"+e);var i=this.basePath+e,n=this;return i=i.replace(/\{([\w-]+)\}/g,function(e,i){var o;return o=t.hasOwnProperty(i)?n.paramToString(t[i]):e,encodeURIComponent(o)})},i.prototype.isJsonMime=function(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))},i.prototype.jsonPreferredMime=function(e){for(var t=0;t>e/4).toString(16):([1e16]+1e16).replace(/[01]/g,this.token)}},{key:"progress",value:function(e,t){if(e.lengthComputable&&this.promise){var i=Math.round(e.loaded/e.total*100);t.emit("progress",{total:e.total,loaded:e.loaded,percent:i})}}},{key:"buildUrlCustomBasePath",value:function(e,t,i){t.match(/^\//)||(t="/"+t);var n=e+t,o=this;return n=n.replace(/\{([\w-]+)\}/g,function(e,t){var n;return n=i.hasOwnProperty(t)?o.paramToString(i[t]):e,encodeURIComponent(n)})}}]),t}(p);a(u.prototype),t.exports=u},{"./alfresco-core-rest-api/src/ApiClient":167,"event-emitter":21,lodash:23,superagent:25}],296:[function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var i=0;i +# **createDefaultReports** +> createDefaultReports() + +Create the default reports + +### Example +```javascript + +this.alfrescoJsApi.activiti.reportApi.createDefaultReports(); +``` + +### Parameters +No parameters required. + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **getReportList** +> [ReportParametersDefinition] getReportList() + +Retrieve the available report list. + +### Example +```javascript + +this.alfrescoJsApi.activiti.reportApi.getReportList(); +``` + +### Parameters +No parameters required. + +### Return type + +[**[ReportParametersDefinition]**](ReportParametersDefinition.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +# **getReportParams** +> ReportParametersDefinition getReportParams(reportId) + +Retrieve the parameters referring to the reportId. + +### Example +```javascript + +var reportId = "1"; // String | reportId + +this.alfrescoJsApi.activiti.reportApi.getReportParams(reportId); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reportId** | **String**| reportId | + +### Return type + +[**ReportParametersDefinition**](ReportParametersDefinition.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **getProcessDefinitions** +> ParameterValueRepresentation getProcessDefinitions() + +Retrieve the process definition list for all the apps. + +### Example +```javascript + +this.alfrescoJsApi.activiti.reportApi.getProcessDefinitions(); +``` + +### Parameters +No parameters required. + +### Return type + +[**ParameterValueRepresentation**](ParameterValueRepresentation.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **getTasksByProcessDefinitionId** +> ['String'] getTasksByProcessDefinitionId(reportId, processDefinitionId) + +Retrieves all tasks that refer to the processDefinitionId + +### Example +```javascript + +var reportId = "1"; // String | reportId +var processDefinitionId = "1"; // String | processDefinitionId + +this.alfrescoJsApi.activiti.reportApi.getTasksByProcessDefinitionId(reportId, processDefinitionId); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reportId** | **String**| reportId | + **processDefinitionId** | **String**| process definition id | + +### Return type + +**['String']** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **getReportsByParams** +> ReportCharts getReportsByParams(reportId, paramsQuery) + +Generate the reports based on the input parameters + +### Example +```javascript + +var reportId = "1"; // String | reportId +var paramsQuery = {status: 'ALL'}; // Object | paramsQuery + +this.alfrescoJsApi.activiti.reportApi.getReportsByParams(reportId, paramsQuery); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reportId** | **String**| reportId | + **paramsQuery** | **Object**| Query parameters | + +### Return type + +[**ReportCharts**](ReportCharts.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + diff --git a/src/alfresco-activiti-rest-api/docs/ReportCharts.md b/src/alfresco-activiti-rest-api/docs/ReportCharts.md new file mode 100755 index 0000000000..d89ad24b69 --- /dev/null +++ b/src/alfresco-activiti-rest-api/docs/ReportCharts.md @@ -0,0 +1,6 @@ +# ActivitiPublicRestApi.ReportCharts + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**elements** | [**Chart**](Chart.md) | | [optional] diff --git a/src/alfresco-activiti-rest-api/docs/ReportParametersDefinition.md b/src/alfresco-activiti-rest-api/docs/ReportParametersDefinition.md new file mode 100755 index 0000000000..8a5a022040 --- /dev/null +++ b/src/alfresco-activiti-rest-api/docs/ReportParametersDefinition.md @@ -0,0 +1,9 @@ +# ActivitiPublicRestApi.ReportParametersDefinition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Integer** | | [optional] +**name** | **String** | | [optional] +**definition** | **String** | | [optional] +**created** | **String** | | [optional] diff --git a/src/alfresco-activiti-rest-api/src/api/ReportApi.js b/src/alfresco-activiti-rest-api/src/api/ReportApi.js new file mode 100755 index 0000000000..fee83e0736 --- /dev/null +++ b/src/alfresco-activiti-rest-api/src/api/ReportApi.js @@ -0,0 +1,204 @@ +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['../../../alfrescoApiClient', '../model/ReportCharts', '../model/ParameterValueRepresentation', '../model/ReportParametersDefinition'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../../../alfrescoApiClient'), require('../model/ReportCharts'), require('../model/ParameterValueRepresentation'), require('../model/ReportParametersDefinition')); + } else { + // Browser globals (root is window) + if (!root.ActivitiPublicRestApi) { + root.ActivitiPublicRestApi = {}; + } + root.ActivitiPublicRestApi.ReportApi = factory(root.ActivitiPublicRestApi.ApiClient, root.ActivitiPublicRestApi.ReportCharts, root.ActivitiPublicRestApi.ParameterValueRepresentation, root.ActivitiPublicRestApi.ReportParametersDefinition); + } +}(this, function(ApiClient, ReportCharts, ParameterValueRepresentation, ReportParametersDefinition) { + 'use strict'; + + /** + * Report service. + * @module api/ReportApi + * @version 1.4.0 + */ + + /** + * Constructs a new ReportApi. + * @alias module:api/ReportApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + var exports = function(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + + /** + * Create the default reports + */ + this.createDefaultReports = function() { + var postBody = null; + + var pathParams = { + }; + var queryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = null; + + return this.apiClient.callApi( + '/app/rest/reporting/default-reports', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + this.getTasksByProcessDefinitionId = function(reportId, processDefinitionId) { + var postBody = null; + + if (reportId == undefined || reportId == null) { + throw "Missing the required parameter 'reportId' when calling getTasksByProcessDefinitionId"; + } + + if (processDefinitionId == undefined || processDefinitionId == null) { + throw "Missing the required parameter 'processDefinitionId' when calling getTasksByProcessDefinitionId"; + } + + var pathParams = { + 'reportId': reportId + }; + var queryParams = { + 'processDefinitionId': processDefinitionId + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = ['String']; + + return this.apiClient.callApi( + '/app/rest/reporting/report-params/{reportId}/tasks', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + this.getReportsByParams = function(reportId, paramsQuery) { + var postBody = paramsQuery; + + if (reportId == undefined || reportId == null) { + throw "Missing the required parameter 'reportId' when calling getReportsByParams"; + } + + var pathParams = { + 'reportId': reportId + }; + var queryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = ReportCharts; + + return this.apiClient.callApi( + '/app/rest/reporting/report-params/{reportId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + this.getProcessDefinitions = function() { + var postBody = null; + + var pathParams = { + }; + var queryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = [ParameterValueRepresentation]; + + return this.apiClient.callApi( + '/app/rest/reporting/process-definitions', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + this.getReportParams = function(reportId) { + var postBody = null; + + if (reportId == undefined || reportId == null) { + throw "Missing the required parameter 'reportId' when calling getReportParams"; + } + + var pathParams = { + 'reportId': reportId + }; + var queryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = ReportParametersDefinition; + + return this.apiClient.callApi( + '/app/rest/reporting/report-params/{reportId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + this.getReportList = function() { + var postBody = null; + + var pathParams = { + }; + var queryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = [ReportParametersDefinition]; + + return this.apiClient.callApi( + '/app/rest/reporting/reports', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + }; + + return exports; +})); diff --git a/src/alfresco-activiti-rest-api/src/index.js b/src/alfresco-activiti-rest-api/src/index.js index f99378ec0b..bc351727d8 100755 --- a/src/alfresco-activiti-rest-api/src/index.js +++ b/src/alfresco-activiti-rest-api/src/index.js @@ -1,12 +1,12 @@ (function(factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['../../alfrescoApiClient', './model/AbstractGroupRepresentation', './model/AbstractRepresentation', './model/AbstractUserRepresentation', './model/AddGroupCapabilitiesRepresentation', './model/AppDefinition', './model/AppDefinitionPublishRepresentation', './model/AppDefinitionRepresentation', './model/AppDefinitionUpdateResultRepresentation', './model/AppModelDefinition', './model/ArrayNode', './model/BoxUserAccountCredentialsRepresentation', './model/BulkUserUpdateRepresentation', './model/ChangePasswordRepresentation', './model/ChecklistOrderRepresentation', './model/CommentRepresentation', './model/CompleteFormRepresentation', './model/ConditionRepresentation', './model/CreateEndpointBasicAuthRepresentation', './model/CreateProcessInstanceRepresentation', './model/CreateTenantRepresentation', './model/EndpointBasicAuthRepresentation', './model/EndpointConfigurationRepresentation', './model/EndpointRequestHeaderRepresentation', './model/EntityAttributeScopeRepresentation', './model/EntityVariableScopeRepresentation', './model/File', './model/FormDefinitionRepresentation', './model/FormFieldRepresentation', './model/FormJavascriptEventRepresentation', './model/FormOutcomeRepresentation', './model/FormRepresentation', './model/FormSaveRepresentation', './model/FormScopeRepresentation', './model/FormTabRepresentation', './model/FormValueRepresentation', './model/GroupCapabilityRepresentation', './model/GroupRepresentation', './model/ImageUploadRepresentation', './model/LayoutRepresentation', './model/LightAppRepresentation', './model/LightGroupRepresentation', './model/LightTenantRepresentation', './model/LightUserRepresentation', './model/MaplongListstring', './model/MapstringListEntityVariableScopeRepresentation', './model/MapstringListVariableScopeRepresentation', './model/Mapstringstring', './model/ModelRepresentation', './model/ObjectNode', './model/OptionRepresentation', './model/ProcessFilterRequestRepresentation', './model/ProcessInstanceFilterRepresentation', './model/ProcessInstanceFilterRequestRepresentation', './model/ProcessInstanceRepresentation', './model/ProcessInstanceVariableRepresentation', './model/ProcessScopeIdentifierRepresentation', './model/ProcessScopeRepresentation', './model/ProcessScopesRequestRepresentation', './model/PublishIdentityInfoRepresentation', './model/RelatedContentRepresentation', './model/ResetPasswordRepresentation', './model/RestVariable', './model/ResultListDataRepresentation', './model/RuntimeAppDefinitionSaveRepresentation', './model/SaveFormRepresentation', './model/SyncLogEntryRepresentation', './model/SystemPropertiesRepresentation', './model/TaskFilterRepresentation', './model/TaskFilterRequestRepresentation', './model/TaskQueryRequestRepresentation', './model/TaskRepresentation', './model/TaskUpdateRepresentation', './model/TenantEvent', './model/TenantRepresentation', './model/UserAccountCredentialsRepresentation', './model/UserActionRepresentation', './model/UserFilterOrderRepresentation', './model/UserProcessInstanceFilterRepresentation', './model/UserRepresentation', './model/UserTaskFilterRepresentation', './model/ValidationErrorRepresentation', './model/VariableScopeRepresentation', './api/AboutApi', './api/AdminEndpointsApi', './api/AdminGroupsApi', './api/AdminTenantsApi', './api/AdminUsersApi', './api/AlfrescoApi', './api/AppsApi', './api/AppsDefinitionApi', './api/AppsRuntimeApi', './api/CommentsApi', './api/ContentApi', './api/ContentRenditionApi', './api/EditorApi', './api/GroupsApi', './api/IDMSyncApi', './api/IntegrationApi', './api/IntegrationAccountApi', './api/IntegrationAlfrescoCloudApi', './api/IntegrationAlfrescoOnPremiseApi', './api/IntegrationBoxApi', './api/IntegrationDriveApi', './api/ModelBpmnApi', './api/ModelJsonBpmnApi', './api/ModelsApi', './api/ModelsHistoryApi', './api/ProcessApi', './api/ProcessDefinitionsApi', './api/ProcessDefinitionsFormApi', './api/ProcessInstancesApi', './api/ProcessInstancesInformationApi', './api/ProcessInstancesListingApi', './api/ProcessInstanceVariablesApi', './api/ProcessScopeApi', './api/ProfileApi', './api/ScriptFileApi', './api/SystemPropertiesApi', './api/TaskApi', './api/TaskActionsApi', './api/TaskCheckListApi', './api/TaskFormsApi', './api/TemporaryApi', './api/UserApi', './api/UserFiltersApi', './api/UsersWorkflowApi'], factory); + define(['../../alfrescoApiClient', './model/AbstractGroupRepresentation', './model/AbstractRepresentation', './model/AbstractUserRepresentation', './model/AddGroupCapabilitiesRepresentation', './model/AppDefinition', './model/AppDefinitionPublishRepresentation', './model/AppDefinitionRepresentation', './model/AppDefinitionUpdateResultRepresentation', './model/AppModelDefinition', './model/ArrayNode', './model/BoxUserAccountCredentialsRepresentation', './model/BulkUserUpdateRepresentation', './model/ChangePasswordRepresentation', './model/ChecklistOrderRepresentation', './model/CommentRepresentation', './model/CompleteFormRepresentation', './model/ConditionRepresentation', './model/CreateEndpointBasicAuthRepresentation', './model/CreateProcessInstanceRepresentation', './model/CreateTenantRepresentation', './model/EndpointBasicAuthRepresentation', './model/EndpointConfigurationRepresentation', './model/EndpointRequestHeaderRepresentation', './model/EntityAttributeScopeRepresentation', './model/EntityVariableScopeRepresentation', './model/File', './model/FormDefinitionRepresentation', './model/FormFieldRepresentation', './model/FormJavascriptEventRepresentation', './model/FormOutcomeRepresentation', './model/FormRepresentation', './model/FormSaveRepresentation', './model/FormScopeRepresentation', './model/FormTabRepresentation', './model/FormValueRepresentation', './model/GroupCapabilityRepresentation', './model/GroupRepresentation', './model/ImageUploadRepresentation', './model/LayoutRepresentation', './model/LightAppRepresentation', './model/LightGroupRepresentation', './model/LightTenantRepresentation', './model/LightUserRepresentation', './model/MaplongListstring', './model/MapstringListEntityVariableScopeRepresentation', './model/MapstringListVariableScopeRepresentation', './model/Mapstringstring', './model/ModelRepresentation', './model/ObjectNode', './model/OptionRepresentation', './model/ProcessFilterRequestRepresentation', './model/ProcessInstanceFilterRepresentation', './model/ProcessInstanceFilterRequestRepresentation', './model/ProcessInstanceRepresentation', './model/ProcessInstanceVariableRepresentation', './model/ProcessScopeIdentifierRepresentation', './model/ProcessScopeRepresentation', './model/ProcessScopesRequestRepresentation', './model/PublishIdentityInfoRepresentation', './model/RelatedContentRepresentation', './model/ResetPasswordRepresentation', './model/RestVariable', './model/ResultListDataRepresentation', './model/RuntimeAppDefinitionSaveRepresentation', './model/SaveFormRepresentation', './model/SyncLogEntryRepresentation', './model/SystemPropertiesRepresentation', './model/TaskFilterRepresentation', './model/TaskFilterRequestRepresentation', './model/TaskQueryRequestRepresentation', './model/TaskRepresentation', './model/TaskUpdateRepresentation', './model/TenantEvent', './model/TenantRepresentation', './model/UserAccountCredentialsRepresentation', './model/UserActionRepresentation', './model/UserFilterOrderRepresentation', './model/UserProcessInstanceFilterRepresentation', './model/UserRepresentation', './model/UserTaskFilterRepresentation', './model/ValidationErrorRepresentation', './model/VariableScopeRepresentation', './api/AboutApi', './api/AdminEndpointsApi', './api/AdminGroupsApi', './api/AdminTenantsApi', './api/AdminUsersApi', './api/AlfrescoApi', './api/AppsApi', './api/AppsDefinitionApi', './api/AppsRuntimeApi', './api/CommentsApi', './api/ContentApi', './api/ContentRenditionApi', './api/EditorApi', './api/GroupsApi', './api/IDMSyncApi', './api/IntegrationApi', './api/IntegrationAccountApi', './api/IntegrationAlfrescoCloudApi', './api/IntegrationAlfrescoOnPremiseApi', './api/IntegrationBoxApi', './api/IntegrationDriveApi', './api/ModelBpmnApi', './api/ModelJsonBpmnApi', './api/ModelsApi', './api/ModelsHistoryApi', './api/ProcessApi', './api/ProcessDefinitionsApi', './api/ProcessDefinitionsFormApi', './api/ProcessInstancesApi', './api/ProcessInstancesInformationApi', './api/ProcessInstancesListingApi', './api/ProcessInstanceVariablesApi', './api/ProcessScopeApi', './api/ProfileApi', './api/ScriptFileApi', './api/SystemPropertiesApi', './api/TaskApi', './api/TaskActionsApi', './api/TaskCheckListApi', './api/TaskFormsApi', './api/TemporaryApi', './api/UserApi', './api/UserFiltersApi', './api/UsersWorkflowApi', './api/ReportApi'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../../alfrescoApiClient'), require('./model/AbstractGroupRepresentation'), require('./model/AbstractRepresentation'), require('./model/AbstractUserRepresentation'), require('./model/AddGroupCapabilitiesRepresentation'), require('./model/AppDefinition'), require('./model/AppDefinitionPublishRepresentation'), require('./model/AppDefinitionRepresentation'), require('./model/AppDefinitionUpdateResultRepresentation'), require('./model/AppModelDefinition'), require('./model/ArrayNode'), require('./model/BoxUserAccountCredentialsRepresentation'), require('./model/BulkUserUpdateRepresentation'), require('./model/ChangePasswordRepresentation'), require('./model/ChecklistOrderRepresentation'), require('./model/CommentRepresentation'), require('./model/CompleteFormRepresentation'), require('./model/ConditionRepresentation'), require('./model/CreateEndpointBasicAuthRepresentation'), require('./model/CreateProcessInstanceRepresentation'), require('./model/CreateTenantRepresentation'), require('./model/EndpointBasicAuthRepresentation'), require('./model/EndpointConfigurationRepresentation'), require('./model/EndpointRequestHeaderRepresentation'), require('./model/EntityAttributeScopeRepresentation'), require('./model/EntityVariableScopeRepresentation'), require('./model/File'), require('./model/FormDefinitionRepresentation'), require('./model/FormFieldRepresentation'), require('./model/FormJavascriptEventRepresentation'), require('./model/FormOutcomeRepresentation'), require('./model/FormRepresentation'), require('./model/FormSaveRepresentation'), require('./model/FormScopeRepresentation'), require('./model/FormTabRepresentation'), require('./model/FormValueRepresentation'), require('./model/GroupCapabilityRepresentation'), require('./model/GroupRepresentation'), require('./model/ImageUploadRepresentation'), require('./model/LayoutRepresentation'), require('./model/LightAppRepresentation'), require('./model/LightGroupRepresentation'), require('./model/LightTenantRepresentation'), require('./model/LightUserRepresentation'), require('./model/MaplongListstring'), require('./model/MapstringListEntityVariableScopeRepresentation'), require('./model/MapstringListVariableScopeRepresentation'), require('./model/Mapstringstring'), require('./model/ModelRepresentation'), require('./model/ObjectNode'), require('./model/OptionRepresentation'), require('./model/ProcessFilterRequestRepresentation'), require('./model/ProcessInstanceFilterRepresentation'), require('./model/ProcessInstanceFilterRequestRepresentation'), require('./model/ProcessInstanceRepresentation'), require('./model/ProcessInstanceVariableRepresentation'), require('./model/ProcessScopeIdentifierRepresentation'), require('./model/ProcessScopeRepresentation'), require('./model/ProcessScopesRequestRepresentation'), require('./model/PublishIdentityInfoRepresentation'), require('./model/RelatedContentRepresentation'), require('./model/ResetPasswordRepresentation'), require('./model/RestVariable'), require('./model/ResultListDataRepresentation'), require('./model/RuntimeAppDefinitionSaveRepresentation'), require('./model/SaveFormRepresentation'), require('./model/SyncLogEntryRepresentation'), require('./model/SystemPropertiesRepresentation'), require('./model/TaskFilterRepresentation'), require('./model/TaskFilterRequestRepresentation'), require('./model/TaskQueryRequestRepresentation'), require('./model/TaskRepresentation'), require('./model/TaskUpdateRepresentation'), require('./model/TenantEvent'), require('./model/TenantRepresentation'), require('./model/UserAccountCredentialsRepresentation'), require('./model/UserActionRepresentation'), require('./model/UserFilterOrderRepresentation'), require('./model/UserProcessInstanceFilterRepresentation'), require('./model/UserRepresentation'), require('./model/UserTaskFilterRepresentation'), require('./model/ValidationErrorRepresentation'), require('./model/VariableScopeRepresentation'), require('./api/AboutApi'), require('./api/AdminEndpointsApi'), require('./api/AdminGroupsApi'), require('./api/AdminTenantsApi'), require('./api/AdminUsersApi'), require('./api/AlfrescoApi'), require('./api/AppsApi'), require('./api/AppsDefinitionApi'), require('./api/AppsRuntimeApi'), require('./api/CommentsApi'), require('./api/ContentApi'), require('./api/ContentRenditionApi'), require('./api/EditorApi'), require('./api/GroupsApi'), require('./api/IDMSyncApi'), require('./api/IntegrationApi'), require('./api/IntegrationAccountApi'), require('./api/IntegrationAlfrescoCloudApi'), require('./api/IntegrationAlfrescoOnPremiseApi'), require('./api/IntegrationBoxApi'), require('./api/IntegrationDriveApi'), require('./api/ModelBpmnApi'), require('./api/ModelJsonBpmnApi'), require('./api/ModelsApi'), require('./api/ModelsHistoryApi'), require('./api/ProcessApi'), require('./api/ProcessDefinitionsApi'), require('./api/ProcessDefinitionsFormApi'), require('./api/ProcessInstancesApi'), require('./api/ProcessInstancesInformationApi'), require('./api/ProcessInstancesListingApi'), require('./api/ProcessInstanceVariablesApi'), require('./api/ProcessScopeApi'), require('./api/ProfileApi'), require('./api/ScriptFileApi'), require('./api/SystemPropertiesApi'), require('./api/TaskApi'), require('./api/TaskActionsApi'), require('./api/TaskCheckListApi'), require('./api/TaskFormsApi'), require('./api/TemporaryApi'), require('./api/UserApi'), require('./api/UserFiltersApi'), require('./api/UsersWorkflowApi')); + module.exports = factory(require('../../alfrescoApiClient'), require('./model/AbstractGroupRepresentation'), require('./model/AbstractRepresentation'), require('./model/AbstractUserRepresentation'), require('./model/AddGroupCapabilitiesRepresentation'), require('./model/AppDefinition'), require('./model/AppDefinitionPublishRepresentation'), require('./model/AppDefinitionRepresentation'), require('./model/AppDefinitionUpdateResultRepresentation'), require('./model/AppModelDefinition'), require('./model/ArrayNode'), require('./model/BoxUserAccountCredentialsRepresentation'), require('./model/BulkUserUpdateRepresentation'), require('./model/ChangePasswordRepresentation'), require('./model/ChecklistOrderRepresentation'), require('./model/CommentRepresentation'), require('./model/CompleteFormRepresentation'), require('./model/ConditionRepresentation'), require('./model/CreateEndpointBasicAuthRepresentation'), require('./model/CreateProcessInstanceRepresentation'), require('./model/CreateTenantRepresentation'), require('./model/EndpointBasicAuthRepresentation'), require('./model/EndpointConfigurationRepresentation'), require('./model/EndpointRequestHeaderRepresentation'), require('./model/EntityAttributeScopeRepresentation'), require('./model/EntityVariableScopeRepresentation'), require('./model/File'), require('./model/FormDefinitionRepresentation'), require('./model/FormFieldRepresentation'), require('./model/FormJavascriptEventRepresentation'), require('./model/FormOutcomeRepresentation'), require('./model/FormRepresentation'), require('./model/FormSaveRepresentation'), require('./model/FormScopeRepresentation'), require('./model/FormTabRepresentation'), require('./model/FormValueRepresentation'), require('./model/GroupCapabilityRepresentation'), require('./model/GroupRepresentation'), require('./model/ImageUploadRepresentation'), require('./model/LayoutRepresentation'), require('./model/LightAppRepresentation'), require('./model/LightGroupRepresentation'), require('./model/LightTenantRepresentation'), require('./model/LightUserRepresentation'), require('./model/MaplongListstring'), require('./model/MapstringListEntityVariableScopeRepresentation'), require('./model/MapstringListVariableScopeRepresentation'), require('./model/Mapstringstring'), require('./model/ModelRepresentation'), require('./model/ObjectNode'), require('./model/OptionRepresentation'), require('./model/ProcessFilterRequestRepresentation'), require('./model/ProcessInstanceFilterRepresentation'), require('./model/ProcessInstanceFilterRequestRepresentation'), require('./model/ProcessInstanceRepresentation'), require('./model/ProcessInstanceVariableRepresentation'), require('./model/ProcessScopeIdentifierRepresentation'), require('./model/ProcessScopeRepresentation'), require('./model/ProcessScopesRequestRepresentation'), require('./model/PublishIdentityInfoRepresentation'), require('./model/RelatedContentRepresentation'), require('./model/ResetPasswordRepresentation'), require('./model/RestVariable'), require('./model/ResultListDataRepresentation'), require('./model/RuntimeAppDefinitionSaveRepresentation'), require('./model/SaveFormRepresentation'), require('./model/SyncLogEntryRepresentation'), require('./model/SystemPropertiesRepresentation'), require('./model/TaskFilterRepresentation'), require('./model/TaskFilterRequestRepresentation'), require('./model/TaskQueryRequestRepresentation'), require('./model/TaskRepresentation'), require('./model/TaskUpdateRepresentation'), require('./model/TenantEvent'), require('./model/TenantRepresentation'), require('./model/UserAccountCredentialsRepresentation'), require('./model/UserActionRepresentation'), require('./model/UserFilterOrderRepresentation'), require('./model/UserProcessInstanceFilterRepresentation'), require('./model/UserRepresentation'), require('./model/UserTaskFilterRepresentation'), require('./model/ValidationErrorRepresentation'), require('./model/VariableScopeRepresentation'), require('./api/AboutApi'), require('./api/AdminEndpointsApi'), require('./api/AdminGroupsApi'), require('./api/AdminTenantsApi'), require('./api/AdminUsersApi'), require('./api/AlfrescoApi'), require('./api/AppsApi'), require('./api/AppsDefinitionApi'), require('./api/AppsRuntimeApi'), require('./api/CommentsApi'), require('./api/ContentApi'), require('./api/ContentRenditionApi'), require('./api/EditorApi'), require('./api/GroupsApi'), require('./api/IDMSyncApi'), require('./api/IntegrationApi'), require('./api/IntegrationAccountApi'), require('./api/IntegrationAlfrescoCloudApi'), require('./api/IntegrationAlfrescoOnPremiseApi'), require('./api/IntegrationBoxApi'), require('./api/IntegrationDriveApi'), require('./api/ModelBpmnApi'), require('./api/ModelJsonBpmnApi'), require('./api/ModelsApi'), require('./api/ModelsHistoryApi'), require('./api/ProcessApi'), require('./api/ProcessDefinitionsApi'), require('./api/ProcessDefinitionsFormApi'), require('./api/ProcessInstancesApi'), require('./api/ProcessInstancesInformationApi'), require('./api/ProcessInstancesListingApi'), require('./api/ProcessInstanceVariablesApi'), require('./api/ProcessScopeApi'), require('./api/ProfileApi'), require('./api/ScriptFileApi'), require('./api/SystemPropertiesApi'), require('./api/TaskApi'), require('./api/TaskActionsApi'), require('./api/TaskCheckListApi'), require('./api/TaskFormsApi'), require('./api/TemporaryApi'), require('./api/UserApi'), require('./api/UserFiltersApi'), require('./api/UsersWorkflowApi'), require('./api/ReportApi')); } -}(function(ApiClient, AbstractGroupRepresentation, AbstractRepresentation, AbstractUserRepresentation, AddGroupCapabilitiesRepresentation, AppDefinition, AppDefinitionPublishRepresentation, AppDefinitionRepresentation, AppDefinitionUpdateResultRepresentation, AppModelDefinition, ArrayNode, BoxUserAccountCredentialsRepresentation, BulkUserUpdateRepresentation, ChangePasswordRepresentation, ChecklistOrderRepresentation, CommentRepresentation, CompleteFormRepresentation, ConditionRepresentation, CreateEndpointBasicAuthRepresentation, CreateProcessInstanceRepresentation, CreateTenantRepresentation, EndpointBasicAuthRepresentation, EndpointConfigurationRepresentation, EndpointRequestHeaderRepresentation, EntityAttributeScopeRepresentation, EntityVariableScopeRepresentation, File, FormDefinitionRepresentation, FormFieldRepresentation, FormJavascriptEventRepresentation, FormOutcomeRepresentation, FormRepresentation, FormSaveRepresentation, FormScopeRepresentation, FormTabRepresentation, FormValueRepresentation, GroupCapabilityRepresentation, GroupRepresentation, ImageUploadRepresentation, LayoutRepresentation, LightAppRepresentation, LightGroupRepresentation, LightTenantRepresentation, LightUserRepresentation, MaplongListstring, MapstringListEntityVariableScopeRepresentation, MapstringListVariableScopeRepresentation, Mapstringstring, ModelRepresentation, ObjectNode, OptionRepresentation, ProcessFilterRequestRepresentation, ProcessInstanceFilterRepresentation, ProcessInstanceFilterRequestRepresentation, ProcessInstanceRepresentation, ProcessInstanceVariableRepresentation, ProcessScopeIdentifierRepresentation, ProcessScopeRepresentation, ProcessScopesRequestRepresentation, PublishIdentityInfoRepresentation, RelatedContentRepresentation, ResetPasswordRepresentation, RestVariable, ResultListDataRepresentation, RuntimeAppDefinitionSaveRepresentation, SaveFormRepresentation, SyncLogEntryRepresentation, SystemPropertiesRepresentation, TaskFilterRepresentation, TaskFilterRequestRepresentation, TaskQueryRequestRepresentation, TaskRepresentation, TaskUpdateRepresentation, TenantEvent, TenantRepresentation, UserAccountCredentialsRepresentation, UserActionRepresentation, UserFilterOrderRepresentation, UserProcessInstanceFilterRepresentation, UserRepresentation, UserTaskFilterRepresentation, ValidationErrorRepresentation, VariableScopeRepresentation, AboutApi, AdminEndpointsApi, AdminGroupsApi, AdminTenantsApi, AdminUsersApi, AlfrescoApi, AppsApi, AppsDefinitionApi, AppsRuntimeApi, CommentsApi, ContentApi, ContentRenditionApi, EditorApi, GroupsApi, IDMSyncApi, IntegrationApi, IntegrationAccountApi, IntegrationAlfrescoCloudApi, IntegrationAlfrescoOnPremiseApi, IntegrationBoxApi, IntegrationDriveApi, ModelBpmnApi, ModelJsonBpmnApi, ModelsApi, ModelsHistoryApi, ProcessApi, ProcessDefinitionsApi, ProcessDefinitionsFormApi, ProcessInstancesApi, ProcessInstancesInformationApi, ProcessInstancesListingApi, ProcessInstanceVariablesApi, ProcessScopeApi, ProfileApi, ScriptFileApi, SystemPropertiesApi, TaskApi, TaskActionsApi, TaskCheckListApi, TaskFormsApi, TemporaryApi, UserApi, UserFiltersApi, UsersWorkflowApi) { +}(function(ApiClient, AbstractGroupRepresentation, AbstractRepresentation, AbstractUserRepresentation, AddGroupCapabilitiesRepresentation, AppDefinition, AppDefinitionPublishRepresentation, AppDefinitionRepresentation, AppDefinitionUpdateResultRepresentation, AppModelDefinition, ArrayNode, BoxUserAccountCredentialsRepresentation, BulkUserUpdateRepresentation, ChangePasswordRepresentation, ChecklistOrderRepresentation, CommentRepresentation, CompleteFormRepresentation, ConditionRepresentation, CreateEndpointBasicAuthRepresentation, CreateProcessInstanceRepresentation, CreateTenantRepresentation, EndpointBasicAuthRepresentation, EndpointConfigurationRepresentation, EndpointRequestHeaderRepresentation, EntityAttributeScopeRepresentation, EntityVariableScopeRepresentation, File, FormDefinitionRepresentation, FormFieldRepresentation, FormJavascriptEventRepresentation, FormOutcomeRepresentation, FormRepresentation, FormSaveRepresentation, FormScopeRepresentation, FormTabRepresentation, FormValueRepresentation, GroupCapabilityRepresentation, GroupRepresentation, ImageUploadRepresentation, LayoutRepresentation, LightAppRepresentation, LightGroupRepresentation, LightTenantRepresentation, LightUserRepresentation, MaplongListstring, MapstringListEntityVariableScopeRepresentation, MapstringListVariableScopeRepresentation, Mapstringstring, ModelRepresentation, ObjectNode, OptionRepresentation, ProcessFilterRequestRepresentation, ProcessInstanceFilterRepresentation, ProcessInstanceFilterRequestRepresentation, ProcessInstanceRepresentation, ProcessInstanceVariableRepresentation, ProcessScopeIdentifierRepresentation, ProcessScopeRepresentation, ProcessScopesRequestRepresentation, PublishIdentityInfoRepresentation, RelatedContentRepresentation, ResetPasswordRepresentation, RestVariable, ResultListDataRepresentation, RuntimeAppDefinitionSaveRepresentation, SaveFormRepresentation, SyncLogEntryRepresentation, SystemPropertiesRepresentation, TaskFilterRepresentation, TaskFilterRequestRepresentation, TaskQueryRequestRepresentation, TaskRepresentation, TaskUpdateRepresentation, TenantEvent, TenantRepresentation, UserAccountCredentialsRepresentation, UserActionRepresentation, UserFilterOrderRepresentation, UserProcessInstanceFilterRepresentation, UserRepresentation, UserTaskFilterRepresentation, ValidationErrorRepresentation, VariableScopeRepresentation, AboutApi, AdminEndpointsApi, AdminGroupsApi, AdminTenantsApi, AdminUsersApi, AlfrescoApi, AppsApi, AppsDefinitionApi, AppsRuntimeApi, CommentsApi, ContentApi, ContentRenditionApi, EditorApi, GroupsApi, IDMSyncApi, IntegrationApi, IntegrationAccountApi, IntegrationAlfrescoCloudApi, IntegrationAlfrescoOnPremiseApi, IntegrationBoxApi, IntegrationDriveApi, ModelBpmnApi, ModelJsonBpmnApi, ModelsApi, ModelsHistoryApi, ProcessApi, ProcessDefinitionsApi, ProcessDefinitionsFormApi, ProcessInstancesApi, ProcessInstancesInformationApi, ProcessInstancesListingApi, ProcessInstanceVariablesApi, ProcessScopeApi, ProfileApi, ScriptFileApi, SystemPropertiesApi, TaskApi, TaskActionsApi, TaskCheckListApi, TaskFormsApi, TemporaryApi, UserApi, UserFiltersApi, UsersWorkflowApi, ReportApi) { 'use strict'; /** @@ -678,7 +678,12 @@ * The UsersWorkflowApi service constructor. * @property {module:api/UsersWorkflowApi} */ - UsersWorkflowApi: UsersWorkflowApi + UsersWorkflowApi: UsersWorkflowApi, + /** + * The ReportApi service constructor. + * @property {module:api/ReportApi} + */ + ReportApi: ReportApi }; return exports; diff --git a/src/alfresco-activiti-rest-api/src/model/Chart.js b/src/alfresco-activiti-rest-api/src/model/Chart.js new file mode 100755 index 0000000000..798e93ac33 --- /dev/null +++ b/src/alfresco-activiti-rest-api/src/model/Chart.js @@ -0,0 +1,65 @@ +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['../../../alfrescoApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../../../alfrescoApiClient')); + } else { + // Browser globals (root is window) + if (!root.ActivitiPublicRestApi) { + root.ActivitiPublicRestApi = {}; + } + root.ActivitiPublicRestApi.Chart = factory(root.ActivitiPublicRestApi.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The ReportQuery model module. + * @module model/Chart + * @version 1.4.0 + */ + + /** + * Constructs a new Chart. + * @alias module:model/Chart + * @class + */ + var exports = function() { + var _this = this; + + + + }; + + /** + * Constructs a ReportCharts from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @return {module:model/ReportCharts} The populated ReportCharts instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = data || new exports(); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'String'); + } + if (data.hasOwnProperty('type')) { + obj['type'] = ApiClient.convertToType(data['type'], 'String'); + } + } + return obj; + } + + /** + * @member {String} processDefinitionId + */ + exports.prototype['id'] = undefined; + /** + * @member {String} status + */ + exports.prototype['type'] = undefined; + + return exports; +})); diff --git a/src/alfresco-activiti-rest-api/src/model/ParameterValueRepresentation.js b/src/alfresco-activiti-rest-api/src/model/ParameterValueRepresentation.js new file mode 100755 index 0000000000..9f8f6789f5 --- /dev/null +++ b/src/alfresco-activiti-rest-api/src/model/ParameterValueRepresentation.js @@ -0,0 +1,82 @@ +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['../../../alfrescoApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../../../alfrescoApiClient')); + } else { + // Browser globals (root is window) + if (!root.ActivitiPublicRestApi) { + root.ActivitiPublicRestApi = {}; + } + root.ActivitiPublicRestApi.ParameterValueRepresentation = factory(root.ActivitiPublicRestApi.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + + /** + * The ParameterValueRepresentation model module. + * @module model/ParameterValueRepresentation + * @version 1.4.0 + */ + + /** + * Constructs a new ParameterValueRepresentation. + * @alias module:model/ParameterValueRepresentation + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a ParameterValueRepresentation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ParameterValueRepresentation} obj Optional instance to populate. + * @return {module:model/ParameterValueRepresentation} The populated ParameterValueRepresentation instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = data || new exports(); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('version')) { + obj['version'] = ApiClient.convertToType(data['version'], 'String'); + } + if (data.hasOwnProperty('value')) { + obj['value'] = ApiClient.convertToType(data['value'], 'String'); + } + } + return obj; + } + + /** + * @member {String} id + */ + exports.prototype['id'] = undefined; + /** + * @member {String} name + */ + exports.prototype['name'] = undefined; + /** + * @member {String} version + */ + exports.prototype['version'] = undefined; + /** + * @member {String} value + */ + exports.prototype['value'] = undefined; + + return exports; +})); diff --git a/src/alfresco-activiti-rest-api/src/model/ReportCharts.js b/src/alfresco-activiti-rest-api/src/model/ReportCharts.js new file mode 100755 index 0000000000..a170b4a9aa --- /dev/null +++ b/src/alfresco-activiti-rest-api/src/model/ReportCharts.js @@ -0,0 +1,58 @@ +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['../../../alfrescoApiClient', './Chart'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../../../alfrescoApiClient'), require('./Chart')); + } else { + // Browser globals (root is window) + if (!root.ActivitiPublicRestApi) { + root.ActivitiPublicRestApi = {}; + } + root.ActivitiPublicRestApi.ReportCharts = factory(root.ActivitiPublicRestApi.ApiClient, root.ActivitiPublicRestApi.Chart); + } +}(this, function(ApiClient, Chart) { + 'use strict'; + + /** + * The ReportCharts model module. + * @module model/ReportCharts + * @version 1.4.0 + */ + + /** + * Constructs a new ReportCharts. + * @alias module:model/ReportCharts + * @class + */ + var exports = function() { + var _this = this; + + + + }; + + /** + * Constructs a ReportCharts from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @return {module:model/ReportCharts} The populated ReportCharts instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = data || new exports(); + + if (data.hasOwnProperty('elements')) { + obj['elements'] = ApiClient.convertToType(data['elements'], [Chart]); + } + } + return obj; + } + + /** + * @member {String} elements + */ + exports.prototype['elements'] = undefined; + + return exports; +})); diff --git a/src/alfresco-activiti-rest-api/src/model/ReportParametersDefinition.js b/src/alfresco-activiti-rest-api/src/model/ReportParametersDefinition.js new file mode 100755 index 0000000000..963602bfff --- /dev/null +++ b/src/alfresco-activiti-rest-api/src/model/ReportParametersDefinition.js @@ -0,0 +1,82 @@ +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['../../../alfrescoApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../../../alfrescoApiClient')); + } else { + // Browser globals (root is window) + if (!root.ActivitiPublicRestApi) { + root.ActivitiPublicRestApi = {}; + } + root.ActivitiPublicRestApi.ReportParametersDefinition = factory(root.ActivitiPublicRestApi.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + + /** + * The ReportParametersDefinition model module. + * @module model/ReportParametersDefinition + * @version 1.4.0 + */ + + /** + * Constructs a new ReportParametersDefinition. + * @alias module:model/ReportParametersDefinition + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a ReportParametersDefinition from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ReportParametersDefinition} obj Optional instance to populate. + * @return {module:model/ReportParametersDefinition} The populated ReportParametersDefinition instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = data || new exports(); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Integer'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('definition')) { + obj['definition'] = ApiClient.convertToType(data['definition'], 'String'); + } + if (data.hasOwnProperty('created')) { + obj['created'] = ApiClient.convertToType(data['created'], 'String'); + } + } + return obj; + } + + /** + * @member {Integer} id + */ + exports.prototype['id'] = undefined; + /** + * @member {String} name + */ + exports.prototype['name'] = undefined; + /** + * @member {String} definition + */ + exports.prototype['definition'] = undefined; + /** + * @member {String} value + */ + exports.prototype['created'] = undefined; + + return exports; +})); diff --git a/test/activitiReportApi.spec.js b/test/activitiReportApi.spec.js new file mode 100644 index 0000000000..2e12fa6aa6 --- /dev/null +++ b/test/activitiReportApi.spec.js @@ -0,0 +1,151 @@ +/*global describe, it, beforeEach */ + +var AlfrescoApi = require('../main'); +var expect = require('chai').expect; +var AuthBpmMock = require('../test/mockObjects/mockAlfrescoApi').ActivitiMock.Auth; +var ReportsMock = require('../test/mockObjects/mockAlfrescoApi').ActivitiMock.Reports; + +describe('Activiti Report Api', function () { + beforeEach(function (done) { + this.hostBpm = 'http://127.0.0.1:9999'; + + this.authResponseBpmMock = new AuthBpmMock(this.hostBpm); + this.reportsMock = new ReportsMock(this.hostBpm); + + this.authResponseBpmMock.get200Response(); + + this.alfrescoJsApi = new AlfrescoApi({ + hostBpm: this.hostBpm, + provider: 'BPM' + }); + + this.alfrescoJsApi.login('admin', 'admin').then(() => { + done(); + }); + }); + + it('should create the default reports', function (done) { + this.reportsMock.get200ResponseCreateDefaulReport(); + this.alfrescoJsApi.activiti.reportApi.createDefaultReports().then(function () { + done(); + }); + }); + + it('should return the tasks referring to the process id', function (done) { + + var reportId = '11015'; // String | reportId + var processDefinitionId = 'Process_sid-0FF10DA3-E2BD-4E6A-9013-6D66FC8A4716:1:30004'; // String | processDefinitionId + + this.reportsMock.get200ResponseTasksByProcessDefinitionId(reportId, processDefinitionId); + + this.alfrescoJsApi.activiti.reportApi.getTasksByProcessDefinitionId(reportId, processDefinitionId).then((data) => { + expect(data.length).equal(3); + expect(data[0]).equal('Fake Task 1'); + expect(data[1]).equal('Fake Task 2'); + expect(data[2]).equal('Fake Task 3'); + done(); + }); + }); + + it('should return the chart reports', function (done) { + + var reportId = '11015'; // String | reportId + var paramsQuery = { status: 'All' }; + + this.reportsMock.get200ResponseReportsByParams(reportId, paramsQuery); + + this.alfrescoJsApi.activiti.reportApi.getReportsByParams(reportId, paramsQuery).then((data) => { + expect(data.elements.length).equal(3); + expect(data.elements[0].type).equal('table'); + + expect(data.elements[1].type).equal('pieChart'); + expect(data.elements[1].titleKey).equal('REPORTING.DEFAULT-REPORTS.PROCESS-DEFINITION-OVERVIEW.PROC-INST-CHART-TITLE'); + + expect(data.elements[2].type).equal('table'); + expect(data.elements[2].titleKey).equal('REPORTING.DEFAULT-REPORTS.PROCESS-DEFINITION-OVERVIEW.DETAIL-TABLE'); + done(); + }); + }); + + it('should return the process definitions when the appId is not provided', function (done) { + + this.reportsMock.get200ResponseProcessDefinitions(); + + this.alfrescoJsApi.activiti.reportApi.getProcessDefinitions().then((res) => { + expect(res.length).equal(4); + expect(res[0].id).equal('Process_sid-0FF10DA3-E2BD-4E6A-9013-6D66FC8A4716:1:30004'); + expect(res[0].name).equal('Fake Process Name 1'); + + expect(res[1].id).equal('SecondProcess:1:15027'); + expect(res[1].name).equal('Fake Process Name 2'); + + expect(res[2].id).equal('Simpleprocess:15:10004'); + expect(res[2].name).equal('Fake Process Name 3'); + + expect(res[3].id).equal('fruitorderprocess:5:42530'); + expect(res[3].name).equal('Fake Process Name 4'); + + done(); + }); + }); + + it('should return the report list', function (done) { + + this.reportsMock.get200ResponseReportList(); + + this.alfrescoJsApi.activiti.reportApi.getReportList().then((res) => { + + expect(res.length).equal(5); + + expect(res[0].id).equal(11011); + expect(res[0].name).equal('Process definition heat map'); + + expect(res[1].id).equal(11012); + expect(res[1].name).equal('Process definition overview'); + + expect(res[2].id).equal(11013); + expect(res[2].name).equal('Process instances overview'); + + expect(res[3].id).equal(11014); + expect(res[3].name).equal('Task overview'); + + expect(res[4].id).equal(11015); + expect(res[4].name).equal('Task service level agreement'); + + done(); + }); + }); + + it('should return the report parameters', function (done) { + + var reportId = '11013'; // String | reportId + this.reportsMock.get200ResponseReportParams(reportId); + + this.alfrescoJsApi.activiti.reportApi.getReportParams(reportId).then((res) => { + var paramsDefinition = JSON.parse(res.definition); + + expect(res.id).equal(11013); + expect(res.name).equal('Process instances overview'); + expect(paramsDefinition.parameters.length).equal(4); + + expect(paramsDefinition.parameters[0].id).equal('processDefinitionId'); + expect(paramsDefinition.parameters[0].nameKey).equal('REPORTING.DEFAULT-REPORTS.PROCESS-INSTANCES-OVERVIEW.PROCESS-DEFINITION'); + expect(paramsDefinition.parameters[0].type).equal('processDefinition'); + + expect(paramsDefinition.parameters[1].id).equal('dateRange'); + expect(paramsDefinition.parameters[1].nameKey).equal('REPORTING.DEFAULT-REPORTS.PROCESS-INSTANCES-OVERVIEW.DATE-RANGE'); + expect(paramsDefinition.parameters[1].type).equal('dateRange'); + + expect(paramsDefinition.parameters[2].id).equal('slowProcessInstanceInteger'); + expect(paramsDefinition.parameters[2].nameKey).equal('REPORTING.DEFAULT-REPORTS.PROCESS-INSTANCES-OVERVIEW.SLOW-PROC-INST-NUMBER'); + expect(paramsDefinition.parameters[2].type).equal('integer'); + + expect(paramsDefinition.parameters[3].id).equal('status'); + expect(paramsDefinition.parameters[3].nameKey).equal('REPORTING.PROCESS-STATUS'); + expect(paramsDefinition.parameters[3].type).equal('status'); + + done(); + }); + }); + +}); diff --git a/test/mockObjects/activiti/reportsMock.js b/test/mockObjects/activiti/reportsMock.js new file mode 100644 index 0000000000..83ad93171e --- /dev/null +++ b/test/mockObjects/activiti/reportsMock.js @@ -0,0 +1,154 @@ +'use strict'; + +var nock = require('nock'); +var BaseMock = require('../baseMock'); + +var fakeReportList = [ + {'id': 11011, 'name': 'Process definition heat map'}, + {'id': 11012, 'name': 'Process definition overview'}, + {'id': 11013, 'name': 'Process instances overview'}, + {'id': 11014, 'name': 'Task overview'}, + {'id': 11015, 'name': 'Task service level agreement'} +]; + +var fakeReportParams = { + 'id': 11013, + 'name': 'Process instances overview', + 'created': '2016-12-07T13:26:40.095+0000', + 'definition': + '{\"parameters\":[{\"id\":\"processDefinitionId\",\"name\":null,\"nameKey\":\"REPORTING.DEFAULT-REPORTS.PROCESS-INSTANCES-OVERVIEW.PROCESS-DEFINITION\",\"type\":\"processDefinition\",\"value\":null,\"dependsOn\":null},' + + '{\"id\":\"dateRange\",\"name\":null,\"nameKey\":\"REPORTING.DEFAULT-REPORTS.PROCESS-INSTANCES-OVERVIEW.DATE-RANGE\",\"type\":\"dateRange\",\"value\":null,\"dependsOn\":null},' + + '{\"id\":\"slowProcessInstanceInteger\",\"name\":null,\"nameKey\":\"REPORTING.DEFAULT-REPORTS.PROCESS-INSTANCES-OVERVIEW.SLOW-PROC-INST-NUMBER\",\"type\":\"integer\",\"value\":10,\"dependsOn\":null},' + + '{\"id\":\"status\",\"name\":null,\"nameKey\":\"REPORTING.PROCESS-STATUS\",\"type\":\"status\",\"value\":null,\"dependsOn\":null}' + + ']}' +}; + +var fakeChartReports = { + 'elements': [{ + 'id': 'id10889073739455', + 'type': 'table', + 'rows': [['__KEY_REPORTING.DEFAULT-REPORTS.PROCESS-DEFINITION-OVERVIEW.GENERAL-TABLE-TOTAL-PROCESS-DEFINITIONS', '10'], ['__KEY_REPORTING.DEFAULT-REPORTS.PROCESS-DEFINITION-OVERVIEW.GENERAL-TABLE-TOTAL-PROCESS-INSTANCES', '63'], ['__KEY_REPORTING.DEFAULT-REPORTS.PROCESS-DEFINITION-OVERVIEW.GENERAL-TABLE-ACTIVE-PROCESS-INSTANCES', '5'], ['__KEY_REPORTING.DEFAULT-REPORTS.PROCESS-DEFINITION-OVERVIEW.GENERAL-TABLE-COMPLETED-PROCESS-INSTANCES', '52']], + 'collapseable': false, + 'collapsed': false, + 'showRowIndex': false + }, { + 'id': 'id10889073934509', + 'type': 'pieChart', + 'title': 'Total process instances overview', + 'titleKey': 'REPORTING.DEFAULT-REPORTS.PROCESS-DEFINITION-OVERVIEW.PROC-INST-CHART-TITLE', + 'values': [{'key': 'Activiti', 'y': 13, 'keyAndValue': ['Activiti', '13']}, { + 'key': 'Second Process', + 'y': 5, + 'keyAndValue': ['Second Process', '5'] + }, {'key': 'Process Custom Name', 'y': 3, 'keyAndValue': ['Process Custom Name', '3']}, { + 'key': 'Simple process', + 'y': 29, + 'keyAndValue': ['Simple process', '29'] + }, {'key': 'Third Process', 'y': 7, 'keyAndValue': ['Third Process', '7']}] + }, { + 'id': 'id10889074082883', + 'type': 'table', + 'title': 'Process definition details', + 'titleKey': 'REPORTING.DEFAULT-REPORTS.PROCESS-DEFINITION-OVERVIEW.DETAIL-TABLE', + 'columnNames': ['Process definition', 'Total', 'Active', 'Completed'], + 'columnNameKeys': ['REPORTING.DEFAULT-REPORTS.PROCESS-DEFINITION-OVERVIEW.DETAIL-TABLE-PROCESS', 'REPORTING.DEFAULT-REPORTS.PROCESS-DEFINITION-OVERVIEW.DETAIL-TABLE-TOTAL', 'REPORTING.DEFAULT-REPORTS.PROCESS-DEFINITION-OVERVIEW.DETAIL-TABLE-ACTIVE', 'REPORTING.DEFAULT-REPORTS.PROCESS-DEFINITION-OVERVIEW.DETAIL-TABLE-COMPLETED'], + 'columnsCentered': [false, false, false, false], + 'rows': [['Activiti', '13', '3', '10'], ['Process Custom Name', '3', '0', '3'], ['Second Process', '5', '1', '4'], ['Simple process', '29', '1', '28'], ['Third Process', '7', '0', '7']], + 'collapseable': false, + 'collapsed': false, + 'showRowIndex': true + }] + }; + +var fakeProcessDefinitionsNoApp = [{ + 'id': 'Process_sid-0FF10DA3-E2BD-4E6A-9013-6D66FC8A4716:1:30004', + 'name': 'Fake Process Name 1', + 'description': null, + 'key': 'Process_sid-0FF10DA3-E2BD-4E6A-9013-6D66FC8A4716', + 'category': 'http://www.activiti.org/processdef', + 'version': 1, + 'deploymentId': '30001', + 'tenantId': 'tenant_1', + 'metaDataValues': [], + 'hasStartForm': false +}, { + 'id': 'SecondProcess:1:15027', + 'name': 'Fake Process Name 2', + 'description': 'fdsdf', + 'key': 'SecondProcess', + 'category': 'http://www.activiti.org/processdef', + 'version': 1, + 'deploymentId': '15024', + 'tenantId': 'tenant_1', + 'metaDataValues': [], + 'hasStartForm': false +}, { + 'id': 'Simpleprocess:15:10004', + 'name': 'Fake Process Name 3', + 'description': null, + 'key': 'Simpleprocess', + 'category': 'http://www.activiti.org/processdef', + 'version': 15, + 'deploymentId': '10001', + 'tenantId': 'tenant_1', + 'metaDataValues': [], + 'hasStartForm': false +}, { + 'id': 'fruitorderprocess:5:42530', + 'name': 'Fake Process Name 4', + 'description': null, + 'key': 'fruitorderprocess', + 'category': 'http://www.activiti.org/processdef', + 'version': 5, + 'deploymentId': '42527', + 'tenantId': 'tenant_1', + 'metaDataValues': [], + 'hasStartForm': false +}]; + +class ReportsMock extends BaseMock { + + constructor(host) { + super(host); + } + + get200ResponseCreateDefaulReport() { + nock(this.host, {'encodedQueryParams': true}) + .post('/activiti-app/app/rest/reporting/default-reports') + .reply(200); + } + + get200ResponseTasksByProcessDefinitionId(reportId, processDefinitionId) { + nock(this.host, {'encodedQueryParams': true}) + .get('/activiti-app/app/rest/reporting/report-params/' + reportId + '/tasks') + .query({processDefinitionId : processDefinitionId}) + .reply(200, ['Fake Task 1', 'Fake Task 2', 'Fake Task 3']); + } + + get200ResponseReportList() { + nock(this.host, {'encodedQueryParams': true}) + .get('/activiti-app/app/rest/reporting/reports') + .reply(200, fakeReportList); + } + + get200ResponseReportParams(reportId) { + nock(this.host, {'encodedQueryParams': true}) + .get('/activiti-app/app/rest/reporting/report-params/' + reportId) + .reply(200, fakeReportParams); + } + + get200ResponseReportsByParams(reportId, paramsQuery) { + nock(this.host, {'encodedQueryParams': true}) + .post('/activiti-app/app/rest/reporting/report-params/' + reportId, paramsQuery) + .reply(200, fakeChartReports); + } + + get200ResponseProcessDefinitions() { + nock(this.host, {'encodedQueryParams': true}) + .get('/activiti-app/app/rest/reporting/process-definitions') + .reply(200, fakeProcessDefinitionsNoApp); + } + +} + +module.exports = ReportsMock; diff --git a/test/mockObjects/mockAlfrescoApi.js b/test/mockObjects/mockAlfrescoApi.js index 2c4b1b709d..af00dce28e 100644 --- a/test/mockObjects/mockAlfrescoApi.js +++ b/test/mockObjects/mockAlfrescoApi.js @@ -21,6 +21,7 @@ mockAlfrescoApi.ActivitiMock.TaskFormMock = require('./activiti/taskFormMock.js' mockAlfrescoApi.ActivitiMock.Models = require('./activiti/modelsMock.js'); mockAlfrescoApi.ActivitiMock.ModelJsonBpmMock = require('./activiti/modelJsonBpmMock.js'); mockAlfrescoApi.ActivitiMock.UserFilters = require('./activiti/userFiltersMock.js'); +mockAlfrescoApi.ActivitiMock.Reports = require('./activiti/reportsMock.js'); module.exports = mockAlfrescoApi; diff --git a/webpack-bundle-test.js b/webpack-bundle-test.js index dbd3f804ea..a8885b82d7 100644 --- a/webpack-bundle-test.js +++ b/webpack-bundle-test.js @@ -60,16 +60,16 @@ var AlfrescoPrivateRestApi = __webpack_require__(135); var AlfrescoAuthRestApi = __webpack_require__(155); var AlfrescoActivitiApi = __webpack_require__(164); - var AlfrescoContent = __webpack_require__(291); - var AlfrescoNode = __webpack_require__(292); - var AlfrescoUpload = __webpack_require__(293); - var AlfrescoWebScriptApi = __webpack_require__(294); + var AlfrescoContent = __webpack_require__(296); + var AlfrescoNode = __webpack_require__(297); + var AlfrescoUpload = __webpack_require__(298); + var AlfrescoWebScriptApi = __webpack_require__(299); var Emitter = __webpack_require__(137); - var EcmAuth = __webpack_require__(295); - var BpmAuth = __webpack_require__(296); - var EcmClient = __webpack_require__(297); - var BpmClient = __webpack_require__(298); - var EcmPrivateClient = __webpack_require__(299); + var EcmAuth = __webpack_require__(300); + var BpmAuth = __webpack_require__(301); + var EcmClient = __webpack_require__(302); + var BpmClient = __webpack_require__(303); + var EcmPrivateClient = __webpack_require__(304); var _ = __webpack_require__(152); class AlfrescoApi { @@ -3636,6 +3636,7 @@ 'use strict' + exports.byteLength = byteLength exports.toByteArray = toByteArray exports.fromByteArray = fromByteArray @@ -3643,23 +3644,17 @@ var revLookup = [] var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array - function init () { - var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' - for (var i = 0, len = code.length; i < len; ++i) { - lookup[i] = code[i] - revLookup[code.charCodeAt(i)] = i - } - - revLookup['-'.charCodeAt(0)] = 62 - revLookup['_'.charCodeAt(0)] = 63 + var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' + for (var i = 0, len = code.length; i < len; ++i) { + lookup[i] = code[i] + revLookup[code.charCodeAt(i)] = i } - init() + revLookup['-'.charCodeAt(0)] = 62 + revLookup['_'.charCodeAt(0)] = 63 - function toByteArray (b64) { - var i, j, l, tmp, placeHolders, arr + function placeHoldersCount (b64) { var len = b64.length - if (len % 4 > 0) { throw new Error('Invalid string. Length must be a multiple of 4') } @@ -3669,9 +3664,19 @@ // represent one byte // if there is only one, then the three characters before it represent 2 bytes // this is just a cheap hack to not do indexOf twice - placeHolders = b64[len - 2] === '=' ? 2 : b64[len - 1] === '=' ? 1 : 0 + return b64[len - 2] === '=' ? 2 : b64[len - 1] === '=' ? 1 : 0 + } + function byteLength (b64) { // base64 is 4/3 + up to two characters of the original data + return b64.length * 3 / 4 - placeHoldersCount(b64) + } + + function toByteArray (b64) { + var i, j, l, tmp, placeHolders, arr + var len = b64.length + placeHolders = placeHoldersCount(b64) + arr = new Arr(len * 3 / 4 - placeHolders) // if there are placeholders, only get up to the last complete 4 chars @@ -21372,7 +21377,7 @@ /* 152 */ /***/ function(module, exports, __webpack_require__) { - var __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(module, global) {/** + var __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(global, module) {/** * @license * lodash * Copyright jQuery Foundation and other contributors @@ -21386,21 +21391,25 @@ var undefined; /** Used as the semantic version number. */ - var VERSION = '4.13.1'; + var VERSION = '4.16.4'; /** Used as the size to enable large array optimizations. */ var LARGE_ARRAY_SIZE = 200; - /** Used as the `TypeError` message for "Functions" methods. */ - var FUNC_ERROR_TEXT = 'Expected a function'; + /** Error message constants. */ + var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://github.com/es-shims.', + FUNC_ERROR_TEXT = 'Expected a function'; /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = '__lodash_hash_undefined__'; + /** Used as the maximum memoize cache size. */ + var MAX_MEMOIZE_SIZE = 500; + /** Used as the internal argument placeholder. */ var PLACEHOLDER = '__lodash_placeholder__'; - /** Used to compose bitmasks for wrapper metadata. */ + /** Used to compose bitmasks for function metadata. */ var BIND_FLAG = 1, BIND_KEY_FLAG = 2, CURRY_BOUND_FLAG = 4, @@ -21421,7 +21430,7 @@ DEFAULT_TRUNC_OMISSION = '...'; /** Used to detect hot functions by number of calls within a span of milliseconds. */ - var HOT_COUNT = 150, + var HOT_COUNT = 500, HOT_SPAN = 16; /** Used to indicate the type of lazy iteratees. */ @@ -21440,6 +21449,19 @@ MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1, HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1; + /** Used to associate wrap methods with their bit flags. */ + var wrapFlags = [ + ['ary', ARY_FLAG], + ['bind', BIND_FLAG], + ['bindKey', BIND_KEY_FLAG], + ['curry', CURRY_FLAG], + ['curryRight', CURRY_RIGHT_FLAG], + ['flip', FLIP_FLAG], + ['partial', PARTIAL_FLAG], + ['partialRight', PARTIAL_RIGHT_FLAG], + ['rearg', REARG_FLAG] + ]; + /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arrayTag = '[object Array]', @@ -21452,6 +21474,7 @@ numberTag = '[object Number]', objectTag = '[object Object]', promiseTag = '[object Promise]', + proxyTag = '[object Proxy]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', @@ -21477,8 +21500,8 @@ reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g; /** Used to match HTML entities and HTML characters. */ - var reEscapedHtml = /&(?:amp|lt|gt|quot|#39|#96);/g, - reUnescapedHtml = /[&<>"'`]/g, + var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g, + reUnescapedHtml = /[&<>"']/g, reHasEscapedHtml = RegExp(reEscapedHtml.source), reHasUnescapedHtml = RegExp(reUnescapedHtml.source); @@ -21490,11 +21513,12 @@ /** Used to match property names within property paths. */ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/, - rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(\.|\[\])(?:\4|$))/g; + reLeadingDot = /^\./, + rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; /** * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns). + * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). */ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reHasRegExpChar = RegExp(reRegExpChar.source); @@ -21504,24 +21528,26 @@ reTrimStart = /^\s+/, reTrimEnd = /\s+$/; - /** Used to match non-compound words composed of alphanumeric characters. */ - var reBasicWord = /[a-zA-Z0-9]+/g; + /** Used to match wrap detail comments. */ + var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, + reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/, + reSplitDetails = /,? & /; + + /** Used to match words composed of alphanumeric characters. */ + var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g; /** Used to match backslashes in property paths. */ var reEscapeChar = /\\(\\)?/g; /** * Used to match - * [ES template delimiters](http://ecma-international.org/ecma-262/6.0/#sec-template-literal-lexical-components). + * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components). */ var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g; /** Used to match `RegExp` flags from their coerced string values. */ var reFlags = /\w*$/; - /** Used to detect hexadecimal string values. */ - var reHasHexPrefix = /^0x/i; - /** Used to detect bad signed hexadecimal string values. */ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; @@ -21537,8 +21563,8 @@ /** Used to detect unsigned integer values. */ var reIsUint = /^(?:0|[1-9]\d*)$/; - /** Used to match latin-1 supplementary letters (excluding mathematical operators). */ - var reLatin1 = /[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g; + /** Used to match Latin Unicode letters (excluding mathematical operators). */ + var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g; /** Used to ensure capturing order of template delimiters. */ var reNoMatch = /($^)/; @@ -21599,10 +21625,10 @@ var reComboMark = RegExp(rsCombo, 'g'); /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */ - var reComplexSymbol = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g'); + var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g'); /** Used to match complex or compound words. */ - var reComplexWord = RegExp([ + var reUnicodeWord = RegExp([ rsUpper + '?' + rsLower + '+' + rsOptLowerContr + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')', rsUpperMisc + '+' + rsOptUpperContr + '(?=' + [rsBreak, rsUpper + rsLowerMisc, '$'].join('|') + ')', rsUpper + '?' + rsLowerMisc + '+' + rsOptLowerContr, @@ -21612,18 +21638,18 @@ ].join('|'), 'g'); /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */ - var reHasComplexSymbol = RegExp('[' + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + ']'); + var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + ']'); /** Used to detect strings that need a more robust regexp to match words. */ - var reHasComplexWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/; + var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/; /** Used to assign default `context` object properties. */ var contextProps = [ 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array', 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object', - 'Promise', 'Reflect', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', - 'Uint8Array', 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap', - '_', 'isFinite', 'parseInt', 'setTimeout' + 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array', + 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap', + '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout' ]; /** Used to make template sourceURLs easier to identify. */ @@ -21661,16 +21687,17 @@ cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false; - /** Used to map latin-1 supplementary letters to basic latin letters. */ + /** Used to map Latin Unicode letters to basic Latin letters. */ var deburredLetters = { + // Latin-1 Supplement block. '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A', '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a', '\xc7': 'C', '\xe7': 'c', '\xd0': 'D', '\xf0': 'd', '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E', '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e', - '\xcC': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I', - '\xeC': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i', + '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I', + '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i', '\xd1': 'N', '\xf1': 'n', '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O', '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o', @@ -21679,7 +21706,43 @@ '\xdd': 'Y', '\xfd': 'y', '\xff': 'y', '\xc6': 'Ae', '\xe6': 'ae', '\xde': 'Th', '\xfe': 'th', - '\xdf': 'ss' + '\xdf': 'ss', + // Latin Extended-A block. + '\u0100': 'A', '\u0102': 'A', '\u0104': 'A', + '\u0101': 'a', '\u0103': 'a', '\u0105': 'a', + '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C', + '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c', + '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd', + '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E', + '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e', + '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G', + '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g', + '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h', + '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I', + '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i', + '\u0134': 'J', '\u0135': 'j', + '\u0136': 'K', '\u0137': 'k', '\u0138': 'k', + '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L', + '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l', + '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N', + '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n', + '\u014c': 'O', '\u014e': 'O', '\u0150': 'O', + '\u014d': 'o', '\u014f': 'o', '\u0151': 'o', + '\u0154': 'R', '\u0156': 'R', '\u0158': 'R', + '\u0155': 'r', '\u0157': 'r', '\u0159': 'r', + '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S', + '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's', + '\u0162': 'T', '\u0164': 'T', '\u0166': 'T', + '\u0163': 't', '\u0165': 't', '\u0167': 't', + '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U', + '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u', + '\u0174': 'W', '\u0175': 'w', + '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y', + '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z', + '\u017a': 'z', '\u017c': 'z', '\u017e': 'z', + '\u0132': 'IJ', '\u0133': 'ij', + '\u0152': 'Oe', '\u0153': 'oe', + '\u0149': "'n", '\u017f': 's' }; /** Used to map characters to HTML entities. */ @@ -21688,8 +21751,7 @@ '<': '<', '>': '>', '"': '"', - "'": ''', - '`': '`' + "'": ''' }; /** Used to map HTML entities to characters. */ @@ -21698,8 +21760,7 @@ '<': '<', '>': '>', '"': '"', - ''': "'", - '`': '`' + ''': "'" }; /** Used to escape characters for inclusion in compiled string literals. */ @@ -21716,26 +21777,41 @@ var freeParseFloat = parseFloat, freeParseInt = parseInt; + /** Detect free variable `global` from Node.js. */ + var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; + + /** Detect free variable `self`. */ + var freeSelf = typeof self == 'object' && self && self.Object === Object && self; + + /** Used as a reference to the global object. */ + var root = freeGlobal || freeSelf || Function('return this')(); + /** Detect free variable `exports`. */ - var freeExports = typeof exports == 'object' && exports; + var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ - var freeModule = freeExports && typeof module == 'object' && module; + var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; - /** Detect free variable `global` from Node.js. */ - var freeGlobal = checkGlobal(typeof global == 'object' && global); - - /** Detect free variable `self`. */ - var freeSelf = checkGlobal(typeof self == 'object' && self); - - /** Detect `this` as the global object. */ - var thisGlobal = checkGlobal(typeof this == 'object' && this); + /** Detect free variable `process` from Node.js. */ + var freeProcess = moduleExports && freeGlobal.process; - /** Used as a reference to the global object. */ - var root = freeGlobal || freeSelf || thisGlobal || Function('return this')(); + /** Used to access faster Node.js helpers. */ + var nodeUtil = (function() { + try { + return freeProcess && freeProcess.binding('util'); + } catch (e) {} + }()); + + /* Node.js helper references. */ + var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer, + nodeIsDate = nodeUtil && nodeUtil.isDate, + nodeIsMap = nodeUtil && nodeUtil.isMap, + nodeIsRegExp = nodeUtil && nodeUtil.isRegExp, + nodeIsSet = nodeUtil && nodeUtil.isSet, + nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; /*--------------------------------------------------------------------------*/ @@ -21748,7 +21824,7 @@ * @returns {Object} Returns `map`. */ function addMapEntry(map, pair) { - // Don't return `Map#set` because it doesn't return the map instance in IE 11. + // Don't return `map.set` because it's not chainable in IE 11. map.set(pair[0], pair[1]); return map; } @@ -21762,6 +21838,7 @@ * @returns {Object} Returns `set`. */ function addSetEntry(set, value) { + // Don't return `set.add` because it's not chainable in IE 11. set.add(value); return set; } @@ -21777,8 +21854,7 @@ * @returns {*} Returns the result of `func`. */ function apply(func, thisArg, args) { - var length = args.length; - switch (length) { + switch (args.length) { case 0: return func.call(thisArg); case 1: return func.call(thisArg, args[0]); case 2: return func.call(thisArg, args[0], args[1]); @@ -21900,7 +21976,7 @@ * specifying an index to search from. * * @private - * @param {Array} [array] The array to search. + * @param {Array} [array] The array to inspect. * @param {*} target The value to search for. * @returns {boolean} Returns `true` if `target` is found, else `false`. */ @@ -21913,7 +21989,7 @@ * This function is like `arrayIncludes` except that it accepts a comparator. * * @private - * @param {Array} [array] The array to search. + * @param {Array} [array] The array to inspect. * @param {*} target The value to search for. * @param {Function} comparator The comparator invoked per element. * @returns {boolean} Returns `true` if `target` is found, else `false`. @@ -22039,13 +22115,44 @@ return false; } + /** + * Gets the size of an ASCII `string`. + * + * @private + * @param {string} string The string inspect. + * @returns {number} Returns the string size. + */ + var asciiSize = baseProperty('length'); + + /** + * Converts an ASCII `string` to an array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the converted array. + */ + function asciiToArray(string) { + return string.split(''); + } + + /** + * Splits an ASCII `string` into an array of its words. + * + * @private + * @param {string} The string to inspect. + * @returns {Array} Returns the words of `string`. + */ + function asciiWords(string) { + return string.match(reAsciiWord) || []; + } + /** * The base implementation of methods like `_.findKey` and `_.findLastKey`, * without support for iteratee shorthands, which iterates over `collection` * using `eachFunc`. * * @private - * @param {Array|Object} collection The collection to search. + * @param {Array|Object} collection The collection to inspect. * @param {Function} predicate The function invoked per iteration. * @param {Function} eachFunc The function to iterate over `collection`. * @returns {*} Returns the found element or its key, else `undefined`. @@ -22066,7 +22173,7 @@ * support for iteratee shorthands. * * @private - * @param {Array} array The array to search. + * @param {Array} array The array to inspect. * @param {Function} predicate The function invoked per iteration. * @param {number} fromIndex The index to search from. * @param {boolean} [fromRight] Specify iterating from right to left. @@ -22088,31 +22195,22 @@ * The base implementation of `_.indexOf` without `fromIndex` bounds checks. * * @private - * @param {Array} array The array to search. + * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @param {number} fromIndex The index to search from. * @returns {number} Returns the index of the matched value, else `-1`. */ function baseIndexOf(array, value, fromIndex) { - if (value !== value) { - return indexOfNaN(array, fromIndex); - } - var index = fromIndex - 1, - length = array.length; - - while (++index < length) { - if (array[index] === value) { - return index; - } - } - return -1; + return value === value + ? strictIndexOf(array, value, fromIndex) + : baseFindIndex(array, baseIsNaN, fromIndex); } /** * This function is like `baseIndexOf` except that it accepts a comparator. * * @private - * @param {Array} array The array to search. + * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @param {number} fromIndex The index to search from. * @param {Function} comparator The comparator invoked per element. @@ -22130,6 +22228,17 @@ return -1; } + /** + * The base implementation of `_.isNaN` without support for number objects. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. + */ + function baseIsNaN(value) { + return value !== value; + } + /** * The base implementation of `_.mean` and `_.meanBy` without support for * iteratee shorthands. @@ -22144,6 +22253,32 @@ return length ? (baseSum(array, iteratee) / length) : NAN; } + /** + * The base implementation of `_.property` without support for deep paths. + * + * @private + * @param {string} key The key of the property to get. + * @returns {Function} Returns the new accessor function. + */ + function baseProperty(key) { + return function(object) { + return object == null ? undefined : object[key]; + }; + } + + /** + * The base implementation of `_.propertyOf` without support for deep paths. + * + * @private + * @param {Object} object The object to query. + * @returns {Function} Returns the new accessor function. + */ + function basePropertyOf(object) { + return function(key) { + return object == null ? undefined : object[key]; + }; + } + /** * The base implementation of `_.reduce` and `_.reduceRight`, without support * for iteratee shorthands, which iterates over `collection` using `eachFunc`. @@ -22244,7 +22379,7 @@ } /** - * The base implementation of `_.unary` without support for storing wrapper metadata. + * The base implementation of `_.unary` without support for storing metadata. * * @private * @param {Function} func The function to cap arguments for. @@ -22273,7 +22408,7 @@ } /** - * Checks if a cache value for `key` exists. + * Checks if a `cache` value for `key` exists. * * @private * @param {Object} cache The cache to query. @@ -22317,17 +22452,6 @@ return index; } - /** - * Checks if `value` is a global object. - * - * @private - * @param {*} value The value to check. - * @returns {null|Object} Returns `value` if it's a global object, else `null`. - */ - function checkGlobal(value) { - return (value && value.Object === Object) ? value : null; - } - /** * Gets the number of `placeholder` occurrences in `array`. * @@ -22342,22 +22466,21 @@ while (length--) { if (array[length] === placeholder) { - result++; + ++result; } } return result; } /** - * Used by `_.deburr` to convert latin-1 supplementary letters to basic latin letters. + * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A + * letters to basic Latin letters. * * @private * @param {string} letter The matched letter to deburr. * @returns {string} Returns the deburred letter. */ - function deburrLetter(letter) { - return deburredLetters[letter]; - } + var deburrLetter = basePropertyOf(deburredLetters); /** * Used by `_.escape` to convert characters to HTML entities. @@ -22366,9 +22489,7 @@ * @param {string} chr The matched character to escape. * @returns {string} Returns the escaped character. */ - function escapeHtmlChar(chr) { - return htmlEscapes[chr]; - } + var escapeHtmlChar = basePropertyOf(htmlEscapes); /** * Used by `_.template` to escape characters for inclusion in compiled string literals. @@ -22394,44 +22515,25 @@ } /** - * Gets the index at which the first occurrence of `NaN` is found in `array`. + * Checks if `string` contains Unicode symbols. * * @private - * @param {Array} array The array to search. - * @param {number} fromIndex The index to search from. - * @param {boolean} [fromRight] Specify iterating from right to left. - * @returns {number} Returns the index of the matched `NaN`, else `-1`. + * @param {string} string The string to inspect. + * @returns {boolean} Returns `true` if a symbol is found, else `false`. */ - function indexOfNaN(array, fromIndex, fromRight) { - var length = array.length, - index = fromIndex + (fromRight ? 1 : -1); - - while ((fromRight ? index-- : ++index < length)) { - var other = array[index]; - if (other !== other) { - return index; - } - } - return -1; + function hasUnicode(string) { + return reHasUnicode.test(string); } /** - * Checks if `value` is a host object in IE < 9. + * Checks if `string` contains a word composed of Unicode symbols. * * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a host object, else `false`. + * @param {string} string The string to inspect. + * @returns {boolean} Returns `true` if a word is found, else `false`. */ - function isHostObject(value) { - // Many host objects are `Object` objects that can coerce to strings - // despite having improperly defined `toString` methods. - var result = false; - if (value != null && typeof value.toString != 'function') { - try { - result = !!(value + ''); - } catch (e) {} - } - return result; + function hasUnicodeWord(string) { + return reHasUnicodeWord.test(string); } /** @@ -22468,6 +22570,20 @@ return result; } + /** + * Creates a unary function that invokes `func` with its argument transformed. + * + * @private + * @param {Function} func The function to wrap. + * @param {Function} transform The argument transform. + * @returns {Function} Returns the new function. + */ + function overArg(func, transform) { + return function(arg) { + return func(transform(arg)); + }; + } + /** * Replaces all `placeholder` elements in `array` with an internal placeholder * and returns an array of their indexes. @@ -22527,6 +22643,48 @@ return result; } + /** + * A specialized version of `_.indexOf` which performs strict equality + * comparisons of values, i.e. `===`. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} fromIndex The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + */ + function strictIndexOf(array, value, fromIndex) { + var index = fromIndex - 1, + length = array.length; + + while (++index < length) { + if (array[index] === value) { + return index; + } + } + return -1; + } + + /** + * A specialized version of `_.lastIndexOf` which performs strict equality + * comparisons of values, i.e. `===`. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} fromIndex The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + */ + function strictLastIndexOf(array, value, fromIndex) { + var index = fromIndex + 1; + while (index--) { + if (array[index] === value) { + return index; + } + } + return index; + } + /** * Gets the number of symbols in `string`. * @@ -22535,14 +22693,9 @@ * @returns {number} Returns the string size. */ function stringSize(string) { - if (!(string && reHasComplexSymbol.test(string))) { - return string.length; - } - var result = reComplexSymbol.lastIndex = 0; - while (reComplexSymbol.test(string)) { - result++; - } - return result; + return hasUnicode(string) + ? unicodeSize(string) + : asciiSize(string); } /** @@ -22553,7 +22706,9 @@ * @returns {Array} Returns the converted array. */ function stringToArray(string) { - return string.match(reComplexSymbol); + return hasUnicode(string) + ? unicodeToArray(string) + : asciiToArray(string); } /** @@ -22563,8 +22718,43 @@ * @param {string} chr The matched character to unescape. * @returns {string} Returns the unescaped character. */ - function unescapeHtmlChar(chr) { - return htmlUnescapes[chr]; + var unescapeHtmlChar = basePropertyOf(htmlUnescapes); + + /** + * Gets the size of a Unicode `string`. + * + * @private + * @param {string} string The string inspect. + * @returns {number} Returns the string size. + */ + function unicodeSize(string) { + var result = reUnicode.lastIndex = 0; + while (reUnicode.test(string)) { + ++result; + } + return result; + } + + /** + * Converts a Unicode `string` to an array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the converted array. + */ + function unicodeToArray(string) { + return string.match(reUnicode) || []; + } + + /** + * Splits a Unicode `string` into an array of its words. + * + * @private + * @param {string} The string to inspect. + * @returns {Array} Returns the words of `string`. + */ + function unicodeWords(string) { + return string.match(reUnicodeWord) || []; } /*--------------------------------------------------------------------------*/ @@ -22595,30 +22785,27 @@ * lodash.isFunction(lodash.bar); * // => true * - * // Use `context` to stub `Date#getTime` use in `_.now`. - * var stubbed = _.runInContext({ - * 'Date': function() { - * return { 'getTime': stubGetTime }; - * } - * }); - * * // Create a suped-up `defer` in Node.js. * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer; */ - function runInContext(context) { - context = context ? _.defaults({}, context, _.pick(root, contextProps)) : root; + var runInContext = (function runInContext(context) { + context = context ? _.defaults(root.Object(), context, _.pick(root, contextProps)) : root; /** Built-in constructor references. */ - var Date = context.Date, + var Array = context.Array, + Date = context.Date, Error = context.Error, + Function = context.Function, Math = context.Math, + Object = context.Object, RegExp = context.RegExp, + String = context.String, TypeError = context.TypeError; /** Used for built-in method references. */ - var arrayProto = context.Array.prototype, - objectProto = context.Object.prototype, - stringProto = context.String.prototype; + var arrayProto = Array.prototype, + funcProto = Function.prototype, + objectProto = Object.prototype; /** Used to detect overreaching core-js shims. */ var coreJsData = context['__core-js_shared__']; @@ -22630,7 +22817,7 @@ }()); /** Used to resolve the decompiled source of functions. */ - var funcToString = context.Function.prototype.toString; + var funcToString = funcProto.toString; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; @@ -22643,7 +22830,7 @@ /** * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var objectToString = objectProto.toString; @@ -22659,33 +22846,43 @@ /** Built-in value references. */ var Buffer = moduleExports ? context.Buffer : undefined, - Reflect = context.Reflect, Symbol = context.Symbol, Uint8Array = context.Uint8Array, - enumerate = Reflect ? Reflect.enumerate : undefined, - getOwnPropertySymbols = Object.getOwnPropertySymbols, - iteratorSymbol = typeof (iteratorSymbol = Symbol && Symbol.iterator) == 'symbol' ? iteratorSymbol : undefined, + allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined, + getPrototype = overArg(Object.getPrototypeOf, Object), + iteratorSymbol = Symbol ? Symbol.iterator : undefined, objectCreate = Object.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, - splice = arrayProto.splice; + splice = arrayProto.splice, + spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined; - /** Built-in method references that are mockable. */ - var setTimeout = function(func, wait) { return context.setTimeout.call(root, func, wait); }; + var defineProperty = (function() { + try { + var func = getNative(Object, 'defineProperty'); + func({}, '', {}); + return func; + } catch (e) {} + }()); + + /** Mocked built-ins. */ + var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, + ctxNow = Date && Date.now !== root.Date.now && Date.now, + ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeCeil = Math.ceil, nativeFloor = Math.floor, - nativeGetPrototype = Object.getPrototypeOf, + nativeGetSymbols = Object.getOwnPropertySymbols, + nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, - nativeKeys = Object.keys, + nativeKeys = overArg(Object.keys, Object), nativeMax = Math.max, nativeMin = Math.min, + nativeNow = Date.now, nativeParseInt = context.parseInt, nativeRandom = Math.random, - nativeReplace = stringProto.replace, - nativeReverse = arrayProto.reverse, - nativeSplit = stringProto.split; + nativeReverse = arrayProto.reverse; /* Built-in method references that are verified to be native. */ var DataView = getNative(context, 'DataView'), @@ -22698,9 +22895,6 @@ /** Used to store function metadata. */ var metaMap = WeakMap && new WeakMap; - /** Detect if properties shadowing those on `Object.prototype` are non-enumerable. */ - var nonEnumShadows = !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf'); - /** Used to lookup unminified function names. */ var realNames = {}; @@ -22784,16 +22978,16 @@ * * The wrapper methods that are **not** chainable by default are: * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`, - * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `deburr`, `divide`, `each`, - * `eachRight`, `endsWith`, `eq`, `escape`, `escapeRegExp`, `every`, `find`, - * `findIndex`, `findKey`, `findLast`, `findLastIndex`, `findLastKey`, `first`, - * `floor`, `forEach`, `forEachRight`, `forIn`, `forInRight`, `forOwn`, - * `forOwnRight`, `get`, `gt`, `gte`, `has`, `hasIn`, `head`, `identity`, - * `includes`, `indexOf`, `inRange`, `invoke`, `isArguments`, `isArray`, - * `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`, `isBoolean`, - * `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`, `isEqualWith`, - * `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`, `isMap`, - * `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`, + * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`, + * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`, + * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`, + * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`, + * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`, + * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`, + * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`, + * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`, + * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`, + * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`, * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`, * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`, * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`, @@ -22847,6 +23041,30 @@ return new LodashWrapper(value); } + /** + * The base implementation of `_.create` without support for assigning + * properties to the created object. + * + * @private + * @param {Object} proto The object to inherit from. + * @returns {Object} Returns the new object. + */ + var baseCreate = (function() { + function object() {} + return function(proto) { + if (!isObject(proto)) { + return {}; + } + if (objectCreate) { + return objectCreate(proto); + } + object.prototype = proto; + var result = new object; + object.prototype = undefined; + return result; + }; + }()); + /** * The function whose prototype chain sequence wrappers inherit from. * @@ -23088,6 +23306,7 @@ */ function hashClear() { this.__data__ = nativeCreate ? nativeCreate(null) : {}; + this.size = 0; } /** @@ -23101,7 +23320,9 @@ * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function hashDelete(key) { - return this.has(key) && delete this.__data__[key]; + var result = this.has(key) && delete this.__data__[key]; + this.size -= result ? 1 : 0; + return result; } /** @@ -23148,6 +23369,7 @@ */ function hashSet(key, value) { var data = this.__data__; + this.size += this.has(key) ? 0 : 1; data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; return this; } @@ -23188,6 +23410,7 @@ */ function listCacheClear() { this.__data__ = []; + this.size = 0; } /** @@ -23212,6 +23435,7 @@ } else { splice.call(data, index, 1); } + --this.size; return true; } @@ -23259,6 +23483,7 @@ index = assocIndexOf(data, key); if (index < 0) { + ++this.size; data.push([key, value]); } else { data[index][1] = value; @@ -23301,6 +23526,7 @@ * @memberOf MapCache */ function mapCacheClear() { + this.size = 0; this.__data__ = { 'hash': new Hash, 'map': new (Map || ListCache), @@ -23318,7 +23544,9 @@ * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function mapCacheDelete(key) { - return getMapData(this, key)['delete'](key); + var result = getMapData(this, key)['delete'](key); + this.size -= result ? 1 : 0; + return result; } /** @@ -23358,7 +23586,11 @@ * @returns {Object} Returns the map cache instance. */ function mapCacheSet(key, value) { - getMapData(this, key).set(key, value); + var data = getMapData(this, key), + size = data.size; + + data.set(key, value); + this.size += data.size == size ? 0 : 1; return this; } @@ -23431,7 +23663,8 @@ * @param {Array} [entries] The key-value pairs to cache. */ function Stack(entries) { - this.__data__ = new ListCache(entries); + var data = this.__data__ = new ListCache(entries); + this.size = data.size; } /** @@ -23443,6 +23676,7 @@ */ function stackClear() { this.__data__ = new ListCache; + this.size = 0; } /** @@ -23455,7 +23689,11 @@ * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function stackDelete(key) { - return this.__data__['delete'](key); + var data = this.__data__, + result = data['delete'](key); + + this.size = data.size; + return result; } /** @@ -23495,11 +23733,18 @@ * @returns {Object} Returns the stack cache instance. */ function stackSet(key, value) { - var cache = this.__data__; - if (cache instanceof ListCache && cache.__data__.length == LARGE_ARRAY_SIZE) { - cache = this.__data__ = new MapCache(cache.__data__); + var data = this.__data__; + if (data instanceof ListCache) { + var pairs = data.__data__; + if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { + pairs.push([key, value]); + this.size = ++data.size; + return this; + } + data = this.__data__ = new MapCache(pairs); } - cache.set(key, value); + data.set(key, value); + this.size = data.size; return this; } @@ -23512,6 +23757,76 @@ /*------------------------------------------------------------------------*/ + /** + * Creates an array of the enumerable property names of the array-like `value`. + * + * @private + * @param {*} value The value to query. + * @param {boolean} inherited Specify returning inherited property names. + * @returns {Array} Returns the array of property names. + */ + function arrayLikeKeys(value, inherited) { + var isArr = isArray(value), + isArg = !isArr && isArguments(value), + isBuff = !isArr && !isArg && isBuffer(value), + isType = !isArr && !isArg && !isBuff && isTypedArray(value), + skipIndexes = isArr || isArg || isBuff || isType, + result = skipIndexes ? baseTimes(value.length, String) : [], + length = result.length; + + for (var key in value) { + if ((inherited || hasOwnProperty.call(value, key)) && + !(skipIndexes && ( + // Safari 9 has enumerable `arguments.length` in strict mode. + key == 'length' || + // Node.js 0.10 has enumerable non-index properties on buffers. + (isBuff && (key == 'offset' || key == 'parent')) || + // PhantomJS 2 has enumerable non-index properties on typed arrays. + (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || + // Skip index properties. + isIndex(key, length) + ))) { + result.push(key); + } + } + return result; + } + + /** + * A specialized version of `_.sample` for arrays. + * + * @private + * @param {Array} array The array to sample. + * @returns {*} Returns the random element. + */ + function arraySample(array) { + var length = array.length; + return length ? array[baseRandom(0, length - 1)] : undefined; + } + + /** + * A specialized version of `_.sampleSize` for arrays. + * + * @private + * @param {Array} array The array to sample. + * @param {number} n The number of elements to sample. + * @returns {Array} Returns the random elements. + */ + function arraySampleSize(array, n) { + return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length)); + } + + /** + * A specialized version of `_.shuffle` for arrays. + * + * @private + * @param {Array} array The array to shuffle. + * @returns {Array} Returns the new shuffled array. + */ + function arrayShuffle(array) { + return shuffleSelf(copyArray(array)); + } + /** * Used by `_.defaults` to customize its `_.assignIn` use. * @@ -23541,14 +23856,14 @@ */ function assignMergeValue(object, key, value) { if ((value !== undefined && !eq(object[key], value)) || - (typeof key == 'number' && value === undefined && !(key in object))) { - object[key] = value; + (value === undefined && !(key in object))) { + baseAssignValue(object, key, value); } } /** * Assigns `value` to `key` of `object` if the existing value is not equivalent - * using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. * * @private @@ -23560,7 +23875,7 @@ var objValue = object[key]; if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || (value === undefined && !(key in object))) { - object[key] = value; + baseAssignValue(object, key, value); } } @@ -23568,7 +23883,7 @@ * Gets the index at which the `key` is found in `array` of key-value pairs. * * @private - * @param {Array} array The array to search. + * @param {Array} array The array to inspect. * @param {*} key The key to search for. * @returns {number} Returns the index of the matched value, else `-1`. */ @@ -23613,6 +23928,28 @@ return object && copyObject(source, keys(source), object); } + /** + * The base implementation of `assignValue` and `assignMergeValue` without + * value checks. + * + * @private + * @param {Object} object The object to modify. + * @param {string} key The key of the property to assign. + * @param {*} value The value to assign. + */ + function baseAssignValue(object, key, value) { + if (key == '__proto__' && defineProperty) { + defineProperty(object, key, { + 'configurable': true, + 'enumerable': true, + 'value': value, + 'writable': true + }); + } else { + object[key] = value; + } + } + /** * The base implementation of `_.at` without support for individual paths. * @@ -23634,7 +23971,7 @@ } /** - * The base implementation of `_.clamp` which doesn't coerce arguments to numbers. + * The base implementation of `_.clamp` which doesn't coerce arguments. * * @private * @param {number} number The number to clamp. @@ -23693,9 +24030,6 @@ return cloneBuffer(value, isDeep); } if (tag == objectTag || tag == argsTag || (isFunc && !object)) { - if (isHostObject(value)) { - return object ? value : {}; - } result = initCloneObject(isFunc ? {} : value); if (!isDeep) { return copySymbols(value, baseAssign(result, value)); @@ -23715,15 +24049,13 @@ } stack.set(value, result); - if (!isArr) { - var props = isFull ? getAllKeys(value) : keys(value); - } - // Recursively populate clone (susceptible to call stack limits). + var props = isArr ? undefined : (isFull ? getAllKeys : keys)(value); arrayEach(props || value, function(subValue, key) { if (props) { key = subValue; subValue = value[key]; } + // Recursively populate clone (susceptible to call stack limits). assignValue(result, key, baseClone(subValue, isDeep, isFull, customizer, key, value, stack)); }); return result; @@ -23737,49 +24069,47 @@ * @returns {Function} Returns the new spec function. */ function baseConforms(source) { - var props = keys(source), - length = props.length; - + var props = keys(source); return function(object) { - if (object == null) { - return !length; - } - var index = length; - while (index--) { - var key = props[index], - predicate = source[key], - value = object[key]; - - if ((value === undefined && - !(key in Object(object))) || !predicate(value)) { - return false; - } - } - return true; + return baseConformsTo(object, source, props); }; } /** - * The base implementation of `_.create` without support for assigning - * properties to the created object. + * The base implementation of `_.conformsTo` which accepts `props` to check. * * @private - * @param {Object} prototype The object to inherit from. - * @returns {Object} Returns the new object. + * @param {Object} object The object to inspect. + * @param {Object} source The object of property predicates to conform to. + * @returns {boolean} Returns `true` if `object` conforms, else `false`. */ - function baseCreate(proto) { - return isObject(proto) ? objectCreate(proto) : {}; + function baseConformsTo(object, source, props) { + var length = props.length; + if (object == null) { + return !length; + } + object = Object(object); + while (length--) { + var key = props[length], + predicate = source[key], + value = object[key]; + + if ((value === undefined && !(key in object)) || !predicate(value)) { + return false; + } + } + return true; } /** - * The base implementation of `_.delay` and `_.defer` which accepts an array - * of `func` arguments. + * The base implementation of `_.delay` and `_.defer` which accepts `args` + * to provide to `func`. * * @private * @param {Function} func The function to delay. * @param {number} wait The number of milliseconds to delay invocation. - * @param {Object} args The arguments to provide to `func`. - * @returns {number} Returns the timer id. + * @param {Array} args The arguments to provide to `func`. + * @returns {number|Object} Returns the timer id or timeout object. */ function baseDelay(func, wait, args) { if (typeof func != 'function') { @@ -24092,7 +24422,18 @@ } /** - * The base implementation of `_.gt` which doesn't coerce arguments to numbers. + * The base implementation of `getTag`. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the `toStringTag`. + */ + function baseGetTag(value) { + return objectToString.call(value); + } + + /** + * The base implementation of `_.gt` which doesn't coerce arguments. * * @private * @param {*} value The value to compare. @@ -24113,12 +24454,7 @@ * @returns {boolean} Returns `true` if `key` exists, else `false`. */ function baseHas(object, key) { - // Avoid a bug in IE 10-11 where objects with a [[Prototype]] of `null`, - // that are composed entirely of index properties, return `false` for - // `hasOwnProperty` checks of them. - return object != null && - (hasOwnProperty.call(object, key) || - (typeof object == 'object' && key in object && getPrototype(object) === null)); + return object != null && hasOwnProperty.call(object, key); } /** @@ -24134,7 +24470,7 @@ } /** - * The base implementation of `_.inRange` which doesn't coerce arguments to numbers. + * The base implementation of `_.inRange` which doesn't coerce arguments. * * @private * @param {number} number The number to check. @@ -24247,6 +24583,39 @@ return func == null ? undefined : apply(func, object, args); } + /** + * The base implementation of `_.isArguments`. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + */ + function baseIsArguments(value) { + return isObjectLike(value) && objectToString.call(value) == argsTag; + } + + /** + * The base implementation of `_.isArrayBuffer` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`. + */ + function baseIsArrayBuffer(value) { + return isObjectLike(value) && objectToString.call(value) == arrayBufferTag; + } + + /** + * The base implementation of `_.isDate` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a date object, else `false`. + */ + function baseIsDate(value) { + return isObjectLike(value) && objectToString.call(value) == dateTag; + } + /** * The base implementation of `_.isEqual` which supports partial comparisons * and tracks traversed objects. @@ -24301,10 +24670,17 @@ othTag = getTag(other); othTag = othTag == argsTag ? objectTag : othTag; } - var objIsObj = objTag == objectTag && !isHostObject(object), - othIsObj = othTag == objectTag && !isHostObject(other), + var objIsObj = objTag == objectTag, + othIsObj = othTag == objectTag, isSameTag = objTag == othTag; + if (isSameTag && isBuffer(object)) { + if (!isBuffer(other)) { + return false; + } + objIsArr = true; + objIsObj = false; + } if (isSameTag && !objIsObj) { stack || (stack = new Stack); return (objIsArr || isTypedArray(object)) @@ -24330,6 +24706,17 @@ return equalObjects(object, other, equalFunc, customizer, bitmask, stack); } + /** + * The base implementation of `_.isMap` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a map, else `false`. + */ + function baseIsMap(value) { + return isObjectLike(value) && getTag(value) == mapTag; + } + /** * The base implementation of `_.isMatch` without support for iteratee shorthands. * @@ -24396,10 +24783,44 @@ if (!isObject(value) || isMasked(value)) { return false; } - var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor; + var pattern = isFunction(value) ? reIsNative : reIsHostCtor; return pattern.test(toSource(value)); } + /** + * The base implementation of `_.isRegExp` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a regexp, else `false`. + */ + function baseIsRegExp(value) { + return isObject(value) && objectToString.call(value) == regexpTag; + } + + /** + * The base implementation of `_.isSet` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a set, else `false`. + */ + function baseIsSet(value) { + return isObjectLike(value) && getTag(value) == setTag; + } + + /** + * The base implementation of `_.isTypedArray` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. + */ + function baseIsTypedArray(value) { + return isObjectLike(value) && + isLength(value.length) && !!typedArrayTags[objectToString.call(value)]; + } + /** * The base implementation of `_.iteratee`. * @@ -24425,44 +24846,49 @@ } /** - * The base implementation of `_.keys` which doesn't skip the constructor - * property of prototypes or treat sparse arrays as dense. + * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeys(object) { - return nativeKeys(Object(object)); + if (!isPrototype(object)) { + return nativeKeys(object); + } + var result = []; + for (var key in Object(object)) { + if (hasOwnProperty.call(object, key) && key != 'constructor') { + result.push(key); + } + } + return result; } /** - * The base implementation of `_.keysIn` which doesn't skip the constructor - * property of prototypes or treat sparse arrays as dense. + * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeysIn(object) { - object = object == null ? object : Object(object); + if (!isObject(object)) { + return nativeKeysIn(object); + } + var isProto = isPrototype(object), + result = []; - var result = []; for (var key in object) { - result.push(key); + if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { + result.push(key); + } } return result; } - // Fallback for IE < 9 with es6-shim. - if (enumerate && !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf')) { - baseKeysIn = function(object) { - return iteratorToArray(enumerate(object)); - }; - } - /** - * The base implementation of `_.lt` which doesn't coerce arguments to numbers. + * The base implementation of `_.lt` which doesn't coerce arguments. * * @private * @param {*} value The value to compare. @@ -24544,14 +24970,7 @@ if (object === source) { return; } - if (!(isArray(source) || isTypedArray(source))) { - var props = keysIn(source); - } - arrayEach(props || source, function(srcValue, key) { - if (props) { - key = srcValue; - srcValue = source[key]; - } + baseFor(source, function(srcValue, key) { if (isObject(srcValue)) { stack || (stack = new Stack); baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack); @@ -24566,7 +24985,7 @@ } assignMergeValue(object, key, newValue); } - }); + }, keysIn); } /** @@ -24600,47 +25019,54 @@ var isCommon = newValue === undefined; if (isCommon) { + var isArr = isArray(srcValue), + isBuff = !isArr && isBuffer(srcValue), + isTyped = !isArr && !isBuff && isTypedArray(srcValue); + newValue = srcValue; - if (isArray(srcValue) || isTypedArray(srcValue)) { + if (isArr || isBuff || isTyped) { if (isArray(objValue)) { newValue = objValue; } else if (isArrayLikeObject(objValue)) { newValue = copyArray(objValue); } - else { + else if (isBuff) { isCommon = false; - newValue = baseClone(srcValue, true); + newValue = cloneBuffer(srcValue, true); + } + else if (isTyped) { + isCommon = false; + newValue = cloneTypedArray(srcValue, true); + } + else { + newValue = []; } } else if (isPlainObject(srcValue) || isArguments(srcValue)) { + newValue = objValue; if (isArguments(objValue)) { newValue = toPlainObject(objValue); } else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) { - isCommon = false; - newValue = baseClone(srcValue, true); - } - else { - newValue = objValue; + newValue = initCloneObject(srcValue); } } else { isCommon = false; } } - stack.set(srcValue, newValue); - if (isCommon) { // Recursively merge objects and arrays (susceptible to call stack limits). + stack.set(srcValue, newValue); mergeFunc(newValue, srcValue, srcIndex, customizer, stack); + stack['delete'](srcValue); } - stack['delete'](srcValue); assignMergeValue(object, key, newValue); } /** - * The base implementation of `_.nth` which doesn't coerce `n` to an integer. + * The base implementation of `_.nth` which doesn't coerce arguments. * * @private * @param {Array} array The array to query. @@ -24692,12 +25118,9 @@ */ function basePick(object, props) { object = Object(object); - return arrayReduce(props, function(result, key) { - if (key in object) { - result[key] = object[key]; - } - return result; - }, {}); + return basePickBy(object, props, function(value, key) { + return key in object; + }); } /** @@ -24705,12 +25128,12 @@ * * @private * @param {Object} object The source object. + * @param {string[]} props The property identifiers to pick from. * @param {Function} predicate The function invoked per property. * @returns {Object} Returns the new object. */ - function basePickBy(object, predicate) { + function basePickBy(object, props, predicate) { var index = -1, - props = getAllKeysIn(object), length = props.length, result = {}; @@ -24719,25 +25142,12 @@ value = object[key]; if (predicate(value, key)) { - result[key] = value; + baseAssignValue(result, key, value); } } return result; } - /** - * The base implementation of `_.property` without support for deep paths. - * - * @private - * @param {string} key The key of the property to get. - * @returns {Function} Returns the new accessor function. - */ - function baseProperty(key) { - return function(object) { - return object == null ? undefined : object[key]; - }; - } - /** * A specialized version of `baseProperty` which supports deep paths. * @@ -24840,7 +25250,7 @@ /** * The base implementation of `_.range` and `_.rangeRight` which doesn't - * coerce arguments to numbers. + * coerce arguments. * * @private * @param {number} start The start of the range. @@ -24889,17 +25299,56 @@ return result; } + /** + * The base implementation of `_.rest` which doesn't validate or coerce arguments. + * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @param {number} [start=func.length-1] The start position of the rest parameter. + * @returns {Function} Returns the new function. + */ + function baseRest(func, start) { + return setToString(overRest(func, start, identity), func + ''); + } + + /** + * The base implementation of `_.sample`. + * + * @private + * @param {Array|Object} collection The collection to sample. + * @returns {*} Returns the random element. + */ + function baseSample(collection) { + return arraySample(values(collection)); + } + + /** + * The base implementation of `_.sampleSize` without param guards. + * + * @private + * @param {Array|Object} collection The collection to sample. + * @param {number} n The number of elements to sample. + * @returns {Array} Returns the random elements. + */ + function baseSampleSize(collection, n) { + var array = values(collection); + return shuffleSelf(array, baseClamp(n, 0, array.length)); + } + /** * The base implementation of `_.set`. * * @private - * @param {Object} object The object to query. + * @param {Object} object The object to modify. * @param {Array|string} path The path of the property to set. * @param {*} value The value to set. * @param {Function} [customizer] The function to customize path creation. * @returns {Object} Returns `object`. */ function baseSet(object, path, value, customizer) { + if (!isObject(object)) { + return object; + } path = isKey(path, object) ? [path] : castPath(path); var index = -1, @@ -24908,27 +25357,26 @@ nested = object; while (nested != null && ++index < length) { - var key = toKey(path[index]); - if (isObject(nested)) { - var newValue = value; - if (index != lastIndex) { - var objValue = nested[key]; - newValue = customizer ? customizer(objValue, key, nested) : undefined; - if (newValue === undefined) { - newValue = objValue == null - ? (isIndex(path[index + 1]) ? [] : {}) - : objValue; - } + var key = toKey(path[index]), + newValue = value; + + if (index != lastIndex) { + var objValue = nested[key]; + newValue = customizer ? customizer(objValue, key, nested) : undefined; + if (newValue === undefined) { + newValue = isObject(objValue) + ? objValue + : (isIndex(path[index + 1]) ? [] : {}); } - assignValue(nested, key, newValue); } + assignValue(nested, key, newValue); nested = nested[key]; } return object; } /** - * The base implementation of `setData` without support for hot loop detection. + * The base implementation of `setData` without support for hot loop shorting. * * @private * @param {Function} func The function to associate metadata with. @@ -24940,6 +25388,34 @@ return func; }; + /** + * The base implementation of `setToString` without support for hot loop shorting. + * + * @private + * @param {Function} func The function to modify. + * @param {Function} string The `toString` result. + * @returns {Function} Returns `func`. + */ + var baseSetToString = !defineProperty ? identity : function(func, string) { + return defineProperty(func, 'toString', { + 'configurable': true, + 'enumerable': false, + 'value': constant(string), + 'writable': true + }); + }; + + /** + * The base implementation of `_.shuffle`. + * + * @private + * @param {Array|Object} collection The collection to shuffle. + * @returns {Array} Returns the new shuffled array. + */ + function baseShuffle(collection) { + return shuffleSelf(values(collection)); + } + /** * The base implementation of `_.slice` without an iteratee call guard. * @@ -25133,6 +25609,10 @@ if (typeof value == 'string') { return value; } + if (isArray(value)) { + // Recursively convert values (susceptible to call stack limits). + return arrayMap(value, baseToString) + ''; + } if (isSymbol(value)) { return symbolToString ? symbolToString.call(value) : ''; } @@ -25214,14 +25694,14 @@ object = parent(object, path); var key = toKey(last(path)); - return !(object != null && baseHas(object, key)) || delete object[key]; + return !(object != null && hasOwnProperty.call(object, key)) || delete object[key]; } /** * The base implementation of `_.update`. * * @private - * @param {Object} object The object to query. + * @param {Object} object The object to modify. * @param {Array|string} path The path of the property to update. * @param {Function} updater The function to produce the updated value. * @param {Function} [customizer] The function to customize path creation. @@ -25354,6 +25834,17 @@ return isArray(value) ? value : stringToPath(value); } + /** + * A `baseRest` alias which can be replaced with `identity` by module + * replacement plugins. + * + * @private + * @type {Function} + * @param {Function} func The function to apply a rest parameter to. + * @returns {Function} Returns the new function. + */ + var castRest = baseRest; + /** * Casts `array` to a slice if it's needed. * @@ -25369,6 +25860,16 @@ return (!start && end >= length) ? array : baseSlice(array, start, end); } + /** + * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout). + * + * @private + * @param {number|Object} id The timer id or timeout object of the timer to clear. + */ + var clearTimeout = ctxClearTimeout || function(id) { + return root.clearTimeout(id); + }; + /** * Creates a clone of `buffer`. * @@ -25381,7 +25882,9 @@ if (isDeep) { return buffer.slice(); } - var result = new buffer.constructor(buffer.length); + var length = buffer.length, + result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); + buffer.copy(result); return result; } @@ -25658,6 +26161,7 @@ * @returns {Object} Returns `object`. */ function copyObject(source, props, object, customizer) { + var isNew = !object; object || (object = {}); var index = -1, @@ -25668,9 +26172,16 @@ var newValue = customizer ? customizer(object[key], source[key], key, object, source) - : source[key]; + : undefined; - assignValue(object, key, newValue); + if (newValue === undefined) { + newValue = source[key]; + } + if (isNew) { + baseAssignValue(object, key, newValue); + } else { + assignValue(object, key, newValue); + } } return object; } @@ -25700,7 +26211,7 @@ var func = isArray(collection) ? arrayAggregator : baseAggregator, accumulator = initializer ? initializer() : {}; - return func(collection, setter, getIteratee(iteratee), accumulator); + return func(collection, setter, getIteratee(iteratee, 2), accumulator); }; } @@ -25712,7 +26223,7 @@ * @returns {Function} Returns the new assigner function. */ function createAssigner(assigner) { - return rest(function(object, sources) { + return baseRest(function(object, sources) { var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined, @@ -25796,14 +26307,13 @@ * * @private * @param {Function} func The function to wrap. - * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper` - * for more details. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. * @param {*} [thisArg] The `this` binding of `func`. * @returns {Function} Returns the new wrapped function. */ - function createBaseWrapper(func, bitmask, thisArg) { + function createBind(func, bitmask, thisArg) { var isBind = bitmask & BIND_FLAG, - Ctor = createCtorWrapper(func); + Ctor = createCtor(func); function wrapper() { var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func; @@ -25823,7 +26333,7 @@ return function(string) { string = toString(string); - var strSymbols = reHasComplexSymbol.test(string) + var strSymbols = hasUnicode(string) ? stringToArray(string) : undefined; @@ -25860,10 +26370,10 @@ * @param {Function} Ctor The constructor to wrap. * @returns {Function} Returns the new wrapped function. */ - function createCtorWrapper(Ctor) { + function createCtor(Ctor) { return function() { // Use a `switch` statement to work with class constructors. See - // http://ecma-international.org/ecma-262/6.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist + // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist // for more details. var args = arguments; switch (args.length) { @@ -25890,13 +26400,12 @@ * * @private * @param {Function} func The function to wrap. - * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper` - * for more details. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. * @param {number} arity The arity of `func`. * @returns {Function} Returns the new wrapped function. */ - function createCurryWrapper(func, bitmask, arity) { - var Ctor = createCtorWrapper(func); + function createCurry(func, bitmask, arity) { + var Ctor = createCtor(func); function wrapper() { var length = arguments.length, @@ -25913,8 +26422,8 @@ length -= holders.length; if (length < arity) { - return createRecurryWrapper( - func, bitmask, createHybridWrapper, wrapper.placeholder, undefined, + return createRecurry( + func, bitmask, createHybrid, wrapper.placeholder, undefined, args, holders, undefined, undefined, arity - length); } var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func; @@ -25933,18 +26442,13 @@ function createFind(findIndexFunc) { return function(collection, predicate, fromIndex) { var iterable = Object(collection); - predicate = getIteratee(predicate, 3); if (!isArrayLike(collection)) { - var props = keys(collection); + var iteratee = getIteratee(predicate, 3); + collection = keys(collection); + predicate = function(key) { return iteratee(iterable[key], key, iterable); }; } - var index = findIndexFunc(props || collection, function(value, key) { - if (props) { - key = value; - value = iterable[key]; - } - return predicate(value, key, iterable); - }, fromIndex); - return index > -1 ? collection[props ? props[index] : index] : undefined; + var index = findIndexFunc(collection, predicate, fromIndex); + return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined; }; } @@ -25956,9 +26460,7 @@ * @returns {Function} Returns the new flow function. */ function createFlow(fromRight) { - return rest(function(funcs) { - funcs = baseFlatten(funcs, 1); - + return flatRest(function(funcs) { var length = funcs.length, index = length, prereq = LodashWrapper.prototype.thru; @@ -26018,8 +26520,7 @@ * * @private * @param {Function|string} func The function or method name to wrap. - * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper` - * for more details. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. * @param {*} [thisArg] The `this` binding of `func`. * @param {Array} [partials] The arguments to prepend to those provided to * the new function. @@ -26032,13 +26533,13 @@ * @param {number} [arity] The arity of `func`. * @returns {Function} Returns the new wrapped function. */ - function createHybridWrapper(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) { + function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) { var isAry = bitmask & ARY_FLAG, isBind = bitmask & BIND_FLAG, isBindKey = bitmask & BIND_KEY_FLAG, isCurried = bitmask & (CURRY_FLAG | CURRY_RIGHT_FLAG), isFlip = bitmask & FLIP_FLAG, - Ctor = isBindKey ? undefined : createCtorWrapper(func); + Ctor = isBindKey ? undefined : createCtor(func); function wrapper() { var length = arguments.length, @@ -26061,8 +26562,8 @@ length -= holdersCount; if (isCurried && length < arity) { var newHolders = replaceHolders(args, placeholder); - return createRecurryWrapper( - func, bitmask, createHybridWrapper, wrapper.placeholder, thisArg, + return createRecurry( + func, bitmask, createHybrid, wrapper.placeholder, thisArg, args, newHolders, argPos, ary, arity - length ); } @@ -26079,7 +26580,7 @@ args.length = ary; } if (this && this !== root && this instanceof wrapper) { - fn = Ctor || createCtorWrapper(fn); + fn = Ctor || createCtor(fn); } return fn.apply(thisBinding, args); } @@ -26105,13 +26606,14 @@ * * @private * @param {Function} operator The function to perform the operation. + * @param {number} [defaultValue] The value used for `undefined` arguments. * @returns {Function} Returns the new mathematical operation function. */ - function createMathOperation(operator) { + function createMathOperation(operator, defaultValue) { return function(value, other) { var result; if (value === undefined && other === undefined) { - return 0; + return defaultValue; } if (value !== undefined) { result = value; @@ -26141,12 +26643,9 @@ * @returns {Function} Returns the new over function. */ function createOver(arrayFunc) { - return rest(function(iteratees) { - iteratees = (iteratees.length == 1 && isArray(iteratees[0])) - ? arrayMap(iteratees[0], baseUnary(getIteratee())) - : arrayMap(baseFlatten(iteratees, 1, isFlattenableIteratee), baseUnary(getIteratee())); - - return rest(function(args) { + return flatRest(function(iteratees) { + iteratees = arrayMap(iteratees, baseUnary(getIteratee())); + return baseRest(function(args) { var thisArg = this; return arrayFunc(iteratees, function(iteratee) { return apply(iteratee, thisArg, args); @@ -26172,7 +26671,7 @@ return charsLength ? baseRepeat(chars, length) : chars; } var result = baseRepeat(chars, nativeCeil(length / stringSize(chars))); - return reHasComplexSymbol.test(chars) + return hasUnicode(chars) ? castSlice(stringToArray(result), 0, length).join('') : result.slice(0, length); } @@ -26183,16 +26682,15 @@ * * @private * @param {Function} func The function to wrap. - * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper` - * for more details. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. * @param {*} thisArg The `this` binding of `func`. * @param {Array} partials The arguments to prepend to those provided to * the new function. * @returns {Function} Returns the new wrapped function. */ - function createPartialWrapper(func, bitmask, thisArg, partials) { + function createPartial(func, bitmask, thisArg, partials) { var isBind = bitmask & BIND_FLAG, - Ctor = createCtorWrapper(func); + Ctor = createCtor(func); function wrapper() { var argsIndex = -1, @@ -26226,15 +26724,14 @@ end = step = undefined; } // Ensure the sign of `-0` is preserved. - start = toNumber(start); - start = start === start ? start : 0; + start = toFinite(start); if (end === undefined) { end = start; start = 0; } else { - end = toNumber(end) || 0; + end = toFinite(end); } - step = step === undefined ? (start < end ? 1 : -1) : (toNumber(step) || 0); + step = step === undefined ? (start < end ? 1 : -1) : toFinite(step); return baseRange(start, end, step, fromRight); }; } @@ -26261,8 +26758,7 @@ * * @private * @param {Function} func The function to wrap. - * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper` - * for more details. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. * @param {Function} wrapFunc The function to create the `func` wrapper. * @param {*} placeholder The placeholder value. * @param {*} [thisArg] The `this` binding of `func`. @@ -26274,7 +26770,7 @@ * @param {number} [arity] The arity of `func`. * @returns {Function} Returns the new wrapped function. */ - function createRecurryWrapper(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) { + function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) { var isCurry = bitmask & CURRY_FLAG, newHolders = isCurry ? holders : undefined, newHoldersRight = isCurry ? undefined : holders, @@ -26297,7 +26793,7 @@ setData(result, newData); } result.placeholder = placeholder; - return result; + return setWrapToString(result, func, bitmask); } /** @@ -26326,7 +26822,7 @@ } /** - * Creates a set of `values`. + * Creates a set object of `values`. * * @private * @param {Array} values The values to add to the set. @@ -26362,7 +26858,7 @@ * * @private * @param {Function|string} func The function or method name to wrap. - * @param {number} bitmask The bitmask of wrapper flags. + * @param {number} bitmask The bitmask flags. * The bitmask may be composed of the following flags: * 1 - `_.bind` * 2 - `_.bindKey` @@ -26382,7 +26878,7 @@ * @param {number} [arity] The arity of `func`. * @returns {Function} Returns the new wrapped function. */ - function createWrapper(func, bitmask, thisArg, partials, holders, argPos, ary, arity) { + function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) { var isBindKey = bitmask & BIND_KEY_FLAG; if (!isBindKey && typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); @@ -26425,16 +26921,16 @@ bitmask &= ~(CURRY_FLAG | CURRY_RIGHT_FLAG); } if (!bitmask || bitmask == BIND_FLAG) { - var result = createBaseWrapper(func, bitmask, thisArg); + var result = createBind(func, bitmask, thisArg); } else if (bitmask == CURRY_FLAG || bitmask == CURRY_RIGHT_FLAG) { - result = createCurryWrapper(func, bitmask, arity); + result = createCurry(func, bitmask, arity); } else if ((bitmask == PARTIAL_FLAG || bitmask == (BIND_FLAG | PARTIAL_FLAG)) && !holders.length) { - result = createPartialWrapper(func, bitmask, thisArg, partials); + result = createPartial(func, bitmask, thisArg, partials); } else { - result = createHybridWrapper.apply(undefined, newData); + result = createHybrid.apply(undefined, newData); } var setter = data ? baseSetData : setData; - return setter(result, newData); + return setWrapToString(setter(result, newData), func, bitmask); } /** @@ -26461,7 +26957,7 @@ } // Assume cyclic values are equal. var stacked = stack.get(array); - if (stacked) { + if (stacked && stack.get(other)) { return stacked == other; } var index = -1, @@ -26469,6 +26965,7 @@ seen = (bitmask & UNORDERED_COMPARE_FLAG) ? new SetCache : undefined; stack.set(array, other); + stack.set(other, array); // Ignore non-index properties. while (++index < arrLength) { @@ -26490,9 +26987,9 @@ // Recursively compare arrays (susceptible to call stack limits). if (seen) { if (!arraySome(other, function(othValue, othIndex) { - if (!seen.has(othIndex) && + if (!cacheHas(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack))) { - return seen.add(othIndex); + return seen.push(othIndex); } })) { result = false; @@ -26507,6 +27004,7 @@ } } stack['delete'](array); + stack['delete'](other); return result; } @@ -26547,22 +27045,18 @@ case boolTag: case dateTag: - // Coerce dates and booleans to numbers, dates to milliseconds and - // booleans to `1` or `0` treating invalid dates coerced to `NaN` as - // not equal. - return +object == +other; + case numberTag: + // Coerce booleans to `1` or `0` and dates to milliseconds. + // Invalid dates are coerced to `NaN`. + return eq(+object, +other); case errorTag: return object.name == other.name && object.message == other.message; - case numberTag: - // Treat `NaN` vs. `NaN` as equal. - return (object != +object) ? other != +other : object == +other; - case regexpTag: case stringTag: // Coerce regexes to strings and treat strings, primitives and objects, - // as equal. See http://www.ecma-international.org/ecma-262/6.0/#sec-regexp.prototype.tostring + // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring // for more details. return object == (other + ''); @@ -26582,10 +27076,12 @@ return stacked == other; } bitmask |= UNORDERED_COMPARE_FLAG; - stack.set(object, other); // Recursively compare objects (susceptible to call stack limits). - return equalArrays(convert(object), convert(other), equalFunc, customizer, bitmask, stack); + stack.set(object, other); + var result = equalArrays(convert(object), convert(other), equalFunc, customizer, bitmask, stack); + stack['delete'](object); + return result; case symbolTag: if (symbolValueOf) { @@ -26622,17 +27118,18 @@ var index = objLength; while (index--) { var key = objProps[index]; - if (!(isPartial ? key in other : baseHas(other, key))) { + if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) { return false; } } // Assume cyclic values are equal. var stacked = stack.get(object); - if (stacked) { + if (stacked && stack.get(other)) { return stacked == other; } var result = true; stack.set(object, other); + stack.set(other, object); var skipCtor = isPartial; while (++index < objLength) { @@ -26668,9 +27165,21 @@ } } stack['delete'](object); + stack['delete'](other); return result; } + /** + * A specialized version of `baseRest` which flattens the rest array. + * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @returns {Function} Returns the new function. + */ + function flatRest(func) { + return setToString(overRest(func, undefined, flatten), func + ''); + } + /** * Creates an array of own enumerable property names and symbols of `object`. * @@ -26756,19 +27265,6 @@ return arguments.length ? result(arguments[0], arguments[1]) : result; } - /** - * Gets the "length" property value of `object`. - * - * **Note:** This function is used to avoid a - * [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) that affects - * Safari on at least iOS 8.1-8.3 ARM64. - * - * @private - * @param {Object} object The object to query. - * @returns {*} Returns the "length" value. - */ - var getLength = baseProperty('length'); - /** * Gets the data for `map`. * @@ -26817,17 +27313,6 @@ return baseIsNative(value) ? value : undefined; } - /** - * Gets the `[[Prototype]]` of `value`. - * - * @private - * @param {*} value The value to query. - * @returns {null|Object} Returns the `[[Prototype]]`. - */ - function getPrototype(value) { - return nativeGetPrototype(Object(value)); - } - /** * Creates an array of the own enumerable symbol properties of `object`. * @@ -26835,16 +27320,7 @@ * @param {Object} object The object to query. * @returns {Array} Returns the array of symbols. */ - function getSymbols(object) { - // Coerce `object` to an object to avoid non-object errors in V8. - // See https://bugs.chromium.org/p/v8/issues/detail?id=3443 for more details. - return getOwnPropertySymbols(Object(object)); - } - - // Fallback for IE < 11. - if (!getOwnPropertySymbols) { - getSymbols = stubArray; - } + var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray; /** * Creates an array of the own and inherited enumerable symbol properties @@ -26854,7 +27330,7 @@ * @param {Object} object The object to query. * @returns {Array} Returns the array of symbols. */ - var getSymbolsIn = !getOwnPropertySymbols ? getSymbols : function(object) { + var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { var result = []; while (object) { arrayPush(result, getSymbols(object)); @@ -26870,12 +27346,9 @@ * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ - function getTag(value) { - return objectToString.call(value); - } + var getTag = baseGetTag; - // Fallback for data views, maps, sets, and weak maps in IE 11, - // for data views in Edge, and promises in Node.js. + // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || (Map && getTag(new Map) != mapTag) || (Promise && getTag(Promise.resolve()) != promiseTag) || @@ -26927,6 +27400,18 @@ return { 'start': start, 'end': end }; } + /** + * Extracts wrapper details from the `source` body comment. + * + * @private + * @param {string} source The source to inspect. + * @returns {Array} Returns the wrapper details. + */ + function getWrapDetails(source) { + var match = source.match(reWrapDetails); + return match ? match[1].split(reSplitDetails) : []; + } + /** * Checks if `path` exists on `object`. * @@ -26939,9 +27424,9 @@ function hasPath(object, path, hasFunc) { path = isKey(path, object) ? [path] : castPath(path); - var result, - index = -1, - length = path.length; + var index = -1, + length = path.length, + result = false; while (++index < length) { var key = toKey(path[index]); @@ -26950,12 +27435,12 @@ } object = object[key]; } - if (result) { + if (result || ++index != length) { return result; } - var length = object ? object.length : 0; + length = object ? object.length : 0; return !!length && isLength(length) && isIndex(key, length) && - (isArray(object) || isString(object) || isArguments(object)); + (isArray(object) || isArguments(object)); } /** @@ -27040,20 +27525,22 @@ } /** - * Creates an array of index keys for `object` values of arrays, - * `arguments` objects, and strings, otherwise `null` is returned. + * Inserts wrapper `details` in a comment at the top of the `source` body. * * @private - * @param {Object} object The object to query. - * @returns {Array|null} Returns index keys, else `null`. + * @param {string} source The source to modify. + * @returns {Array} details The details to insert. + * @returns {string} Returns the modified source. */ - function indexKeys(object) { - var length = object ? object.length : undefined; - if (isLength(length) && - (isArray(object) || isString(object) || isArguments(object))) { - return baseTimes(length, String); + function insertWrapDetails(source, details) { + var length = details.length; + if (!length) { + return source; } - return null; + var lastIndex = length - 1; + details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex]; + details = details.join(length > 2 ? ', ' : ' '); + return source.replace(reWrapComment, '{\n/* [wrapped with ' + details + '] */\n'); } /** @@ -27064,19 +27551,8 @@ * @returns {boolean} Returns `true` if `value` is flattenable, else `false`. */ function isFlattenable(value) { - return isArray(value) || isArguments(value); - } - - /** - * Checks if `value` is a flattenable array and not a `_.matchesProperty` - * iteratee shorthand. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is flattenable, else `false`. - */ - function isFlattenableIteratee(value) { - return isArray(value) && !(value.length == 2 && !isFunction(value[0])); + return isArray(value) || isArguments(value) || + !!(spreadableSymbol && value && value[spreadableSymbol]); } /** @@ -27240,6 +27716,26 @@ }; } + /** + * A specialized version of `_.memoize` which clears the memoized function's + * cache when it exceeds `MAX_MEMOIZE_SIZE`. + * + * @private + * @param {Function} func The function to have its output memoized. + * @returns {Function} Returns the new memoized function. + */ + function memoizeCapped(func) { + var result = memoize(func, function(key) { + if (cache.size === MAX_MEMOIZE_SIZE) { + cache.clear(); + } + return key; + }); + + var cache = result.cache; + return result; + } + /** * Merges the function metadata of `source` into `data`. * @@ -27326,11 +27822,63 @@ */ function mergeDefaults(objValue, srcValue, key, object, source, stack) { if (isObject(objValue) && isObject(srcValue)) { - baseMerge(objValue, srcValue, undefined, mergeDefaults, stack.set(srcValue, objValue)); + // Recursively merge objects and arrays (susceptible to call stack limits). + stack.set(srcValue, objValue); + baseMerge(objValue, srcValue, undefined, mergeDefaults, stack); + stack['delete'](srcValue); } return objValue; } + /** + * This function is like + * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) + * except that it includes inherited enumerable properties. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + */ + function nativeKeysIn(object) { + var result = []; + if (object != null) { + for (var key in Object(object)) { + result.push(key); + } + } + return result; + } + + /** + * A specialized version of `baseRest` which transforms the rest array. + * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @param {number} [start=func.length-1] The start position of the rest parameter. + * @param {Function} transform The rest array transform. + * @returns {Function} Returns the new function. + */ + function overRest(func, start, transform) { + start = nativeMax(start === undefined ? (func.length - 1) : start, 0); + return function() { + var args = arguments, + index = -1, + length = nativeMax(args.length - start, 0), + array = Array(length); + + while (++index < length) { + array[index] = args[start + index]; + } + index = -1; + var otherArgs = Array(start + 1); + while (++index < start) { + otherArgs[index] = args[index]; + } + otherArgs[start] = transform(array); + return apply(func, this, otherArgs); + }; + } + /** * Gets the parent value at `path` of `object`. * @@ -27379,25 +27927,98 @@ * @param {*} data The metadata. * @returns {Function} Returns `func`. */ - var setData = (function() { + var setData = shortOut(baseSetData); + + /** + * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout). + * + * @private + * @param {Function} func The function to delay. + * @param {number} wait The number of milliseconds to delay invocation. + * @returns {number|Object} Returns the timer id or timeout object. + */ + var setTimeout = ctxSetTimeout || function(func, wait) { + return root.setTimeout(func, wait); + }; + + /** + * Sets the `toString` method of `func` to return `string`. + * + * @private + * @param {Function} func The function to modify. + * @param {Function} string The `toString` result. + * @returns {Function} Returns `func`. + */ + var setToString = shortOut(baseSetToString); + + /** + * Sets the `toString` method of `wrapper` to mimic the source of `reference` + * with wrapper details in a comment at the top of the source body. + * + * @private + * @param {Function} wrapper The function to modify. + * @param {Function} reference The reference function. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. + * @returns {Function} Returns `wrapper`. + */ + function setWrapToString(wrapper, reference, bitmask) { + var source = (reference + ''); + return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask))); + } + + /** + * Creates a function that'll short out and invoke `identity` instead + * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN` + * milliseconds. + * + * @private + * @param {Function} func The function to restrict. + * @returns {Function} Returns the new shortable function. + */ + function shortOut(func) { var count = 0, lastCalled = 0; - return function(key, value) { - var stamp = now(), + return function() { + var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); lastCalled = stamp; if (remaining > 0) { if (++count >= HOT_COUNT) { - return key; + return arguments[0]; } } else { count = 0; } - return baseSetData(key, value); + return func.apply(undefined, arguments); }; - }()); + } + + /** + * A specialized version of `_.shuffle` which mutates and sets the size of `array`. + * + * @private + * @param {Array} array The array to shuffle. + * @param {number} [size=array.length] The size of `array`. + * @returns {Array} Returns `array`. + */ + function shuffleSelf(array, size) { + var index = -1, + length = array.length, + lastIndex = length - 1; + + size = size === undefined ? length : size; + while (++index < size) { + var rand = baseRandom(index, lastIndex), + value = array[rand]; + + array[rand] = array[index]; + array[index] = value; + } + array.length = size; + return array; + } /** * Converts `string` to a property path array. @@ -27406,9 +28027,14 @@ * @param {string} string The string to convert. * @returns {Array} Returns the property path array. */ - var stringToPath = memoize(function(string) { + var stringToPath = memoizeCapped(function(string) { + string = toString(string); + var result = []; - toString(string).replace(rePropName, function(match, number, quote, string) { + if (reLeadingDot.test(string)) { + result.push(''); + } + string.replace(rePropName, function(match, number, quote, string) { result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match)); }); return result; @@ -27448,6 +28074,24 @@ return ''; } + /** + * Updates wrapper `details` based on `bitmask` flags. + * + * @private + * @returns {Array} details The details to modify. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. + * @returns {Array} Returns `details`. + */ + function updateWrapDetails(details, bitmask) { + arrayEach(wrapFlags, function(pair) { + var value = '_.' + pair[0]; + if ((bitmask & pair[1]) && !arrayIncludes(details, value)) { + details.push(value); + } + }); + return details.sort(); + } + /** * Creates a clone of `wrapper`. * @@ -27562,24 +28206,27 @@ * // => [1] */ function concat() { - var length = arguments.length, - args = Array(length ? length - 1 : 0), + var length = arguments.length; + if (!length) { + return []; + } + var args = Array(length - 1), array = arguments[0], index = length; while (index--) { args[index - 1] = arguments[index]; } - return length - ? arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1)) - : []; + return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1)); } /** - * Creates an array of unique `array` values not included in the other given - * arrays using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) - * for equality comparisons. The order of result values is determined by the - * order they occur in the first array. + * Creates an array of `array` values not included in the other given arrays + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. The order and references of result values are + * determined by the first array. + * + * **Note:** Unlike `_.pullAll`, this method returns a new array. * * @static * @memberOf _ @@ -27594,7 +28241,7 @@ * _.difference([2, 1], [2, 3]); * // => [1] */ - var difference = rest(function(array, values) { + var difference = baseRest(function(array, values) { return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true)) : []; @@ -27603,8 +28250,11 @@ /** * This method is like `_.difference` except that it accepts `iteratee` which * is invoked for each element of `array` and `values` to generate the criterion - * by which they're compared. Result values are chosen from the first array. - * The iteratee is invoked with one argument: (value). + * by which they're compared. The order and references of result values are + * determined by the first array. The iteratee is invoked with one argument: + * (value). + * + * **Note:** Unlike `_.pullAllBy`, this method returns a new array. * * @static * @memberOf _ @@ -27612,8 +28262,7 @@ * @category Array * @param {Array} array The array to inspect. * @param {...Array} [values] The values to exclude. - * @param {Array|Function|Object|string} [iteratee=_.identity] - * The iteratee invoked per element. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {Array} Returns the new array of filtered values. * @example * @@ -27624,21 +28273,23 @@ * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x'); * // => [{ 'x': 2 }] */ - var differenceBy = rest(function(array, values) { + var differenceBy = baseRest(function(array, values) { var iteratee = last(values); if (isArrayLikeObject(iteratee)) { iteratee = undefined; } return isArrayLikeObject(array) - ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee)) + ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2)) : []; }); /** * This method is like `_.difference` except that it accepts `comparator` - * which is invoked to compare elements of `array` to `values`. Result values - * are chosen from the first array. The comparator is invoked with two arguments: - * (arrVal, othVal). + * which is invoked to compare elements of `array` to `values`. The order and + * references of result values are determined by the first array. The comparator + * is invoked with two arguments: (arrVal, othVal). + * + * **Note:** Unlike `_.pullAllWith`, this method returns a new array. * * @static * @memberOf _ @@ -27655,7 +28306,7 @@ * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual); * // => [{ 'x': 2, 'y': 1 }] */ - var differenceWith = rest(function(array, values) { + var differenceWith = baseRest(function(array, values) { var comparator = last(values); if (isArrayLikeObject(comparator)) { comparator = undefined; @@ -27744,8 +28395,7 @@ * @since 3.0.0 * @category Array * @param {Array} array The array to query. - * @param {Array|Function|Object|string} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {Array} Returns the slice of `array`. * @example * @@ -27786,7 +28436,7 @@ * @since 3.0.0 * @category Array * @param {Array} array The array to query. - * @param {Array|Function|Object|string} [predicate=_.identity] + * @param {Function} [predicate=_.identity] * The function invoked per iteration. * @returns {Array} Returns the slice of `array`. * @example @@ -27867,8 +28517,8 @@ * @memberOf _ * @since 1.1.0 * @category Array - * @param {Array} array The array to search. - * @param {Array|Function|Object|string} [predicate=_.identity] + * @param {Array} array The array to inspect. + * @param {Function} [predicate=_.identity] * The function invoked per iteration. * @param {number} [fromIndex=0] The index to search from. * @returns {number} Returns the index of the found element, else `-1`. @@ -27915,8 +28565,8 @@ * @memberOf _ * @since 2.0.0 * @category Array - * @param {Array} array The array to search. - * @param {Array|Function|Object|string} [predicate=_.identity] + * @param {Array} array The array to inspect. + * @param {Function} [predicate=_.identity] * The function invoked per iteration. * @param {number} [fromIndex=array.length-1] The index to search from. * @returns {number} Returns the index of the found element, else `-1`. @@ -28037,8 +28687,8 @@ * @returns {Object} Returns the new object. * @example * - * _.fromPairs([['fred', 30], ['barney', 40]]); - * // => { 'fred': 30, 'barney': 40 } + * _.fromPairs([['a', 1], ['b', 2]]); + * // => { 'a': 1, 'b': 2 } */ function fromPairs(pairs) { var index = -1, @@ -28076,7 +28726,7 @@ /** * Gets the index at which the first occurrence of `value` is found in `array` - * using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. If `fromIndex` is negative, it's used as the * offset from the end of `array`. * @@ -28084,7 +28734,7 @@ * @memberOf _ * @since 0.1.0 * @category Array - * @param {Array} array The array to search. + * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @param {number} [fromIndex=0] The index to search from. * @returns {number} Returns the index of the matched value, else `-1`. @@ -28124,14 +28774,15 @@ * // => [1, 2] */ function initial(array) { - return dropRight(array, 1); + var length = array ? array.length : 0; + return length ? baseSlice(array, 0, -1) : []; } /** * Creates an array of unique values that are included in all given arrays - * using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) - * for equality comparisons. The order of result values is determined by the - * order they occur in the first array. + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. The order and references of result values are + * determined by the first array. * * @static * @memberOf _ @@ -28144,7 +28795,7 @@ * _.intersection([2, 1], [2, 3]); * // => [2] */ - var intersection = rest(function(arrays) { + var intersection = baseRest(function(arrays) { var mapped = arrayMap(arrays, castArrayLikeObject); return (mapped.length && mapped[0] === arrays[0]) ? baseIntersection(mapped) @@ -28154,16 +28805,16 @@ /** * This method is like `_.intersection` except that it accepts `iteratee` * which is invoked for each element of each `arrays` to generate the criterion - * by which they're compared. Result values are chosen from the first array. - * The iteratee is invoked with one argument: (value). + * by which they're compared. The order and references of result values are + * determined by the first array. The iteratee is invoked with one argument: + * (value). * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {...Array} [arrays] The arrays to inspect. - * @param {Array|Function|Object|string} [iteratee=_.identity] - * The iteratee invoked per element. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {Array} Returns the new array of intersecting values. * @example * @@ -28174,7 +28825,7 @@ * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x'); * // => [{ 'x': 1 }] */ - var intersectionBy = rest(function(arrays) { + var intersectionBy = baseRest(function(arrays) { var iteratee = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject); @@ -28184,15 +28835,15 @@ mapped.pop(); } return (mapped.length && mapped[0] === arrays[0]) - ? baseIntersection(mapped, getIteratee(iteratee)) + ? baseIntersection(mapped, getIteratee(iteratee, 2)) : []; }); /** * This method is like `_.intersection` except that it accepts `comparator` - * which is invoked to compare elements of `arrays`. Result values are chosen - * from the first array. The comparator is invoked with two arguments: - * (arrVal, othVal). + * which is invoked to compare elements of `arrays`. The order and references + * of result values are determined by the first array. The comparator is + * invoked with two arguments: (arrVal, othVal). * * @static * @memberOf _ @@ -28209,7 +28860,7 @@ * _.intersectionWith(objects, others, _.isEqual); * // => [{ 'x': 1, 'y': 2 }] */ - var intersectionWith = rest(function(arrays) { + var intersectionWith = baseRest(function(arrays) { var comparator = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject); @@ -28269,7 +28920,7 @@ * @memberOf _ * @since 0.1.0 * @category Array - * @param {Array} array The array to search. + * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @param {number} [fromIndex=array.length-1] The index to search from. * @returns {number} Returns the index of the matched value, else `-1`. @@ -28290,21 +28941,11 @@ var index = length; if (fromIndex !== undefined) { index = toInteger(fromIndex); - index = ( - index < 0 - ? nativeMax(length + index, 0) - : nativeMin(index, length - 1) - ) + 1; - } - if (value !== value) { - return indexOfNaN(array, index - 1, true); - } - while (index--) { - if (array[index] === value) { - return index; - } + index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1); } - return -1; + return value === value + ? strictLastIndexOf(array, value, index) + : baseFindIndex(array, baseIsNaN, index, true); } /** @@ -28334,7 +28975,7 @@ /** * Removes all given values from `array` using - * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. * * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove` @@ -28355,7 +28996,7 @@ * console.log(array); * // => ['b', 'b'] */ - var pull = rest(pullAll); + var pull = baseRest(pullAll); /** * This method is like `_.pull` except that it accepts an array of values to remove. @@ -28396,7 +29037,7 @@ * @category Array * @param {Array} array The array to modify. * @param {Array} values The values to remove. - * @param {Array|Function|Object|string} [iteratee=_.identity] + * @param {Function} [iteratee=_.identity] * The iteratee invoked per element. * @returns {Array} Returns `array`. * @example @@ -28409,7 +29050,7 @@ */ function pullAllBy(array, values, iteratee) { return (array && array.length && values && values.length) - ? basePullAll(array, values, getIteratee(iteratee)) + ? basePullAll(array, values, getIteratee(iteratee, 2)) : array; } @@ -28466,9 +29107,7 @@ * console.log(pulled); * // => ['b', 'd'] */ - var pullAt = rest(function(array, indexes) { - indexes = baseFlatten(indexes, 1); - + var pullAt = flatRest(function(array, indexes) { var length = array ? array.length : 0, result = baseAt(array, indexes); @@ -28492,7 +29131,7 @@ * @since 2.0.0 * @category Array * @param {Array} array The array to modify. - * @param {Array|Function|Object|string} [predicate=_.identity] + * @param {Function} [predicate=_.identity] * The function invoked per iteration. * @returns {Array} Returns the new array of removed elements. * @example @@ -28620,7 +29259,7 @@ * @category Array * @param {Array} array The sorted array to inspect. * @param {*} value The value to evaluate. - * @param {Array|Function|Object|string} [iteratee=_.identity] + * @param {Function} [iteratee=_.identity] * The iteratee invoked per element. * @returns {number} Returns the index at which `value` should be inserted * into `array`. @@ -28636,7 +29275,7 @@ * // => 0 */ function sortedIndexBy(array, value, iteratee) { - return baseSortedIndexBy(array, value, getIteratee(iteratee)); + return baseSortedIndexBy(array, value, getIteratee(iteratee, 2)); } /** @@ -28647,7 +29286,7 @@ * @memberOf _ * @since 4.0.0 * @category Array - * @param {Array} array The array to search. + * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @returns {number} Returns the index of the matched value, else `-1`. * @example @@ -28699,7 +29338,7 @@ * @category Array * @param {Array} array The sorted array to inspect. * @param {*} value The value to evaluate. - * @param {Array|Function|Object|string} [iteratee=_.identity] + * @param {Function} [iteratee=_.identity] * The iteratee invoked per element. * @returns {number} Returns the index at which `value` should be inserted * into `array`. @@ -28715,7 +29354,7 @@ * // => 1 */ function sortedLastIndexBy(array, value, iteratee) { - return baseSortedIndexBy(array, value, getIteratee(iteratee), true); + return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true); } /** @@ -28726,7 +29365,7 @@ * @memberOf _ * @since 4.0.0 * @category Array - * @param {Array} array The array to search. + * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @returns {number} Returns the index of the matched value, else `-1`. * @example @@ -28784,7 +29423,7 @@ */ function sortedUniqBy(array, iteratee) { return (array && array.length) - ? baseSortedUniq(array, getIteratee(iteratee)) + ? baseSortedUniq(array, getIteratee(iteratee, 2)) : []; } @@ -28803,7 +29442,8 @@ * // => [2, 3] */ function tail(array) { - return drop(array, 1); + var length = array ? array.length : 0; + return length ? baseSlice(array, 1, length) : []; } /** @@ -28884,7 +29524,7 @@ * @since 3.0.0 * @category Array * @param {Array} array The array to query. - * @param {Array|Function|Object|string} [predicate=_.identity] + * @param {Function} [predicate=_.identity] * The function invoked per iteration. * @returns {Array} Returns the slice of `array`. * @example @@ -28926,7 +29566,7 @@ * @since 3.0.0 * @category Array * @param {Array} array The array to query. - * @param {Array|Function|Object|string} [predicate=_.identity] + * @param {Function} [predicate=_.identity] * The function invoked per iteration. * @returns {Array} Returns the slice of `array`. * @example @@ -28960,7 +29600,7 @@ /** * Creates an array of unique values, in order, from all given arrays using - * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. * * @static @@ -28974,14 +29614,15 @@ * _.union([2], [1, 2]); * // => [2, 1] */ - var union = rest(function(arrays) { + var union = baseRest(function(arrays) { return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true)); }); /** * This method is like `_.union` except that it accepts `iteratee` which is * invoked for each element of each `arrays` to generate the criterion by - * which uniqueness is computed. The iteratee is invoked with one argument: + * which uniqueness is computed. Result values are chosen from the first + * array in which the value occurs. The iteratee is invoked with one argument: * (value). * * @static @@ -28989,7 +29630,7 @@ * @since 4.0.0 * @category Array * @param {...Array} [arrays] The arrays to inspect. - * @param {Array|Function|Object|string} [iteratee=_.identity] + * @param {Function} [iteratee=_.identity] * The iteratee invoked per element. * @returns {Array} Returns the new array of combined values. * @example @@ -29001,17 +29642,18 @@ * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x'); * // => [{ 'x': 1 }, { 'x': 2 }] */ - var unionBy = rest(function(arrays) { + var unionBy = baseRest(function(arrays) { var iteratee = last(arrays); if (isArrayLikeObject(iteratee)) { iteratee = undefined; } - return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee)); + return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2)); }); /** * This method is like `_.union` except that it accepts `comparator` which - * is invoked to compare elements of `arrays`. The comparator is invoked + * is invoked to compare elements of `arrays`. Result values are chosen from + * the first array in which the value occurs. The comparator is invoked * with two arguments: (arrVal, othVal). * * @static @@ -29029,7 +29671,7 @@ * _.unionWith(objects, others, _.isEqual); * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }] */ - var unionWith = rest(function(arrays) { + var unionWith = baseRest(function(arrays) { var comparator = last(arrays); if (isArrayLikeObject(comparator)) { comparator = undefined; @@ -29039,9 +29681,10 @@ /** * Creates a duplicate-free version of an array, using - * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) - * for equality comparisons, in which only the first occurrence of each - * element is kept. + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons, in which only the first occurrence of each element + * is kept. The order of result values is determined by the order they occur + * in the array. * * @static * @memberOf _ @@ -29063,14 +29706,16 @@ /** * This method is like `_.uniq` except that it accepts `iteratee` which is * invoked for each element in `array` to generate the criterion by which - * uniqueness is computed. The iteratee is invoked with one argument: (value). + * uniqueness is computed. The order of result values is determined by the + * order they occur in the array. The iteratee is invoked with one argument: + * (value). * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to inspect. - * @param {Array|Function|Object|string} [iteratee=_.identity] + * @param {Function} [iteratee=_.identity] * The iteratee invoked per element. * @returns {Array} Returns the new duplicate free array. * @example @@ -29084,14 +29729,15 @@ */ function uniqBy(array, iteratee) { return (array && array.length) - ? baseUniq(array, getIteratee(iteratee)) + ? baseUniq(array, getIteratee(iteratee, 2)) : []; } /** * This method is like `_.uniq` except that it accepts `comparator` which - * is invoked to compare elements of `array`. The comparator is invoked with - * two arguments: (arrVal, othVal). + * is invoked to compare elements of `array`. The order of result values is + * determined by the order they occur in the array.The comparator is invoked + * with two arguments: (arrVal, othVal). * * @static * @memberOf _ @@ -29126,11 +29772,11 @@ * @returns {Array} Returns the new array of regrouped elements. * @example * - * var zipped = _.zip(['fred', 'barney'], [30, 40], [true, false]); - * // => [['fred', 30, true], ['barney', 40, false]] + * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]); + * // => [['a', 1, true], ['b', 2, false]] * * _.unzip(zipped); - * // => [['fred', 'barney'], [30, 40], [true, false]] + * // => [['a', 'b'], [1, 2], [true, false]] */ function unzip(array) { if (!(array && array.length)) { @@ -29184,9 +29830,11 @@ /** * Creates an array excluding all given values using - * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. * + * **Note:** Unlike `_.pull`, this method returns a new array. + * * @static * @memberOf _ * @since 0.1.0 @@ -29200,7 +29848,7 @@ * _.without([2, 1, 2, 3], 1, 2); * // => [3] */ - var without = rest(function(array, values) { + var without = baseRest(function(array, values) { return isArrayLikeObject(array) ? baseDifference(array, values) : []; @@ -29224,22 +29872,23 @@ * _.xor([2, 1], [2, 3]); * // => [1, 3] */ - var xor = rest(function(arrays) { + var xor = baseRest(function(arrays) { return baseXor(arrayFilter(arrays, isArrayLikeObject)); }); /** * This method is like `_.xor` except that it accepts `iteratee` which is * invoked for each element of each `arrays` to generate the criterion by - * which by which they're compared. The iteratee is invoked with one argument: - * (value). + * which by which they're compared. The order of result values is determined + * by the order they occur in the arrays. The iteratee is invoked with one + * argument: (value). * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {...Array} [arrays] The arrays to inspect. - * @param {Array|Function|Object|string} [iteratee=_.identity] + * @param {Function} [iteratee=_.identity] * The iteratee invoked per element. * @returns {Array} Returns the new array of filtered values. * @example @@ -29251,18 +29900,19 @@ * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x'); * // => [{ 'x': 2 }] */ - var xorBy = rest(function(arrays) { + var xorBy = baseRest(function(arrays) { var iteratee = last(arrays); if (isArrayLikeObject(iteratee)) { iteratee = undefined; } - return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee)); + return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2)); }); /** * This method is like `_.xor` except that it accepts `comparator` which is - * invoked to compare elements of `arrays`. The comparator is invoked with - * two arguments: (arrVal, othVal). + * invoked to compare elements of `arrays`. The order of result values is + * determined by the order they occur in the arrays. The comparator is invoked + * with two arguments: (arrVal, othVal). * * @static * @memberOf _ @@ -29279,7 +29929,7 @@ * _.xorWith(objects, others, _.isEqual); * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }] */ - var xorWith = rest(function(arrays) { + var xorWith = baseRest(function(arrays) { var comparator = last(arrays); if (isArrayLikeObject(comparator)) { comparator = undefined; @@ -29300,10 +29950,10 @@ * @returns {Array} Returns the new array of grouped elements. * @example * - * _.zip(['fred', 'barney'], [30, 40], [true, false]); - * // => [['fred', 30, true], ['barney', 40, false]] + * _.zip(['a', 'b'], [1, 2], [true, false]); + * // => [['a', 1, true], ['b', 2, false]] */ - var zip = rest(unzip); + var zip = baseRest(unzip); /** * This method is like `_.fromPairs` except that it accepts two arrays, @@ -29363,7 +30013,7 @@ * }); * // => [111, 222] */ - var zipWith = rest(function(arrays) { + var zipWith = baseRest(function(arrays) { var length = arrays.length, iteratee = length > 1 ? arrays[length - 1] : undefined; @@ -29479,8 +30129,7 @@ * _(object).at(['a[0].b.c', 'a[1]']).value(); * // => [3, 4] */ - var wrapperAt = rest(function(paths) { - paths = baseFlatten(paths, 1); + var wrapperAt = flatRest(function(paths) { var length = paths.length, start = length ? paths[0] : 0, value = this.__wrapped__, @@ -29732,7 +30381,7 @@ * @since 0.5.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Array|Function|Object|string} [iteratee=_.identity] + * @param {Function} [iteratee=_.identity] * The iteratee to transform keys. * @returns {Object} Returns the composed aggregate object. * @example @@ -29745,7 +30394,11 @@ * // => { '3': 2, '5': 1 } */ var countBy = createAggregator(function(result, value, key) { - hasOwnProperty.call(result, key) ? ++result[key] : (result[key] = 1); + if (hasOwnProperty.call(result, key)) { + ++result[key]; + } else { + baseAssignValue(result, key, 1); + } }); /** @@ -29753,12 +30406,17 @@ * Iteration is stopped once `predicate` returns falsey. The predicate is * invoked with three arguments: (value, index|key, collection). * + * **Note:** This method returns `true` for + * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because + * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of + * elements of empty collections. + * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Array|Function|Object|string} [predicate=_.identity] + * @param {Function} [predicate=_.identity] * The function invoked per iteration. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. * @returns {boolean} Returns `true` if all elements pass the predicate check, @@ -29798,12 +30456,14 @@ * `predicate` returns truthy for. The predicate is invoked with three * arguments: (value, index|key, collection). * + * **Note:** Unlike `_.remove`, this method returns a new array. + * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Array|Function|Object|string} [predicate=_.identity] + * @param {Function} [predicate=_.identity] * The function invoked per iteration. * @returns {Array} Returns the new filtered array. * @see _.reject @@ -29843,8 +30503,8 @@ * @memberOf _ * @since 0.1.0 * @category Collection - * @param {Array|Object} collection The collection to search. - * @param {Array|Function|Object|string} [predicate=_.identity] + * @param {Array|Object} collection The collection to inspect. + * @param {Function} [predicate=_.identity] * The function invoked per iteration. * @param {number} [fromIndex=0] The index to search from. * @returns {*} Returns the matched element, else `undefined`. @@ -29881,8 +30541,8 @@ * @memberOf _ * @since 2.0.0 * @category Collection - * @param {Array|Object} collection The collection to search. - * @param {Array|Function|Object|string} [predicate=_.identity] + * @param {Array|Object} collection The collection to inspect. + * @param {Function} [predicate=_.identity] * The function invoked per iteration. * @param {number} [fromIndex=collection.length-1] The index to search from. * @returns {*} Returns the matched element, else `undefined`. @@ -29905,7 +30565,7 @@ * @since 4.0.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Array|Function|Object|string} [iteratee=_.identity] + * @param {Function} [iteratee=_.identity] * The function invoked per iteration. * @returns {Array} Returns the new flattened array. * @example @@ -29930,7 +30590,7 @@ * @since 4.7.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Array|Function|Object|string} [iteratee=_.identity] + * @param {Function} [iteratee=_.identity] * The function invoked per iteration. * @returns {Array} Returns the new flattened array. * @example @@ -29955,7 +30615,7 @@ * @since 4.7.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Array|Function|Object|string} [iteratee=_.identity] + * @param {Function} [iteratee=_.identity] * The function invoked per iteration. * @param {number} [depth=1] The maximum recursion depth. * @returns {Array} Returns the new flattened array. @@ -29993,7 +30653,7 @@ * @see _.forEachRight * @example * - * _([1, 2]).forEach(function(value) { + * _.forEach([1, 2], function(value) { * console.log(value); * }); * // => Logs `1` then `2`. @@ -30045,7 +30705,7 @@ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Array|Function|Object|string} [iteratee=_.identity] + * @param {Function} [iteratee=_.identity] * The iteratee to transform keys. * @returns {Object} Returns the composed aggregate object. * @example @@ -30061,14 +30721,14 @@ if (hasOwnProperty.call(result, key)) { result[key].push(value); } else { - result[key] = [value]; + baseAssignValue(result, key, [value]); } }); /** * Checks if `value` is in `collection`. If `collection` is a string, it's * checked for a substring of `value`, otherwise - * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * is used for equality comparisons. If `fromIndex` is negative, it's used as * the offset from the end of `collection`. * @@ -30076,7 +30736,7 @@ * @memberOf _ * @since 0.1.0 * @category Collection - * @param {Array|Object|string} collection The collection to search. + * @param {Array|Object|string} collection The collection to inspect. * @param {*} value The value to search for. * @param {number} [fromIndex=0] The index to search from. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`. @@ -30089,10 +30749,10 @@ * _.includes([1, 2, 3], 1, 2); * // => false * - * _.includes({ 'user': 'fred', 'age': 40 }, 'fred'); + * _.includes({ 'a': 1, 'b': 2 }, 1); * // => true * - * _.includes('pebbles', 'eb'); + * _.includes('abcd', 'bc'); * // => true */ function includes(collection, value, fromIndex, guard) { @@ -30111,8 +30771,8 @@ /** * Invokes the method at `path` of each element in `collection`, returning * an array of the results of each invoked method. Any additional arguments - * are provided to each invoked method. If `methodName` is a function, it's - * invoked for and `this` bound to, each element in `collection`. + * are provided to each invoked method. If `path` is a function, it's invoked + * for, and `this` bound to, each element in `collection`. * * @static * @memberOf _ @@ -30131,7 +30791,7 @@ * _.invokeMap([123, 456], String.prototype.split, ''); * // => [['1', '2', '3'], ['4', '5', '6']] */ - var invokeMap = rest(function(collection, path, args) { + var invokeMap = baseRest(function(collection, path, args) { var index = -1, isFunc = typeof path == 'function', isProp = isKey(path), @@ -30155,7 +30815,7 @@ * @since 4.0.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Array|Function|Object|string} [iteratee=_.identity] + * @param {Function} [iteratee=_.identity] * The iteratee to transform keys. * @returns {Object} Returns the composed aggregate object. * @example @@ -30174,7 +30834,7 @@ * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } } */ var keyBy = createAggregator(function(result, value, key) { - result[key] = value; + baseAssignValue(result, key, value); }); /** @@ -30196,8 +30856,7 @@ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Array|Function|Object|string} [iteratee=_.identity] - * The function invoked per iteration. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @returns {Array} Returns the new mapped array. * @example * @@ -30279,8 +30938,7 @@ * @since 3.0.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Array|Function|Object|string} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {Array} Returns the array of grouped elements. * @example * @@ -30391,8 +31049,7 @@ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Array|Function|Object|string} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {Array} Returns the new filtered array. * @see _.filter * @example @@ -30419,10 +31076,7 @@ */ function reject(collection, predicate) { var func = isArray(collection) ? arrayFilter : baseFilter; - predicate = getIteratee(predicate, 3); - return func(collection, function(value, index, collection) { - return !predicate(value, index, collection); - }); + return func(collection, negate(getIteratee(predicate, 3))); } /** @@ -30440,10 +31094,8 @@ * // => 2 */ function sample(collection) { - var array = isArrayLike(collection) ? collection : values(collection), - length = array.length; - - return length > 0 ? array[baseRandom(0, length - 1)] : undefined; + var func = isArray(collection) ? arraySample : baseSample; + return func(collection); } /** @@ -30467,25 +31119,13 @@ * // => [2, 3, 1] */ function sampleSize(collection, n, guard) { - var index = -1, - result = toArray(collection), - length = result.length, - lastIndex = length - 1; - if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) { n = 1; } else { - n = baseClamp(toInteger(n), 0, length); - } - while (++index < n) { - var rand = baseRandom(index, lastIndex), - value = result[rand]; - - result[rand] = result[index]; - result[index] = value; + n = toInteger(n); } - result.length = n; - return result; + var func = isArray(collection) ? arraySampleSize : baseSampleSize; + return func(collection, n); } /** @@ -30504,7 +31144,8 @@ * // => [4, 1, 3, 2] */ function shuffle(collection) { - return sampleSize(collection, MAX_ARRAY_LENGTH); + var func = isArray(collection) ? arrayShuffle : baseShuffle; + return func(collection); } /** @@ -30515,7 +31156,7 @@ * @memberOf _ * @since 0.1.0 * @category Collection - * @param {Array|Object} collection The collection to inspect. + * @param {Array|Object|string} collection The collection to inspect. * @returns {number} Returns the collection size. * @example * @@ -30533,16 +31174,13 @@ return 0; } if (isArrayLike(collection)) { - var result = collection.length; - return (result && isString(collection)) ? stringSize(collection) : result; + return isString(collection) ? stringSize(collection) : collection.length; } - if (isObjectLike(collection)) { - var tag = getTag(collection); - if (tag == mapTag || tag == setTag) { - return collection.size; - } + var tag = getTag(collection); + if (tag == mapTag || tag == setTag) { + return collection.size; } - return keys(collection).length; + return baseKeys(collection).length; } /** @@ -30555,8 +31193,7 @@ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Array|Function|Object|string} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. * @returns {boolean} Returns `true` if any element passes the predicate check, * else `false`. @@ -30601,8 +31238,8 @@ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {...(Array|Array[]|Function|Function[]|Object|Object[]|string|string[])} - * [iteratees=[_.identity]] The iteratees to sort by. + * @param {...(Function|Function[])} [iteratees=[_.identity]] + * The iteratees to sort by. * @returns {Array} Returns the new sorted array. * @example * @@ -30613,18 +31250,13 @@ * { 'user': 'barney', 'age': 34 } * ]; * - * _.sortBy(users, function(o) { return o.user; }); + * _.sortBy(users, [function(o) { return o.user; }]); * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]] * * _.sortBy(users, ['user', 'age']); * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]] - * - * _.sortBy(users, 'user', function(o) { - * return Math.floor(o.age / 10); - * }); - * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]] */ - var sortBy = rest(function(collection, iteratees) { + var sortBy = baseRest(function(collection, iteratees) { if (collection == null) { return []; } @@ -30634,11 +31266,7 @@ } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) { iteratees = [iteratees[0]]; } - iteratees = (iteratees.length == 1 && isArray(iteratees[0])) - ? iteratees[0] - : baseFlatten(iteratees, 1, isFlattenableIteratee); - - return baseOrderBy(collection, iteratees, []); + return baseOrderBy(collection, baseFlatten(iteratees, 1), []); }); /*------------------------------------------------------------------------*/ @@ -30659,9 +31287,9 @@ * }, _.now()); * // => Logs the number of milliseconds it took for the deferred invocation. */ - function now() { - return Date.now(); - } + var now = ctxNow || function() { + return root.Date.now(); + }; /*------------------------------------------------------------------------*/ @@ -30721,7 +31349,7 @@ function ary(func, n, guard) { n = guard ? undefined : n; n = (func && n == null) ? func.length : n; - return createWrapper(func, ARY_FLAG, undefined, undefined, undefined, undefined, n); + return createWrap(func, ARY_FLAG, undefined, undefined, undefined, undefined, n); } /** @@ -30739,7 +31367,7 @@ * @example * * jQuery(element).on('click', _.before(5, addContactToList)); - * // => allows adding up to 4 contacts to the list + * // => Allows adding up to 4 contacts to the list. */ function before(n, func) { var result; @@ -30778,9 +31406,9 @@ * @returns {Function} Returns the new bound function. * @example * - * var greet = function(greeting, punctuation) { + * function greet(greeting, punctuation) { * return greeting + ' ' + this.user + punctuation; - * }; + * } * * var object = { 'user': 'fred' }; * @@ -30793,13 +31421,13 @@ * bound('hi'); * // => 'hi fred!' */ - var bind = rest(function(func, thisArg, partials) { + var bind = baseRest(function(func, thisArg, partials) { var bitmask = BIND_FLAG; if (partials.length) { var holders = replaceHolders(partials, getHolder(bind)); bitmask |= PARTIAL_FLAG; } - return createWrapper(func, bitmask, thisArg, partials, holders); + return createWrap(func, bitmask, thisArg, partials, holders); }); /** @@ -30847,13 +31475,13 @@ * bound('hi'); * // => 'hiya fred!' */ - var bindKey = rest(function(object, key, partials) { + var bindKey = baseRest(function(object, key, partials) { var bitmask = BIND_FLAG | BIND_KEY_FLAG; if (partials.length) { var holders = replaceHolders(partials, getHolder(bindKey)); bitmask |= PARTIAL_FLAG; } - return createWrapper(key, bitmask, object, partials, holders); + return createWrap(key, bitmask, object, partials, holders); }); /** @@ -30899,7 +31527,7 @@ */ function curry(func, arity, guard) { arity = guard ? undefined : arity; - var result = createWrapper(func, CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity); + var result = createWrap(func, CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity); result.placeholder = curry.placeholder; return result; } @@ -30944,7 +31572,7 @@ */ function curryRight(func, arity, guard) { arity = guard ? undefined : arity; - var result = createWrapper(func, CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity); + var result = createWrap(func, CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity); result.placeholder = curryRight.placeholder; return result; } @@ -30954,14 +31582,18 @@ * milliseconds have elapsed since the last time the debounced function was * invoked. The debounced function comes with a `cancel` method to cancel * delayed `func` invocations and a `flush` method to immediately invoke them. - * Provide an options object to indicate whether `func` should be invoked on - * the leading and/or trailing edge of the `wait` timeout. The `func` is invoked - * with the last arguments provided to the debounced function. Subsequent calls - * to the debounced function return the result of the last `func` invocation. + * Provide `options` to indicate whether `func` should be invoked on the + * leading and/or trailing edge of the `wait` timeout. The `func` is invoked + * with the last arguments provided to the debounced function. Subsequent + * calls to the debounced function return the result of the last `func` + * invocation. + * + * **Note:** If `leading` and `trailing` options are `true`, `func` is + * invoked on the trailing edge of the timeout only if the debounced function + * is invoked more than once during the `wait` timeout. * - * **Note:** If `leading` and `trailing` options are `true`, `func` is invoked - * on the trailing edge of the timeout only if the debounced function is - * invoked more than once during the `wait` timeout. + * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred + * until to the next tick, similar to `setTimeout` with a timeout of `0`. * * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/) * for details over the differences between `_.debounce` and `_.throttle`. @@ -31082,6 +31714,9 @@ } function cancel() { + if (timerId !== undefined) { + clearTimeout(timerId); + } lastInvokeTime = 0; lastArgs = lastCallTime = lastThis = timerId = undefined; } @@ -31134,9 +31769,9 @@ * _.defer(function(text) { * console.log(text); * }, 'deferred'); - * // => Logs 'deferred' after one or more milliseconds. + * // => Logs 'deferred' after one millisecond. */ - var defer = rest(function(func, args) { + var defer = baseRest(function(func, args) { return baseDelay(func, 1, args); }); @@ -31159,7 +31794,7 @@ * }, 1000, 'later'); * // => Logs 'later' after one second. */ - var delay = rest(function(func, wait, args) { + var delay = baseRest(function(func, wait, args) { return baseDelay(func, toNumber(wait) || 0, args); }); @@ -31182,7 +31817,7 @@ * // => ['d', 'c', 'b', 'a'] */ function flip(func) { - return createWrapper(func, FLIP_FLAG); + return createWrap(func, FLIP_FLAG); } /** @@ -31195,7 +31830,7 @@ * **Note:** The cache is exposed as the `cache` property on the memoized * function. Its creation may be customized by replacing the `_.memoize.Cache` * constructor with one whose instances implement the - * [`Map`](http://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-map-prototype-object) + * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) * method interface of `delete`, `get`, `has`, and `set`. * * @static @@ -31242,14 +31877,14 @@ return cache.get(key); } var result = func.apply(this, args); - memoized.cache = cache.set(key, result); + memoized.cache = cache.set(key, result) || cache; return result; }; memoized.cache = new (memoize.Cache || MapCache); return memoized; } - // Assign cache to `_.memoize`. + // Expose `MapCache`. memoize.Cache = MapCache; /** @@ -31277,7 +31912,14 @@ throw new TypeError(FUNC_ERROR_TEXT); } return function() { - return !predicate.apply(this, arguments); + var args = arguments; + switch (args.length) { + case 0: return !predicate.call(this); + case 1: return !predicate.call(this, args[0]); + case 2: return !predicate.call(this, args[0], args[1]); + case 3: return !predicate.call(this, args[0], args[1], args[2]); + } + return !predicate.apply(this, args); }; } @@ -31297,23 +31939,22 @@ * var initialize = _.once(createApplication); * initialize(); * initialize(); - * // `initialize` invokes `createApplication` once + * // => `createApplication` is invoked once */ function once(func) { return before(2, func); } /** - * Creates a function that invokes `func` with arguments transformed by - * corresponding `transforms`. + * Creates a function that invokes `func` with its arguments transformed. * * @static * @since 4.0.0 * @memberOf _ * @category Function * @param {Function} func The function to wrap. - * @param {...(Array|Array[]|Function|Function[]|Object|Object[]|string|string[])} - * [transforms[_.identity]] The functions to transform. + * @param {...(Function|Function[])} [transforms=[_.identity]] + * The argument transforms. * @returns {Function} Returns the new function. * @example * @@ -31335,13 +31976,13 @@ * func(10, 5); * // => [100, 10] */ - var overArgs = rest(function(func, transforms) { + var overArgs = castRest(function(func, transforms) { transforms = (transforms.length == 1 && isArray(transforms[0])) ? arrayMap(transforms[0], baseUnary(getIteratee())) - : arrayMap(baseFlatten(transforms, 1, isFlattenableIteratee), baseUnary(getIteratee())); + : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee())); var funcsLength = transforms.length; - return rest(function(args) { + return baseRest(function(args) { var index = -1, length = nativeMin(args.length, funcsLength); @@ -31372,9 +32013,9 @@ * @returns {Function} Returns the new partially applied function. * @example * - * var greet = function(greeting, name) { + * function greet(greeting, name) { * return greeting + ' ' + name; - * }; + * } * * var sayHelloTo = _.partial(greet, 'hello'); * sayHelloTo('fred'); @@ -31385,9 +32026,9 @@ * greetFred('hi'); * // => 'hi fred' */ - var partial = rest(function(func, partials) { + var partial = baseRest(function(func, partials) { var holders = replaceHolders(partials, getHolder(partial)); - return createWrapper(func, PARTIAL_FLAG, undefined, partials, holders); + return createWrap(func, PARTIAL_FLAG, undefined, partials, holders); }); /** @@ -31409,9 +32050,9 @@ * @returns {Function} Returns the new partially applied function. * @example * - * var greet = function(greeting, name) { + * function greet(greeting, name) { * return greeting + ' ' + name; - * }; + * } * * var greetFred = _.partialRight(greet, 'fred'); * greetFred('hi'); @@ -31422,9 +32063,9 @@ * sayHelloTo('fred'); * // => 'hello fred' */ - var partialRight = rest(function(func, partials) { + var partialRight = baseRest(function(func, partials) { var holders = replaceHolders(partials, getHolder(partialRight)); - return createWrapper(func, PARTIAL_RIGHT_FLAG, undefined, partials, holders); + return createWrap(func, PARTIAL_RIGHT_FLAG, undefined, partials, holders); }); /** @@ -31449,8 +32090,8 @@ * rearged('b', 'c', 'a') * // => ['a', 'b', 'c'] */ - var rearg = rest(function(func, indexes) { - return createWrapper(func, REARG_FLAG, undefined, undefined, undefined, baseFlatten(indexes, 1)); + var rearg = flatRest(function(func, indexes) { + return createWrap(func, REARG_FLAG, undefined, undefined, undefined, indexes); }); /** @@ -31482,35 +32123,14 @@ if (typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } - start = nativeMax(start === undefined ? (func.length - 1) : toInteger(start), 0); - return function() { - var args = arguments, - index = -1, - length = nativeMax(args.length - start, 0), - array = Array(length); - - while (++index < length) { - array[index] = args[start + index]; - } - switch (start) { - case 0: return func.call(this, array); - case 1: return func.call(this, args[0], array); - case 2: return func.call(this, args[0], args[1], array); - } - var otherArgs = Array(start + 1); - index = -1; - while (++index < start) { - otherArgs[index] = args[index]; - } - otherArgs[start] = array; - return apply(func, this, otherArgs); - }; + start = start === undefined ? start : toInteger(start); + return baseRest(func, start); } /** * Creates a function that invokes `func` with the `this` binding of the * create function and an array of arguments much like - * [`Function#apply`](http://www.ecma-international.org/ecma-262/6.0/#sec-function.prototype.apply). + * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply). * * **Note:** This method is based on the * [spread operator](https://mdn.io/spread_operator). @@ -31546,7 +32166,7 @@ throw new TypeError(FUNC_ERROR_TEXT); } start = start === undefined ? 0 : nativeMax(toInteger(start), 0); - return rest(function(args) { + return baseRest(function(args) { var array = args[start], otherArgs = castSlice(args, 0, start); @@ -31561,8 +32181,8 @@ * Creates a throttled function that only invokes `func` at most once per * every `wait` milliseconds. The throttled function comes with a `cancel` * method to cancel delayed `func` invocations and a `flush` method to - * immediately invoke them. Provide an options object to indicate whether - * `func` should be invoked on the leading and/or trailing edge of the `wait` + * immediately invoke them. Provide `options` to indicate whether `func` + * should be invoked on the leading and/or trailing edge of the `wait` * timeout. The `func` is invoked with the last arguments provided to the * throttled function. Subsequent calls to the throttled function return the * result of the last `func` invocation. @@ -31571,6 +32191,9 @@ * invoked on the trailing edge of the timeout only if the throttled function * is invoked more than once during the `wait` timeout. * + * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred + * until to the next tick, similar to `setTimeout` with a timeout of `0`. + * * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/) * for details over the differences between `_.throttle` and `_.debounce`. * @@ -31636,10 +32259,10 @@ } /** - * Creates a function that provides `value` to the wrapper function as its - * first argument. Any additional arguments provided to the function are - * appended to those provided to the wrapper function. The wrapper is invoked - * with the `this` binding of the created function. + * Creates a function that provides `value` to `wrapper` as its first + * argument. Any additional arguments provided to the function are appended + * to those provided to the `wrapper`. The wrapper is invoked with the `this` + * binding of the created function. * * @static * @memberOf _ @@ -31824,9 +32447,37 @@ return baseClone(value, true, true, customizer); } + /** + * Checks if `object` conforms to `source` by invoking the predicate + * properties of `source` with the corresponding property values of `object`. + * + * **Note:** This method is equivalent to `_.conforms` when `source` is + * partially applied. + * + * @static + * @memberOf _ + * @since 4.14.0 + * @category Lang + * @param {Object} object The object to inspect. + * @param {Object} source The object of property predicates to conform to. + * @returns {boolean} Returns `true` if `object` conforms, else `false`. + * @example + * + * var object = { 'a': 1, 'b': 2 }; + * + * _.conformsTo(object, { 'b': function(n) { return n > 1; } }); + * // => true + * + * _.conformsTo(object, { 'b': function(n) { return n > 2; } }); + * // => false + */ + function conformsTo(object, source) { + return source == null || baseConformsTo(object, source, keys(source)); + } + /** * Performs a - * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * comparison between two values to determine if they are equivalent. * * @static @@ -31838,8 +32489,8 @@ * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * - * var object = { 'user': 'fred' }; - * var other = { 'user': 'fred' }; + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; * * _.eq(object, object); * // => true @@ -31920,7 +32571,7 @@ * @since 0.1.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, + * @returns {boolean} Returns `true` if `value` is an `arguments` object, * else `false`. * @example * @@ -31930,11 +32581,10 @@ * _.isArguments([1, 2, 3]); * // => false */ - function isArguments(value) { - // Safari 8.1 incorrectly makes `arguments.callee` enumerable in strict mode. - return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') && - (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag); - } + var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { + return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && + !propertyIsEnumerable.call(value, 'callee'); + }; /** * Checks if `value` is classified as an `Array` object. @@ -31942,11 +32592,9 @@ * @static * @memberOf _ * @since 0.1.0 - * @type {Function} * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is an array, else `false`. * @example * * _.isArray([1, 2, 3]); @@ -31971,8 +32619,7 @@ * @since 4.3.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`. * @example * * _.isArrayBuffer(new ArrayBuffer(2)); @@ -31981,9 +32628,7 @@ * _.isArrayBuffer(new Array(2)); * // => false */ - function isArrayBuffer(value) { - return isObjectLike(value) && objectToString.call(value) == arrayBufferTag; - } + var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer; /** * Checks if `value` is array-like. A value is considered array-like if it's @@ -32011,7 +32656,7 @@ * // => false */ function isArrayLike(value) { - return value != null && isLength(getLength(value)) && !isFunction(value); + return value != null && isLength(value.length) && !isFunction(value); } /** @@ -32051,8 +32696,7 @@ * @since 0.1.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a boolean, else `false`. * @example * * _.isBoolean(false); @@ -32083,9 +32727,7 @@ * _.isBuffer(new Uint8Array(2)); * // => false */ - var isBuffer = !Buffer ? stubFalse : function(value) { - return value instanceof Buffer; - }; + var isBuffer = nativeIsBuffer || stubFalse; /** * Checks if `value` is classified as a `Date` object. @@ -32095,8 +32737,7 @@ * @since 0.1.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a date object, else `false`. * @example * * _.isDate(new Date); @@ -32105,9 +32746,7 @@ * _.isDate('Mon April 23 2012'); * // => false */ - function isDate(value) { - return isObjectLike(value) && objectToString.call(value) == dateTag; - } + var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate; /** * Checks if `value` is likely a DOM element. @@ -32117,8 +32756,7 @@ * @since 0.1.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a DOM element, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`. * @example * * _.isElement(document.body); @@ -32128,7 +32766,7 @@ * // => false */ function isElement(value) { - return !!value && value.nodeType === 1 && isObjectLike(value) && !isPlainObject(value); + return value != null && value.nodeType === 1 && isObjectLike(value) && !isPlainObject(value); } /** @@ -32166,22 +32804,23 @@ */ function isEmpty(value) { if (isArrayLike(value) && - (isArray(value) || isString(value) || isFunction(value.splice) || - isArguments(value) || isBuffer(value))) { + (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' || + isBuffer(value) || isTypedArray(value) || isArguments(value))) { return !value.length; } - if (isObjectLike(value)) { - var tag = getTag(value); - if (tag == mapTag || tag == setTag) { - return !value.size; - } + var tag = getTag(value); + if (tag == mapTag || tag == setTag) { + return !value.size; + } + if (isPrototype(value)) { + return !baseKeys(value).length; } for (var key in value) { if (hasOwnProperty.call(value, key)) { return false; } } - return !(nonEnumShadows && keys(value).length); + return true; } /** @@ -32200,12 +32839,11 @@ * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. - * @returns {boolean} Returns `true` if the values are equivalent, - * else `false`. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * - * var object = { 'user': 'fred' }; - * var other = { 'user': 'fred' }; + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; * * _.isEqual(object, other); * // => true @@ -32230,8 +32868,7 @@ * @param {*} value The value to compare. * @param {*} other The other value to compare. * @param {Function} [customizer] The function to customize comparisons. - * @returns {boolean} Returns `true` if the values are equivalent, - * else `false`. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * * function isGreeting(value) { @@ -32265,8 +32902,7 @@ * @since 3.0.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an error object, - * else `false`. + * @returns {boolean} Returns `true` if `value` is an error object, else `false`. * @example * * _.isError(new Error); @@ -32294,8 +32930,7 @@ * @since 0.1.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a finite number, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a finite number, else `false`. * @example * * _.isFinite(3); @@ -32322,8 +32957,7 @@ * @since 0.1.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a function, else `false`. * @example * * _.isFunction(_); @@ -32334,10 +32968,9 @@ */ function isFunction(value) { // The use of `Object#toString` avoids issues with the `typeof` operator - // in Safari 8 which returns 'object' for typed array and weak map constructors, - // and PhantomJS 1.9 which returns 'function' for `NodeList` instances. + // in Safari 9 which returns 'object' for typed array and other constructors. var tag = isObject(value) ? objectToString.call(value) : ''; - return tag == funcTag || tag == genTag; + return tag == funcTag || tag == genTag || tag == proxyTag; } /** @@ -32373,16 +33006,15 @@ /** * Checks if `value` is a valid array-like length. * - * **Note:** This function is loosely based on - * [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength). + * **Note:** This method is loosely based on + * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a valid length, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. * @example * * _.isLength(3); @@ -32404,7 +33036,7 @@ /** * Checks if `value` is the - * [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types) + * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * * @static @@ -32429,7 +33061,7 @@ */ function isObject(value) { var type = typeof value; - return !!value && (type == 'object' || type == 'function'); + return value != null && (type == 'object' || type == 'function'); } /** @@ -32457,7 +33089,7 @@ * // => false */ function isObjectLike(value) { - return !!value && typeof value == 'object'; + return value != null && typeof value == 'object'; } /** @@ -32468,8 +33100,7 @@ * @since 4.3.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a map, else `false`. * @example * * _.isMap(new Map); @@ -32478,16 +33109,18 @@ * _.isMap(new WeakMap); * // => false */ - function isMap(value) { - return isObjectLike(value) && getTag(value) == mapTag; - } + var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; /** * Performs a partial deep comparison between `object` and `source` to - * determine if `object` contains equivalent property values. This method is - * equivalent to a `_.matches` function when `source` is partially applied. + * determine if `object` contains equivalent property values. + * + * **Note:** This method is equivalent to `_.matches` when `source` is + * partially applied. * - * **Note:** This method supports comparing the same values as `_.isEqual`. + * Partial comparisons will match empty array and empty object `source` + * values against any array or object value, respectively. See `_.isEqual` + * for a list of supported value comparisons. * * @static * @memberOf _ @@ -32498,12 +33131,12 @@ * @returns {boolean} Returns `true` if `object` is a match, else `false`. * @example * - * var object = { 'user': 'fred', 'age': 40 }; + * var object = { 'a': 1, 'b': 2 }; * - * _.isMatch(object, { 'age': 40 }); + * _.isMatch(object, { 'b': 2 }); * // => true * - * _.isMatch(object, { 'age': 36 }); + * _.isMatch(object, { 'b': 1 }); * // => false */ function isMatch(object, source) { @@ -32585,13 +33218,13 @@ /** * Checks if `value` is a pristine native function. * - * **Note:** This method can't reliably detect native functions in the - * presence of the `core-js` package because `core-js` circumvents this kind - * of detection. Despite multiple requests, the `core-js` maintainer has made - * it clear: any attempt to fix the detection will be obstructed. As a result, - * we're left with little choice but to throw an error. Unfortunately, this - * also affects packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill), - * which rely on `core-js`. + * **Note:** This method can't reliably detect native functions in the presence + * of the core-js package because core-js circumvents this kind of detection. + * Despite multiple requests, the core-js maintainer has made it clear: any + * attempt to fix the detection will be obstructed. As a result, we're left + * with little choice but to throw an error. Unfortunately, this also affects + * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill), + * which rely on core-js. * * @static * @memberOf _ @@ -32610,7 +33243,7 @@ */ function isNative(value) { if (isMaskable(value)) { - throw new Error('This method is not supported with `core-js`. Try https://github.com/es-shims.'); + throw new Error(CORE_ERROR_TEXT); } return baseIsNative(value); } @@ -32671,8 +33304,7 @@ * @since 0.1.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a number, else `false`. * @example * * _.isNumber(3); @@ -32701,8 +33333,7 @@ * @since 0.8.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a plain object, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. * @example * * function Foo() { @@ -32722,8 +33353,7 @@ * // => true */ function isPlainObject(value) { - if (!isObjectLike(value) || - objectToString.call(value) != objectTag || isHostObject(value)) { + if (!isObjectLike(value) || objectToString.call(value) != objectTag) { return false; } var proto = getPrototype(value); @@ -32743,8 +33373,7 @@ * @since 0.1.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a regexp, else `false`. * @example * * _.isRegExp(/abc/); @@ -32753,9 +33382,7 @@ * _.isRegExp('/abc/'); * // => false */ - function isRegExp(value) { - return isObject(value) && objectToString.call(value) == regexpTag; - } + var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp; /** * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754 @@ -32769,8 +33396,7 @@ * @since 4.0.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a safe integer, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`. * @example * * _.isSafeInteger(3); @@ -32797,8 +33423,7 @@ * @since 4.3.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a set, else `false`. * @example * * _.isSet(new Set); @@ -32807,9 +33432,7 @@ * _.isSet(new WeakSet); * // => false */ - function isSet(value) { - return isObjectLike(value) && getTag(value) == setTag; - } + var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; /** * Checks if `value` is classified as a `String` primitive or object. @@ -32819,8 +33442,7 @@ * @memberOf _ * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a string, else `false`. * @example * * _.isString('abc'); @@ -32842,8 +33464,7 @@ * @since 4.0.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. * @example * * _.isSymbol(Symbol.iterator); @@ -32865,8 +33486,7 @@ * @since 3.0.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. * @example * * _.isTypedArray(new Uint8Array); @@ -32875,10 +33495,7 @@ * _.isTypedArray([]); * // => false */ - function isTypedArray(value) { - return isObjectLike(value) && - isLength(value.length) && !!typedArrayTags[objectToString.call(value)]; - } + var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; /** * Checks if `value` is `undefined`. @@ -32909,8 +33526,7 @@ * @since 4.3.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a weak map, else `false`. * @example * * _.isWeakMap(new WeakMap); @@ -32931,8 +33547,7 @@ * @since 4.3.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a weak set, else `false`. * @example * * _.isWeakSet(new WeakSet); @@ -33075,7 +33690,7 @@ * Converts `value` to an integer. * * **Note:** This method is loosely based on - * [`ToInteger`](http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger). + * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger). * * @static * @memberOf _ @@ -33109,7 +33724,7 @@ * array-like object. * * **Note:** This method is based on - * [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength). + * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). * * @static * @memberOf _ @@ -33166,7 +33781,7 @@ return NAN; } if (isObject(value)) { - var other = isFunction(value.valueOf) ? value.valueOf() : value; + var other = typeof value.valueOf == 'function' ? value.valueOf() : value; value = isObject(other) ? (other + '') : other; } if (typeof value != 'string') { @@ -33243,8 +33858,8 @@ * @memberOf _ * @since 4.0.0 * @category Lang - * @param {*} value The value to process. - * @returns {string} Returns the string. + * @param {*} value The value to convert. + * @returns {string} Returns the converted string. * @example * * _.toString(null); @@ -33281,21 +33896,21 @@ * @example * * function Foo() { - * this.c = 3; + * this.a = 1; * } * * function Bar() { - * this.e = 5; + * this.c = 3; * } * - * Foo.prototype.d = 4; - * Bar.prototype.f = 6; + * Foo.prototype.b = 2; + * Bar.prototype.d = 4; * - * _.assign({ 'a': 1 }, new Foo, new Bar); - * // => { 'a': 1, 'c': 3, 'e': 5 } + * _.assign({ 'a': 0 }, new Foo, new Bar); + * // => { 'a': 1, 'c': 3 } */ var assign = createAssigner(function(object, source) { - if (nonEnumShadows || isPrototype(source) || isArrayLike(source)) { + if (isPrototype(source) || isArrayLike(source)) { copyObject(source, keys(source), object); return; } @@ -33324,27 +33939,21 @@ * @example * * function Foo() { - * this.b = 2; + * this.a = 1; * } * * function Bar() { - * this.d = 4; + * this.c = 3; * } * - * Foo.prototype.c = 3; - * Bar.prototype.e = 5; + * Foo.prototype.b = 2; + * Bar.prototype.d = 4; * - * _.assignIn({ 'a': 1 }, new Foo, new Bar); - * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5 } + * _.assignIn({ 'a': 0 }, new Foo, new Bar); + * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 } */ var assignIn = createAssigner(function(object, source) { - if (nonEnumShadows || isPrototype(source) || isArrayLike(source)) { - copyObject(source, keysIn(source), object); - return; - } - for (var key in source) { - assignValue(object, key, source[key]); - } + copyObject(source, keysIn(source), object); }); /** @@ -33429,9 +34038,7 @@ * _.at(object, ['a[0].b.c', 'a[1]']); * // => [3, 4] */ - var at = rest(function(object, paths) { - return baseAt(object, baseFlatten(paths, 1)); - }); + var at = flatRest(baseAt); /** * Creates an object that inherits from the `prototype` object. If a @@ -33490,10 +34097,10 @@ * @see _.defaultsDeep * @example * - * _.defaults({ 'user': 'barney' }, { 'age': 36 }, { 'user': 'fred' }); - * // => { 'user': 'barney', 'age': 36 } + * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); + * // => { 'a': 1, 'b': 2 } */ - var defaults = rest(function(args) { + var defaults = baseRest(function(args) { args.push(undefined, assignInDefaults); return apply(assignInWith, undefined, args); }); @@ -33514,11 +34121,10 @@ * @see _.defaults * @example * - * _.defaultsDeep({ 'user': { 'name': 'barney' } }, { 'user': { 'name': 'fred', 'age': 36 } }); - * // => { 'user': { 'name': 'barney', 'age': 36 } } - * + * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } }); + * // => { 'a': { 'b': 2, 'c': 3 } } */ - var defaultsDeep = rest(function(args) { + var defaultsDeep = baseRest(function(args) { args.push(undefined, mergeDefaults); return apply(mergeWith, undefined, args); }); @@ -33531,9 +34137,8 @@ * @memberOf _ * @since 1.1.0 * @category Object - * @param {Object} object The object to search. - * @param {Array|Function|Object|string} [predicate=_.identity] - * The function invoked per iteration. + * @param {Object} object The object to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {string|undefined} Returns the key of the matched element, * else `undefined`. * @example @@ -33571,9 +34176,8 @@ * @memberOf _ * @since 2.0.0 * @category Object - * @param {Object} object The object to search. - * @param {Array|Function|Object|string} [predicate=_.identity] - * The function invoked per iteration. + * @param {Object} object The object to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {string|undefined} Returns the key of the matched element, * else `undefined`. * @example @@ -33787,7 +34391,7 @@ /** * Gets the value at `path` of `object`. If the resolved value is - * `undefined`, the `defaultValue` is used in its place. + * `undefined`, the `defaultValue` is returned in its place. * * @static * @memberOf _ @@ -33910,8 +34514,7 @@ * @since 4.1.0 * @category Object * @param {Object} object The object to invert. - * @param {Array|Function|Object|string} [iteratee=_.identity] - * The iteratee invoked per element. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {Object} Returns the new inverted object. * @example * @@ -33951,13 +34554,13 @@ * _.invoke(object, 'a[0].b.c.slice', 1, 3); * // => [2, 3] */ - var invoke = rest(baseInvoke); + var invoke = baseRest(baseInvoke); /** * Creates an array of the own enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. See the - * [ES spec](http://ecma-international.org/ecma-262/6.0/#sec-object.keys) + * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) * for more details. * * @static @@ -33982,23 +34585,7 @@ * // => ['0', '1'] */ function keys(object) { - var isProto = isPrototype(object); - if (!(isProto || isArrayLike(object))) { - return baseKeys(object); - } - var indexes = indexKeys(object), - skipIndexes = !!indexes, - result = indexes || [], - length = result.length; - - for (var key in object) { - if (baseHas(object, key) && - !(skipIndexes && (key == 'length' || isIndex(key, length))) && - !(isProto && key == 'constructor')) { - result.push(key); - } - } - return result; + return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); } /** @@ -34025,23 +34612,7 @@ * // => ['a', 'b', 'c'] (iteration order is not guaranteed) */ function keysIn(object) { - var index = -1, - isProto = isPrototype(object), - props = baseKeysIn(object), - propsLength = props.length, - indexes = indexKeys(object), - skipIndexes = !!indexes, - result = indexes || [], - length = result.length; - - while (++index < propsLength) { - var key = props[index]; - if (!(skipIndexes && (key == 'length' || isIndex(key, length))) && - !(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { - result.push(key); - } - } - return result; + return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); } /** @@ -34055,8 +34626,7 @@ * @since 3.8.0 * @category Object * @param {Object} object The object to iterate over. - * @param {Array|Function|Object|string} [iteratee=_.identity] - * The function invoked per iteration. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @returns {Object} Returns the new mapped object. * @see _.mapValues * @example @@ -34071,7 +34641,7 @@ iteratee = getIteratee(iteratee, 3); baseForOwn(object, function(value, key, object) { - result[iteratee(value, key, object)] = value; + baseAssignValue(result, iteratee(value, key, object), value); }); return result; } @@ -34087,8 +34657,7 @@ * @since 2.4.0 * @category Object * @param {Object} object The object to iterate over. - * @param {Array|Function|Object|string} [iteratee=_.identity] - * The function invoked per iteration. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @returns {Object} Returns the new mapped object. * @see _.mapKeys * @example @@ -34110,7 +34679,7 @@ iteratee = getIteratee(iteratee, 3); baseForOwn(object, function(value, key, object) { - result[key] = iteratee(value, key, object); + baseAssignValue(result, key, iteratee(value, key, object)); }); return result; } @@ -34135,16 +34704,16 @@ * @returns {Object} Returns `object`. * @example * - * var users = { - * 'data': [{ 'user': 'barney' }, { 'user': 'fred' }] + * var object = { + * 'a': [{ 'b': 2 }, { 'd': 4 }] * }; * - * var ages = { - * 'data': [{ 'age': 36 }, { 'age': 40 }] + * var other = { + * 'a': [{ 'c': 3 }, { 'e': 5 }] * }; * - * _.merge(users, ages); - * // => { 'data': [{ 'user': 'barney', 'age': 36 }, { 'user': 'fred', 'age': 40 }] } + * _.merge(object, other); + * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] } */ var merge = createAssigner(function(object, source, srcIndex) { baseMerge(object, source, srcIndex); @@ -34154,7 +34723,7 @@ * This method is like `_.merge` except that it accepts `customizer` which * is invoked to produce the merged values of the destination and source * properties. If `customizer` returns `undefined`, merging is handled by the - * method instead. The `customizer` is invoked with seven arguments: + * method instead. The `customizer` is invoked with six arguments: * (objValue, srcValue, key, object, source, stack). * * **Note:** This method mutates `object`. @@ -34175,18 +34744,11 @@ * } * } * - * var object = { - * 'fruits': ['apple'], - * 'vegetables': ['beet'] - * }; - * - * var other = { - * 'fruits': ['banana'], - * 'vegetables': ['carrot'] - * }; + * var object = { 'a': [1], 'b': [2] }; + * var other = { 'a': [3], 'b': [4] }; * * _.mergeWith(object, other, customizer); - * // => { 'fruits': ['apple', 'banana'], 'vegetables': ['beet', 'carrot'] } + * // => { 'a': [1, 3], 'b': [2, 4] } */ var mergeWith = createAssigner(function(object, source, srcIndex, customizer) { baseMerge(object, source, srcIndex, customizer); @@ -34211,11 +34773,11 @@ * _.omit(object, ['a', 'c']); * // => { 'b': '2' } */ - var omit = rest(function(object, props) { + var omit = flatRest(function(object, props) { if (object == null) { return {}; } - props = arrayMap(baseFlatten(props, 1), toKey); + props = arrayMap(props, toKey); return basePick(object, baseDifference(getAllKeysIn(object), props)); }); @@ -34230,8 +34792,7 @@ * @since 4.0.0 * @category Object * @param {Object} object The source object. - * @param {Array|Function|Object|string} [predicate=_.identity] - * The function invoked per property. + * @param {Function} [predicate=_.identity] The function invoked per property. * @returns {Object} Returns the new object. * @example * @@ -34241,10 +34802,7 @@ * // => { 'b': '2' } */ function omitBy(object, predicate) { - predicate = getIteratee(predicate); - return basePickBy(object, function(value, key) { - return !predicate(value, key); - }); + return pickBy(object, negate(getIteratee(predicate))); } /** @@ -34264,8 +34822,8 @@ * _.pick(object, ['a', 'c']); * // => { 'a': 1, 'c': 3 } */ - var pick = rest(function(object, props) { - return object == null ? {} : basePick(object, arrayMap(baseFlatten(props, 1), toKey)); + var pick = flatRest(function(object, props) { + return object == null ? {} : basePick(object, arrayMap(props, toKey)); }); /** @@ -34277,8 +34835,7 @@ * @since 4.0.0 * @category Object * @param {Object} object The source object. - * @param {Array|Function|Object|string} [predicate=_.identity] - * The function invoked per property. + * @param {Function} [predicate=_.identity] The function invoked per property. * @returns {Object} Returns the new object. * @example * @@ -34288,7 +34845,7 @@ * // => { 'a': 1, 'c': 3 } */ function pickBy(object, predicate) { - return object == null ? {} : basePickBy(object, getIteratee(predicate)); + return object == null ? {} : basePickBy(object, getAllKeysIn(object), getIteratee(predicate)); } /** @@ -34486,22 +35043,23 @@ * // => { '1': ['a', 'c'], '2': ['b'] } */ function transform(object, iteratee, accumulator) { - var isArr = isArray(object) || isTypedArray(object); - iteratee = getIteratee(iteratee, 4); + var isArr = isArray(object), + isArrLike = isArr || isBuffer(object) || isTypedArray(object); + iteratee = getIteratee(iteratee, 4); if (accumulator == null) { - if (isArr || isObject(object)) { - var Ctor = object.constructor; - if (isArr) { - accumulator = isArray(object) ? new Ctor : []; - } else { - accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {}; - } - } else { + var Ctor = object && object.constructor; + if (isArrLike) { + accumulator = isArr ? new Ctor : []; + } + else if (isObject(object)) { + accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {}; + } + else { accumulator = {}; } } - (isArr ? arrayEach : baseForOwn)(object, function(value, index, object) { + (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) { return iteratee(accumulator, value, index, object); }); return accumulator; @@ -34732,12 +35290,12 @@ * // => true */ function inRange(number, start, end) { - start = toNumber(start) || 0; + start = toFinite(start); if (end === undefined) { end = start; start = 0; } else { - end = toNumber(end) || 0; + end = toFinite(end); } number = toNumber(number); return baseInRange(number, start, end); @@ -34793,12 +35351,12 @@ upper = 1; } else { - lower = toNumber(lower) || 0; + lower = toFinite(lower); if (upper === undefined) { upper = lower; lower = 0; } else { - upper = toNumber(upper) || 0; + upper = toFinite(upper); } } if (lower > upper) { @@ -34861,8 +35419,9 @@ /** * Deburrs `string` by converting - * [latin-1 supplementary letters](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table) - * to basic latin letters and removing + * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table) + * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A) + * letters to basic Latin letters and removing * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks). * * @static @@ -34878,7 +35437,7 @@ */ function deburr(string) { string = toString(string); - return string && string.replace(reLatin1, deburrLetter).replace(reComboMark, ''); + return string && string.replace(reLatin, deburrLetter).replace(reComboMark, ''); } /** @@ -34888,7 +35447,7 @@ * @memberOf _ * @since 3.0.0 * @category String - * @param {string} [string=''] The string to search. + * @param {string} [string=''] The string to inspect. * @param {string} [target] The string to search for. * @param {number} [position=string.length] The position to search up to. * @returns {boolean} Returns `true` if `string` ends with `target`, @@ -34913,13 +35472,14 @@ ? length : baseClamp(toInteger(position), 0, length); + var end = position; position -= target.length; - return position >= 0 && string.indexOf(target, position) == position; + return position >= 0 && string.slice(position, end) == target; } /** - * Converts the characters "&", "<", ">", '"', "'", and "\`" in `string` to - * their corresponding HTML entities. + * Converts the characters "&", "<", ">", '"', and "'" in `string` to their + * corresponding HTML entities. * * **Note:** No other characters are escaped. To escape additional * characters use a third-party library like [_he_](https://mths.be/he). @@ -34930,12 +35490,6 @@ * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands) * (under "semi-related fun fact") for more details. * - * Backticks are escaped because in IE < 9, they can break out of - * attribute values or HTML comments. See [#59](https://html5sec.org/#59), - * [#102](https://html5sec.org/#102), [#108](https://html5sec.org/#108), and - * [#133](https://html5sec.org/#133) of the - * [HTML5 Security Cheatsheet](https://html5sec.org/) for more details. - * * When working with HTML you should always * [quote attribute values](http://wonko.com/post/html-escaping) to reduce * XSS vectors. @@ -35178,15 +35732,12 @@ * // => [6, 8, 10] */ function parseInt(string, radix, guard) { - // Chrome fails to trim leading whitespace characters. - // See https://bugs.chromium.org/p/v8/issues/detail?id=3109 for more details. if (guard || radix == null) { radix = 0; } else if (radix) { radix = +radix; } - string = toString(string).replace(reTrim, ''); - return nativeParseInt(string, radix || (reHasHexPrefix.test(string) ? 16 : 10)); + return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0); } /** @@ -35243,7 +35794,7 @@ var args = arguments, string = toString(args[0]); - return args.length < 3 ? string : nativeReplace.call(string, args[1], args[2]); + return args.length < 3 ? string : string.replace(args[1], args[2]); } /** @@ -35304,11 +35855,11 @@ (separator != null && !isRegExp(separator)) )) { separator = baseToString(separator); - if (separator == '' && reHasComplexSymbol.test(string)) { + if (!separator && hasUnicode(string)) { return castSlice(stringToArray(string), 0, limit); } } - return nativeSplit.call(string, separator, limit); + return string.split(separator, limit); } /** @@ -35343,7 +35894,7 @@ * @memberOf _ * @since 3.0.0 * @category String - * @param {string} [string=''] The string to search. + * @param {string} [string=''] The string to inspect. * @param {string} [target] The string to search for. * @param {number} [position=0] The position to search from. * @returns {boolean} Returns `true` if `string` starts with `target`, @@ -35362,7 +35913,8 @@ function startsWith(string, target, position) { string = toString(string); position = baseClamp(toInteger(position), 0, string.length); - return string.lastIndexOf(baseToString(target), position) == position; + target = baseToString(target); + return string.slice(position, position + target.length) == target; } /** @@ -35424,7 +35976,8 @@ * compiled({ 'user': 'barney' }); * // => 'hello barney!' * - * // Use the ES delimiter as an alternative to the default "interpolate" delimiter. + * // Use the ES template literal delimiter as an "interpolate" delimiter. + * // Disable support by replacing the "interpolate" delimiter. * var compiled = _.template('hello ${ user }!'); * compiled({ 'user': 'pebbles' }); * // => 'hello pebbles!' @@ -35779,7 +36332,7 @@ string = toString(string); var strLength = string.length; - if (reHasComplexSymbol.test(string)) { + if (hasUnicode(string)) { var strSymbols = stringToArray(string); strLength = strSymbols.length; } @@ -35825,7 +36378,7 @@ /** * The inverse of `_.escape`; this method converts the HTML entities - * `&`, `<`, `>`, `"`, `'`, and ``` in `string` to + * `&`, `<`, `>`, `"`, and `'` in `string` to * their corresponding characters. * * **Note:** No other HTML entities are unescaped. To unescape additional @@ -35916,7 +36469,7 @@ pattern = guard ? undefined : pattern; if (pattern === undefined) { - pattern = reHasComplexWord.test(string) ? reComplexWord : reBasicWord; + return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string); } return string.match(pattern) || []; } @@ -35945,7 +36498,7 @@ * elements = []; * } */ - var attempt = rest(function(func, args) { + var attempt = baseRest(function(func, args) { try { return apply(func, undefined, args); } catch (e) { @@ -35970,19 +36523,19 @@ * * var view = { * 'label': 'docs', - * 'onClick': function() { + * 'click': function() { * console.log('clicked ' + this.label); * } * }; * - * _.bindAll(view, ['onClick']); - * jQuery(element).on('click', view.onClick); + * _.bindAll(view, ['click']); + * jQuery(element).on('click', view.click); * // => Logs 'clicked docs' when clicked. */ - var bindAll = rest(function(object, methodNames) { - arrayEach(baseFlatten(methodNames, 1), function(key) { + var bindAll = flatRest(function(object, methodNames) { + arrayEach(methodNames, function(key) { key = toKey(key); - object[key] = bind(object[key], object); + baseAssignValue(object, key, bind(object[key], object)); }); return object; }); @@ -36004,7 +36557,7 @@ * var func = _.cond([ * [_.matches({ 'a': 1 }), _.constant('matches A')], * [_.conforms({ 'b': _.isNumber }), _.constant('matches B')], - * [_.constant(true), _.constant('no match')] + * [_.stubTrue, _.constant('no match')] * ]); * * func({ 'a': 1, 'b': 2 }); @@ -36027,7 +36580,7 @@ return [toIteratee(pair[0]), pair[1]]; }); - return rest(function(args) { + return baseRest(function(args) { var index = -1; while (++index < length) { var pair = pairs[index]; @@ -36043,6 +36596,9 @@ * the corresponding property values of a given object, returning `true` if * all predicates return truthy, else `false`. * + * **Note:** The created function is equivalent to `_.conformsTo` with + * `source` partially applied. + * * @static * @memberOf _ * @since 4.0.0 @@ -36051,13 +36607,13 @@ * @returns {Function} Returns the new spec function. * @example * - * var users = [ - * { 'user': 'barney', 'age': 36 }, - * { 'user': 'fred', 'age': 40 } + * var objects = [ + * { 'a': 2, 'b': 1 }, + * { 'a': 1, 'b': 2 } * ]; * - * _.filter(users, _.conforms({ 'age': function(n) { return n > 38; } })); - * // => [{ 'user': 'fred', 'age': 40 }] + * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } })); + * // => [{ 'a': 1, 'b': 2 }] */ function conforms(source) { return baseConforms(baseClone(source, true)); @@ -36088,6 +36644,30 @@ }; } + /** + * Checks `value` to determine whether a default value should be returned in + * its place. The `defaultValue` is returned if `value` is `NaN`, `null`, + * or `undefined`. + * + * @static + * @memberOf _ + * @since 4.14.0 + * @category Util + * @param {*} value The value to check. + * @param {*} defaultValue The default value. + * @returns {*} Returns the resolved value. + * @example + * + * _.defaultTo(1, 10); + * // => 1 + * + * _.defaultTo(undefined, 10); + * // => 10 + */ + function defaultTo(value, defaultValue) { + return (value == null || value !== value) ? defaultValue : value; + } + /** * Creates a function that returns the result of invoking the given functions * with the `this` binding of the created function, where each successive @@ -36097,7 +36677,7 @@ * @memberOf _ * @since 3.0.0 * @category Util - * @param {...(Function|Function[])} [funcs] Functions to invoke. + * @param {...(Function|Function[])} [funcs] The functions to invoke. * @returns {Function} Returns the new composite function. * @see _.flowRight * @example @@ -36120,7 +36700,7 @@ * @since 3.0.0 * @memberOf _ * @category Util - * @param {...(Function|Function[])} [funcs] Functions to invoke. + * @param {...(Function|Function[])} [funcs] The functions to invoke. * @returns {Function} Returns the new composite function. * @see _.flow * @example @@ -36136,7 +36716,7 @@ var flowRight = createFlow(true); /** - * This method returns the first argument given to it. + * This method returns the first argument it receives. * * @static * @since 0.1.0 @@ -36146,7 +36726,7 @@ * @returns {*} Returns `value`. * @example * - * var object = { 'user': 'fred' }; + * var object = { 'a': 1 }; * * console.log(_.identity(object) === object); * // => true @@ -36204,10 +36784,14 @@ /** * Creates a function that performs a partial deep comparison between a given * object and `source`, returning `true` if the given object has equivalent - * property values, else `false`. The created function is equivalent to - * `_.isMatch` with a `source` partially applied. + * property values, else `false`. * - * **Note:** This method supports comparing the same values as `_.isEqual`. + * **Note:** The created function is equivalent to `_.isMatch` with `source` + * partially applied. + * + * Partial comparisons will match empty array and empty object `source` + * values against any array or object value, respectively. See `_.isEqual` + * for a list of supported value comparisons. * * @static * @memberOf _ @@ -36217,13 +36801,13 @@ * @returns {Function} Returns the new spec function. * @example * - * var users = [ - * { 'user': 'barney', 'age': 36, 'active': true }, - * { 'user': 'fred', 'age': 40, 'active': false } + * var objects = [ + * { 'a': 1, 'b': 2, 'c': 3 }, + * { 'a': 4, 'b': 5, 'c': 6 } * ]; * - * _.filter(users, _.matches({ 'age': 40, 'active': false })); - * // => [{ 'user': 'fred', 'age': 40, 'active': false }] + * _.filter(objects, _.matches({ 'a': 4, 'c': 6 })); + * // => [{ 'a': 4, 'b': 5, 'c': 6 }] */ function matches(source) { return baseMatches(baseClone(source, true)); @@ -36234,7 +36818,9 @@ * value at `path` of a given object to `srcValue`, returning `true` if the * object value is equivalent, else `false`. * - * **Note:** This method supports comparing the same values as `_.isEqual`. + * **Note:** Partial comparisons will match empty array and empty object + * `srcValue` values against any array or object value, respectively. See + * `_.isEqual` for a list of supported value comparisons. * * @static * @memberOf _ @@ -36245,13 +36831,13 @@ * @returns {Function} Returns the new spec function. * @example * - * var users = [ - * { 'user': 'barney' }, - * { 'user': 'fred' } + * var objects = [ + * { 'a': 1, 'b': 2, 'c': 3 }, + * { 'a': 4, 'b': 5, 'c': 6 } * ]; * - * _.find(users, _.matchesProperty('user', 'fred')); - * // => { 'user': 'fred' } + * _.find(objects, _.matchesProperty('a', 4)); + * // => { 'a': 4, 'b': 5, 'c': 6 } */ function matchesProperty(path, srcValue) { return baseMatchesProperty(path, baseClone(srcValue, true)); @@ -36281,7 +36867,7 @@ * _.map(objects, _.method(['a', 'b'])); * // => [2, 1] */ - var method = rest(function(path, args) { + var method = baseRest(function(path, args) { return function(object) { return baseInvoke(object, path, args); }; @@ -36310,7 +36896,7 @@ * _.map([['a', '2'], ['c', '0']], _.methodOf(object)); * // => [2, 0] */ - var methodOf = rest(function(object, args) { + var methodOf = baseRest(function(object, args) { return function(path) { return baseInvoke(object, path, args); }; @@ -36409,7 +36995,7 @@ } /** - * A method that returns `undefined`. + * This method returns `undefined`. * * @static * @memberOf _ @@ -36446,7 +37032,7 @@ */ function nthArg(n) { n = toInteger(n); - return rest(function(args) { + return baseRest(function(args) { return baseNth(args, n); }); } @@ -36459,8 +37045,8 @@ * @memberOf _ * @since 4.0.0 * @category Util - * @param {...(Array|Array[]|Function|Function[]|Object|Object[]|string|string[])} - * [iteratees=[_.identity]] The iteratees to invoke. + * @param {...(Function|Function[])} [iteratees=[_.identity]] + * The iteratees to invoke. * @returns {Function} Returns the new function. * @example * @@ -36479,8 +37065,8 @@ * @memberOf _ * @since 4.0.0 * @category Util - * @param {...(Array|Array[]|Function|Function[]|Object|Object[]|string|string[])} - * [predicates=[_.identity]] The predicates to check. + * @param {...(Function|Function[])} [predicates=[_.identity]] + * The predicates to check. * @returns {Function} Returns the new function. * @example * @@ -36505,8 +37091,8 @@ * @memberOf _ * @since 4.0.0 * @category Util - * @param {...(Array|Array[]|Function|Function[]|Object|Object[]|string|string[])} - * [predicates=[_.identity]] The predicates to check. + * @param {...(Function|Function[])} [predicates=[_.identity]] + * The predicates to check. * @returns {Function} Returns the new function. * @example * @@ -36658,7 +37244,7 @@ var rangeRight = createRange(true); /** - * A method that returns a new empty array. + * This method returns a new empty array. * * @static * @memberOf _ @@ -36680,7 +37266,7 @@ } /** - * A method that returns `false`. + * This method returns `false`. * * @static * @memberOf _ @@ -36697,7 +37283,7 @@ } /** - * A method that returns a new empty object. + * This method returns a new empty object. * * @static * @memberOf _ @@ -36719,7 +37305,7 @@ } /** - * A method that returns an empty string. + * This method returns an empty string. * * @static * @memberOf _ @@ -36736,7 +37322,7 @@ } /** - * A method that returns `true`. + * This method returns `true`. * * @static * @memberOf _ @@ -36854,7 +37440,7 @@ */ var add = createMathOperation(function(augend, addend) { return augend + addend; - }); + }, 0); /** * Computes `number` rounded up to `precision`. @@ -36896,7 +37482,7 @@ */ var divide = createMathOperation(function(dividend, divisor) { return dividend / divisor; - }); + }, 1); /** * Computes `number` rounded down to `precision`. @@ -36955,8 +37541,7 @@ * @since 4.0.0 * @category Math * @param {Array} array The array to iterate over. - * @param {Array|Function|Object|string} [iteratee=_.identity] - * The iteratee invoked per element. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {*} Returns the maximum value. * @example * @@ -36971,7 +37556,7 @@ */ function maxBy(array, iteratee) { return (array && array.length) - ? baseExtremum(array, getIteratee(iteratee), baseGt) + ? baseExtremum(array, getIteratee(iteratee, 2), baseGt) : undefined; } @@ -37003,8 +37588,7 @@ * @since 4.7.0 * @category Math * @param {Array} array The array to iterate over. - * @param {Array|Function|Object|string} [iteratee=_.identity] - * The iteratee invoked per element. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {number} Returns the mean. * @example * @@ -37018,7 +37602,7 @@ * // => 5 */ function meanBy(array, iteratee) { - return baseMean(array, getIteratee(iteratee)); + return baseMean(array, getIteratee(iteratee, 2)); } /** @@ -37055,8 +37639,7 @@ * @since 4.0.0 * @category Math * @param {Array} array The array to iterate over. - * @param {Array|Function|Object|string} [iteratee=_.identity] - * The iteratee invoked per element. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {*} Returns the minimum value. * @example * @@ -37071,7 +37654,7 @@ */ function minBy(array, iteratee) { return (array && array.length) - ? baseExtremum(array, getIteratee(iteratee), baseLt) + ? baseExtremum(array, getIteratee(iteratee, 2), baseLt) : undefined; } @@ -37092,7 +37675,7 @@ */ var multiply = createMathOperation(function(multiplier, multiplicand) { return multiplier * multiplicand; - }); + }, 1); /** * Computes `number` rounded to `precision`. @@ -37134,7 +37717,7 @@ */ var subtract = createMathOperation(function(minuend, subtrahend) { return minuend - subtrahend; - }); + }, 0); /** * Computes the sum of the values in `array`. @@ -37166,8 +37749,7 @@ * @since 4.0.0 * @category Math * @param {Array} array The array to iterate over. - * @param {Array|Function|Object|string} [iteratee=_.identity] - * The iteratee invoked per element. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {number} Returns the sum. * @example * @@ -37182,7 +37764,7 @@ */ function sumBy(array, iteratee) { return (array && array.length) - ? baseSum(array, getIteratee(iteratee)) + ? baseSum(array, getIteratee(iteratee, 2)) : 0; } @@ -37361,7 +37943,9 @@ lodash.cloneDeep = cloneDeep; lodash.cloneDeepWith = cloneDeepWith; lodash.cloneWith = cloneWith; + lodash.conformsTo = conformsTo; lodash.deburr = deburr; + lodash.defaultTo = defaultTo; lodash.divide = divide; lodash.endsWith = endsWith; lodash.eq = eq; @@ -37602,7 +38186,7 @@ return this.reverse().find(predicate); }; - LazyWrapper.prototype.invokeMap = rest(function(path, args) { + LazyWrapper.prototype.invokeMap = baseRest(function(path, args) { if (typeof path == 'function') { return new LazyWrapper(this); } @@ -37612,10 +38196,7 @@ }); LazyWrapper.prototype.reject = function(predicate) { - predicate = getIteratee(predicate, 3); - return this.filter(function(value) { - return !predicate(value); - }); + return this.filter(negate(getIteratee(predicate))); }; LazyWrapper.prototype.slice = function(start, end) { @@ -37719,7 +38300,7 @@ } }); - realNames[createHybridWrapper(undefined, BIND_KEY_FLAG).name] = [{ + realNames[createHybrid(undefined, BIND_KEY_FLAG).name] = [{ 'name': 'wrapper', 'func': undefined }]; @@ -37738,33 +38319,35 @@ lodash.prototype.reverse = wrapperReverse; lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue; + // Add lazy aliases. + lodash.prototype.first = lodash.prototype.head; + if (iteratorSymbol) { lodash.prototype[iteratorSymbol] = wrapperToIterator; } return lodash; - } + }); /*--------------------------------------------------------------------------*/ // Export lodash. var _ = runInContext(); - // Expose Lodash on the free variable `window` or `self` when available so it's - // globally accessible, even when bundled with Browserify, Webpack, etc. This - // also prevents errors in cases where Lodash is loaded by a script tag in the - // presence of an AMD loader. See http://requirejs.org/docs/errors.html#mismatch - // for more details. Use `_.noConflict` to remove Lodash from the global object. - (freeSelf || {})._ = _; - - // Some AMD build optimizers like r.js check for condition patterns like the following: + // Some AMD build optimizers, like r.js, check for condition patterns like: if (true) { + // Expose Lodash on the global object to prevent errors when Lodash is + // loaded by a script tag in the presence of an AMD loader. + // See http://requirejs.org/docs/errors.html#mismatch for more details. + // Use `_.noConflict` to remove Lodash from the global object. + root._ = _; + // Define as an anonymous module so, through path mapping, it can be // referenced as the "underscore" module. !(__WEBPACK_AMD_DEFINE_RESULT__ = function() { return _; }.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } - // Check for `exports` after `define` in case a build optimizer adds an `exports` object. + // Check for `exports` after `define` in case a build optimizer adds it. else if (freeModule) { // Export for Node.js. (freeModule.exports = _)._ = _; @@ -37777,7 +38360,7 @@ } }.call(this)); - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(153)(module), (function() { return this; }()))) + /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(153)(module))) /***/ }, /* 153 */ @@ -39490,12 +40073,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(165), __webpack_require__(166), __webpack_require__(167), __webpack_require__(168), __webpack_require__(169), __webpack_require__(174), __webpack_require__(175), __webpack_require__(176), __webpack_require__(170), __webpack_require__(177), __webpack_require__(178), __webpack_require__(179), __webpack_require__(180), __webpack_require__(181), __webpack_require__(182), __webpack_require__(183), __webpack_require__(184), __webpack_require__(185), __webpack_require__(186), __webpack_require__(187), __webpack_require__(188), __webpack_require__(189), __webpack_require__(190), __webpack_require__(191), __webpack_require__(192), __webpack_require__(193), __webpack_require__(194), __webpack_require__(195), __webpack_require__(198), __webpack_require__(199), __webpack_require__(201), __webpack_require__(202), __webpack_require__(204), __webpack_require__(200), __webpack_require__(205), __webpack_require__(206), __webpack_require__(207), __webpack_require__(210), __webpack_require__(196), __webpack_require__(209), __webpack_require__(172), __webpack_require__(211), __webpack_require__(173), __webpack_require__(212), __webpack_require__(213), __webpack_require__(214), __webpack_require__(215), __webpack_require__(216), __webpack_require__(217), __webpack_require__(197), __webpack_require__(218), __webpack_require__(219), __webpack_require__(220), __webpack_require__(221), __webpack_require__(223), __webpack_require__(203), __webpack_require__(224), __webpack_require__(225), __webpack_require__(171), __webpack_require__(226), __webpack_require__(227), __webpack_require__(222), __webpack_require__(249), __webpack_require__(228), __webpack_require__(229), __webpack_require__(230), __webpack_require__(231), __webpack_require__(232), __webpack_require__(233), __webpack_require__(234), __webpack_require__(235), __webpack_require__(236), __webpack_require__(237), __webpack_require__(238), __webpack_require__(239), __webpack_require__(240), __webpack_require__(241), __webpack_require__(242), __webpack_require__(208), __webpack_require__(243), __webpack_require__(244), __webpack_require__(245), __webpack_require__(246), __webpack_require__(247), __webpack_require__(248), __webpack_require__(250), __webpack_require__(251), __webpack_require__(252), __webpack_require__(253), __webpack_require__(254), __webpack_require__(255), __webpack_require__(256), __webpack_require__(257), __webpack_require__(258), __webpack_require__(259), __webpack_require__(260), __webpack_require__(261), __webpack_require__(262), __webpack_require__(263), __webpack_require__(264), __webpack_require__(265), __webpack_require__(266), __webpack_require__(267), __webpack_require__(268), __webpack_require__(269), __webpack_require__(270), __webpack_require__(271), __webpack_require__(272), __webpack_require__(273), __webpack_require__(274), __webpack_require__(275), __webpack_require__(276), __webpack_require__(277), __webpack_require__(278), __webpack_require__(279), __webpack_require__(280), __webpack_require__(281), __webpack_require__(282), __webpack_require__(283), __webpack_require__(284), __webpack_require__(285), __webpack_require__(286), __webpack_require__(287), __webpack_require__(288), __webpack_require__(289), __webpack_require__(290)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(165), __webpack_require__(166), __webpack_require__(167), __webpack_require__(168), __webpack_require__(169), __webpack_require__(174), __webpack_require__(175), __webpack_require__(176), __webpack_require__(170), __webpack_require__(177), __webpack_require__(178), __webpack_require__(179), __webpack_require__(180), __webpack_require__(181), __webpack_require__(182), __webpack_require__(183), __webpack_require__(184), __webpack_require__(185), __webpack_require__(186), __webpack_require__(187), __webpack_require__(188), __webpack_require__(189), __webpack_require__(190), __webpack_require__(191), __webpack_require__(192), __webpack_require__(193), __webpack_require__(194), __webpack_require__(195), __webpack_require__(198), __webpack_require__(199), __webpack_require__(201), __webpack_require__(202), __webpack_require__(204), __webpack_require__(200), __webpack_require__(205), __webpack_require__(206), __webpack_require__(207), __webpack_require__(210), __webpack_require__(196), __webpack_require__(209), __webpack_require__(172), __webpack_require__(211), __webpack_require__(173), __webpack_require__(212), __webpack_require__(213), __webpack_require__(214), __webpack_require__(215), __webpack_require__(216), __webpack_require__(217), __webpack_require__(197), __webpack_require__(218), __webpack_require__(219), __webpack_require__(220), __webpack_require__(221), __webpack_require__(223), __webpack_require__(203), __webpack_require__(224), __webpack_require__(225), __webpack_require__(171), __webpack_require__(226), __webpack_require__(227), __webpack_require__(222), __webpack_require__(228), __webpack_require__(253), __webpack_require__(229), __webpack_require__(230), __webpack_require__(231), __webpack_require__(232), __webpack_require__(233), __webpack_require__(234), __webpack_require__(235), __webpack_require__(236), __webpack_require__(237), __webpack_require__(238), __webpack_require__(239), __webpack_require__(240), __webpack_require__(241), __webpack_require__(242), __webpack_require__(208), __webpack_require__(243), __webpack_require__(244), __webpack_require__(245), __webpack_require__(246), __webpack_require__(247), __webpack_require__(248), __webpack_require__(249), __webpack_require__(250), __webpack_require__(251), __webpack_require__(252), __webpack_require__(254), __webpack_require__(255), __webpack_require__(256), __webpack_require__(257), __webpack_require__(258), __webpack_require__(259), __webpack_require__(260), __webpack_require__(261), __webpack_require__(262), __webpack_require__(263), __webpack_require__(264), __webpack_require__(265), __webpack_require__(266), __webpack_require__(267), __webpack_require__(268), __webpack_require__(269), __webpack_require__(270), __webpack_require__(271), __webpack_require__(272), __webpack_require__(273), __webpack_require__(274), __webpack_require__(275), __webpack_require__(276), __webpack_require__(277), __webpack_require__(278), __webpack_require__(279), __webpack_require__(280), __webpack_require__(281), __webpack_require__(282), __webpack_require__(283), __webpack_require__(284), __webpack_require__(285), __webpack_require__(286), __webpack_require__(287), __webpack_require__(288), __webpack_require__(289), __webpack_require__(290), __webpack_require__(291)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../../alfrescoApiClient'), require('./model/AbstractGroupRepresentation'), require('./model/AbstractRepresentation'), require('./model/AbstractUserRepresentation'), require('./model/AddGroupCapabilitiesRepresentation'), require('./model/AppDefinition'), require('./model/AppDefinitionPublishRepresentation'), require('./model/AppDefinitionRepresentation'), require('./model/AppDefinitionUpdateResultRepresentation'), require('./model/AppModelDefinition'), require('./model/ArrayNode'), require('./model/BoxUserAccountCredentialsRepresentation'), require('./model/BulkUserUpdateRepresentation'), require('./model/ChangePasswordRepresentation'), require('./model/ChecklistOrderRepresentation'), require('./model/CommentRepresentation'), require('./model/CompleteFormRepresentation'), require('./model/ConditionRepresentation'), require('./model/CreateEndpointBasicAuthRepresentation'), require('./model/CreateProcessInstanceRepresentation'), require('./model/CreateTenantRepresentation'), require('./model/EndpointBasicAuthRepresentation'), require('./model/EndpointConfigurationRepresentation'), require('./model/EndpointRequestHeaderRepresentation'), require('./model/EntityAttributeScopeRepresentation'), require('./model/EntityVariableScopeRepresentation'), require('./model/File'), require('./model/FormDefinitionRepresentation'), require('./model/FormFieldRepresentation'), require('./model/FormJavascriptEventRepresentation'), require('./model/FormOutcomeRepresentation'), require('./model/FormRepresentation'), require('./model/FormSaveRepresentation'), require('./model/FormScopeRepresentation'), require('./model/FormTabRepresentation'), require('./model/FormValueRepresentation'), require('./model/GroupCapabilityRepresentation'), require('./model/GroupRepresentation'), require('./model/ImageUploadRepresentation'), require('./model/LayoutRepresentation'), require('./model/LightAppRepresentation'), require('./model/LightGroupRepresentation'), require('./model/LightTenantRepresentation'), require('./model/LightUserRepresentation'), require('./model/MaplongListstring'), require('./model/MapstringListEntityVariableScopeRepresentation'), require('./model/MapstringListVariableScopeRepresentation'), require('./model/Mapstringstring'), require('./model/ModelRepresentation'), require('./model/ObjectNode'), require('./model/OptionRepresentation'), require('./model/ProcessFilterRequestRepresentation'), require('./model/ProcessInstanceFilterRepresentation'), require('./model/ProcessInstanceFilterRequestRepresentation'), require('./model/ProcessInstanceRepresentation'), require('./model/ProcessInstanceVariableRepresentation'), require('./model/ProcessScopeIdentifierRepresentation'), require('./model/ProcessScopeRepresentation'), require('./model/ProcessScopesRequestRepresentation'), require('./model/PublishIdentityInfoRepresentation'), require('./model/RelatedContentRepresentation'), require('./model/ResetPasswordRepresentation'), require('./model/RestVariable'), require('./model/ResultListDataRepresentation'), require('./model/RuntimeAppDefinitionSaveRepresentation'), require('./model/SaveFormRepresentation'), require('./model/SyncLogEntryRepresentation'), require('./model/SystemPropertiesRepresentation'), require('./model/TaskFilterRepresentation'), require('./model/TaskFilterRequestRepresentation'), require('./model/TaskQueryRequestRepresentation'), require('./model/TaskRepresentation'), require('./model/TaskUpdateRepresentation'), require('./model/TenantEvent'), require('./model/TenantRepresentation'), require('./model/UserAccountCredentialsRepresentation'), require('./model/UserActionRepresentation'), require('./model/UserFilterOrderRepresentation'), require('./model/UserProcessInstanceFilterRepresentation'), require('./model/UserRepresentation'), require('./model/UserTaskFilterRepresentation'), require('./model/ValidationErrorRepresentation'), require('./model/VariableScopeRepresentation'), require('./api/AboutApi'), require('./api/AdminEndpointsApi'), require('./api/AdminGroupsApi'), require('./api/AdminTenantsApi'), require('./api/AdminUsersApi'), require('./api/AlfrescoApi'), require('./api/AppsApi'), require('./api/AppsDefinitionApi'), require('./api/AppsRuntimeApi'), require('./api/CommentsApi'), require('./api/ContentApi'), require('./api/ContentRenditionApi'), require('./api/EditorApi'), require('./api/GroupsApi'), require('./api/IDMSyncApi'), require('./api/IntegrationApi'), require('./api/IntegrationAccountApi'), require('./api/IntegrationAlfrescoCloudApi'), require('./api/IntegrationAlfrescoOnPremiseApi'), require('./api/IntegrationBoxApi'), require('./api/IntegrationDriveApi'), require('./api/ModelBpmnApi'), require('./api/ModelJsonBpmnApi'), require('./api/ModelsApi'), require('./api/ModelsHistoryApi'), require('./api/ProcessApi'), require('./api/ProcessDefinitionsApi'), require('./api/ProcessDefinitionsFormApi'), require('./api/ProcessInstancesApi'), require('./api/ProcessInstancesInformationApi'), require('./api/ProcessInstancesListingApi'), require('./api/ProcessInstanceVariablesApi'), require('./api/ProcessScopeApi'), require('./api/ProfileApi'), require('./api/ScriptFileApi'), require('./api/SystemPropertiesApi'), require('./api/TaskApi'), require('./api/TaskActionsApi'), require('./api/TaskCheckListApi'), require('./api/TaskFormsApi'), require('./api/TemporaryApi'), require('./api/UserApi'), require('./api/UserFiltersApi'), require('./api/UsersWorkflowApi')); + module.exports = factory(require('../../alfrescoApiClient'), require('./model/AbstractGroupRepresentation'), require('./model/AbstractRepresentation'), require('./model/AbstractUserRepresentation'), require('./model/AddGroupCapabilitiesRepresentation'), require('./model/AppDefinition'), require('./model/AppDefinitionPublishRepresentation'), require('./model/AppDefinitionRepresentation'), require('./model/AppDefinitionUpdateResultRepresentation'), require('./model/AppModelDefinition'), require('./model/ArrayNode'), require('./model/BoxUserAccountCredentialsRepresentation'), require('./model/BulkUserUpdateRepresentation'), require('./model/ChangePasswordRepresentation'), require('./model/ChecklistOrderRepresentation'), require('./model/CommentRepresentation'), require('./model/CompleteFormRepresentation'), require('./model/ConditionRepresentation'), require('./model/CreateEndpointBasicAuthRepresentation'), require('./model/CreateProcessInstanceRepresentation'), require('./model/CreateTenantRepresentation'), require('./model/EndpointBasicAuthRepresentation'), require('./model/EndpointConfigurationRepresentation'), require('./model/EndpointRequestHeaderRepresentation'), require('./model/EntityAttributeScopeRepresentation'), require('./model/EntityVariableScopeRepresentation'), require('./model/File'), require('./model/FormDefinitionRepresentation'), require('./model/FormFieldRepresentation'), require('./model/FormJavascriptEventRepresentation'), require('./model/FormOutcomeRepresentation'), require('./model/FormRepresentation'), require('./model/FormSaveRepresentation'), require('./model/FormScopeRepresentation'), require('./model/FormTabRepresentation'), require('./model/FormValueRepresentation'), require('./model/GroupCapabilityRepresentation'), require('./model/GroupRepresentation'), require('./model/ImageUploadRepresentation'), require('./model/LayoutRepresentation'), require('./model/LightAppRepresentation'), require('./model/LightGroupRepresentation'), require('./model/LightTenantRepresentation'), require('./model/LightUserRepresentation'), require('./model/MaplongListstring'), require('./model/MapstringListEntityVariableScopeRepresentation'), require('./model/MapstringListVariableScopeRepresentation'), require('./model/Mapstringstring'), require('./model/ModelRepresentation'), require('./model/ObjectNode'), require('./model/OptionRepresentation'), require('./model/ProcessFilterRequestRepresentation'), require('./model/ProcessInstanceFilterRepresentation'), require('./model/ProcessInstanceFilterRequestRepresentation'), require('./model/ProcessInstanceRepresentation'), require('./model/ProcessInstanceVariableRepresentation'), require('./model/ProcessScopeIdentifierRepresentation'), require('./model/ProcessScopeRepresentation'), require('./model/ProcessScopesRequestRepresentation'), require('./model/PublishIdentityInfoRepresentation'), require('./model/RelatedContentRepresentation'), require('./model/ResetPasswordRepresentation'), require('./model/RestVariable'), require('./model/ResultListDataRepresentation'), require('./model/RuntimeAppDefinitionSaveRepresentation'), require('./model/SaveFormRepresentation'), require('./model/SyncLogEntryRepresentation'), require('./model/SystemPropertiesRepresentation'), require('./model/TaskFilterRepresentation'), require('./model/TaskFilterRequestRepresentation'), require('./model/TaskQueryRequestRepresentation'), require('./model/TaskRepresentation'), require('./model/TaskUpdateRepresentation'), require('./model/TenantEvent'), require('./model/TenantRepresentation'), require('./model/UserAccountCredentialsRepresentation'), require('./model/UserActionRepresentation'), require('./model/UserFilterOrderRepresentation'), require('./model/UserProcessInstanceFilterRepresentation'), require('./model/UserRepresentation'), require('./model/UserTaskFilterRepresentation'), require('./model/ValidationErrorRepresentation'), require('./model/VariableScopeRepresentation'), require('./api/AboutApi'), require('./api/AdminEndpointsApi'), require('./api/AdminGroupsApi'), require('./api/AdminTenantsApi'), require('./api/AdminUsersApi'), require('./api/AlfrescoApi'), require('./api/AppsApi'), require('./api/AppsDefinitionApi'), require('./api/AppsRuntimeApi'), require('./api/CommentsApi'), require('./api/ContentApi'), require('./api/ContentRenditionApi'), require('./api/EditorApi'), require('./api/GroupsApi'), require('./api/IDMSyncApi'), require('./api/IntegrationApi'), require('./api/IntegrationAccountApi'), require('./api/IntegrationAlfrescoCloudApi'), require('./api/IntegrationAlfrescoOnPremiseApi'), require('./api/IntegrationBoxApi'), require('./api/IntegrationDriveApi'), require('./api/ModelBpmnApi'), require('./api/ModelJsonBpmnApi'), require('./api/ModelsApi'), require('./api/ModelsHistoryApi'), require('./api/ProcessApi'), require('./api/ProcessDefinitionsApi'), require('./api/ProcessDefinitionsFormApi'), require('./api/ProcessInstancesApi'), require('./api/ProcessInstancesInformationApi'), require('./api/ProcessInstancesListingApi'), require('./api/ProcessInstanceVariablesApi'), require('./api/ProcessScopeApi'), require('./api/ProfileApi'), require('./api/ScriptFileApi'), require('./api/SystemPropertiesApi'), require('./api/TaskApi'), require('./api/TaskActionsApi'), require('./api/TaskCheckListApi'), require('./api/TaskFormsApi'), require('./api/TemporaryApi'), require('./api/UserApi'), require('./api/UserFiltersApi'), require('./api/UsersWorkflowApi'), require('./api/ReportApi')); } - }(function(ApiClient, AbstractGroupRepresentation, AbstractRepresentation, AbstractUserRepresentation, AddGroupCapabilitiesRepresentation, AppDefinition, AppDefinitionPublishRepresentation, AppDefinitionRepresentation, AppDefinitionUpdateResultRepresentation, AppModelDefinition, ArrayNode, BoxUserAccountCredentialsRepresentation, BulkUserUpdateRepresentation, ChangePasswordRepresentation, ChecklistOrderRepresentation, CommentRepresentation, CompleteFormRepresentation, ConditionRepresentation, CreateEndpointBasicAuthRepresentation, CreateProcessInstanceRepresentation, CreateTenantRepresentation, EndpointBasicAuthRepresentation, EndpointConfigurationRepresentation, EndpointRequestHeaderRepresentation, EntityAttributeScopeRepresentation, EntityVariableScopeRepresentation, File, FormDefinitionRepresentation, FormFieldRepresentation, FormJavascriptEventRepresentation, FormOutcomeRepresentation, FormRepresentation, FormSaveRepresentation, FormScopeRepresentation, FormTabRepresentation, FormValueRepresentation, GroupCapabilityRepresentation, GroupRepresentation, ImageUploadRepresentation, LayoutRepresentation, LightAppRepresentation, LightGroupRepresentation, LightTenantRepresentation, LightUserRepresentation, MaplongListstring, MapstringListEntityVariableScopeRepresentation, MapstringListVariableScopeRepresentation, Mapstringstring, ModelRepresentation, ObjectNode, OptionRepresentation, ProcessFilterRequestRepresentation, ProcessInstanceFilterRepresentation, ProcessInstanceFilterRequestRepresentation, ProcessInstanceRepresentation, ProcessInstanceVariableRepresentation, ProcessScopeIdentifierRepresentation, ProcessScopeRepresentation, ProcessScopesRequestRepresentation, PublishIdentityInfoRepresentation, RelatedContentRepresentation, ResetPasswordRepresentation, RestVariable, ResultListDataRepresentation, RuntimeAppDefinitionSaveRepresentation, SaveFormRepresentation, SyncLogEntryRepresentation, SystemPropertiesRepresentation, TaskFilterRepresentation, TaskFilterRequestRepresentation, TaskQueryRequestRepresentation, TaskRepresentation, TaskUpdateRepresentation, TenantEvent, TenantRepresentation, UserAccountCredentialsRepresentation, UserActionRepresentation, UserFilterOrderRepresentation, UserProcessInstanceFilterRepresentation, UserRepresentation, UserTaskFilterRepresentation, ValidationErrorRepresentation, VariableScopeRepresentation, AboutApi, AdminEndpointsApi, AdminGroupsApi, AdminTenantsApi, AdminUsersApi, AlfrescoApi, AppsApi, AppsDefinitionApi, AppsRuntimeApi, CommentsApi, ContentApi, ContentRenditionApi, EditorApi, GroupsApi, IDMSyncApi, IntegrationApi, IntegrationAccountApi, IntegrationAlfrescoCloudApi, IntegrationAlfrescoOnPremiseApi, IntegrationBoxApi, IntegrationDriveApi, ModelBpmnApi, ModelJsonBpmnApi, ModelsApi, ModelsHistoryApi, ProcessApi, ProcessDefinitionsApi, ProcessDefinitionsFormApi, ProcessInstancesApi, ProcessInstancesInformationApi, ProcessInstancesListingApi, ProcessInstanceVariablesApi, ProcessScopeApi, ProfileApi, ScriptFileApi, SystemPropertiesApi, TaskApi, TaskActionsApi, TaskCheckListApi, TaskFormsApi, TemporaryApi, UserApi, UserFiltersApi, UsersWorkflowApi) { + }(function(ApiClient, AbstractGroupRepresentation, AbstractRepresentation, AbstractUserRepresentation, AddGroupCapabilitiesRepresentation, AppDefinition, AppDefinitionPublishRepresentation, AppDefinitionRepresentation, AppDefinitionUpdateResultRepresentation, AppModelDefinition, ArrayNode, BoxUserAccountCredentialsRepresentation, BulkUserUpdateRepresentation, ChangePasswordRepresentation, ChecklistOrderRepresentation, CommentRepresentation, CompleteFormRepresentation, ConditionRepresentation, CreateEndpointBasicAuthRepresentation, CreateProcessInstanceRepresentation, CreateTenantRepresentation, EndpointBasicAuthRepresentation, EndpointConfigurationRepresentation, EndpointRequestHeaderRepresentation, EntityAttributeScopeRepresentation, EntityVariableScopeRepresentation, File, FormDefinitionRepresentation, FormFieldRepresentation, FormJavascriptEventRepresentation, FormOutcomeRepresentation, FormRepresentation, FormSaveRepresentation, FormScopeRepresentation, FormTabRepresentation, FormValueRepresentation, GroupCapabilityRepresentation, GroupRepresentation, ImageUploadRepresentation, LayoutRepresentation, LightAppRepresentation, LightGroupRepresentation, LightTenantRepresentation, LightUserRepresentation, MaplongListstring, MapstringListEntityVariableScopeRepresentation, MapstringListVariableScopeRepresentation, Mapstringstring, ModelRepresentation, ObjectNode, OptionRepresentation, ProcessFilterRequestRepresentation, ProcessInstanceFilterRepresentation, ProcessInstanceFilterRequestRepresentation, ProcessInstanceRepresentation, ProcessInstanceVariableRepresentation, ProcessScopeIdentifierRepresentation, ProcessScopeRepresentation, ProcessScopesRequestRepresentation, PublishIdentityInfoRepresentation, RelatedContentRepresentation, ResetPasswordRepresentation, RestVariable, ResultListDataRepresentation, RuntimeAppDefinitionSaveRepresentation, SaveFormRepresentation, SyncLogEntryRepresentation, SystemPropertiesRepresentation, TaskFilterRepresentation, TaskFilterRequestRepresentation, TaskQueryRequestRepresentation, TaskRepresentation, TaskUpdateRepresentation, TenantEvent, TenantRepresentation, UserAccountCredentialsRepresentation, UserActionRepresentation, UserFilterOrderRepresentation, UserProcessInstanceFilterRepresentation, UserRepresentation, UserTaskFilterRepresentation, ValidationErrorRepresentation, VariableScopeRepresentation, AboutApi, AdminEndpointsApi, AdminGroupsApi, AdminTenantsApi, AdminUsersApi, AlfrescoApi, AppsApi, AppsDefinitionApi, AppsRuntimeApi, CommentsApi, ContentApi, ContentRenditionApi, EditorApi, GroupsApi, IDMSyncApi, IntegrationApi, IntegrationAccountApi, IntegrationAlfrescoCloudApi, IntegrationAlfrescoOnPremiseApi, IntegrationBoxApi, IntegrationDriveApi, ModelBpmnApi, ModelJsonBpmnApi, ModelsApi, ModelsHistoryApi, ProcessApi, ProcessDefinitionsApi, ProcessDefinitionsFormApi, ProcessInstancesApi, ProcessInstancesInformationApi, ProcessInstancesListingApi, ProcessInstanceVariablesApi, ProcessScopeApi, ProfileApi, ScriptFileApi, SystemPropertiesApi, TaskApi, TaskActionsApi, TaskCheckListApi, TaskFormsApi, TemporaryApi, UserApi, UserFiltersApi, UsersWorkflowApi, ReportApi) { 'use strict'; /** @@ -40167,7 +40750,12 @@ * The UsersWorkflowApi service constructor. * @property {module:api/UsersWorkflowApi} */ - UsersWorkflowApi: UsersWorkflowApi + UsersWorkflowApi: UsersWorkflowApi, + /** + * The ReportApi service constructor. + * @property {module:api/ReportApi} + */ + ReportApi: ReportApi }; return exports; @@ -47340,62 +47928,86 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(175)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(166)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../../../alfrescoApiClient'), require('./AppDefinitionRepresentation')); + module.exports = factory(require('../../../alfrescoApiClient'), require('./AbstractRepresentation')); } else { // Browser globals (root is window) if (!root.ActivitiPublicRestApi) { root.ActivitiPublicRestApi = {}; } - root.ActivitiPublicRestApi.RuntimeAppDefinitionSaveRepresentation = factory(root.ActivitiPublicRestApi.ApiClient, root.ActivitiPublicRestApi.AppDefinitionRepresentation); + root.ActivitiPublicRestApi.ResultListDataRepresentation = factory(root.ActivitiPublicRestApi.ApiClient, root.ActivitiPublicRestApi.AbstractRepresentation); } - }(this, function(ApiClient, AppDefinitionRepresentation) { + }(this, function(ApiClient, AbstractRepresentation) { 'use strict'; /** - * The RuntimeAppDefinitionSaveRepresentation model module. - * @module model/RuntimeAppDefinitionSaveRepresentation + * The ResultListDataRepresentation model module. + * @module model/ResultListDataRepresentation * @version 1.4.0 */ /** - * Constructs a new RuntimeAppDefinitionSaveRepresentation. - * @alias module:model/RuntimeAppDefinitionSaveRepresentation + * Constructs a new ResultListDataRepresentation. + * @alias module:model/ResultListDataRepresentation * @class */ var exports = function() { var _this = this; + + + }; /** - * Constructs a RuntimeAppDefinitionSaveRepresentation from a plain JavaScript object, optionally creating a new instance. + * Constructs a ResultListDataRepresentation from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RuntimeAppDefinitionSaveRepresentation} obj Optional instance to populate. - * @return {module:model/RuntimeAppDefinitionSaveRepresentation} The populated RuntimeAppDefinitionSaveRepresentation instance. + * @param {module:model/ResultListDataRepresentation} obj Optional instance to populate. + * @return {module:model/ResultListDataRepresentation} The populated ResultListDataRepresentation instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = data || new exports(); - if (data.hasOwnProperty('appDefinitions')) { - obj['appDefinitions'] = ApiClient.convertToType(data['appDefinitions'], [AppDefinitionRepresentation]); + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], 'object'); + } + if (data.hasOwnProperty('size')) { + obj['size'] = ApiClient.convertToType(data['size'], 'Integer'); + } + if (data.hasOwnProperty('start')) { + obj['start'] = ApiClient.convertToType(data['start'], 'Integer'); + } + if (data.hasOwnProperty('total')) { + obj['total'] = ApiClient.convertToType(data['total'], 'Integer'); } } return obj; } /** - * @member {Array.} appDefinitions + * @member {Array.} data */ - exports.prototype['appDefinitions'] = undefined; + exports.prototype['data'] = undefined; + /** + * @member {Integer} size + */ + exports.prototype['size'] = undefined; + /** + * @member {Integer} start + */ + exports.prototype['start'] = undefined; + /** + * @member {Integer} total + */ + exports.prototype['total'] = undefined; @@ -49967,7 +50579,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(168), __webpack_require__(207), __webpack_require__(249), __webpack_require__(165), __webpack_require__(172)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(168), __webpack_require__(207), __webpack_require__(228), __webpack_require__(165), __webpack_require__(172)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../../../alfrescoApiClient'), require('../model/AddGroupCapabilitiesRepresentation'), require('../model/GroupRepresentation'), require('../model/ResultListDataRepresentation'), require('../model/AbstractGroupRepresentation'), require('../model/LightGroupRepresentation')); @@ -50752,103 +51364,6 @@ /***/ }, /* 249 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(166)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../../../alfrescoApiClient'), require('./AbstractRepresentation')); - } else { - // Browser globals (root is window) - if (!root.ActivitiPublicRestApi) { - root.ActivitiPublicRestApi = {}; - } - root.ActivitiPublicRestApi.ResultListDataRepresentation = factory(root.ActivitiPublicRestApi.ApiClient, root.ActivitiPublicRestApi.AbstractRepresentation); - } - }(this, function(ApiClient, AbstractRepresentation) { - 'use strict'; - - - - - /** - * The ResultListDataRepresentation model module. - * @module model/ResultListDataRepresentation - * @version 1.4.0 - */ - - /** - * Constructs a new ResultListDataRepresentation. - * @alias module:model/ResultListDataRepresentation - * @class - */ - var exports = function() { - var _this = this; - - - - - - }; - - /** - * Constructs a ResultListDataRepresentation from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ResultListDataRepresentation} obj Optional instance to populate. - * @return {module:model/ResultListDataRepresentation} The populated ResultListDataRepresentation instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], 'object'); - } - if (data.hasOwnProperty('size')) { - obj['size'] = ApiClient.convertToType(data['size'], 'Integer'); - } - if (data.hasOwnProperty('start')) { - obj['start'] = ApiClient.convertToType(data['start'], 'Integer'); - } - if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Integer'); - } - } - return obj; - } - - /** - * @member {Array.} data - */ - exports.prototype['data'] = undefined; - /** - * @member {Integer} size - */ - exports.prototype['size'] = undefined; - /** - * @member {Integer} start - */ - exports.prototype['start'] = undefined; - /** - * @member {Integer} total - */ - exports.prototype['total'] = undefined; - - - - - return exports; - })); - - - - -/***/ }, -/* 250 */ /***/ function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { @@ -51240,13 +51755,13 @@ /***/ }, -/* 251 */ +/* 250 */ /***/ function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(179), __webpack_require__(208), __webpack_require__(167), __webpack_require__(249)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(179), __webpack_require__(208), __webpack_require__(167), __webpack_require__(228)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../../../alfrescoApiClient'), require('../model/BulkUserUpdateRepresentation'), require('../model/UserRepresentation'), require('../model/AbstractUserRepresentation'), require('../model/ResultListDataRepresentation')); @@ -51521,13 +52036,13 @@ /***/ }, -/* 252 */ +/* 251 */ /***/ function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(249)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(228)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../../../alfrescoApiClient'), require('../model/ResultListDataRepresentation')); @@ -51974,13 +52489,13 @@ /***/ }, -/* 253 */ +/* 252 */ /***/ function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(228), __webpack_require__(249), __webpack_require__(175), __webpack_require__(174), __webpack_require__(176)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(253), __webpack_require__(228), __webpack_require__(175), __webpack_require__(174), __webpack_require__(176)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../../../alfrescoApiClient'), require('../model/RuntimeAppDefinitionSaveRepresentation'), require('../model/ResultListDataRepresentation'), require('../model/AppDefinitionRepresentation'), require('../model/AppDefinitionPublishRepresentation'), require('../model/AppDefinitionUpdateResultRepresentation')); @@ -52283,6 +52798,79 @@ })); +/***/ }, +/* 253 */ +/***/ function(module, exports, __webpack_require__) { + + var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { + if (true) { + // AMD. Register as an anonymous module. + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(175)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../../../alfrescoApiClient'), require('./AppDefinitionRepresentation')); + } else { + // Browser globals (root is window) + if (!root.ActivitiPublicRestApi) { + root.ActivitiPublicRestApi = {}; + } + root.ActivitiPublicRestApi.RuntimeAppDefinitionSaveRepresentation = factory(root.ActivitiPublicRestApi.ApiClient, root.ActivitiPublicRestApi.AppDefinitionRepresentation); + } + }(this, function(ApiClient, AppDefinitionRepresentation) { + 'use strict'; + + + + + /** + * The RuntimeAppDefinitionSaveRepresentation model module. + * @module model/RuntimeAppDefinitionSaveRepresentation + * @version 1.4.0 + */ + + /** + * Constructs a new RuntimeAppDefinitionSaveRepresentation. + * @alias module:model/RuntimeAppDefinitionSaveRepresentation + * @class + */ + var exports = function() { + var _this = this; + + + }; + + /** + * Constructs a RuntimeAppDefinitionSaveRepresentation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RuntimeAppDefinitionSaveRepresentation} obj Optional instance to populate. + * @return {module:model/RuntimeAppDefinitionSaveRepresentation} The populated RuntimeAppDefinitionSaveRepresentation instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = data || new exports(); + + if (data.hasOwnProperty('appDefinitions')) { + obj['appDefinitions'] = ApiClient.convertToType(data['appDefinitions'], [AppDefinitionRepresentation]); + } + } + return obj; + } + + /** + * @member {Array.} appDefinitions + */ + exports.prototype['appDefinitions'] = undefined; + + + + + return exports; + })); + + + + /***/ }, /* 254 */ /***/ function(module, exports, __webpack_require__) { @@ -52519,7 +53107,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(228), __webpack_require__(249)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(253), __webpack_require__(228)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../../../alfrescoApiClient'), require('../model/RuntimeAppDefinitionSaveRepresentation'), require('../model/ResultListDataRepresentation')); @@ -52641,7 +53229,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(182), __webpack_require__(249)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(182), __webpack_require__(228)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../../../alfrescoApiClient'), require('../model/CommentRepresentation'), require('../model/ResultListDataRepresentation')); @@ -52876,7 +53464,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(226), __webpack_require__(249)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(226), __webpack_require__(228)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../../../alfrescoApiClient'), require('../model/RelatedContentRepresentation'), require('../model/ResultListDataRepresentation')); @@ -53814,7 +54402,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(249)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(228)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../../../alfrescoApiClient'), require('../model/ResultListDataRepresentation')); @@ -54074,7 +54662,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(239), __webpack_require__(249), __webpack_require__(178)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(239), __webpack_require__(228), __webpack_require__(178)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../../../alfrescoApiClient'), require('../model/UserAccountCredentialsRepresentation'), require('../model/ResultListDataRepresentation'), require('../model/BoxUserAccountCredentialsRepresentation')); @@ -54903,7 +55491,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(249)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(228)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../../../alfrescoApiClient'), require('../model/ResultListDataRepresentation')); @@ -54983,7 +55571,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(249)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(228)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../../../alfrescoApiClient'), require('../model/ResultListDataRepresentation')); @@ -55245,7 +55833,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(249)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(228)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../../../alfrescoApiClient'), require('../model/ResultListDataRepresentation')); @@ -55471,7 +56059,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(239), __webpack_require__(249), __webpack_require__(178)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(239), __webpack_require__(228), __webpack_require__(178)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../../../alfrescoApiClient'), require('../model/UserAccountCredentialsRepresentation'), require('../model/ResultListDataRepresentation'), require('../model/BoxUserAccountCredentialsRepresentation')); @@ -55813,7 +56401,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(249)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(228)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../../../alfrescoApiClient'), require('../model/ResultListDataRepresentation')); @@ -56210,7 +56798,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(216), __webpack_require__(217), __webpack_require__(249), __webpack_require__(244)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(216), __webpack_require__(217), __webpack_require__(228), __webpack_require__(244)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../../../alfrescoApiClient'), require('../model/ModelRepresentation'), require('../model/ObjectNode'), require('../model/ResultListDataRepresentation'), require('../model/ValidationErrorRepresentation')); @@ -56833,7 +57421,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(249), __webpack_require__(216)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(228), __webpack_require__(216)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../../../alfrescoApiClient'), require('../model/ResultListDataRepresentation'), require('../model/ModelRepresentation')); @@ -56971,7 +57559,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(220), __webpack_require__(249), __webpack_require__(194), __webpack_require__(221), __webpack_require__(218), __webpack_require__(205), __webpack_require__(186)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(220), __webpack_require__(228), __webpack_require__(194), __webpack_require__(221), __webpack_require__(218), __webpack_require__(205), __webpack_require__(186)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../../../alfrescoApiClient'), require('../model/ProcessInstanceFilterRequestRepresentation'), require('../model/ResultListDataRepresentation'), require('../model/FormDefinitionRepresentation'), require('../model/ProcessInstanceRepresentation'), require('../model/ProcessFilterRequestRepresentation'), require('../model/FormValueRepresentation'), require('../model/CreateProcessInstanceRepresentation')); @@ -57471,7 +58059,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(249)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(228)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../../../alfrescoApiClient'), require('../model/ResultListDataRepresentation')); @@ -57716,7 +58304,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(182), __webpack_require__(249), __webpack_require__(194), __webpack_require__(221)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(182), __webpack_require__(228), __webpack_require__(194), __webpack_require__(221)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../../../alfrescoApiClient'), require('../model/CommentRepresentation'), require('../model/ResultListDataRepresentation'), require('../model/FormDefinitionRepresentation'), require('../model/ProcessInstanceRepresentation')); @@ -57980,7 +58568,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(249), __webpack_require__(186), __webpack_require__(221)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(228), __webpack_require__(186), __webpack_require__(221)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../../../alfrescoApiClient'), require('../model/ResultListDataRepresentation'), require('../model/CreateProcessInstanceRepresentation'), require('../model/ProcessInstanceRepresentation')); @@ -58106,7 +58694,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(220), __webpack_require__(249), __webpack_require__(217)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(220), __webpack_require__(228), __webpack_require__(217)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../../../alfrescoApiClient'), require('../model/ProcessInstanceFilterRequestRepresentation'), require('../model/ResultListDataRepresentation'), require('../model/ObjectNode')); @@ -59049,7 +59637,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(console) {(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(235), __webpack_require__(182), __webpack_require__(217), __webpack_require__(183), __webpack_require__(226), __webpack_require__(233), __webpack_require__(249), __webpack_require__(205), __webpack_require__(194), __webpack_require__(181), __webpack_require__(229), __webpack_require__(236)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(235), __webpack_require__(182), __webpack_require__(217), __webpack_require__(183), __webpack_require__(226), __webpack_require__(233), __webpack_require__(228), __webpack_require__(205), __webpack_require__(194), __webpack_require__(181), __webpack_require__(229), __webpack_require__(236)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../../../alfrescoApiClient'), require('../model/TaskRepresentation'), require('../model/CommentRepresentation'), require('../model/ObjectNode'), require('../model/CompleteFormRepresentation'), require('../model/RelatedContentRepresentation'), require('../model/TaskFilterRequestRepresentation'), require('../model/ResultListDataRepresentation'), require('../model/FormValueRepresentation'), require('../model/FormDefinitionRepresentation'), require('../model/ChecklistOrderRepresentation'), require('../model/SaveFormRepresentation'), require('../model/TaskUpdateRepresentation')); @@ -60740,7 +61328,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(235), __webpack_require__(249), __webpack_require__(181)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(235), __webpack_require__(228), __webpack_require__(181)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../../../alfrescoApiClient'), require('../model/TaskRepresentation'), require('../model/ResultListDataRepresentation'), require('../model/ChecklistOrderRepresentation')); @@ -61462,7 +62050,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(240), __webpack_require__(208), __webpack_require__(249), __webpack_require__(227)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(240), __webpack_require__(208), __webpack_require__(228), __webpack_require__(227)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../../../alfrescoApiClient'), require('../model/UserActionRepresentation'), require('../model/UserRepresentation'), require('../model/ResultListDataRepresentation'), require('../model/ResetPasswordRepresentation')); @@ -61781,7 +62369,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(242), __webpack_require__(243), __webpack_require__(249), __webpack_require__(241)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(242), __webpack_require__(243), __webpack_require__(228), __webpack_require__(241)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../../../alfrescoApiClient'), require('../model/UserProcessInstanceFilterRepresentation'), require('../model/UserTaskFilterRepresentation'), require('../model/ResultListDataRepresentation'), require('../model/UserFilterOrderRepresentation')); @@ -62338,7 +62926,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { if (true) { // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(249)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(228)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../../../alfrescoApiClient'), require('../model/ResultListDataRepresentation')); @@ -62431,6 +63019,535 @@ /***/ }, /* 291 */ +/***/ function(module, exports, __webpack_require__) { + + var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { + if (true) { + // AMD. Register as an anonymous module. + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(292), __webpack_require__(294), __webpack_require__(295)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../../../alfrescoApiClient'), require('../model/ReportCharts'), require('../model/ParameterValueRepresentation'), require('../model/ReportParametersDefinition')); + } else { + // Browser globals (root is window) + if (!root.ActivitiPublicRestApi) { + root.ActivitiPublicRestApi = {}; + } + root.ActivitiPublicRestApi.ReportApi = factory(root.ActivitiPublicRestApi.ApiClient, root.ActivitiPublicRestApi.ReportCharts, root.ActivitiPublicRestApi.ParameterValueRepresentation, root.ActivitiPublicRestApi.ReportParametersDefinition); + } + }(this, function(ApiClient, ReportCharts, ParameterValueRepresentation, ReportParametersDefinition) { + 'use strict'; + + /** + * Report service. + * @module api/ReportApi + * @version 1.4.0 + */ + + /** + * Constructs a new ReportApi. + * @alias module:api/ReportApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + var exports = function(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + + /** + * Create the default reports + */ + this.createDefaultReports = function() { + var postBody = null; + + var pathParams = { + }; + var queryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = null; + + return this.apiClient.callApi( + '/app/rest/reporting/default-reports', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + this.getTasksByProcessDefinitionId = function(reportId, processDefinitionId) { + var postBody = null; + + if (reportId == undefined || reportId == null) { + throw "Missing the required parameter 'reportId' when calling getTasksByProcessDefinitionId"; + } + + if (processDefinitionId == undefined || processDefinitionId == null) { + throw "Missing the required parameter 'processDefinitionId' when calling getTasksByProcessDefinitionId"; + } + + var pathParams = { + 'reportId': reportId + }; + var queryParams = { + 'processDefinitionId': processDefinitionId + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = ['String']; + + return this.apiClient.callApi( + '/app/rest/reporting/report-params/{reportId}/tasks', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + this.getReportsByParams = function(reportId, paramsQuery) { + var postBody = paramsQuery; + + if (reportId == undefined || reportId == null) { + throw "Missing the required parameter 'reportId' when calling getReportsByParams"; + } + + var pathParams = { + 'reportId': reportId + }; + var queryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = ReportCharts; + + return this.apiClient.callApi( + '/app/rest/reporting/report-params/{reportId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + this.getProcessDefinitionsValuesNoApp = function() { + var postBody = null; + + var pathParams = { + }; + var queryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = [ParameterValueRepresentation]; + + return this.apiClient.callApi( + '/app/rest/reporting/process-definitions', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + this.getReportParams = function(reportId) { + var postBody = null; + + if (reportId == undefined || reportId == null) { + throw "Missing the required parameter 'reportId' when calling getReportParams"; + } + + var pathParams = { + 'reportId': reportId + }; + var queryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = ReportParametersDefinition; + + return this.apiClient.callApi( + '/app/rest/reporting/report-params/{reportId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + this.getReportList = function() { + var postBody = null; + + var pathParams = { + }; + var queryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = [ReportParametersDefinition]; + + return this.apiClient.callApi( + '/app/rest/reporting/reports', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + }; + + return exports; + })); + + +/***/ }, +/* 292 */ +/***/ function(module, exports, __webpack_require__) { + + var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { + if (true) { + // AMD. Register as an anonymous module. + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136), __webpack_require__(293)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../../../alfrescoApiClient'), require('./Chart')); + } else { + // Browser globals (root is window) + if (!root.ActivitiPublicRestApi) { + root.ActivitiPublicRestApi = {}; + } + root.ActivitiPublicRestApi.ReportCharts = factory(root.ActivitiPublicRestApi.ApiClient, root.ActivitiPublicRestApi.Chart); + } + }(this, function(ApiClient, Chart) { + 'use strict'; + + /** + * The ReportCharts model module. + * @module model/ReportCharts + * @version 1.4.0 + */ + + /** + * Constructs a new ReportCharts. + * @alias module:model/ReportCharts + * @class + */ + var exports = function() { + var _this = this; + + + + }; + + /** + * Constructs a ReportCharts from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @return {module:model/ReportCharts} The populated ReportCharts instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = data || new exports(); + + if (data.hasOwnProperty('elements')) { + obj['elements'] = ApiClient.convertToType(data['elements'], [Chart]); + } + } + return obj; + } + + /** + * @member {String} elements + */ + exports.prototype['elements'] = undefined; + + return exports; + })); + + + + +/***/ }, +/* 293 */ +/***/ function(module, exports, __webpack_require__) { + + var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { + if (true) { + // AMD. Register as an anonymous module. + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../../../alfrescoApiClient')); + } else { + // Browser globals (root is window) + if (!root.ActivitiPublicRestApi) { + root.ActivitiPublicRestApi = {}; + } + root.ActivitiPublicRestApi.Chart = factory(root.ActivitiPublicRestApi.ApiClient); + } + }(this, function(ApiClient) { + 'use strict'; + + /** + * The ReportQuery model module. + * @module model/Chart + * @version 1.4.0 + */ + + /** + * Constructs a new Chart. + * @alias module:model/Chart + * @class + */ + var exports = function() { + var _this = this; + + + + }; + + /** + * Constructs a ReportCharts from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @return {module:model/ReportCharts} The populated ReportCharts instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = data || new exports(); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'String'); + } + if (data.hasOwnProperty('type')) { + obj['type'] = ApiClient.convertToType(data['type'], 'String'); + } + } + return obj; + } + + /** + * @member {String} processDefinitionId + */ + exports.prototype['id'] = undefined; + /** + * @member {String} status + */ + exports.prototype['type'] = undefined; + + return exports; + })); + + + + +/***/ }, +/* 294 */ +/***/ function(module, exports, __webpack_require__) { + + var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { + if (true) { + // AMD. Register as an anonymous module. + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../../../alfrescoApiClient')); + } else { + // Browser globals (root is window) + if (!root.ActivitiPublicRestApi) { + root.ActivitiPublicRestApi = {}; + } + root.ActivitiPublicRestApi.ParameterValueRepresentation = factory(root.ActivitiPublicRestApi.ApiClient); + } + }(this, function(ApiClient) { + 'use strict'; + + + + + /** + * The ParameterValueRepresentation model module. + * @module model/ParameterValueRepresentation + * @version 1.4.0 + */ + + /** + * Constructs a new ParameterValueRepresentation. + * @alias module:model/ParameterValueRepresentation + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a ParameterValueRepresentation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ParameterValueRepresentation} obj Optional instance to populate. + * @return {module:model/ParameterValueRepresentation} The populated ParameterValueRepresentation instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = data || new exports(); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('version')) { + obj['version'] = ApiClient.convertToType(data['version'], 'String'); + } + if (data.hasOwnProperty('value')) { + obj['value'] = ApiClient.convertToType(data['value'], 'String'); + } + } + return obj; + } + + /** + * @member {String} id + */ + exports.prototype['id'] = undefined; + /** + * @member {String} name + */ + exports.prototype['name'] = undefined; + /** + * @member {String} version + */ + exports.prototype['version'] = undefined; + /** + * @member {String} value + */ + exports.prototype['value'] = undefined; + + return exports; + })); + + + + +/***/ }, +/* 295 */ +/***/ function(module, exports, __webpack_require__) { + + var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { + if (true) { + // AMD. Register as an anonymous module. + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(136)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../../../alfrescoApiClient')); + } else { + // Browser globals (root is window) + if (!root.ActivitiPublicRestApi) { + root.ActivitiPublicRestApi = {}; + } + root.ActivitiPublicRestApi.ReportParametersDefinition = factory(root.ActivitiPublicRestApi.ApiClient); + } + }(this, function(ApiClient) { + 'use strict'; + + + + + /** + * The ReportParametersDefinition model module. + * @module model/ReportParametersDefinition + * @version 1.4.0 + */ + + /** + * Constructs a new ReportParametersDefinition. + * @alias module:model/ReportParametersDefinition + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a ReportParametersDefinition from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ReportParametersDefinition} obj Optional instance to populate. + * @return {module:model/ReportParametersDefinition} The populated ReportParametersDefinition instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = data || new exports(); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Integer'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('definition')) { + obj['definition'] = ApiClient.convertToType(data['definition'], 'String'); + } + if (data.hasOwnProperty('created')) { + obj['created'] = ApiClient.convertToType(data['created'], 'String'); + } + } + return obj; + } + + /** + * @member {Integer} id + */ + exports.prototype['id'] = undefined; + /** + * @member {String} name + */ + exports.prototype['name'] = undefined; + /** + * @member {String} definition + */ + exports.prototype['definition'] = undefined; + /** + * @member {String} value + */ + exports.prototype['created'] = undefined; + + return exports; + })); + + + + +/***/ }, +/* 296 */ /***/ function(module, exports) { 'use strict'; @@ -62487,7 +63604,7 @@ /***/ }, -/* 292 */ +/* 297 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -62571,7 +63688,7 @@ /***/ }, -/* 293 */ +/* 298 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -62656,7 +63773,7 @@ /***/ }, -/* 294 */ +/* 299 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -62717,7 +63834,7 @@ /***/ }, -/* 295 */ +/* 300 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -62891,7 +64008,7 @@ /***/ }, -/* 296 */ +/* 301 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(Buffer) {'use strict'; @@ -63068,7 +64185,7 @@ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(6).Buffer)) /***/ }, -/* 297 */ +/* 302 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -63116,7 +64233,7 @@ /***/ }, -/* 298 */ +/* 303 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -63162,7 +64279,7 @@ /***/ }, -/* 299 */ +/* 304 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; From 1a4500c7b82c5ef2a3500cb18cb580ca22c584b8 Mon Sep 17 00:00:00 2001 From: Maurizio Vitale Date: Mon, 12 Dec 2016 17:21:48 +0000 Subject: [PATCH 04/13] #126 (#127) --- README.md | 22 + dist/alfresco-js-api.js | 2737 +++++++++-------- dist/alfresco-js-api.min.js | 24 +- package.json | 1 + .../docs/ReportApi.md | 36 + .../src/api/ReportApi.js | 31 + test/activitiReportApi.spec.js | 11 + test/mockObjects/activiti/reportsMock.js | 6 + webpack-bundle-test.js | 904 +++--- 9 files changed, 2001 insertions(+), 1771 deletions(-) diff --git a/README.md b/README.md index de21ffc6de..771b88f271 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,7 @@ This project provides a JavaScript client API into the Alfresco REST API and Act + [Report Process Definitions](#report-process-definitions) + [Tasks of process definition](#tasks-of-process-definition) + [Generate reports](#generate-reports) + + [Update report details](#update-report-details) - [Development](#development) - [Release History](#release-history) @@ -1036,6 +1037,27 @@ var paramsQuery = {status: 'ALL'}; // Object | paramsQuery this.alfrescoJsApi.activiti.reportApi.getReportsByParams(reportId, paramsQuery); ``` +## Update report details + +updateReport(reportId, name) + +> Update the report details + +####Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reportId** | **String**| reportId | + **name** | **String**| The report name | + +####Example + +```javascript + +var reportId = "1"; // String | reportId +var name = "new Fake name"; // String | reportId + +this.alfrescoJsApi.activiti.reportApi.updateReport(reportId, name); +``` # Development diff --git a/dist/alfresco-js-api.js b/dist/alfresco-js-api.js index b5080ce42a..4dd16f4457 100644 --- a/dist/alfresco-js-api.js +++ b/dist/alfresco-js-api.js @@ -2513,8 +2513,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { (function (global){ /** * @license - * lodash - * Copyright jQuery Foundation and other contributors + * Lodash + * Copyright JS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors @@ -2525,13 +2525,13 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { var undefined; /** Used as the semantic version number. */ - var VERSION = '4.16.4'; + var VERSION = '4.17.2'; /** Used as the size to enable large array optimizations. */ var LARGE_ARRAY_SIZE = 200; /** Error message constants. */ - var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://github.com/es-shims.', + var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.', FUNC_ERROR_TEXT = 'Expected a function'; /** Used to stand-in for `undefined` hash values. */ @@ -2543,28 +2543,33 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** Used as the internal argument placeholder. */ var PLACEHOLDER = '__lodash_placeholder__'; + /** Used to compose bitmasks for cloning. */ + var CLONE_DEEP_FLAG = 1, + CLONE_FLAT_FLAG = 2, + CLONE_SYMBOLS_FLAG = 4; + + /** Used to compose bitmasks for value comparisons. */ + var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; + /** Used to compose bitmasks for function metadata. */ - var BIND_FLAG = 1, - BIND_KEY_FLAG = 2, - CURRY_BOUND_FLAG = 4, - CURRY_FLAG = 8, - CURRY_RIGHT_FLAG = 16, - PARTIAL_FLAG = 32, - PARTIAL_RIGHT_FLAG = 64, - ARY_FLAG = 128, - REARG_FLAG = 256, - FLIP_FLAG = 512; - - /** Used to compose bitmasks for comparison styles. */ - var UNORDERED_COMPARE_FLAG = 1, - PARTIAL_COMPARE_FLAG = 2; + var WRAP_BIND_FLAG = 1, + WRAP_BIND_KEY_FLAG = 2, + WRAP_CURRY_BOUND_FLAG = 4, + WRAP_CURRY_FLAG = 8, + WRAP_CURRY_RIGHT_FLAG = 16, + WRAP_PARTIAL_FLAG = 32, + WRAP_PARTIAL_RIGHT_FLAG = 64, + WRAP_ARY_FLAG = 128, + WRAP_REARG_FLAG = 256, + WRAP_FLIP_FLAG = 512; /** Used as default options for `_.truncate`. */ var DEFAULT_TRUNC_LENGTH = 30, DEFAULT_TRUNC_OMISSION = '...'; /** Used to detect hot functions by number of calls within a span of milliseconds. */ - var HOT_COUNT = 500, + var HOT_COUNT = 800, HOT_SPAN = 16; /** Used to indicate the type of lazy iteratees. */ @@ -2585,27 +2590,30 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** Used to associate wrap methods with their bit flags. */ var wrapFlags = [ - ['ary', ARY_FLAG], - ['bind', BIND_FLAG], - ['bindKey', BIND_KEY_FLAG], - ['curry', CURRY_FLAG], - ['curryRight', CURRY_RIGHT_FLAG], - ['flip', FLIP_FLAG], - ['partial', PARTIAL_FLAG], - ['partialRight', PARTIAL_RIGHT_FLAG], - ['rearg', REARG_FLAG] + ['ary', WRAP_ARY_FLAG], + ['bind', WRAP_BIND_FLAG], + ['bindKey', WRAP_BIND_KEY_FLAG], + ['curry', WRAP_CURRY_FLAG], + ['curryRight', WRAP_CURRY_RIGHT_FLAG], + ['flip', WRAP_FLIP_FLAG], + ['partial', WRAP_PARTIAL_FLAG], + ['partialRight', WRAP_PARTIAL_RIGHT_FLAG], + ['rearg', WRAP_REARG_FLAG] ]; /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arrayTag = '[object Array]', + asyncTag = '[object AsyncFunction]', boolTag = '[object Boolean]', dateTag = '[object Date]', + domExcTag = '[object DOMException]', errorTag = '[object Error]', funcTag = '[object Function]', genTag = '[object GeneratorFunction]', mapTag = '[object Map]', numberTag = '[object Number]', + nullTag = '[object Null]', objectTag = '[object Object]', promiseTag = '[object Promise]', proxyTag = '[object Proxy]', @@ -2613,6 +2621,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { setTag = '[object Set]', stringTag = '[object String]', symbolTag = '[object Symbol]', + undefinedTag = '[object Undefined]', weakMapTag = '[object WeakMap]', weakSetTag = '[object WeakSet]'; @@ -2708,8 +2717,10 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** Used to compose unicode character classes. */ var rsAstralRange = '\\ud800-\\udfff', - rsComboMarksRange = '\\u0300-\\u036f\\ufe20-\\ufe23', - rsComboSymbolsRange = '\\u20d0-\\u20f0', + rsComboMarksRange = '\\u0300-\\u036f', + reComboHalfMarksRange = '\\ufe20-\\ufe2f', + rsComboSymbolsRange = '\\u20d0-\\u20ff', + rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, rsDingbatRange = '\\u2700-\\u27bf', rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff', rsMathOpRange = '\\xac\\xb1\\xd7\\xf7', @@ -2724,7 +2735,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { var rsApos = "['\u2019]", rsAstral = '[' + rsAstralRange + ']', rsBreak = '[' + rsBreakRange + ']', - rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']', + rsCombo = '[' + rsComboRange + ']', rsDigits = '\\d+', rsDingbat = '[' + rsDingbatRange + ']', rsLower = '[' + rsLowerRange + ']', @@ -2738,13 +2749,15 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { rsZWJ = '\\u200d'; /** Used to compose unicode regexes. */ - var rsLowerMisc = '(?:' + rsLower + '|' + rsMisc + ')', - rsUpperMisc = '(?:' + rsUpper + '|' + rsMisc + ')', - rsOptLowerContr = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?', - rsOptUpperContr = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?', + var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')', + rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')', + rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?', + rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?', reOptMod = rsModifier + '?', rsOptVar = '[' + rsVarRange + ']?', rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*', + rsOrdLower = '\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)', + rsOrdUpper = '\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)', rsSeq = rsOptVar + reOptMod + rsOptJoin, rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq, rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')'; @@ -2763,16 +2776,18 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** Used to match complex or compound words. */ var reUnicodeWord = RegExp([ - rsUpper + '?' + rsLower + '+' + rsOptLowerContr + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')', - rsUpperMisc + '+' + rsOptUpperContr + '(?=' + [rsBreak, rsUpper + rsLowerMisc, '$'].join('|') + ')', - rsUpper + '?' + rsLowerMisc + '+' + rsOptLowerContr, - rsUpper + '+' + rsOptUpperContr, + rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')', + rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')', + rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower, + rsUpper + '+' + rsOptContrUpper, + rsOrdUpper, + rsOrdLower, rsDigits, rsEmoji ].join('|'), 'g'); /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */ - var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + ']'); + var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']'); /** Used to detect strings that need a more robust regexp to match words. */ var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/; @@ -2935,7 +2950,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** Used to access faster Node.js helpers. */ var nodeUtil = (function() { try { - return freeProcess && freeProcess.binding('util'); + return freeProcess && freeProcess.binding && freeProcess.binding('util'); } catch (e) {} }()); @@ -3009,7 +3024,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function arrayAggregator(array, setter, iteratee, accumulator) { var index = -1, - length = array ? array.length : 0; + length = array == null ? 0 : array.length; while (++index < length) { var value = array[index]; @@ -3029,7 +3044,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function arrayEach(array, iteratee) { var index = -1, - length = array ? array.length : 0; + length = array == null ? 0 : array.length; while (++index < length) { if (iteratee(array[index], index, array) === false) { @@ -3049,7 +3064,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Array} Returns `array`. */ function arrayEachRight(array, iteratee) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; while (length--) { if (iteratee(array[length], length, array) === false) { @@ -3071,7 +3086,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function arrayEvery(array, predicate) { var index = -1, - length = array ? array.length : 0; + length = array == null ? 0 : array.length; while (++index < length) { if (!predicate(array[index], index, array)) { @@ -3092,7 +3107,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function arrayFilter(array, predicate) { var index = -1, - length = array ? array.length : 0, + length = array == null ? 0 : array.length, resIndex = 0, result = []; @@ -3115,7 +3130,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {boolean} Returns `true` if `target` is found, else `false`. */ function arrayIncludes(array, value) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; return !!length && baseIndexOf(array, value, 0) > -1; } @@ -3130,7 +3145,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function arrayIncludesWith(array, value, comparator) { var index = -1, - length = array ? array.length : 0; + length = array == null ? 0 : array.length; while (++index < length) { if (comparator(value, array[index])) { @@ -3151,7 +3166,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function arrayMap(array, iteratee) { var index = -1, - length = array ? array.length : 0, + length = array == null ? 0 : array.length, result = Array(length); while (++index < length) { @@ -3193,7 +3208,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function arrayReduce(array, iteratee, accumulator, initAccum) { var index = -1, - length = array ? array.length : 0; + length = array == null ? 0 : array.length; if (initAccum && length) { accumulator = array[++index]; @@ -3217,7 +3232,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {*} Returns the accumulated value. */ function arrayReduceRight(array, iteratee, accumulator, initAccum) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (initAccum && length) { accumulator = array[--length]; } @@ -3239,7 +3254,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function arraySome(array, predicate) { var index = -1, - length = array ? array.length : 0; + length = array == null ? 0 : array.length; while (++index < length) { if (predicate(array[index], index, array)) { @@ -3383,7 +3398,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {number} Returns the mean. */ function baseMean(array, iteratee) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; return length ? (baseSum(array, iteratee) / length) : NAN; } @@ -3923,7 +3938,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer; */ var runInContext = (function runInContext(context) { - context = context ? _.defaults(root.Object(), context, _.pick(root, contextProps)) : root; + context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps)); /** Built-in constructor references. */ var Array = context.Array, @@ -3944,12 +3959,6 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** Used to detect overreaching core-js shims. */ var coreJsData = context['__core-js_shared__']; - /** Used to detect methods masquerading as native. */ - var maskSrcKey = (function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); - return uid ? ('Symbol(src)_1.' + uid) : ''; - }()); - /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; @@ -3959,15 +3968,21 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** Used to generate unique IDs. */ var idCounter = 0; - /** Used to infer the `Object` constructor. */ - var objectCtorString = funcToString.call(Object); + /** Used to detect methods masquerading as native. */ + var maskSrcKey = (function() { + var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); + return uid ? ('Symbol(src)_1.' + uid) : ''; + }()); /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ - var objectToString = objectProto.toString; + var nativeObjectToString = objectProto.toString; + + /** Used to infer the `Object` constructor. */ + var objectCtorString = funcToString.call(Object); /** Used to restore the original `_` reference in `_.noConflict`. */ var oldDash = root._; @@ -3984,11 +3999,12 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { Uint8Array = context.Uint8Array, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined, getPrototype = overArg(Object.getPrototypeOf, Object), - iteratorSymbol = Symbol ? Symbol.iterator : undefined, objectCreate = Object.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, - spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined; + spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined, + symIterator = Symbol ? Symbol.iterator : undefined, + symToStringTag = Symbol ? Symbol.toStringTag : undefined; var defineProperty = (function() { try { @@ -4422,7 +4438,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function Hash(entries) { var index = -1, - length = entries ? entries.length : 0; + length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { @@ -4526,7 +4542,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function ListCache(entries) { var index = -1, - length = entries ? entries.length : 0; + length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { @@ -4643,7 +4659,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function MapCache(entries) { var index = -1, - length = entries ? entries.length : 0; + length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { @@ -4747,7 +4763,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function SetCache(values) { var index = -1, - length = values ? values.length : 0; + length = values == null ? 0 : values.length; this.__data__ = new MapCache; while (++index < length) { @@ -5062,6 +5078,19 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return object && copyObject(source, keys(source), object); } + /** + * The base implementation of `_.assignIn` without support for multiple sources + * or `customizer` functions. + * + * @private + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @returns {Object} Returns `object`. + */ + function baseAssignIn(object, source) { + return object && copyObject(source, keysIn(source), object); + } + /** * The base implementation of `assignValue` and `assignMergeValue` without * value checks. @@ -5089,17 +5118,17 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * * @private * @param {Object} object The object to iterate over. - * @param {string[]} paths The property paths of elements to pick. + * @param {string[]} paths The property paths to pick. * @returns {Array} Returns the picked elements. */ function baseAt(object, paths) { var index = -1, - isNil = object == null, length = paths.length, - result = Array(length); + result = Array(length), + skip = object == null; while (++index < length) { - result[index] = isNil ? undefined : get(object, paths[index]); + result[index] = skip ? undefined : get(object, paths[index]); } return result; } @@ -5131,16 +5160,22 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * * @private * @param {*} value The value to clone. - * @param {boolean} [isDeep] Specify a deep clone. - * @param {boolean} [isFull] Specify a clone including symbols. + * @param {boolean} bitmask The bitmask flags. + * 1 - Deep clone + * 2 - Flatten inherited properties + * 4 - Clone symbols * @param {Function} [customizer] The function to customize cloning. * @param {string} [key] The key of `value`. * @param {Object} [object] The parent object of `value`. * @param {Object} [stack] Tracks traversed objects and their clone counterparts. * @returns {*} Returns the cloned value. */ - function baseClone(value, isDeep, isFull, customizer, key, object, stack) { - var result; + function baseClone(value, bitmask, customizer, key, object, stack) { + var result, + isDeep = bitmask & CLONE_DEEP_FLAG, + isFlat = bitmask & CLONE_FLAT_FLAG, + isFull = bitmask & CLONE_SYMBOLS_FLAG; + if (customizer) { result = object ? customizer(value, key, object, stack) : customizer(value); } @@ -5164,9 +5199,11 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return cloneBuffer(value, isDeep); } if (tag == objectTag || tag == argsTag || (isFunc && !object)) { - result = initCloneObject(isFunc ? {} : value); + result = (isFlat || isFunc) ? {} : initCloneObject(value); if (!isDeep) { - return copySymbols(value, baseAssign(result, value)); + return isFlat + ? copySymbolsIn(value, baseAssignIn(result, value)) + : copySymbols(value, baseAssign(result, value)); } } else { if (!cloneableTags[tag]) { @@ -5183,14 +5220,18 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } stack.set(value, result); - var props = isArr ? undefined : (isFull ? getAllKeys : keys)(value); + var keysFunc = isFull + ? (isFlat ? getAllKeysIn : getAllKeys) + : (isFlat ? keysIn : keys); + + var props = isArr ? undefined : keysFunc(value); arrayEach(props || value, function(subValue, key) { if (props) { key = subValue; subValue = value[key]; } // Recursively populate clone (susceptible to call stack limits). - assignValue(result, key, baseClone(subValue, isDeep, isFull, customizer, key, value, stack)); + assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack)); }); return result; } @@ -5289,7 +5330,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { outer: while (++index < length) { var value = array[index], - computed = iteratee ? iteratee(value) : value; + computed = iteratee == null ? value : iteratee(value); value = (comparator || value !== 0) ? value : 0; if (isCommon && computed === computed) { @@ -5528,7 +5569,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {*} Returns the resolved value. */ function baseGet(object, path) { - path = isKey(path, object) ? [path] : castPath(path); + path = castPath(path, object); var index = 0, length = path.length; @@ -5556,14 +5597,20 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } /** - * The base implementation of `getTag`. + * The base implementation of `getTag` without fallbacks for buggy environments. * * @private * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ function baseGetTag(value) { - return objectToString.call(value); + if (value == null) { + return value === undefined ? undefinedTag : nullTag; + } + value = Object(value); + return (symToStringTag && symToStringTag in value) + ? getRawTag(value) + : objectToString(value); } /** @@ -5708,12 +5755,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {*} Returns the result of the invoked method. */ function baseInvoke(object, path, args) { - if (!isKey(path, object)) { - path = castPath(path); - object = parent(object, path); - path = last(path); - } - var func = object == null ? object : object[toKey(path)]; + path = castPath(path, object); + object = parent(object, path); + var func = object == null ? object : object[toKey(last(path))]; return func == null ? undefined : apply(func, object, args); } @@ -5725,7 +5769,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {boolean} Returns `true` if `value` is an `arguments` object, */ function baseIsArguments(value) { - return isObjectLike(value) && objectToString.call(value) == argsTag; + return isObjectLike(value) && baseGetTag(value) == argsTag; } /** @@ -5736,7 +5780,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`. */ function baseIsArrayBuffer(value) { - return isObjectLike(value) && objectToString.call(value) == arrayBufferTag; + return isObjectLike(value) && baseGetTag(value) == arrayBufferTag; } /** @@ -5747,7 +5791,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {boolean} Returns `true` if `value` is a date object, else `false`. */ function baseIsDate(value) { - return isObjectLike(value) && objectToString.call(value) == dateTag; + return isObjectLike(value) && baseGetTag(value) == dateTag; } /** @@ -5757,22 +5801,21 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @private * @param {*} value The value to compare. * @param {*} other The other value to compare. + * @param {boolean} bitmask The bitmask flags. + * 1 - Unordered comparison + * 2 - Partial comparison * @param {Function} [customizer] The function to customize comparisons. - * @param {boolean} [bitmask] The bitmask of comparison flags. - * The bitmask may be composed of the following flags: - * 1 - Unordered comparison - * 2 - Partial comparison * @param {Object} [stack] Tracks traversed `value` and `other` objects. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. */ - function baseIsEqual(value, other, customizer, bitmask, stack) { + function baseIsEqual(value, other, bitmask, customizer, stack) { if (value === other) { return true; } if (value == null || other == null || (!isObject(value) && !isObjectLike(other))) { return value !== value && other !== other; } - return baseIsEqualDeep(value, other, baseIsEqual, customizer, bitmask, stack); + return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); } /** @@ -5783,14 +5826,13 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @private * @param {Object} object The object to compare. * @param {Object} other The other object to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. * @param {Function} equalFunc The function to determine equivalents of values. - * @param {Function} [customizer] The function to customize comparisons. - * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual` - * for more details. * @param {Object} [stack] Tracks traversed `object` and `other` objects. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. */ - function baseIsEqualDeep(object, other, equalFunc, customizer, bitmask, stack) { + function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { var objIsArr = isArray(object), othIsArr = isArray(other), objTag = arrayTag, @@ -5818,10 +5860,10 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { if (isSameTag && !objIsObj) { stack || (stack = new Stack); return (objIsArr || isTypedArray(object)) - ? equalArrays(object, other, equalFunc, customizer, bitmask, stack) - : equalByTag(object, other, objTag, equalFunc, customizer, bitmask, stack); + ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) + : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); } - if (!(bitmask & PARTIAL_COMPARE_FLAG)) { + if (!(bitmask & COMPARE_PARTIAL_FLAG)) { var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); @@ -5830,14 +5872,14 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { othUnwrapped = othIsWrapped ? other.value() : other; stack || (stack = new Stack); - return equalFunc(objUnwrapped, othUnwrapped, customizer, bitmask, stack); + return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); } } if (!isSameTag) { return false; } stack || (stack = new Stack); - return equalObjects(object, other, equalFunc, customizer, bitmask, stack); + return equalObjects(object, other, bitmask, customizer, equalFunc, stack); } /** @@ -5895,7 +5937,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { var result = customizer(objValue, srcValue, key, object, source, stack); } if (!(result === undefined - ? baseIsEqual(srcValue, objValue, customizer, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG, stack) + ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result )) { return false; @@ -5929,7 +5971,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {boolean} Returns `true` if `value` is a regexp, else `false`. */ function baseIsRegExp(value) { - return isObject(value) && objectToString.call(value) == regexpTag; + return isObjectLike(value) && baseGetTag(value) == regexpTag; } /** @@ -5952,7 +5994,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function baseIsTypedArray(value) { return isObjectLike(value) && - isLength(value.length) && !!typedArrayTags[objectToString.call(value)]; + isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; } /** @@ -6085,7 +6127,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { var objValue = get(object, path); return (objValue === undefined && objValue === srcValue) ? hasIn(object, path) - : baseIsEqual(srcValue, objValue, undefined, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG); + : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); }; } @@ -6247,13 +6289,13 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * * @private * @param {Object} object The source object. - * @param {string[]} props The property identifiers to pick. + * @param {string[]} paths The property paths to pick. * @returns {Object} Returns the new object. */ - function basePick(object, props) { + function basePick(object, paths) { object = Object(object); - return basePickBy(object, props, function(value, key) { - return key in object; + return basePickBy(object, paths, function(value, path) { + return hasIn(object, path); }); } @@ -6262,21 +6304,21 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * * @private * @param {Object} object The source object. - * @param {string[]} props The property identifiers to pick from. + * @param {string[]} paths The property paths to pick. * @param {Function} predicate The function invoked per property. * @returns {Object} Returns the new object. */ - function basePickBy(object, props, predicate) { + function basePickBy(object, paths, predicate) { var index = -1, - length = props.length, + length = paths.length, result = {}; while (++index < length) { - var key = props[index], - value = object[key]; + var path = paths[index], + value = baseGet(object, path); - if (predicate(value, key)) { - baseAssignValue(result, key, value); + if (predicate(value, path)) { + baseSet(result, castPath(path, object), value); } } return result; @@ -6352,17 +6394,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { var previous = index; if (isIndex(index)) { splice.call(array, index, 1); - } - else if (!isKey(index, array)) { - var path = castPath(index), - object = parent(array, path); - - if (object != null) { - delete object[toKey(last(path))]; - } - } - else { - delete array[toKey(index)]; + } else { + baseUnset(array, index); } } } @@ -6483,7 +6516,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { if (!isObject(object)) { return object; } - path = isKey(path, object) ? [path] : castPath(path); + path = castPath(path, object); var index = -1, length = path.length, @@ -6613,7 +6646,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function baseSortedIndex(array, value, retHighest) { var low = 0, - high = array ? array.length : low; + high = array == null ? low : array.length; if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) { while (low < high) { @@ -6649,7 +6682,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { value = iteratee(value); var low = 0, - high = array ? array.length : 0, + high = array == null ? 0 : array.length, valIsNaN = value !== value, valIsNull = value === null, valIsSymbol = isSymbol(value), @@ -6820,15 +6853,13 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * * @private * @param {Object} object The object to modify. - * @param {Array|string} path The path of the property to unset. + * @param {Array|string} path The property path to unset. * @returns {boolean} Returns `true` if the property is deleted, else `false`. */ function baseUnset(object, path) { - path = isKey(path, object) ? [path] : castPath(path); + path = castPath(path, object); object = parent(object, path); - - var key = toKey(last(path)); - return !(object != null && hasOwnProperty.call(object, key)) || delete object[key]; + return object == null || delete object[toKey(last(path))]; } /** @@ -6899,18 +6930,24 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Array} Returns the new array of values. */ function baseXor(arrays, iteratee, comparator) { + var length = arrays.length; + if (length < 2) { + return length ? baseUniq(arrays[0]) : []; + } var index = -1, - length = arrays.length; + result = Array(length); while (++index < length) { - var result = result - ? arrayPush( - baseDifference(result, arrays[index], iteratee, comparator), - baseDifference(arrays[index], result, iteratee, comparator) - ) - : arrays[index]; + var array = arrays[index], + othIndex = -1; + + while (++othIndex < length) { + if (othIndex != index) { + result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator); + } + } } - return (result && result.length) ? baseUniq(result, iteratee, comparator) : []; + return baseUniq(baseFlatten(result, 1), iteratee, comparator); } /** @@ -6962,10 +6999,14 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * * @private * @param {*} value The value to inspect. + * @param {Object} [object] The object to query keys on. * @returns {Array} Returns the cast property path array. */ - function castPath(value) { - return isArray(value) ? value : stringToPath(value); + function castPath(value, object) { + if (isArray(value)) { + return value; + } + return isKey(value, object) ? [value] : stringToPath(toString(value)); } /** @@ -7059,7 +7100,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Object} Returns the cloned map. */ function cloneMap(map, isDeep, cloneFunc) { - var array = isDeep ? cloneFunc(mapToArray(map), true) : mapToArray(map); + var array = isDeep ? cloneFunc(mapToArray(map), CLONE_DEEP_FLAG) : mapToArray(map); return arrayReduce(array, addMapEntry, new map.constructor); } @@ -7086,7 +7127,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Object} Returns the cloned set. */ function cloneSet(set, isDeep, cloneFunc) { - var array = isDeep ? cloneFunc(setToArray(set), true) : setToArray(set); + var array = isDeep ? cloneFunc(setToArray(set), CLONE_DEEP_FLAG) : setToArray(set); return arrayReduce(array, addSetEntry, new set.constructor); } @@ -7321,7 +7362,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } /** - * Copies own symbol properties of `source` to `object`. + * Copies own symbols of `source` to `object`. * * @private * @param {Object} source The object to copy symbols from. @@ -7332,6 +7373,18 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return copyObject(source, getSymbols(source), object); } + /** + * Copies own and inherited symbols of `source` to `object`. + * + * @private + * @param {Object} source The object to copy symbols from. + * @param {Object} [object={}] The object to copy symbols to. + * @returns {Object} Returns `object`. + */ + function copySymbolsIn(source, object) { + return copyObject(source, getSymbolsIn(source), object); + } + /** * Creates a function like `_.groupBy`. * @@ -7446,7 +7499,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Function} Returns the new wrapped function. */ function createBind(func, bitmask, thisArg) { - var isBind = bitmask & BIND_FLAG, + var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func); function wrapper() { @@ -7619,7 +7672,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { data = funcName == 'wrapper' ? getData(func) : undefined; if (data && isLaziable(data[0]) && - data[1] == (ARY_FLAG | CURRY_FLAG | PARTIAL_FLAG | REARG_FLAG) && + data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data[4].length && data[9] == 1 ) { wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]); @@ -7668,11 +7721,11 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Function} Returns the new wrapped function. */ function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) { - var isAry = bitmask & ARY_FLAG, - isBind = bitmask & BIND_FLAG, - isBindKey = bitmask & BIND_KEY_FLAG, - isCurried = bitmask & (CURRY_FLAG | CURRY_RIGHT_FLAG), - isFlip = bitmask & FLIP_FLAG, + var isAry = bitmask & WRAP_ARY_FLAG, + isBind = bitmask & WRAP_BIND_FLAG, + isBindKey = bitmask & WRAP_BIND_KEY_FLAG, + isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG), + isFlip = bitmask & WRAP_FLIP_FLAG, Ctor = isBindKey ? undefined : createCtor(func); function wrapper() { @@ -7823,7 +7876,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Function} Returns the new wrapped function. */ function createPartial(func, bitmask, thisArg, partials) { - var isBind = bitmask & BIND_FLAG, + var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func); function wrapper() { @@ -7905,17 +7958,17 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Function} Returns the new wrapped function. */ function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) { - var isCurry = bitmask & CURRY_FLAG, + var isCurry = bitmask & WRAP_CURRY_FLAG, newHolders = isCurry ? holders : undefined, newHoldersRight = isCurry ? undefined : holders, newPartials = isCurry ? partials : undefined, newPartialsRight = isCurry ? undefined : partials; - bitmask |= (isCurry ? PARTIAL_FLAG : PARTIAL_RIGHT_FLAG); - bitmask &= ~(isCurry ? PARTIAL_RIGHT_FLAG : PARTIAL_FLAG); + bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG); + bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG); - if (!(bitmask & CURRY_BOUND_FLAG)) { - bitmask &= ~(BIND_FLAG | BIND_KEY_FLAG); + if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) { + bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG); } var newData = [ func, bitmask, thisArg, newPartials, newHolders, newPartialsRight, @@ -7993,17 +8046,16 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @private * @param {Function|string} func The function or method name to wrap. * @param {number} bitmask The bitmask flags. - * The bitmask may be composed of the following flags: - * 1 - `_.bind` - * 2 - `_.bindKey` - * 4 - `_.curry` or `_.curryRight` of a bound function - * 8 - `_.curry` - * 16 - `_.curryRight` - * 32 - `_.partial` - * 64 - `_.partialRight` - * 128 - `_.rearg` - * 256 - `_.ary` - * 512 - `_.flip` + * 1 - `_.bind` + * 2 - `_.bindKey` + * 4 - `_.curry` or `_.curryRight` of a bound function + * 8 - `_.curry` + * 16 - `_.curryRight` + * 32 - `_.partial` + * 64 - `_.partialRight` + * 128 - `_.rearg` + * 256 - `_.ary` + * 512 - `_.flip` * @param {*} [thisArg] The `this` binding of `func`. * @param {Array} [partials] The arguments to be partially applied. * @param {Array} [holders] The `partials` placeholder indexes. @@ -8013,20 +8065,20 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Function} Returns the new wrapped function. */ function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) { - var isBindKey = bitmask & BIND_KEY_FLAG; + var isBindKey = bitmask & WRAP_BIND_KEY_FLAG; if (!isBindKey && typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } var length = partials ? partials.length : 0; if (!length) { - bitmask &= ~(PARTIAL_FLAG | PARTIAL_RIGHT_FLAG); + bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG); partials = holders = undefined; } ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0); arity = arity === undefined ? arity : toInteger(arity); length -= holders ? holders.length : 0; - if (bitmask & PARTIAL_RIGHT_FLAG) { + if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) { var partialsRight = partials, holdersRight = holders; @@ -8051,14 +8103,14 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { ? (isBindKey ? 0 : func.length) : nativeMax(newData[9] - length, 0); - if (!arity && bitmask & (CURRY_FLAG | CURRY_RIGHT_FLAG)) { - bitmask &= ~(CURRY_FLAG | CURRY_RIGHT_FLAG); + if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) { + bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG); } - if (!bitmask || bitmask == BIND_FLAG) { + if (!bitmask || bitmask == WRAP_BIND_FLAG) { var result = createBind(func, bitmask, thisArg); - } else if (bitmask == CURRY_FLAG || bitmask == CURRY_RIGHT_FLAG) { + } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) { result = createCurry(func, bitmask, arity); - } else if ((bitmask == PARTIAL_FLAG || bitmask == (BIND_FLAG | PARTIAL_FLAG)) && !holders.length) { + } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) { result = createPartial(func, bitmask, thisArg, partials); } else { result = createHybrid.apply(undefined, newData); @@ -8074,15 +8126,14 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @private * @param {Array} array The array to compare. * @param {Array} other The other array to compare. - * @param {Function} equalFunc The function to determine equivalents of values. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. * @param {Function} customizer The function to customize comparisons. - * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual` - * for more details. + * @param {Function} equalFunc The function to determine equivalents of values. * @param {Object} stack Tracks traversed `array` and `other` objects. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`. */ - function equalArrays(array, other, equalFunc, customizer, bitmask, stack) { - var isPartial = bitmask & PARTIAL_COMPARE_FLAG, + function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { + var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length; @@ -8096,7 +8147,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } var index = -1, result = true, - seen = (bitmask & UNORDERED_COMPARE_FLAG) ? new SetCache : undefined; + seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined; stack.set(array, other); stack.set(other, array); @@ -8122,7 +8173,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { if (seen) { if (!arraySome(other, function(othValue, othIndex) { if (!cacheHas(seen, othIndex) && - (arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack))) { + (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { return seen.push(othIndex); } })) { @@ -8131,7 +8182,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } } else if (!( arrValue === othValue || - equalFunc(arrValue, othValue, customizer, bitmask, stack) + equalFunc(arrValue, othValue, bitmask, customizer, stack) )) { result = false; break; @@ -8153,14 +8204,13 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @param {Object} object The object to compare. * @param {Object} other The other object to compare. * @param {string} tag The `toStringTag` of the objects to compare. - * @param {Function} equalFunc The function to determine equivalents of values. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. * @param {Function} customizer The function to customize comparisons. - * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual` - * for more details. + * @param {Function} equalFunc The function to determine equivalents of values. * @param {Object} stack Tracks traversed `object` and `other` objects. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. */ - function equalByTag(object, other, tag, equalFunc, customizer, bitmask, stack) { + function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { switch (tag) { case dataViewTag: if ((object.byteLength != other.byteLength) || @@ -8198,7 +8248,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { var convert = mapToArray; case setTag: - var isPartial = bitmask & PARTIAL_COMPARE_FLAG; + var isPartial = bitmask & COMPARE_PARTIAL_FLAG; convert || (convert = setToArray); if (object.size != other.size && !isPartial) { @@ -8209,11 +8259,11 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { if (stacked) { return stacked == other; } - bitmask |= UNORDERED_COMPARE_FLAG; + bitmask |= COMPARE_UNORDERED_FLAG; // Recursively compare objects (susceptible to call stack limits). stack.set(object, other); - var result = equalArrays(convert(object), convert(other), equalFunc, customizer, bitmask, stack); + var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); stack['delete'](object); return result; @@ -8232,15 +8282,14 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @private * @param {Object} object The object to compare. * @param {Object} other The other object to compare. - * @param {Function} equalFunc The function to determine equivalents of values. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. * @param {Function} customizer The function to customize comparisons. - * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual` - * for more details. + * @param {Function} equalFunc The function to determine equivalents of values. * @param {Object} stack Tracks traversed `object` and `other` objects. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. */ - function equalObjects(object, other, equalFunc, customizer, bitmask, stack) { - var isPartial = bitmask & PARTIAL_COMPARE_FLAG, + function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { + var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = keys(object), objLength = objProps.length, othProps = keys(other), @@ -8278,7 +8327,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } // Recursively compare objects (susceptible to call stack limits). if (!(compared === undefined - ? (objValue === othValue || equalFunc(objValue, othValue, customizer, bitmask, stack)) + ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack)) : compared )) { result = false; @@ -8448,7 +8497,34 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } /** - * Creates an array of the own enumerable symbol properties of `object`. + * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the raw `toStringTag`. + */ + function getRawTag(value) { + var isOwn = hasOwnProperty.call(value, symToStringTag), + tag = value[symToStringTag]; + + try { + value[symToStringTag] = undefined; + var unmasked = true; + } catch (e) {} + + var result = nativeObjectToString.call(value); + if (unmasked) { + if (isOwn) { + value[symToStringTag] = tag; + } else { + delete value[symToStringTag]; + } + } + return result; + } + + /** + * Creates an array of the own enumerable symbols of `object`. * * @private * @param {Object} object The object to query. @@ -8457,8 +8533,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray; /** - * Creates an array of the own and inherited enumerable symbol properties - * of `object`. + * Creates an array of the own and inherited enumerable symbols of `object`. * * @private * @param {Object} object The object to query. @@ -8489,9 +8564,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { (Set && getTag(new Set) != setTag) || (WeakMap && getTag(new WeakMap) != weakMapTag)) { getTag = function(value) { - var result = objectToString.call(value), + var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : undefined, - ctorString = Ctor ? toSource(Ctor) : undefined; + ctorString = Ctor ? toSource(Ctor) : ''; if (ctorString) { switch (ctorString) { @@ -8556,7 +8631,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {boolean} Returns `true` if `path` exists, else `false`. */ function hasPath(object, path, hasFunc) { - path = isKey(path, object) ? [path] : castPath(path); + path = castPath(path, object); var index = -1, length = path.length, @@ -8572,7 +8647,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { if (result || ++index != length) { return result; } - length = object ? object.length : 0; + length = object == null ? 0 : object.length; return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object)); } @@ -8890,22 +8965,22 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { var bitmask = data[1], srcBitmask = source[1], newBitmask = bitmask | srcBitmask, - isCommon = newBitmask < (BIND_FLAG | BIND_KEY_FLAG | ARY_FLAG); + isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG); var isCombo = - ((srcBitmask == ARY_FLAG) && (bitmask == CURRY_FLAG)) || - ((srcBitmask == ARY_FLAG) && (bitmask == REARG_FLAG) && (data[7].length <= source[8])) || - ((srcBitmask == (ARY_FLAG | REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == CURRY_FLAG)); + ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) || + ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) || + ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG)); // Exit early if metadata can't be merged. if (!(isCommon || isCombo)) { return data; } // Use source `thisArg` if available. - if (srcBitmask & BIND_FLAG) { + if (srcBitmask & WRAP_BIND_FLAG) { data[2] = source[2]; // Set when currying a bound function. - newBitmask |= bitmask & BIND_FLAG ? 0 : CURRY_BOUND_FLAG; + newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG; } // Compose partial arguments. var value = source[3]; @@ -8927,7 +9002,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { data[7] = value; } // Use source `ary` if it's smaller. - if (srcBitmask & ARY_FLAG) { + if (srcBitmask & WRAP_ARY_FLAG) { data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]); } // Use source `arity` if one is not provided. @@ -8983,6 +9058,17 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return result; } + /** + * Converts `value` to a string using `Object.prototype.toString`. + * + * @private + * @param {*} value The value to convert. + * @returns {string} Returns the converted string. + */ + function objectToString(value) { + return nativeObjectToString.call(value); + } + /** * A specialized version of `baseRest` which transforms the rest array. * @@ -9022,7 +9108,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {*} Returns the parent value. */ function parent(object, path) { - return path.length == 1 ? object : baseGet(object, baseSlice(path, 0, -1)); + return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1)); } /** @@ -9162,8 +9248,6 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Array} Returns the property path array. */ var stringToPath = memoizeCapped(function(string) { - string = toString(string); - var result = []; if (reLeadingDot.test(string)) { result.push(''); @@ -9193,7 +9277,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * Converts `func` to its source code. * * @private - * @param {Function} func The function to process. + * @param {Function} func The function to convert. * @returns {string} Returns the source code. */ function toSource(func) { @@ -9273,7 +9357,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } else { size = nativeMax(toInteger(size), 0); } - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (!length || size < 1) { return []; } @@ -9304,7 +9388,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function compact(array) { var index = -1, - length = array ? array.length : 0, + length = array == null ? 0 : array.length, resIndex = 0, result = []; @@ -9476,7 +9560,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => [1, 2, 3] */ function drop(array, n, guard) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (!length) { return []; } @@ -9510,7 +9594,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => [1, 2, 3] */ function dropRight(array, n, guard) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (!length) { return []; } @@ -9570,8 +9654,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 3.0.0 * @category Array * @param {Array} array The array to query. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {Array} Returns the slice of `array`. * @example * @@ -9632,7 +9715,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => [4, '*', '*', 10] */ function fill(array, value, start, end) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (!length) { return []; } @@ -9652,8 +9735,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 1.1.0 * @category Array * @param {Array} array The array to inspect. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @param {number} [fromIndex=0] The index to search from. * @returns {number} Returns the index of the found element, else `-1`. * @example @@ -9680,7 +9762,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => 2 */ function findIndex(array, predicate, fromIndex) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (!length) { return -1; } @@ -9700,8 +9782,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 2.0.0 * @category Array * @param {Array} array The array to inspect. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @param {number} [fromIndex=array.length-1] The index to search from. * @returns {number} Returns the index of the found element, else `-1`. * @example @@ -9728,7 +9809,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => 0 */ function findLastIndex(array, predicate, fromIndex) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (!length) { return -1; } @@ -9757,7 +9838,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => [1, 2, [3, [4]], 5] */ function flatten(array) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; return length ? baseFlatten(array, 1) : []; } @@ -9776,7 +9857,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => [1, 2, 3, 4, 5] */ function flattenDeep(array) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; return length ? baseFlatten(array, INFINITY) : []; } @@ -9801,7 +9882,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => [1, 2, 3, [4], 5] */ function flattenDepth(array, depth) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (!length) { return []; } @@ -9826,7 +9907,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function fromPairs(pairs) { var index = -1, - length = pairs ? pairs.length : 0, + length = pairs == null ? 0 : pairs.length, result = {}; while (++index < length) { @@ -9882,7 +9963,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => 3 */ function indexOf(array, value, fromIndex) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (!length) { return -1; } @@ -9908,7 +9989,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => [1, 2] */ function initial(array) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; return length ? baseSlice(array, 0, -1) : []; } @@ -9998,9 +10079,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { var comparator = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject); - if (comparator === last(mapped)) { - comparator = undefined; - } else { + comparator = typeof comparator == 'function' ? comparator : undefined; + if (comparator) { mapped.pop(); } return (mapped.length && mapped[0] === arrays[0]) @@ -10024,7 +10104,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => 'a~b~c' */ function join(array, separator) { - return array ? nativeJoin.call(array, separator) : ''; + return array == null ? '' : nativeJoin.call(array, separator); } /** @@ -10042,7 +10122,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => 3 */ function last(array) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; return length ? array[length - 1] : undefined; } @@ -10068,7 +10148,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => 1 */ function lastIndexOf(array, value, fromIndex) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (!length) { return -1; } @@ -10171,8 +10251,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @category Array * @param {Array} array The array to modify. * @param {Array} values The values to remove. - * @param {Function} [iteratee=_.identity] - * The iteratee invoked per element. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {Array} Returns `array`. * @example * @@ -10242,7 +10321,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => ['b', 'd'] */ var pullAt = flatRest(function(array, indexes) { - var length = array ? array.length : 0, + var length = array == null ? 0 : array.length, result = baseAt(array, indexes); basePullAt(array, arrayMap(indexes, function(index) { @@ -10265,8 +10344,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 2.0.0 * @category Array * @param {Array} array The array to modify. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {Array} Returns the new array of removed elements. * @example * @@ -10326,7 +10404,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => [3, 2, 1] */ function reverse(array) { - return array ? nativeReverse.call(array) : array; + return array == null ? array : nativeReverse.call(array); } /** @@ -10346,7 +10424,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @returns {Array} Returns the slice of `array`. */ function slice(array, start, end) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (!length) { return []; } @@ -10393,8 +10471,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @category Array * @param {Array} array The sorted array to inspect. * @param {*} value The value to evaluate. - * @param {Function} [iteratee=_.identity] - * The iteratee invoked per element. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {number} Returns the index at which `value` should be inserted * into `array`. * @example @@ -10429,7 +10506,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => 1 */ function sortedIndexOf(array, value) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (length) { var index = baseSortedIndex(array, value); if (index < length && eq(array[index], value)) { @@ -10472,8 +10549,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @category Array * @param {Array} array The sorted array to inspect. * @param {*} value The value to evaluate. - * @param {Function} [iteratee=_.identity] - * The iteratee invoked per element. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {number} Returns the index at which `value` should be inserted * into `array`. * @example @@ -10508,7 +10584,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => 3 */ function sortedLastIndexOf(array, value) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (length) { var index = baseSortedIndex(array, value, true) - 1; if (eq(array[index], value)) { @@ -10576,7 +10652,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => [2, 3] */ function tail(array) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; return length ? baseSlice(array, 1, length) : []; } @@ -10639,7 +10715,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => [] */ function takeRight(array, n, guard) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (!length) { return []; } @@ -10658,8 +10734,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 3.0.0 * @category Array * @param {Array} array The array to query. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {Array} Returns the slice of `array`. * @example * @@ -10700,8 +10775,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 3.0.0 * @category Array * @param {Array} array The array to query. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {Array} Returns the slice of `array`. * @example * @@ -10764,8 +10838,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 4.0.0 * @category Array * @param {...Array} [arrays] The arrays to inspect. - * @param {Function} [iteratee=_.identity] - * The iteratee invoked per element. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {Array} Returns the new array of combined values. * @example * @@ -10807,9 +10880,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ var unionWith = baseRest(function(arrays) { var comparator = last(arrays); - if (isArrayLikeObject(comparator)) { - comparator = undefined; - } + comparator = typeof comparator == 'function' ? comparator : undefined; return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator); }); @@ -10832,9 +10903,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => [2, 1] */ function uniq(array) { - return (array && array.length) - ? baseUniq(array) - : []; + return (array && array.length) ? baseUniq(array) : []; } /** @@ -10849,8 +10918,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 4.0.0 * @category Array * @param {Array} array The array to inspect. - * @param {Function} [iteratee=_.identity] - * The iteratee invoked per element. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {Array} Returns the new duplicate free array. * @example * @@ -10862,9 +10930,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => [{ 'x': 1 }, { 'x': 2 }] */ function uniqBy(array, iteratee) { - return (array && array.length) - ? baseUniq(array, getIteratee(iteratee, 2)) - : []; + return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : []; } /** @@ -10888,9 +10954,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }] */ function uniqWith(array, comparator) { - return (array && array.length) - ? baseUniq(array, undefined, comparator) - : []; + comparator = typeof comparator == 'function' ? comparator : undefined; + return (array && array.length) ? baseUniq(array, undefined, comparator) : []; } /** @@ -11022,8 +11087,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 4.0.0 * @category Array * @param {...Array} [arrays] The arrays to inspect. - * @param {Function} [iteratee=_.identity] - * The iteratee invoked per element. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {Array} Returns the new array of filtered values. * @example * @@ -11065,9 +11129,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ var xorWith = baseRest(function(arrays) { var comparator = last(arrays); - if (isArrayLikeObject(comparator)) { - comparator = undefined; - } + comparator = typeof comparator == 'function' ? comparator : undefined; return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator); }); @@ -11138,7 +11200,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 3.8.0 * @category Array * @param {...Array} [arrays] The arrays to process. - * @param {Function} [iteratee=_.identity] The function to combine grouped values. + * @param {Function} [iteratee=_.identity] The function to combine + * grouped values. * @returns {Array} Returns the new array of grouped elements. * @example * @@ -11254,7 +11317,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @memberOf _ * @since 1.0.0 * @category Seq - * @param {...(string|string[])} [paths] The property paths of elements to pick. + * @param {...(string|string[])} [paths] The property paths to pick. * @returns {Object} Returns the new `lodash` wrapper instance. * @example * @@ -11515,8 +11578,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 0.5.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [iteratee=_.identity] - * The iteratee to transform keys. + * @param {Function} [iteratee=_.identity] The iteratee to transform keys. * @returns {Object} Returns the composed aggregate object. * @example * @@ -11550,8 +11612,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. * @returns {boolean} Returns `true` if all elements pass the predicate check, * else `false`. @@ -11597,8 +11658,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {Array} Returns the new filtered array. * @see _.reject * @example @@ -11638,8 +11698,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to inspect. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @param {number} [fromIndex=0] The index to search from. * @returns {*} Returns the matched element, else `undefined`. * @example @@ -11676,8 +11735,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 2.0.0 * @category Collection * @param {Array|Object} collection The collection to inspect. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @param {number} [fromIndex=collection.length-1] The index to search from. * @returns {*} Returns the matched element, else `undefined`. * @example @@ -11699,8 +11757,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 4.0.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [iteratee=_.identity] - * The function invoked per iteration. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @returns {Array} Returns the new flattened array. * @example * @@ -11724,8 +11781,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 4.7.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [iteratee=_.identity] - * The function invoked per iteration. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @returns {Array} Returns the new flattened array. * @example * @@ -11749,8 +11805,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 4.7.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [iteratee=_.identity] - * The function invoked per iteration. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @param {number} [depth=1] The maximum recursion depth. * @returns {Array} Returns the new flattened array. * @example @@ -11839,8 +11894,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [iteratee=_.identity] - * The iteratee to transform keys. + * @param {Function} [iteratee=_.identity] The iteratee to transform keys. * @returns {Object} Returns the composed aggregate object. * @example * @@ -11928,12 +11982,10 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { var invokeMap = baseRest(function(collection, path, args) { var index = -1, isFunc = typeof path == 'function', - isProp = isKey(path), result = isArrayLike(collection) ? Array(collection.length) : []; baseEach(collection, function(value) { - var func = isFunc ? path : ((isProp && value != null) ? value[path] : undefined); - result[++index] = func ? apply(func, value, args) : baseInvoke(value, path, args); + result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args); }); return result; }); @@ -11949,8 +12001,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 4.0.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [iteratee=_.identity] - * The iteratee to transform keys. + * @param {Function} [iteratee=_.identity] The iteratee to transform keys. * @returns {Object} Returns the composed aggregate object. * @example * @@ -12483,7 +12534,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { function ary(func, n, guard) { n = guard ? undefined : n; n = (func && n == null) ? func.length : n; - return createWrap(func, ARY_FLAG, undefined, undefined, undefined, undefined, n); + return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n); } /** @@ -12556,10 +12607,10 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => 'hi fred!' */ var bind = baseRest(function(func, thisArg, partials) { - var bitmask = BIND_FLAG; + var bitmask = WRAP_BIND_FLAG; if (partials.length) { var holders = replaceHolders(partials, getHolder(bind)); - bitmask |= PARTIAL_FLAG; + bitmask |= WRAP_PARTIAL_FLAG; } return createWrap(func, bitmask, thisArg, partials, holders); }); @@ -12610,10 +12661,10 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => 'hiya fred!' */ var bindKey = baseRest(function(object, key, partials) { - var bitmask = BIND_FLAG | BIND_KEY_FLAG; + var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG; if (partials.length) { var holders = replaceHolders(partials, getHolder(bindKey)); - bitmask |= PARTIAL_FLAG; + bitmask |= WRAP_PARTIAL_FLAG; } return createWrap(key, bitmask, object, partials, holders); }); @@ -12661,7 +12712,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function curry(func, arity, guard) { arity = guard ? undefined : arity; - var result = createWrap(func, CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity); + var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity); result.placeholder = curry.placeholder; return result; } @@ -12706,7 +12757,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function curryRight(func, arity, guard) { arity = guard ? undefined : arity; - var result = createWrap(func, CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity); + var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity); result.placeholder = curryRight.placeholder; return result; } @@ -12951,7 +13002,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => ['d', 'c', 'b', 'a'] */ function flip(func) { - return createWrap(func, FLIP_FLAG); + return createWrap(func, WRAP_FLIP_FLAG); } /** @@ -12965,7 +13016,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * function. Its creation may be customized by replacing the `_.memoize.Cache` * constructor with one whose instances implement the * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) - * method interface of `delete`, `get`, `has`, and `set`. + * method interface of `clear`, `delete`, `get`, `has`, and `set`. * * @static * @memberOf _ @@ -12999,7 +13050,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.memoize.Cache = WeakMap; */ function memoize(func, resolver) { - if (typeof func != 'function' || (resolver && typeof resolver != 'function')) { + if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) { throw new TypeError(FUNC_ERROR_TEXT); } var memoized = function() { @@ -13162,7 +13213,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ var partial = baseRest(function(func, partials) { var holders = replaceHolders(partials, getHolder(partial)); - return createWrap(func, PARTIAL_FLAG, undefined, partials, holders); + return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders); }); /** @@ -13199,7 +13250,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ var partialRight = baseRest(function(func, partials) { var holders = replaceHolders(partials, getHolder(partialRight)); - return createWrap(func, PARTIAL_RIGHT_FLAG, undefined, partials, holders); + return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders); }); /** @@ -13225,7 +13276,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => ['a', 'b', 'c'] */ var rearg = flatRest(function(func, indexes) { - return createWrap(func, REARG_FLAG, undefined, undefined, undefined, indexes); + return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes); }); /** @@ -13415,8 +13466,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => '

fred, barney, & pebbles

' */ function wrap(value, wrapper) { - wrapper = wrapper == null ? identity : wrapper; - return partial(wrapper, value); + return partial(castFunction(wrapper), value); } /*------------------------------------------------------------------------*/ @@ -13489,7 +13539,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => true */ function clone(value) { - return baseClone(value, false, true); + return baseClone(value, CLONE_SYMBOLS_FLAG); } /** @@ -13524,7 +13574,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => 0 */ function cloneWith(value, customizer) { - return baseClone(value, false, true, customizer); + customizer = typeof customizer == 'function' ? customizer : undefined; + return baseClone(value, CLONE_SYMBOLS_FLAG, customizer); } /** @@ -13546,7 +13597,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => false */ function cloneDeep(value) { - return baseClone(value, true, true); + return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG); } /** @@ -13578,7 +13629,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => 20 */ function cloneDeepWith(value, customizer) { - return baseClone(value, true, true, customizer); + customizer = typeof customizer == 'function' ? customizer : undefined; + return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer); } /** @@ -13841,7 +13893,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function isBoolean(value) { return value === true || value === false || - (isObjectLike(value) && objectToString.call(value) == boolTag); + (isObjectLike(value) && baseGetTag(value) == boolTag); } /** @@ -13900,7 +13952,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => false */ function isElement(value) { - return value != null && value.nodeType === 1 && isObjectLike(value) && !isPlainObject(value); + return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value); } /** @@ -13937,6 +13989,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => false */ function isEmpty(value) { + if (value == null) { + return true; + } if (isArrayLike(value) && (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' || isBuffer(value) || isTypedArray(value) || isArguments(value))) { @@ -14024,7 +14079,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { function isEqualWith(value, other, customizer) { customizer = typeof customizer == 'function' ? customizer : undefined; var result = customizer ? customizer(value, other) : undefined; - return result === undefined ? baseIsEqual(value, other, customizer) : !!result; + return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result; } /** @@ -14049,8 +14104,9 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { if (!isObjectLike(value)) { return false; } - return (objectToString.call(value) == errorTag) || - (typeof value.message == 'string' && typeof value.name == 'string'); + var tag = baseGetTag(value); + return tag == errorTag || tag == domExcTag || + (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value)); } /** @@ -14101,10 +14157,13 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => false */ function isFunction(value) { + if (!isObject(value)) { + return false; + } // The use of `Object#toString` avoids issues with the `typeof` operator - // in Safari 9 which returns 'object' for typed array and other constructors. - var tag = isObject(value) ? objectToString.call(value) : ''; - return tag == funcTag || tag == genTag || tag == proxyTag; + // in Safari 9 which returns 'object' for typed arrays and other constructors. + var tag = baseGetTag(value); + return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; } /** @@ -14455,7 +14514,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function isNumber(value) { return typeof value == 'number' || - (isObjectLike(value) && objectToString.call(value) == numberTag); + (isObjectLike(value) && baseGetTag(value) == numberTag); } /** @@ -14487,7 +14546,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => true */ function isPlainObject(value) { - if (!isObjectLike(value) || objectToString.call(value) != objectTag) { + if (!isObjectLike(value) || baseGetTag(value) != objectTag) { return false; } var proto = getPrototype(value); @@ -14495,8 +14554,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { return true; } var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; - return (typeof Ctor == 'function' && - Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString); + return typeof Ctor == 'function' && Ctor instanceof Ctor && + funcToString.call(Ctor) == objectCtorString; } /** @@ -14587,7 +14646,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function isString(value) { return typeof value == 'string' || - (!isArray(value) && isObjectLike(value) && objectToString.call(value) == stringTag); + (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag); } /** @@ -14609,7 +14668,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function isSymbol(value) { return typeof value == 'symbol' || - (isObjectLike(value) && objectToString.call(value) == symbolTag); + (isObjectLike(value) && baseGetTag(value) == symbolTag); } /** @@ -14691,7 +14750,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => false */ function isWeakSet(value) { - return isObjectLike(value) && objectToString.call(value) == weakSetTag; + return isObjectLike(value) && baseGetTag(value) == weakSetTag; } /** @@ -14776,8 +14835,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { if (isArrayLike(value)) { return isString(value) ? stringToArray(value) : copyArray(value); } - if (iteratorSymbol && value[iteratorSymbol]) { - return iteratorToArray(value[iteratorSymbol]()); + if (symIterator && value[symIterator]) { + return iteratorToArray(value[symIterator]()); } var tag = getTag(value), func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values); @@ -15163,7 +15222,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @since 1.0.0 * @category Object * @param {Object} object The object to iterate over. - * @param {...(string|string[])} [paths] The property paths of elements to pick. + * @param {...(string|string[])} [paths] The property paths to pick. * @returns {Array} Returns the picked values. * @example * @@ -15210,7 +15269,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { */ function create(prototype, properties) { var result = baseCreate(prototype); - return properties ? baseAssign(result, properties) : result; + return properties == null ? result : baseAssign(result, properties); } /** @@ -15890,15 +15949,16 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /** * The opposite of `_.pick`; this method creates an object composed of the - * own and inherited enumerable string keyed properties of `object` that are - * not omitted. + * own and inherited enumerable property paths of `object` that are not omitted. + * + * **Note:** This method is considerably slower than `_.pick`. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The source object. - * @param {...(string|string[])} [props] The property identifiers to omit. + * @param {...(string|string[])} [paths] The property paths to omit. * @returns {Object} Returns the new object. * @example * @@ -15907,12 +15967,26 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.omit(object, ['a', 'c']); * // => { 'b': '2' } */ - var omit = flatRest(function(object, props) { + var omit = flatRest(function(object, paths) { + var result = {}; if (object == null) { - return {}; + return result; } - props = arrayMap(props, toKey); - return basePick(object, baseDifference(getAllKeysIn(object), props)); + var isDeep = false; + paths = arrayMap(paths, function(path) { + path = castPath(path, object); + isDeep || (isDeep = path.length > 1); + return path; + }); + copyObject(object, getAllKeysIn(object), result); + if (isDeep) { + result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG); + } + var length = paths.length; + while (length--) { + baseUnset(result, paths[length]); + } + return result; }); /** @@ -15947,7 +16021,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * @memberOf _ * @category Object * @param {Object} object The source object. - * @param {...(string|string[])} [props] The property identifiers to pick. + * @param {...(string|string[])} [paths] The property paths to pick. * @returns {Object} Returns the new object. * @example * @@ -15956,8 +16030,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * _.pick(object, ['a', 'c']); * // => { 'a': 1, 'c': 3 } */ - var pick = flatRest(function(object, props) { - return object == null ? {} : basePick(object, arrayMap(props, toKey)); + var pick = flatRest(function(object, paths) { + return object == null ? {} : basePick(object, paths); }); /** @@ -15979,7 +16053,16 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => { 'a': 1, 'c': 3 } */ function pickBy(object, predicate) { - return object == null ? {} : basePickBy(object, getAllKeysIn(object), getIteratee(predicate)); + if (object == null) { + return {}; + } + var props = arrayMap(getAllKeysIn(object), function(prop) { + return [prop]; + }); + predicate = getIteratee(predicate); + return basePickBy(object, props, function(value, path) { + return predicate(value, path[0]); + }); } /** @@ -16012,15 +16095,15 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => 'default' */ function result(object, path, defaultValue) { - path = isKey(path, object) ? [path] : castPath(path); + path = castPath(path, object); var index = -1, length = path.length; // Ensure the loop is entered when path is empty. if (!length) { - object = undefined; length = 1; + object = undefined; } while (++index < length) { var value = object == null ? undefined : object[toKey(path[index])]; @@ -16317,7 +16400,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => ['h', 'i'] */ function values(object) { - return object ? baseValues(object, keys(object)) : []; + return object == null ? [] : baseValues(object, keys(object)); } /** @@ -17704,7 +17787,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => 'no match' */ function cond(pairs) { - var length = pairs ? pairs.length : 0, + var length = pairs == null ? 0 : pairs.length, toIteratee = getIteratee(); pairs = !length ? [] : arrayMap(pairs, function(pair) { @@ -17750,7 +17833,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => [{ 'a': 1, 'b': 2 }] */ function conforms(source) { - return baseConforms(baseClone(source, true)); + return baseConforms(baseClone(source, CLONE_DEEP_FLAG)); } /** @@ -17912,7 +17995,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => ['def'] */ function iteratee(func) { - return baseIteratee(typeof func == 'function' ? func : baseClone(func, true)); + return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG)); } /** @@ -17944,7 +18027,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => [{ 'a': 4, 'b': 5, 'c': 6 }] */ function matches(source) { - return baseMatches(baseClone(source, true)); + return baseMatches(baseClone(source, CLONE_DEEP_FLAG)); } /** @@ -17974,7 +18057,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { * // => { 'a': 4, 'b': 5, 'c': 6 } */ function matchesProperty(path, srcValue) { - return baseMatchesProperty(path, baseClone(srcValue, true)); + return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG)); } /** @@ -18530,7 +18613,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { if (isArray(value)) { return arrayMap(value, toKey); } - return isSymbol(value) ? [value] : copyArray(stringToPath(value)); + return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value))); } /** @@ -19434,7 +19517,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } }); - realNames[createHybrid(undefined, BIND_KEY_FLAG).name] = [{ + realNames[createHybrid(undefined, WRAP_BIND_KEY_FLAG).name] = [{ 'name': 'wrapper', 'func': undefined }]; @@ -19456,8 +19539,8 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { // Add lazy aliases. lodash.prototype.first = lodash.prototype.head; - if (iteratorSymbol) { - lodash.prototype[iteratorSymbol] = wrapperToIterator; + if (symIterator) { + lodash.prototype[symIterator] = wrapperToIterator; } return lodash; }); @@ -28753,7 +28836,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.apiClient.callApi('/app/rest/reporting/report-params/{reportId}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); }; - this.getProcessDefinitionsValuesNoApp = function () { + this.getProcessDefinitions = function () { var postBody = null; var pathParams = {}; @@ -28806,6 +28889,30 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.apiClient.callApi('/app/rest/reporting/reports', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); }; + + this.updateReport = function (reportId, name) { + var postBody = { + "name": name + }; + + if (reportId == undefined || reportId == null) { + throw "Missing the required parameter 'reportId' when calling updateReport"; + } + + var pathParams = { + 'reportId': reportId + }; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = null; + + return this.apiClient.callApi('/app/rest/reporting/reports/{reportId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + }; }; return exports; @@ -57745,8 +57852,6 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol },{"../../alfrescoApiClient":295,"./api/CustomModelApi":292}],294:[function(require,module,exports){ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var AlfrescoCoreRestApi = require('./alfresco-core-rest-api/src/index.js'); @@ -57810,309 +57915,286 @@ var AlfrescoApi = function () { Emitter.call(this); } - _createClass(AlfrescoApi, [{ - key: 'changeCsrfConfig', - value: function changeCsrfConfig(disableCsrf) { - this.config.disableCsrf = disableCsrf; - this.bpmAuth.changeCsrfConfig(disableCsrf); - } - }, { - key: 'changeEcmHost', - value: function changeEcmHost(hostEcm) { - this.config.hostEcm = hostEcm; - this.ecmAuth.changeHost(hostEcm); - this.ecmClient.changeHost(hostEcm); - } - }, { - key: 'changeBpmHost', - value: function changeBpmHost(hostBpm) { - this.config.hostBpm = hostBpm; - this.bpmAuth.changeHost(hostBpm); - this.bpmClient.changeHost(hostBpm); - } - }, { - key: 'initObjects', - value: function initObjects() { - //BPM - AlfrescoActivitiApi.ApiClient.instance = this.bpmClient; - this.activiti = {}; - this.activitiStore = AlfrescoActivitiApi; - this._instantiateObjects(this.activitiStore, this.activiti); - - //ECM - AlfrescoCoreRestApi.ApiClient.instance = this.ecmClient; - this.core = {}; - this.coreStore = AlfrescoCoreRestApi; - this._instantiateObjects(this.coreStore, this.core); - - //ECM-Private - AlfrescoPrivateRestApi.ApiClient.instance = this.ecmPrivateClient; - this.corePrivateStore = AlfrescoPrivateRestApi; - this._instantiateObjects(this.corePrivateStore, this.core); - - this.nodes = this.node = new AlfrescoNode(); - this.content = new AlfrescoContent(this.ecmAuth, this.ecmClient); - this.upload = new AlfrescoUpload(); - this.webScript = new AlfrescoWebScriptApi(); - } - }, { - key: '_instantiateObjects', - value: function _instantiateObjects(module, moduleCopy) { - var _this = this; - - var classArray = Object.keys(module); - - classArray.forEach(function (currentClass) { - moduleCopy[currentClass] = module[currentClass]; - var obj = _this._stringToObject(currentClass, module); - var nameObj = _.lowerFirst(currentClass); - moduleCopy[nameObj] = obj; - }); - } - }, { - key: '_stringToObject', - value: function _stringToObject(nameClass, module) { - try { - if (typeof module[nameClass] === 'function') { - return new module[nameClass](); - } - } catch (error) { - console.log(nameClass + ' ' + error); - } - } + AlfrescoApi.prototype.changeCsrfConfig = function changeCsrfConfig(disableCsrf) { + this.config.disableCsrf = disableCsrf; + this.bpmAuth.changeCsrfConfig(disableCsrf); + }; - /** - * login Alfresco API - * @param {String} username: // Username to login - * @param {String} password: // Password to login - * - * @returns {Promise} A promise that returns {new authentication ticket} if resolved and {error} if rejected. - * */ + AlfrescoApi.prototype.changeEcmHost = function changeEcmHost(hostEcm) { + this.config.hostEcm = hostEcm; + this.ecmAuth.changeHost(hostEcm); + this.ecmClient.changeHost(hostEcm); + }; - }, { - key: 'login', - value: function login(username, password) { - var _this2 = this; + AlfrescoApi.prototype.changeBpmHost = function changeBpmHost(hostBpm) { + this.config.hostBpm = hostBpm; + this.bpmAuth.changeHost(hostBpm); + this.bpmClient.changeHost(hostBpm); + }; - if (this._isBpmConfiguration()) { - var bpmPromise = this.bpmAuth.login(username, password); + AlfrescoApi.prototype.initObjects = function initObjects() { + //BPM + AlfrescoActivitiApi.ApiClient.instance = this.bpmClient; + this.activiti = {}; + this.activitiStore = AlfrescoActivitiApi; + this._instantiateObjects(this.activitiStore, this.activiti); - bpmPromise.then(function (ticketBpm) { - _this2.config.ticketBpm = ticketBpm; - }); + //ECM + AlfrescoCoreRestApi.ApiClient.instance = this.ecmClient; + this.core = {}; + this.coreStore = AlfrescoCoreRestApi; + this._instantiateObjects(this.coreStore, this.core); - return bpmPromise; - } else if (this._isEcmConfiguration()) { - var ecmPromise = this.ecmAuth.login(username, password); + //ECM-Private + AlfrescoPrivateRestApi.ApiClient.instance = this.ecmPrivateClient; + this.corePrivateStore = AlfrescoPrivateRestApi; + this._instantiateObjects(this.corePrivateStore, this.core); - ecmPromise.then(function (ticketEcm) { - _this2.setAuthenticationClientECMBPM(_this2.ecmAuth.getAuthentication(), null); + this.nodes = this.node = new AlfrescoNode(); + this.content = new AlfrescoContent(this.ecmAuth, this.ecmClient); + this.upload = new AlfrescoUpload(); + this.webScript = new AlfrescoWebScriptApi(); + }; - _this2.config.ticketEcm = ticketEcm; - }); + AlfrescoApi.prototype._instantiateObjects = function _instantiateObjects(module, moduleCopy) { + var _this = this; - return ecmPromise; - } else if (this._isEcmBpmConfiguration()) { - var bpmEcmPromise = this._loginBPMECM(username, password); + var classArray = Object.keys(module); - bpmEcmPromise.then(function (data) { - _this2.config.ticketEcm = data[0]; - _this2.config.ticketBpm = data[1]; - }); + classArray.forEach(function (currentClass) { + moduleCopy[currentClass] = module[currentClass]; + var obj = _this._stringToObject(currentClass, module); + var nameObj = _.lowerFirst(currentClass); + moduleCopy[nameObj] = obj; + }); + }; - return bpmEcmPromise; + AlfrescoApi.prototype._stringToObject = function _stringToObject(nameClass, module) { + try { + if (typeof module[nameClass] === 'function') { + return new module[nameClass](); } + } catch (error) { + console.log(nameClass + ' ' + error); } - }, { - key: 'setAuthenticationClientECMBPM', - value: function setAuthenticationClientECMBPM(authECM, authBPM) { - this.ecmClient.setAuthentications(authECM); - this.ecmPrivateClient.setAuthentications(authECM); - this.bpmClient.setAuthentications(authBPM); - } + }; - /** - * login Tickets - * - * @param {String} ticketEcm // alfresco ticket - * @param {String} ticketBpm // alfresco ticket - * - * @returns {Promise} A promise that returns { authentication ticket} if resolved and {error} if rejected. - * */ + /** + * login Alfresco API + * @param {String} username: // Username to login + * @param {String} password: // Password to login + * + * @returns {Promise} A promise that returns {new authentication ticket} if resolved and {error} if rejected. + * */ - }, { - key: 'loginTicket', - value: function loginTicket(ticketEcm, ticketBpm) { - this.config.ticketEcm = ticketEcm; - this.config.ticketBpm = ticketBpm; - return this.ecmAuth.validateTicket(); - } - }, { - key: '_loginBPMECM', - value: function _loginBPMECM(username, password) { - var _this3 = this; + AlfrescoApi.prototype.login = function login(username, password) { + var _this2 = this; - var ecmPromise = this.ecmAuth.login(username, password); + if (this._isBpmConfiguration()) { var bpmPromise = this.bpmAuth.login(username, password); - this.promise = new Promise(function (resolve, reject) { - Promise.all([ecmPromise, bpmPromise]).then(function (data) { - _this3.promise.emit('success'); - resolve(data); - }, function (error) { - if (error.status === 401) { - _this3.promise.emit('unauthorized'); - } - _this3.promise.emit('error'); - reject(error); - }); + bpmPromise.then(function (ticketBpm) { + _this2.config.ticketBpm = ticketBpm; }); - Emitter(this.promise); // jshint ignore:line + return bpmPromise; + } else if (this._isEcmConfiguration()) { + var ecmPromise = this.ecmAuth.login(username, password); - return this.promise; - } + ecmPromise.then(function (ticketEcm) { + _this2.setAuthenticationClientECMBPM(_this2.ecmAuth.getAuthentication(), null); - /** - * logout Alfresco API - * - * @returns {Promise} A promise that returns {new authentication ticket} if resolved and {error} if rejected. - * */ - - }, { - key: 'logout', - value: function logout() { - var _this4 = this; - - if (this.config.provider && this.config.provider.toUpperCase() === 'BPM') { - return this.bpmAuth.logout(); - } else if (this.config.provider && this.config.provider.toUpperCase() === 'ECM') { - var ecmPromise = this.ecmAuth.logout(); - ecmPromise.then(function (data) { - _this4.config.ticket = undefined; - }); - - return ecmPromise; - } else if (this.config.provider && this.config.provider.toUpperCase() === 'ALL') { - return this._logoutBPMECM(); - } + _this2.config.ticketEcm = ticketEcm; + }); + + return ecmPromise; + } else if (this._isEcmBpmConfiguration()) { + var bpmEcmPromise = this._loginBPMECM(username, password); + + bpmEcmPromise.then(function (data) { + _this2.config.ticketEcm = data[0]; + _this2.config.ticketBpm = data[1]; + }); + + return bpmEcmPromise; } - }, { - key: '_logoutBPMECM', - value: function _logoutBPMECM() { - var _this5 = this; + }; - var ecmPromise = this.ecmAuth.logout(); - var bpmPromise = this.bpmAuth.logout(); - - this.promise = new Promise(function (resolve, reject) { - Promise.all([ecmPromise, bpmPromise]).then(function (data) { - _this5.config.ticket = undefined; - _this5.promise.emit('logout'); - resolve('logout'); - }, function (error) { - if (error.status === 401) { - _this5.promise.emit('unauthorized'); - } - _this5.promise.emit('error'); - reject(error); - }); + AlfrescoApi.prototype.setAuthenticationClientECMBPM = function setAuthenticationClientECMBPM(authECM, authBPM) { + this.ecmClient.setAuthentications(authECM); + this.ecmPrivateClient.setAuthentications(authECM); + this.bpmClient.setAuthentications(authBPM); + }; + + /** + * login Tickets + * + * @param {String} ticketEcm // alfresco ticket + * @param {String} ticketBpm // alfresco ticket + * + * @returns {Promise} A promise that returns { authentication ticket} if resolved and {error} if rejected. + * */ + + + AlfrescoApi.prototype.loginTicket = function loginTicket(ticketEcm, ticketBpm) { + this.config.ticketEcm = ticketEcm; + this.config.ticketBpm = ticketBpm; + + return this.ecmAuth.validateTicket(); + }; + + AlfrescoApi.prototype._loginBPMECM = function _loginBPMECM(username, password) { + var _this3 = this; + + var ecmPromise = this.ecmAuth.login(username, password); + var bpmPromise = this.bpmAuth.login(username, password); + + this.promise = new Promise(function (resolve, reject) { + Promise.all([ecmPromise, bpmPromise]).then(function (data) { + _this3.promise.emit('success'); + resolve(data); + }, function (error) { + if (error.status === 401) { + _this3.promise.emit('unauthorized'); + } + _this3.promise.emit('error'); + reject(error); }); + }); - Emitter(this.promise); // jshint ignore:line + Emitter(this.promise); // jshint ignore:line - return this.promise; - } + return this.promise; + }; - /** - * If the client is logged in retun true - * - * @returns {Boolean} is logged in - */ + /** + * logout Alfresco API + * + * @returns {Promise} A promise that returns {new authentication ticket} if resolved and {error} if rejected. + * */ - }, { - key: 'isLoggedIn', - value: function isLoggedIn() { - if (this.config.provider && this.config.provider.toUpperCase() === 'BPM') { - return this.bpmAuth.isLoggedIn(); - } else if (this.config.provider && this.config.provider.toUpperCase() === 'ECM') { - return this.ecmAuth.isLoggedIn(); - } else if (this.config.provider && this.config.provider.toUpperCase() === 'ALL') { - return this.ecmAuth.isLoggedIn() && this.bpmAuth.isLoggedIn(); - } - } - /** - * Set the current Ticket - * - * @param {String} ticketEcm - * @param {String} TicketBpm - * */ - - }, { - key: 'setTicket', - value: function setTicket(ticketEcm, TicketBpm) { - this.ecmAuth.setTicket(ticketEcm); - this.bpmAuth.setTicket(TicketBpm); - } + AlfrescoApi.prototype.logout = function logout() { + var _this4 = this; - /** - * Get the current Ticket for the Bpm - * - * @returns {String} Ticket - * */ + if (this.config.provider && this.config.provider.toUpperCase() === 'BPM') { + return this.bpmAuth.logout(); + } else if (this.config.provider && this.config.provider.toUpperCase() === 'ECM') { + var ecmPromise = this.ecmAuth.logout(); + ecmPromise.then(function (data) { + _this4.config.ticket = undefined; + }); - }, { - key: 'getTicketBpm', - value: function getTicketBpm() { - return this.bpmAuth.getTicket(); + return ecmPromise; + } else if (this.config.provider && this.config.provider.toUpperCase() === 'ALL') { + return this._logoutBPMECM(); } + }; - /** - * Get the current Ticket for the Ecm - * - * @returns {String} Ticket - * */ + AlfrescoApi.prototype._logoutBPMECM = function _logoutBPMECM() { + var _this5 = this; - }, { - key: 'getTicketEcm', - value: function getTicketEcm() { - return this.ecmAuth.getTicket(); - } + var ecmPromise = this.ecmAuth.logout(); + var bpmPromise = this.bpmAuth.logout(); - /** - * Get the current Ticket for the Ecm and BPM - * - * @returns {Array} Ticket - * */ + this.promise = new Promise(function (resolve, reject) { + Promise.all([ecmPromise, bpmPromise]).then(function (data) { + _this5.config.ticket = undefined; + _this5.promise.emit('logout'); + resolve('logout'); + }, function (error) { + if (error.status === 401) { + _this5.promise.emit('unauthorized'); + } + _this5.promise.emit('error'); + reject(error); + }); + }); - }, { - key: 'getTicket', - value: function getTicket() { - return [this.ecmAuth.getTicket(), this.bpmAuth.getTicket()]; - } - }, { - key: '_isBpmConfiguration', - value: function _isBpmConfiguration() { - return this.config.provider && this.config.provider.toUpperCase() === 'BPM'; - } - }, { - key: '_isEcmConfiguration', - value: function _isEcmConfiguration() { - return this.config.provider && this.config.provider.toUpperCase() === 'ECM'; - } - }, { - key: '_isOauthConfiguration', - value: function _isOauthConfiguration() { - return this.config.provider && this.config.provider.toUpperCase() === 'OAUTH'; - } - }, { - key: '_isEcmBpmConfiguration', - value: function _isEcmBpmConfiguration() { - return this.config.provider && this.config.provider.toUpperCase() === 'ALL'; + Emitter(this.promise); // jshint ignore:line + + return this.promise; + }; + + /** + * If the client is logged in retun true + * + * @returns {Boolean} is logged in + */ + + + AlfrescoApi.prototype.isLoggedIn = function isLoggedIn() { + if (this.config.provider && this.config.provider.toUpperCase() === 'BPM') { + return this.bpmAuth.isLoggedIn(); + } else if (this.config.provider && this.config.provider.toUpperCase() === 'ECM') { + return this.ecmAuth.isLoggedIn(); + } else if (this.config.provider && this.config.provider.toUpperCase() === 'ALL') { + return this.ecmAuth.isLoggedIn() && this.bpmAuth.isLoggedIn(); } - }]); + }; + + /** + * Set the current Ticket + * + * @param {String} ticketEcm + * @param {String} TicketBpm + * */ + + + AlfrescoApi.prototype.setTicket = function setTicket(ticketEcm, TicketBpm) { + this.ecmAuth.setTicket(ticketEcm); + this.bpmAuth.setTicket(TicketBpm); + }; + + /** + * Get the current Ticket for the Bpm + * + * @returns {String} Ticket + * */ + + + AlfrescoApi.prototype.getTicketBpm = function getTicketBpm() { + return this.bpmAuth.getTicket(); + }; + + /** + * Get the current Ticket for the Ecm + * + * @returns {String} Ticket + * */ + + + AlfrescoApi.prototype.getTicketEcm = function getTicketEcm() { + return this.ecmAuth.getTicket(); + }; + + /** + * Get the current Ticket for the Ecm and BPM + * + * @returns {Array} Ticket + * */ + + + AlfrescoApi.prototype.getTicket = function getTicket() { + return [this.ecmAuth.getTicket(), this.bpmAuth.getTicket()]; + }; + + AlfrescoApi.prototype._isBpmConfiguration = function _isBpmConfiguration() { + return this.config.provider && this.config.provider.toUpperCase() === 'BPM'; + }; + + AlfrescoApi.prototype._isEcmConfiguration = function _isEcmConfiguration() { + return this.config.provider && this.config.provider.toUpperCase() === 'ECM'; + }; + + AlfrescoApi.prototype._isOauthConfiguration = function _isOauthConfiguration() { + return this.config.provider && this.config.provider.toUpperCase() === 'OAUTH'; + }; + + AlfrescoApi.prototype._isEcmBpmConfiguration = function _isEcmBpmConfiguration() { + return this.config.provider && this.config.provider.toUpperCase() === 'ALL'; + }; return AlfrescoApi; }(); @@ -58127,13 +58209,13 @@ module.exports.Auth = AlfrescoAuthRestApi; },{"./alfresco-activiti-rest-api/src/index":71,"./alfresco-auth-rest-api/src/index":159,"./alfresco-core-rest-api/src/index.js":182,"./alfresco-private-rest-api/src/index.js":293,"./alfrescoContent":296,"./alfrescoNode":297,"./alfrescoUpload":298,"./alfrescoWebScript":299,"./bpmAuth":300,"./bpmClient":301,"./ecmAuth":302,"./ecmClient":303,"./ecmPrivateClient":304,"event-emitter":21,"lodash":23}],295:[function(require,module,exports){ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); +function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } var Emitter = require('event-emitter'); var ApiClient = require('./alfresco-core-rest-api/src/ApiClient'); @@ -58149,7 +58231,7 @@ var AlfrescoApiClient = function (_ApiClient) { function AlfrescoApiClient(host) { _classCallCheck(this, AlfrescoApiClient); - var _this2 = _possibleConstructorReturn(this, (AlfrescoApiClient.__proto__ || Object.getPrototypeOf(AlfrescoApiClient)).call(this)); + var _this2 = _possibleConstructorReturn(this, _ApiClient.call(this)); _this2.host = host; Emitter.call(_this2); @@ -58175,226 +58257,217 @@ var AlfrescoApiClient = function (_ApiClient) { */ - _createClass(AlfrescoApiClient, [{ - key: 'callApi', - value: function callApi(path, httpMethod, pathParams, queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, returnType, contextRoot) { - var _this3 = this; + AlfrescoApiClient.prototype.callApi = function callApi(path, httpMethod, pathParams, queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, returnType, contextRoot) { + var _this3 = this; - var eventEmitter = {}; - Emitter(eventEmitter); // jshint ignore:line + var eventEmitter = {}; + Emitter(eventEmitter); // jshint ignore:line - var url; + var url; - if (contextRoot) { - var basePath = this.host + '/' + contextRoot; - url = this.buildUrlCustomBasePath(basePath, path, pathParams); - } else { - url = this.buildUrl(path, pathParams); - } + if (contextRoot) { + var basePath = this.host + '/' + contextRoot; + url = this.buildUrlCustomBasePath(basePath, path, pathParams); + } else { + url = this.buildUrl(path, pathParams); + } - var request = superagent(httpMethod, url); + var request = superagent(httpMethod, url); - // apply authentications - this.applyAuthToRequest(request, ['basicAuth']); + // apply authentications + this.applyAuthToRequest(request, ['basicAuth']); - // set query parameters - request.query(this.normalizeParams(queryParams)); + // set query parameters + request.query(this.normalizeParams(queryParams)); - // set header parameters - request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)); + // set header parameters + request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)); - if (this.isBpmRequest() && this.isCsrfEnabled()) { - this.setCsrfToken(request); - } + if (this.isBpmRequest() && this.isCsrfEnabled()) { + this.setCsrfToken(request); + } - // add cookie for activiti - if (this.isBpmRequest()) { - request._withCredentials = true; - if (this.authentications.cookie) { - request.set('Cookie', this.authentications.cookie); - } + // add cookie for activiti + if (this.isBpmRequest()) { + request._withCredentials = true; + if (this.authentications.cookie) { + request.set('Cookie', this.authentications.cookie); } + } - // set request timeout - request.timeout(this.timeout); + // set request timeout + request.timeout(this.timeout); - var contentType = this.jsonPreferredMime(contentTypes); + var contentType = this.jsonPreferredMime(contentTypes); - if (contentType && contentType !== 'multipart/form-data') { - request.type(contentType); - } else if (!request.header['Content-Type'] && contentType !== 'multipart/form-data') { - request.type('application/json'); - } + if (contentType && contentType !== 'multipart/form-data') { + request.type(contentType); + } else if (!request.header['Content-Type'] && contentType !== 'multipart/form-data') { + request.type('application/json'); + } - if (contentType === 'application/x-www-form-urlencoded') { - request.send(this.normalizeParams(formParams)).on('progress', function (event) { - _this3.progress(event, eventEmitter); - }); - } else if (contentType === 'multipart/form-data') { - var _formParams = this.normalizeParams(formParams); - for (var key in _formParams) { - if (_formParams.hasOwnProperty(key)) { - if (this.isFileParam(_formParams[key])) { - // file field - request.attach(key, _formParams[key]).on('progress', function (event) { - // jshint ignore:line - _this3.progress(event, eventEmitter); - }); - } else { - request.field(key, _formParams[key]).on('progress', function (event) { - // jshint ignore:line - _this3.progress(event, eventEmitter); - }); - } + if (contentType === 'application/x-www-form-urlencoded') { + request.send(this.normalizeParams(formParams)).on('progress', function (event) { + _this3.progress(event, eventEmitter); + }); + } else if (contentType === 'multipart/form-data') { + var _formParams = this.normalizeParams(formParams); + for (var key in _formParams) { + if (_formParams.hasOwnProperty(key)) { + if (this.isFileParam(_formParams[key])) { + // file field + request.attach(key, _formParams[key]).on('progress', function (event) { + // jshint ignore:line + _this3.progress(event, eventEmitter); + }); + } else { + request.field(key, _formParams[key]).on('progress', function (event) { + // jshint ignore:line + _this3.progress(event, eventEmitter); + }); } } - } else if (bodyParam) { - request.send(bodyParam).on('progress', function (event) { - _this3.progress(event, eventEmitter); - }); } + } else if (bodyParam) { + request.send(bodyParam).on('progress', function (event) { + _this3.progress(event, eventEmitter); + }); + } - var accept = this.jsonPreferredMime(accepts); - if (accept) { - request.accept(accept); - } + var accept = this.jsonPreferredMime(accepts); + if (accept) { + request.accept(accept); + } - this.promise = new Promise(function (resolve, reject) { - request.end(function (error, response) { - if (error) { - eventEmitter.emit('error', error); + this.promise = new Promise(function (resolve, reject) { + request.end(function (error, response) { + if (error) { + eventEmitter.emit('error', error); - if (error.status === 401) { - eventEmitter.emit('unauthorized'); - } + if (error.status === 401) { + eventEmitter.emit('unauthorized'); + } - if (response && response.text) { - reject(_.merge(error, { message: response.text })); - } else { - reject({ error: error }); - } + if (response && response.text) { + reject(_.merge(error, { message: response.text })); } else { - if (_this3.isBpmRequest()) { - if (response.header && response.header.hasOwnProperty('set-cookie')) { - _this3.authentications.cookie = response.header['set-cookie']; - } - } - var data = {}; - if (response.type === 'text/html') { - data = _this3.deserialize(response, 'String'); - } else { - data = _this3.deserialize(response, returnType); + reject({ error: error }); + } + } else { + if (_this3.isBpmRequest()) { + if (response.header && response.header.hasOwnProperty('set-cookie')) { + _this3.authentications.cookie = response.header['set-cookie']; } - - eventEmitter.emit('success', data); - resolve(data); } - }).on('abort', function () { - eventEmitter.emit('abort'); - }); + var data = {}; + if (response.type === 'text/html') { + data = _this3.deserialize(response, 'String'); + } else { + data = _this3.deserialize(response, returnType); + } + + eventEmitter.emit('success', data); + resolve(data); + } + }).on('abort', function () { + eventEmitter.emit('abort'); }); + }); - this.promise.on = function () { - eventEmitter.on.apply(eventEmitter, arguments); - return this; - }; + this.promise.on = function () { + eventEmitter.on.apply(eventEmitter, arguments); + return this; + }; - this.promise.once = function () { - eventEmitter.once.apply(eventEmitter, arguments); - return this; - }; + this.promise.once = function () { + eventEmitter.once.apply(eventEmitter, arguments); + return this; + }; - this.promise.emit = function () { - eventEmitter.emit.apply(eventEmitter, arguments); - return this; - }; + this.promise.emit = function () { + eventEmitter.emit.apply(eventEmitter, arguments); + return this; + }; - this.promise.off = function () { - eventEmitter.off.apply(eventEmitter, arguments); - return this; - }; + this.promise.off = function () { + eventEmitter.off.apply(eventEmitter, arguments); + return this; + }; - this.promise.abort = function () { - request.abort(); - return this; - }; + this.promise.abort = function () { + request.abort(); + return this; + }; - return this.promise; - } - }, { - key: 'isBpmRequest', - value: function isBpmRequest() { - return this.constructor.name === 'BpmAuth' || this.constructor.name === 'BpmClient'; - } - }, { - key: 'isCsrfEnabled', - value: function isCsrfEnabled() { - if (this.config) { - return !this.config.disableCsrf; - } else { - return true; - } - } - }, { - key: 'setCsrfToken', - value: function setCsrfToken(request) { - var token = this.token(); - request.set('X-CSRF-TOKEN', token); - request.set('Cookie', 'CSRF-TOKEN=' + token + ';path=/'); - - try { - document.cookie = 'CSRF-TOKEN=' + token + ';path=/'; - } catch (err) {} - } - }, { - key: 'token', - value: function token(a) { - return a ? (a ^ Math.random() * 16 >> a / 4).toString(16) : ([1e16] + 1e16).replace(/[01]/g, this.token); - } - }, { - key: 'progress', - value: function progress(event, eventEmitter) { - if (event.lengthComputable && this.promise) { - var percent = Math.round(event.loaded / event.total * 100); - - eventEmitter.emit('progress', { - total: event.total, - loaded: event.loaded, - percent: percent - }); - } + return this.promise; + }; + + AlfrescoApiClient.prototype.isBpmRequest = function isBpmRequest() { + return this.constructor.name === 'BpmAuth' || this.constructor.name === 'BpmClient'; + }; + + AlfrescoApiClient.prototype.isCsrfEnabled = function isCsrfEnabled() { + if (this.config) { + return !this.config.disableCsrf; + } else { + return true; } + }; - /** - * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders - * with parameter values. - * - * @param {String} basePath the base path - * @param {String} path The path to append to the base URL. - * @param {Object} pathParams The parameter values to append. - * @returns {String} The encoded path with parameter values substituted. - */ + AlfrescoApiClient.prototype.setCsrfToken = function setCsrfToken(request) { + var token = this.token(); + request.set('X-CSRF-TOKEN', token); + request.set('Cookie', 'CSRF-TOKEN=' + token + ';path=/'); - }, { - key: 'buildUrlCustomBasePath', - value: function buildUrlCustomBasePath(basePath, path, pathParams) { - if (!path.match(/^\//)) { - path = '/' + path; - } - var url = basePath + path; - var _this = this; - url = url.replace(/\{([\w-]+)\}/g, function (fullMatch, key) { - var value; - if (pathParams.hasOwnProperty(key)) { - value = _this.paramToString(pathParams[key]); - } else { - value = fullMatch; - } - return encodeURIComponent(value); + try { + document.cookie = 'CSRF-TOKEN=' + token + ';path=/'; + } catch (err) {} + }; + + AlfrescoApiClient.prototype.token = function token(a) { + return a ? (a ^ Math.random() * 16 >> a / 4).toString(16) : ([1e16] + 1e16).replace(/[01]/g, this.token); + }; + + AlfrescoApiClient.prototype.progress = function progress(event, eventEmitter) { + if (event.lengthComputable && this.promise) { + var percent = Math.round(event.loaded / event.total * 100); + + eventEmitter.emit('progress', { + total: event.total, + loaded: event.loaded, + percent: percent }); - return url; } - }]); + }; + + /** + * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders + * with parameter values. + * + * @param {String} basePath the base path + * @param {String} path The path to append to the base URL. + * @param {Object} pathParams The parameter values to append. + * @returns {String} The encoded path with parameter values substituted. + */ + + + AlfrescoApiClient.prototype.buildUrlCustomBasePath = function buildUrlCustomBasePath(basePath, path, pathParams) { + if (!path.match(/^\//)) { + path = '/' + path; + } + var url = basePath + path; + var _this = this; + url = url.replace(/\{([\w-]+)\}/g, function (fullMatch, key) { + var value; + if (pathParams.hasOwnProperty(key)) { + value = _this.paramToString(pathParams[key]); + } else { + value = fullMatch; + } + return encodeURIComponent(value); + }); + return url; + }; return AlfrescoApiClient; }(ApiClient); @@ -58405,8 +58478,6 @@ module.exports = AlfrescoApiClient; },{"./alfresco-core-rest-api/src/ApiClient":167,"event-emitter":21,"lodash":23,"superagent":25}],296:[function(require,module,exports){ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var AlfrescoContent = function () { @@ -58430,40 +58501,35 @@ var AlfrescoContent = function () { */ - _createClass(AlfrescoContent, [{ - key: 'getDocumentThumbnailUrl', - value: function getDocumentThumbnailUrl(documentId) { - return this.ecmClient.basePath + '/nodes/' + documentId + '/renditions/doclib/content' + '?attachment=false&alf_ticket=' + this.ecmAuth.getTicket(); - } + AlfrescoContent.prototype.getDocumentThumbnailUrl = function getDocumentThumbnailUrl(documentId) { + return this.ecmClient.basePath + '/nodes/' + documentId + '/renditions/doclib/content' + '?attachment=false&alf_ticket=' + this.ecmAuth.getTicket(); + }; - /** - * Get preview URL for the given documentId - * - * @param {String} documentId of the document - * - * @returns {String} preview URL address. - */ + /** + * Get preview URL for the given documentId + * + * @param {String} documentId of the document + * + * @returns {String} preview URL address. + */ - }, { - key: 'getDocumentPreviewUrl', - value: function getDocumentPreviewUrl(documentId) { - return this.ecmClient.basePath + '/nodes/' + documentId + '/renditions/imgpreview/content' + '?attachment=false&alf_ticket=' + this.ecmAuth.getTicket(); - } - /** - * Get content URL for the given documentId - * - * @param {String} documentId of the document - * - * @returns {String} content URL address. - */ + AlfrescoContent.prototype.getDocumentPreviewUrl = function getDocumentPreviewUrl(documentId) { + return this.ecmClient.basePath + '/nodes/' + documentId + '/renditions/imgpreview/content' + '?attachment=false&alf_ticket=' + this.ecmAuth.getTicket(); + }; + + /** + * Get content URL for the given documentId + * + * @param {String} documentId of the document + * + * @returns {String} content URL address. + */ - }, { - key: 'getContentUrl', - value: function getContentUrl(documentId) { - return this.ecmClient.basePath + '/nodes/' + documentId + '/content' + '?attachment=false&alf_ticket=' + this.ecmAuth.getTicket(); - } - }]); + + AlfrescoContent.prototype.getContentUrl = function getContentUrl(documentId) { + return this.ecmClient.basePath + '/nodes/' + documentId + '/content' + '?attachment=false&alf_ticket=' + this.ecmAuth.getTicket(); + }; return AlfrescoContent; }(); @@ -58473,13 +58539,13 @@ module.exports = AlfrescoContent; },{}],297:[function(require,module,exports){ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); +function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } var AlfrescoCoreRestApi = require('./alfresco-core-rest-api/src/index.js'); var _ = require('lodash'); @@ -58490,93 +58556,85 @@ var AlfrescoNode = function (_AlfrescoCoreRestApi$) { function AlfrescoNode() { _classCallCheck(this, AlfrescoNode); - return _possibleConstructorReturn(this, (AlfrescoNode.__proto__ || Object.getPrototypeOf(AlfrescoNode)).apply(this, arguments)); + return _possibleConstructorReturn(this, _AlfrescoCoreRestApi$.apply(this, arguments)); } - _createClass(AlfrescoNode, [{ - key: 'getNodeInfo', - + /** + * Get Info about file or folder by given nodeId + * Minimal information for each child is returned by default. + * You can use the include parameter to return addtional information. + * + * @param {String} nodeId The identifier of a node. You can also use one of these well-known aliases: -my- | -shared- | -root- + * @param {Object} opts + * + * @returns {Promise} A promise with the file/folder data if resolved and {error} if rejected. + */ + AlfrescoNode.prototype.getNodeInfo = function getNodeInfo(nodeId, opts) { + var _this2 = this; - /** - * Get Info about file or folder by given nodeId - * Minimal information for each child is returned by default. - * You can use the include parameter to return addtional information. - * - * @param {String} nodeId The identifier of a node. You can also use one of these well-known aliases: -my- | -shared- | -root- - * @param {Object} opts - * - * @returns {Promise} A promise with the file/folder data if resolved and {error} if rejected. - */ - value: function getNodeInfo(nodeId, opts) { - var _this2 = this; - - return new Promise(function (resolve, reject) { - _this2.getNode(nodeId, opts).then(function (data) { - resolve(data.entry); - }, function (error) { - reject(error); - }); + return new Promise(function (resolve, reject) { + _this2.getNode(nodeId, opts).then(function (data) { + resolve(data.entry); + }, function (error) { + reject(error); }); - } + }); + }; - /** - * Delete node by ID, If the nodeId is a folder, then its children are also - * Deleted permanent will not be possible recover it - * - * @param {String} nodeId The identifier of a node. You can also use one of these well-known aliases: -my- | -shared- | -root- - * - * @returns {Promise} A promise that is resolved if the file is deleted and {error} if rejected. - */ + /** + * Delete node by ID, If the nodeId is a folder, then its children are also + * Deleted permanent will not be possible recover it + * + * @param {String} nodeId The identifier of a node. You can also use one of these well-known aliases: -my- | -shared- | -root- + * + * @returns {Promise} A promise that is resolved if the file is deleted and {error} if rejected. + */ - }, { - key: 'deleteNodePermanent', - value: function deleteNodePermanent(nodeId) { - return this.deleteNode(nodeId, { permanent: true }); - } - /** - * Create a folder - * - * @param {String} name - folder name - * @param {String} relativePath - The relativePath specifies the folder structure to create relative to the node identified by nodeId. - * @param {String} nodeId default value root.The identifier of a node where add the folder. You can also use one of these well-known aliases: -my- | -shared- | -root- - * @param {Object} opts Optional parameters - * - * @returns {Promise} A promise that is resolved if the folder is created and {error} if rejected. - */ + AlfrescoNode.prototype.deleteNodePermanent = function deleteNodePermanent(nodeId) { + return this.deleteNode(nodeId, { permanent: true }); + }; - }, { - key: 'createFolder', - value: function createFolder(name, relativePath, nodeId, opts) { - nodeId = nodeId || '-root-'; - var nodeBody = { - 'name': name, - 'nodeType': 'cm:folder', - 'relativePath': relativePath - }; + /** + * Create a folder + * + * @param {String} name - folder name + * @param {String} relativePath - The relativePath specifies the folder structure to create relative to the node identified by nodeId. + * @param {String} nodeId default value root.The identifier of a node where add the folder. You can also use one of these well-known aliases: -my- | -shared- | -root- + * @param {Object} opts Optional parameters + * + * @returns {Promise} A promise that is resolved if the folder is created and {error} if rejected. + */ - return this.addNode(nodeId, nodeBody, opts); - } - /** - * Create a folder and autorename it if already exist - * - * @param {String} name - folder name - * @param {String} relativePath - The relativePath specifies the folder structure to create relative to the node identified by nodeId. - * @param {String} nodeId default value root.The identifier of a node where add the folder. You can also use one of these well-known aliases: -my- | -shared- | -root- - * @param {Object} opts Optional parameters - * - * @returns {Promise} A promise that is resolved if the folder is created and {error} if rejected. - */ + AlfrescoNode.prototype.createFolder = function createFolder(name, relativePath, nodeId, opts) { + nodeId = nodeId || '-root-'; + var nodeBody = { + 'name': name, + 'nodeType': 'cm:folder', + 'relativePath': relativePath + }; - }, { - key: 'createFolderAutoRename', - value: function createFolderAutoRename(name, relativePath, nodeId, opts) { - var optAutoRename = { autoRename: true }; - opts = _.merge(opts, optAutoRename); - return this.createFolder(name, relativePath, nodeId, opts); - } - }]); + return this.addNode(nodeId, nodeBody, opts); + }; + + /** + * Create a folder and autorename it if already exist + * + * @param {String} name - folder name + * @param {String} relativePath - The relativePath specifies the folder structure to create relative to the node identified by nodeId. + * @param {String} nodeId default value root.The identifier of a node where add the folder. You can also use one of these well-known aliases: -my- | -shared- | -root- + * @param {Object} opts Optional parameters + * + * @returns {Promise} A promise that is resolved if the folder is created and {error} if rejected. + */ + + + AlfrescoNode.prototype.createFolderAutoRename = function createFolderAutoRename(name, relativePath, nodeId, opts) { + var optAutoRename = { autoRename: true }; + opts = _.merge(opts, optAutoRename); + return this.createFolder(name, relativePath, nodeId, opts); + }; return AlfrescoNode; }(AlfrescoCoreRestApi.NodesApi); @@ -58586,13 +58644,13 @@ module.exports = AlfrescoNode; },{"./alfresco-core-rest-api/src/index.js":182,"lodash":23}],298:[function(require,module,exports){ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); +function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } var AlfrescoCoreRestApi = require('./alfresco-core-rest-api/src/index.js'); var Emitter = require('event-emitter'); @@ -58604,76 +58662,72 @@ var AlfrescoUpload = function (_AlfrescoCoreRestApi$) { function AlfrescoUpload() { _classCallCheck(this, AlfrescoUpload); - var _this = _possibleConstructorReturn(this, (AlfrescoUpload.__proto__ || Object.getPrototypeOf(AlfrescoUpload)).call(this)); + var _this = _possibleConstructorReturn(this, _AlfrescoCoreRestApi$.call(this)); Emitter.call(_this); return _this; } - _createClass(AlfrescoUpload, [{ - key: 'uploadFile', - value: function uploadFile(fileDefinition, relativePath, nodeId, nodeBody, opts) { - nodeId = nodeId || '-root-'; + AlfrescoUpload.prototype.uploadFile = function uploadFile(fileDefinition, relativePath, nodeId, nodeBody, opts) { + nodeId = nodeId || '-root-'; - var nodeBodyRequired = { - 'name': fileDefinition.name, - 'nodeType': 'cm:content', - 'relativePath': relativePath - }; + var nodeBodyRequired = { + 'name': fileDefinition.name, + 'nodeType': 'cm:content', + 'relativePath': relativePath + }; - nodeBody = _.merge(nodeBodyRequired, nodeBody); + nodeBody = _.merge(nodeBodyRequired, nodeBody); - var formParam = {}; - formParam.filedata = fileDefinition; - formParam.relativePath = relativePath; + var formParam = {}; + formParam.filedata = fileDefinition; + formParam.relativePath = relativePath; - formParam = _.merge(formParam, opts); + formParam = _.merge(formParam, opts); - return this.addNodeUpload(nodeId, nodeBody, opts, formParam); - } + return this.addNodeUpload(nodeId, nodeBody, opts, formParam); + }; - /** - * Create a node - * - * @param {String} nodeId The identifier of a node. You can also use one of these well-known aliases: -my-\ -shared- -root-\n - * @param {module:model/NodeBody1} nodeBody The node information to create. - * @param {Object} opts Optional parameters - * @param {Object.} formParams A map of form parameters and their values. - */ + /** + * Create a node + * + * @param {String} nodeId The identifier of a node. You can also use one of these well-known aliases: -my-\ -shared- -root-\n + * @param {module:model/NodeBody1} nodeBody The node information to create. + * @param {Object} opts Optional parameters + * @param {Object.} formParams A map of form parameters and their values. + */ - }, { - key: 'addNodeUpload', - value: function addNodeUpload(nodeId, nodeBody, opts, formParams) { - opts = opts || {}; - var postBody = nodeBody; - if (!nodeId) { - throw 'Missing the required parameter nodeId when calling uploadFile'; - } + AlfrescoUpload.prototype.addNodeUpload = function addNodeUpload(nodeId, nodeBody, opts, formParams) { + opts = opts || {}; + var postBody = nodeBody; - if (!nodeBody) { - throw 'Missing the required parameter nodeBody when calling uploadFile'; - } + if (!nodeId) { + throw 'Missing the required parameter nodeId when calling uploadFile'; + } - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'autoRename': opts.autoRename, - 'include': this.apiClient.buildCollectionParam(opts.include, 'csv'), - 'fields': this.apiClient.buildCollectionParam(opts.fields, 'csv') - }; - var headerParams = {}; - formParams = formParams || {}; + if (!nodeBody) { + throw 'Missing the required parameter nodeBody when calling uploadFile'; + } - var authNames = ['basicAuth']; - var contentTypes = ['multipart/form-data']; - var accepts = ['application/json']; - var returnType = AlfrescoCoreRestApi.NodeEntry; + var pathParams = { + 'nodeId': nodeId + }; + var queryParams = { + 'autoRename': opts.autoRename, + 'include': this.apiClient.buildCollectionParam(opts.include, 'csv'), + 'fields': this.apiClient.buildCollectionParam(opts.fields, 'csv') + }; + var headerParams = {}; + formParams = formParams || {}; - return this.apiClient.callApi('/nodes/{nodeId}/children', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); - } - }]); + var authNames = ['basicAuth']; + var contentTypes = ['multipart/form-data']; + var accepts = ['application/json']; + var returnType = AlfrescoCoreRestApi.NodeEntry; + + return this.apiClient.callApi('/nodes/{nodeId}/children', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + }; return AlfrescoUpload; }(AlfrescoCoreRestApi.NodesApi); @@ -58684,8 +58738,6 @@ module.exports = AlfrescoUpload; },{"./alfresco-core-rest-api/src/index.js":182,"event-emitter":21,"lodash":23}],299:[function(require,module,exports){ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var ApiClient = require('./alfresco-core-rest-api/src/ApiClient'); @@ -58712,33 +58764,30 @@ var AlfrescoWebScriptApi = function () { * @returns {Promise} A promise that is resolved return the webScript data and {error} if rejected. */ - _createClass(AlfrescoWebScriptApi, [{ - key: 'executeWebScript', - value: function executeWebScript(httpMethod, scriptPath, scriptArgs, contextRoot, servicePath, postBody) { - contextRoot = contextRoot || 'alfresco'; - servicePath = servicePath || 'service'; - postBody = postBody || null; + AlfrescoWebScriptApi.prototype.executeWebScript = function executeWebScript(httpMethod, scriptPath, scriptArgs, contextRoot, servicePath, postBody) { + contextRoot = contextRoot || 'alfresco'; + servicePath = servicePath || 'service'; + postBody = postBody || null; - if (!httpMethod || this.allowedMethod.indexOf(httpMethod) === -1) { - throw 'method allowed value GET, POST, PUT and DELETE'; - } + if (!httpMethod || this.allowedMethod.indexOf(httpMethod) === -1) { + throw 'method allowed value GET, POST, PUT and DELETE'; + } - if (!scriptPath) { - throw 'Missing the required parameter scriptPath when calling executeWebScript'; - } + if (!scriptPath) { + throw 'Missing the required parameter scriptPath when calling executeWebScript'; + } - var pathParams = {}; - var headerParams = {}; - var formParams = {}; + var pathParams = {}; + var headerParams = {}; + var formParams = {}; - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json', 'text/html']; - var returnType = {}; + var authNames = ['basicAuth']; + var contentTypes = ['application/json']; + var accepts = ['application/json', 'text/html']; + var returnType = {}; - return this.apiClient.callApi('/' + servicePath + '/' + scriptPath, httpMethod, pathParams, scriptArgs, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, contextRoot); - } - }]); + return this.apiClient.callApi('/' + servicePath + '/' + scriptPath, httpMethod, pathParams, scriptArgs, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, contextRoot); + }; return AlfrescoWebScriptApi; }(); @@ -58749,13 +58798,13 @@ module.exports = AlfrescoWebScriptApi; (function (Buffer){ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); +function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } var AlfrescoApiClient = require('./alfrescoApiClient'); var Emitter = require('event-emitter'); @@ -58769,7 +58818,7 @@ var BpmAuth = function (_AlfrescoApiClient) { function BpmAuth(config) { _classCallCheck(this, BpmAuth); - var _this = _possibleConstructorReturn(this, (BpmAuth.__proto__ || Object.getPrototypeOf(BpmAuth)).call(this)); + var _this = _possibleConstructorReturn(this, _AlfrescoApiClient.call(this)); _this.config = config; _this.ticket = undefined; @@ -58787,165 +58836,155 @@ var BpmAuth = function (_AlfrescoApiClient) { return _this; } - _createClass(BpmAuth, [{ - key: 'changeHost', - value: function changeHost(host) { - this.config.hostBpm = host; - this.basePath = this.config.hostBpm + '/activiti-app'; //Activiti Call - } - }, { - key: 'changeCsrfConfig', - value: function changeCsrfConfig(disableCsrf) { - this.config.disableCsrf = disableCsrf; - } + BpmAuth.prototype.changeHost = function changeHost(host) { + this.config.hostBpm = host; + this.basePath = this.config.hostBpm + '/activiti-app'; //Activiti Call + }; - /** - * login Activiti API - * @param {String} username: // Username to login - * @param {String} password: // Password to login - * - * @returns {Promise} A promise that returns {new authentication ticket} if resolved and {error} if rejected. - * */ + BpmAuth.prototype.changeCsrfConfig = function changeCsrfConfig(disableCsrf) { + this.config.disableCsrf = disableCsrf; + }; - }, { - key: 'login', - value: function login(username, password) { - var _this2 = this; + /** + * login Activiti API + * @param {String} username: // Username to login + * @param {String} password: // Password to login + * + * @returns {Promise} A promise that returns {new authentication ticket} if resolved and {error} if rejected. + * */ - this.authentications.basicAuth.username = username; - this.authentications.basicAuth.password = password; - var postBody = {}, - pathParams = {}, - queryParams = {}; + BpmAuth.prototype.login = function login(username, password) { + var _this2 = this; - var headerParams = { - 'Content-Type': 'application/x-www-form-urlencoded', - 'Cache-Control': 'no-cache' - }; - var formParams = { - j_username: this.authentications.basicAuth.username, - j_password: this.authentications.basicAuth.password, - _spring_security_remember_me: true, - submit: 'Login' - }; + this.authentications.basicAuth.username = username; + this.authentications.basicAuth.password = password; - var authNames = []; - var contentTypes = ['application/x-www-form-urlencoded']; - var accepts = ['application/json']; + var postBody = {}, + pathParams = {}, + queryParams = {}; - this.promise = new Promise(function (resolve, reject) { - _this2.callApi('/app/authentication', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts).then(function (data) { - var ticket = 'Basic ' + new Buffer(_this2.authentications.basicAuth.username + ':' + _this2.authentications.basicAuth.password).toString('base64'); - _this2.setTicket(ticket); - _this2.promise.emit('success'); - resolve(ticket); - }, function (error) { - if (error.status === 401) { - _this2.promise.emit('unauthorized'); - } else if (error.status === 403) { - _this2.promise.emit('forbidden'); - } else { - _this2.promise.emit('error'); - } - reject(error); - }); + var headerParams = { + 'Content-Type': 'application/x-www-form-urlencoded', + 'Cache-Control': 'no-cache' + }; + var formParams = { + j_username: this.authentications.basicAuth.username, + j_password: this.authentications.basicAuth.password, + _spring_security_remember_me: true, + submit: 'Login' + }; + + var authNames = []; + var contentTypes = ['application/x-www-form-urlencoded']; + var accepts = ['application/json']; + + this.promise = new Promise(function (resolve, reject) { + _this2.callApi('/app/authentication', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts).then(function (data) { + var ticket = 'Basic ' + new Buffer(_this2.authentications.basicAuth.username + ':' + _this2.authentications.basicAuth.password).toString('base64'); + _this2.setTicket(ticket); + _this2.promise.emit('success'); + resolve(ticket); + }, function (error) { + if (error.status === 401) { + _this2.promise.emit('unauthorized'); + } else if (error.status === 403) { + _this2.promise.emit('forbidden'); + } else { + _this2.promise.emit('error'); + } + reject(error); }); + }); - Emitter(this.promise); // jshint ignore:line + Emitter(this.promise); // jshint ignore:line - return this.promise; - } + return this.promise; + }; - /** - * logout Alfresco API - * - * @returns {Promise} A promise that returns {new authentication ticket} if resolved and {error} if rejected. - * */ + /** + * logout Alfresco API + * + * @returns {Promise} A promise that returns {new authentication ticket} if resolved and {error} if rejected. + * */ - }, { - key: 'logout', - value: function logout() { - var _this3 = this; - var postBody = {}, - pathParams = {}, - queryParams = {}, - headerParams = {}, - formParams = {}; + BpmAuth.prototype.logout = function logout() { + var _this3 = this; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; + var postBody = {}, + pathParams = {}, + queryParams = {}, + headerParams = {}, + formParams = {}; - this.promise = new Promise(function (resolve, reject) { - _this3.callApi('/app/logout', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts).then(function () { - _this3.promise.emit('logout'); - _this3.setTicket(undefined); - resolve('logout'); - }, function (error) { - if (error.status === 401) { - _this3.promise.emit('unauthorized'); - } - _this3.promise.emit('error'); - reject(error); - }); + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + + this.promise = new Promise(function (resolve, reject) { + _this3.callApi('/app/logout', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts).then(function () { + _this3.promise.emit('logout'); + _this3.setTicket(undefined); + resolve('logout'); + }, function (error) { + if (error.status === 401) { + _this3.promise.emit('unauthorized'); + } + _this3.promise.emit('error'); + reject(error); }); + }); - Emitter(this.promise); // jshint ignore:line + Emitter(this.promise); // jshint ignore:line - return this.promise; - } + return this.promise; + }; - /** - * Set the current Ticket - * - * @param {String} Ticket - * */ - - }, { - key: 'setTicket', - value: function setTicket(ticket) { - this.authentications.basicAuth.ticket = ticket; - this.ticket = ticket; - } + /** + * Set the current Ticket + * + * @param {String} Ticket + * */ - /** - * Get the current Ticket - * - * @returns {String} Ticket - * */ - }, { - key: 'getTicket', - value: function getTicket() { - return this.ticket; - } + BpmAuth.prototype.setTicket = function setTicket(ticket) { + this.authentications.basicAuth.ticket = ticket; + this.ticket = ticket; + }; - /** - * If the client is logged in retun true - * - * @returns {Boolean} is logged in - */ + /** + * Get the current Ticket + * + * @returns {String} Ticket + * */ - }, { - key: 'isLoggedIn', - value: function isLoggedIn() { - return !!this.ticket; - } - /** - * return the Authentication - * - * @returns {Object} authentications - * */ + BpmAuth.prototype.getTicket = function getTicket() { + return this.ticket; + }; + + /** + * If the client is logged in retun true + * + * @returns {Boolean} is logged in + */ - }, { - key: 'getAuthentication', - value: function getAuthentication() { - return this.authentications; - } - }]); + + BpmAuth.prototype.isLoggedIn = function isLoggedIn() { + return !!this.ticket; + }; + + /** + * return the Authentication + * + * @returns {Object} authentications + * */ + + + BpmAuth.prototype.getAuthentication = function getAuthentication() { + return this.authentications; + }; return BpmAuth; }(AlfrescoApiClient); @@ -58957,13 +58996,13 @@ module.exports = BpmAuth; },{"./alfrescoApiClient":295,"buffer":4,"event-emitter":21}],301:[function(require,module,exports){ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); +function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } var AlfrescoApiClient = require('./alfrescoApiClient'); @@ -58977,7 +59016,7 @@ var BpmClient = function (_AlfrescoApiClient) { function BpmClient(host, config) { _classCallCheck(this, BpmClient); - var _this = _possibleConstructorReturn(this, (BpmClient.__proto__ || Object.getPrototypeOf(BpmClient)).call(this)); + var _this = _possibleConstructorReturn(this, _AlfrescoApiClient.call(this)); _this.host = host; _this.config = config; @@ -58993,24 +59032,20 @@ var BpmClient = function (_AlfrescoApiClient) { * */ - _createClass(BpmClient, [{ - key: 'changeHost', - value: function changeHost(host) { - this.basePath = host + '/activiti-app'; - } + BpmClient.prototype.changeHost = function changeHost(host) { + this.basePath = host + '/activiti-app'; + }; - /** - * set the authentications - * - * @param {Object} authentications - * */ + /** + * set the authentications + * + * @param {Object} authentications + * */ - }, { - key: 'setAuthentications', - value: function setAuthentications(authentications) { - this.authentications = authentications; - } - }]); + + BpmClient.prototype.setAuthentications = function setAuthentications(authentications) { + this.authentications = authentications; + }; return BpmClient; }(AlfrescoApiClient); @@ -59020,13 +59055,13 @@ module.exports = BpmClient; },{"./alfrescoApiClient":295}],302:[function(require,module,exports){ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); +function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } var AlfrescoAuthRestApi = require('./alfresco-auth-rest-api/src/index'); var AlfrescoApiClient = require('./alfrescoApiClient'); @@ -59041,7 +59076,7 @@ var EcmAuth = function (_AlfrescoApiClient) { function EcmAuth(config) { _classCallCheck(this, EcmAuth); - var _this = _possibleConstructorReturn(this, (EcmAuth.__proto__ || Object.getPrototypeOf(EcmAuth)).call(this)); + var _this = _possibleConstructorReturn(this, _AlfrescoApiClient.call(this)); _this.config = config; @@ -59055,168 +59090,158 @@ var EcmAuth = function (_AlfrescoApiClient) { return _this; } - _createClass(EcmAuth, [{ - key: 'changeHost', - value: function changeHost(host) { - this.config.hostEcm = host; - this.basePath = this.config.hostEcm + '/' + this.config.contextRoot + '/api/-default-/public/authentication/versions/1'; //Auth Call - } + EcmAuth.prototype.changeHost = function changeHost(host) { + this.config.hostEcm = host; + this.basePath = this.config.hostEcm + '/' + this.config.contextRoot + '/api/-default-/public/authentication/versions/1'; //Auth Call + }; - /** - * login Alfresco API - * @param {String} username: // Username to login - * @param {String} password: // Password to login - * - * @returns {Promise} A promise that returns {new authentication ticket} if resolved and {error} if rejected. - * */ + /** + * login Alfresco API + * @param {String} username: // Username to login + * @param {String} password: // Password to login + * + * @returns {Promise} A promise that returns {new authentication ticket} if resolved and {error} if rejected. + * */ - }, { - key: 'login', - value: function login(username, password) { - var _this2 = this; - this.authentications.basicAuth.username = username; - this.authentications.basicAuth.password = password; + EcmAuth.prototype.login = function login(username, password) { + var _this2 = this; - var authApi = new AlfrescoAuthRestApi.AuthenticationApi(this); - var loginRequest = new AlfrescoAuthRestApi.LoginRequest(); + this.authentications.basicAuth.username = username; + this.authentications.basicAuth.password = password; - loginRequest.userId = this.authentications.basicAuth.username; - loginRequest.password = this.authentications.basicAuth.password; + var authApi = new AlfrescoAuthRestApi.AuthenticationApi(this); + var loginRequest = new AlfrescoAuthRestApi.LoginRequest(); - this.promise = new Promise(function (resolve, reject) { - authApi.createTicket(loginRequest).then(function (data) { - _this2.setTicket(data.entry.id); - _this2.promise.emit('success'); - resolve(data.entry.id); - }, function (error) { - if (error.status === 401) { - _this2.promise.emit('unauthorized'); - } else if (error.status === 403) { - _this2.promise.emit('forbidden'); - } else { - _this2.promise.emit('error'); - } - reject(error); - }); + loginRequest.userId = this.authentications.basicAuth.username; + loginRequest.password = this.authentications.basicAuth.password; + + this.promise = new Promise(function (resolve, reject) { + authApi.createTicket(loginRequest).then(function (data) { + _this2.setTicket(data.entry.id); + _this2.promise.emit('success'); + resolve(data.entry.id); + }, function (error) { + if (error.status === 401) { + _this2.promise.emit('unauthorized'); + } else if (error.status === 403) { + _this2.promise.emit('forbidden'); + } else { + _this2.promise.emit('error'); + } + reject(error); }); + }); - Emitter(this.promise); // jshint ignore:line - return this.promise; - } + Emitter(this.promise); // jshint ignore:line + return this.promise; + }; - /** - * validate the ticket present in this.config.ticket against the server - * - * @returns {Promise} A promise that returns if resolved and {error} if rejected. - * */ - - }, { - key: 'validateTicket', - value: function validateTicket() { - var _this3 = this; - - var authApi = new AlfrescoAuthRestApi.AuthenticationApi(this); - - this.promise = new Promise(function (resolve, reject) { - authApi.validateTicket().then(function (data) { - _this3.setTicket(data.entry.id); - _this3.promise.emit('success'); - resolve(data.entry.id); - }, function (error) { - if (error.status === 401) { - _this3.promise.emit('unauthorized'); - } - _this3.promise.emit('error'); - reject(error); - }); + /** + * validate the ticket present in this.config.ticket against the server + * + * @returns {Promise} A promise that returns if resolved and {error} if rejected. + * */ + + + EcmAuth.prototype.validateTicket = function validateTicket() { + var _this3 = this; + + var authApi = new AlfrescoAuthRestApi.AuthenticationApi(this); + + this.promise = new Promise(function (resolve, reject) { + authApi.validateTicket().then(function (data) { + _this3.setTicket(data.entry.id); + _this3.promise.emit('success'); + resolve(data.entry.id); + }, function (error) { + if (error.status === 401) { + _this3.promise.emit('unauthorized'); + } + _this3.promise.emit('error'); + reject(error); }); + }); - Emitter(this.promise); // jshint ignore:line - return this.promise; - } + Emitter(this.promise); // jshint ignore:line + return this.promise; + }; - /** - * logout Alfresco API - * - * @returns {Promise} A promise that returns { authentication ticket} if resolved and {error} if rejected. - * */ - - }, { - key: 'logout', - value: function logout() { - var _this4 = this; - - var authApi = new AlfrescoAuthRestApi.AuthenticationApi(this); - - this.promise = new Promise(function (resolve, reject) { - authApi.deleteTicket().then(function () { - _this4.promise.emit('logout'); - _this4.setTicket(undefined); - resolve('logout'); - }, function (error) { - if (error.status === 401) { - _this4.promise.emit('unauthorized'); - } - _this4.promise.emit('error'); - reject(error); - }); + /** + * logout Alfresco API + * + * @returns {Promise} A promise that returns { authentication ticket} if resolved and {error} if rejected. + * */ + + + EcmAuth.prototype.logout = function logout() { + var _this4 = this; + + var authApi = new AlfrescoAuthRestApi.AuthenticationApi(this); + + this.promise = new Promise(function (resolve, reject) { + authApi.deleteTicket().then(function () { + _this4.promise.emit('logout'); + _this4.setTicket(undefined); + resolve('logout'); + }, function (error) { + if (error.status === 401) { + _this4.promise.emit('unauthorized'); + } + _this4.promise.emit('error'); + reject(error); }); + }); - Emitter(this.promise); // jshint ignore:line - return this.promise; - } + Emitter(this.promise); // jshint ignore:line + return this.promise; + }; - /** - * Set the current Ticket - * - * @param {String} Ticket - * */ - - }, { - key: 'setTicket', - value: function setTicket(ticket) { - this.authentications.basicAuth.username = 'ROLE_TICKET'; - this.authentications.basicAuth.password = ticket; - this.ticket = ticket; - } + /** + * Set the current Ticket + * + * @param {String} Ticket + * */ - /** - * Get the current Ticket - * - * @returns {String} Ticket - * */ - }, { - key: 'getTicket', - value: function getTicket() { - return this.ticket; - } + EcmAuth.prototype.setTicket = function setTicket(ticket) { + this.authentications.basicAuth.username = 'ROLE_TICKET'; + this.authentications.basicAuth.password = ticket; + this.ticket = ticket; + }; - /** - * If the client is logged in retun true - * - * @returns {Boolean} is logged in - */ + /** + * Get the current Ticket + * + * @returns {String} Ticket + * */ - }, { - key: 'isLoggedIn', - value: function isLoggedIn() { - return !!this.ticket; - } - /** - * return the Authentication - * - * @returns {Object} authentications - * */ + EcmAuth.prototype.getTicket = function getTicket() { + return this.ticket; + }; - }, { - key: 'getAuthentication', - value: function getAuthentication() { - return this.authentications; - } - }]); + /** + * If the client is logged in retun true + * + * @returns {Boolean} is logged in + */ + + + EcmAuth.prototype.isLoggedIn = function isLoggedIn() { + return !!this.ticket; + }; + + /** + * return the Authentication + * + * @returns {Object} authentications + * */ + + + EcmAuth.prototype.getAuthentication = function getAuthentication() { + return this.authentications; + }; return EcmAuth; }(AlfrescoApiClient); @@ -59227,13 +59252,13 @@ module.exports = EcmAuth; },{"./alfresco-auth-rest-api/src/index":159,"./alfrescoApiClient":295,"event-emitter":21}],303:[function(require,module,exports){ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); +function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } var AlfrescoApiClient = require('./alfrescoApiClient'); @@ -59248,7 +59273,7 @@ var EcmClient = function (_AlfrescoApiClient) { function EcmClient(host, contextRoot, config) { _classCallCheck(this, EcmClient); - var _this = _possibleConstructorReturn(this, (EcmClient.__proto__ || Object.getPrototypeOf(EcmClient)).call(this)); + var _this = _possibleConstructorReturn(this, _AlfrescoApiClient.call(this)); _this.host = host; _this.config = config; @@ -59265,24 +59290,20 @@ var EcmClient = function (_AlfrescoApiClient) { * */ - _createClass(EcmClient, [{ - key: 'changeHost', - value: function changeHost(host) { - this.basePath = host + '/' + this.contextRoot + '/api/-default-/public/alfresco/versions/1'; - } + EcmClient.prototype.changeHost = function changeHost(host) { + this.basePath = host + '/' + this.contextRoot + '/api/-default-/public/alfresco/versions/1'; + }; - /** - * set the Authentications - * - * @param {Object} authentications - * */ + /** + * set the Authentications + * + * @param {Object} authentications + * */ - }, { - key: 'setAuthentications', - value: function setAuthentications(authentications) { - this.authentications = authentications; - } - }]); + + EcmClient.prototype.setAuthentications = function setAuthentications(authentications) { + this.authentications = authentications; + }; return EcmClient; }(AlfrescoApiClient); @@ -59292,13 +59313,13 @@ module.exports = EcmClient; },{"./alfrescoApiClient":295}],304:[function(require,module,exports){ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); +function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } var AlfrescoApiClient = require('./alfrescoApiClient'); @@ -59313,7 +59334,7 @@ var EcmClient = function (_AlfrescoApiClient) { function EcmClient(host, contextRoot, config) { _classCallCheck(this, EcmClient); - var _this = _possibleConstructorReturn(this, (EcmClient.__proto__ || Object.getPrototypeOf(EcmClient)).call(this)); + var _this = _possibleConstructorReturn(this, _AlfrescoApiClient.call(this)); _this.host = host; _this.contextRoot = contextRoot; @@ -59330,24 +59351,20 @@ var EcmClient = function (_AlfrescoApiClient) { * */ - _createClass(EcmClient, [{ - key: 'changeHost', - value: function changeHost(host) { - this.basePath = host + '/' + this.contextRoot + '/api/-default-/private/alfresco/versions/1'; - } + EcmClient.prototype.changeHost = function changeHost(host) { + this.basePath = host + '/' + this.contextRoot + '/api/-default-/private/alfresco/versions/1'; + }; - /** - * set the Authentications - * - * @param {Object} authentications - * */ + /** + * set the Authentications + * + * @param {Object} authentications + * */ - }, { - key: 'setAuthentications', - value: function setAuthentications(authentications) { - this.authentications = authentications; - } - }]); + + EcmClient.prototype.setAuthentications = function setAuthentications(authentications) { + this.authentications = authentications; + }; return EcmClient; }(AlfrescoApiClient); diff --git a/dist/alfresco-js-api.min.js b/dist/alfresco-js-api.min.js index 8d14b43849..b68cfa16ef 100644 --- a/dist/alfresco-js-api.min.js +++ b/dist/alfresco-js-api.min.js @@ -1,26 +1,26 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.AlfrescoApi = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function o(e){return 3*e.length/4-n(e)}function r(e){var t,i,o,r,s,a,p=e.length;s=n(e),a=new u(3*p/4-s),o=s>0?p-4:p;var l=0;for(t=0,i=0;t>16&255,a[l++]=r>>8&255,a[l++]=255&r;return 2===s?(r=c[e.charCodeAt(t)]<<2|c[e.charCodeAt(t+1)]>>4,a[l++]=255&r):1===s&&(r=c[e.charCodeAt(t)]<<10|c[e.charCodeAt(t+1)]<<4|c[e.charCodeAt(t+2)]>>2,a[l++]=r>>8&255,a[l++]=255&r),a}function s(e){return l[e>>18&63]+l[e>>12&63]+l[e>>6&63]+l[63&e]}function a(e,t,i){for(var n,o=[],r=t;rc?c:p+s));return 1===n?(t=e[i-1],o+=l[t>>2],o+=l[t<<4&63],o+="=="):2===n&&(t=(e[i-2]<<8)+e[i-1],o+=l[t>>10],o+=l[t>>4&63],o+=l[t<<2&63],o+="="),r.push(o),r.join("")}i.byteLength=o,i.toByteArray=r,i.fromByteArray=p;for(var l=[],c=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,y=d.length;f=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function h(e){return+e!=e&&(e=0),s.alloc(+e)}function v(e,t){if(s.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var i=e.length;if(0===i)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return W(e).length;default:if(n)return H(e).length;t=(""+t).toLowerCase(),n=!0}}function A(e,t,i){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if(i>>>=0,t>>>=0,i<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return F(this,t,i);case"utf8":case"utf-8":return O(this,t,i);case"ascii":return k(this,t,i);case"latin1":case"binary":return M(this,t,i);case"base64":return j(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,i);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function b(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function g(e,t,i,n,o){if(0===e.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=o?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(o)return-1;i=e.length-1}else if(i<0){if(!o)return-1;i=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:C(e,t,i,n,o);if("number"==typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):C(e,[t],i,n,o);throw new TypeError("val must be string, number or Buffer")}function C(e,t,i,n,o){function r(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}var s=1,a=e.length,p=t.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,p/=2,i/=2}var l;if(o){var c=-1;for(l=i;la&&(i=a-p),l=i;l>=0;l--){for(var u=!0,d=0;do&&(n=o)):n=o;var r=t.length;if(r%2!==0)throw new TypeError("Invalid hex string");n>r/2&&(n=r/2);for(var s=0;s239?4:r>223?3:r>191?2:1;if(o+a<=i){var p,l,c,u;switch(a){case 1:r<128&&(s=r);break;case 2:p=e[o+1],128===(192&p)&&(u=(31&r)<<6|63&p,u>127&&(s=u));break;case 3:p=e[o+1],l=e[o+2],128===(192&p)&&128===(192&l)&&(u=(15&r)<<12|(63&p)<<6|63&l,u>2047&&(u<55296||u>57343)&&(s=u));break;case 4:p=e[o+1],l=e[o+2],c=e[o+3],128===(192&p)&&128===(192&l)&&128===(192&c)&&(u=(15&r)<<18|(63&p)<<12|(63&l)<<6|63&c,u>65535&&u<1114112&&(s=u))}}null===s?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),o+=a}return E(n)}function E(e){var t=e.length;if(t<=ee)return String.fromCharCode.apply(String,e);for(var i="",n=0;nn)&&(i=n);for(var o="",r=t;ri)throw new RangeError("Trying to access beyond buffer length")}function _(e,t,i,n,o,r){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function D(e,t,i,n){t<0&&(t=65535+t+1);for(var o=0,r=Math.min(e.length-i,2);o>>8*(n?o:1-o)}function B(e,t,i,n){t<0&&(t=4294967295+t+1);for(var o=0,r=Math.min(e.length-i,4);o>>8*(n?o:3-o)&255}function L(e,t,i,n,o,r){if(i+n>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function q(e,t,i,n,o){return o||L(e,t,i,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(e,t,i,n,23,4),i+4}function U(e,t,i,n,o){return o||L(e,t,i,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(e,t,i,n,52,8),i+8}function G(e){if(e=V(e).replace(te,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function V(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){t=t||1/0;for(var i,n=e.length,o=null,r=[],s=0;s55295&&i<57344){if(!o){if(i>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&r.push(239,191,189);continue}o=i;continue}if(i<56320){(t-=3)>-1&&r.push(239,191,189),o=i;continue}i=(o-55296<<10|i-56320)+65536}else o&&(t-=3)>-1&&r.push(239,191,189);if(o=null,i<128){if((t-=1)<0)break;r.push(i)}else if(i<2048){if((t-=2)<0)break;r.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;r.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return r}function Y(e){for(var t=[],i=0;i>8,o=i%256,r.push(o),r.push(n);return r}function W(e){return X.toByteArray(G(e))}function $(e,t,i,n){for(var o=0;o=t.length||o>=e.length);++o)t[o+i]=e[o];return o}function J(e){return e!==e}var X=e("base64-js"),Q=e("ieee754"),Z=e("isarray");i.Buffer=s,i.SlowBuffer=h,i.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:n(),i.kMaxLength=o(),s.poolSize=8192,s._augment=function(e){return e.__proto__=s.prototype,e},s.from=function(e,t,i){return a(null,e,t,i)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(e,t,i){return l(null,e,t,i)},s.allocUnsafe=function(e){return c(null,e)},s.allocUnsafeSlow=function(e){return c(null,e)},s.isBuffer=function(e){return!(null==e||!e._isBuffer)},s.compare=function(e,t){if(!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var i=e.length,n=t.length,o=0,r=Math.min(i,n);o0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},s.prototype.compare=function(e,t,i,n,o){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||i>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=i)return 0;if(n>=o)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,o>>>=0,this===e)return 0;for(var r=o-n,a=i-t,p=Math.min(r,a),l=this.slice(n,o),c=e.slice(t,i),u=0;uo)&&(i=o),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var r=!1;;)switch(n){case"hex":return R(this,e,t,i);case"utf8":case"utf-8":return P(this,e,t,i);case"ascii":return w(this,e,t,i);case"latin1":case"binary":return S(this,e,t,i);case"base64":return T(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,i);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),r=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ee=4096;s.prototype.slice=function(e,t){var i=this.length;e=~~e,t=void 0===t?i:~~t,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t0&&(o*=256);)n+=this[e+--t]*o;return n},s.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,i){e|=0,t|=0,i||N(e,t,this.length);for(var n=this[e],o=1,r=0;++r=o&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,i){e|=0,t|=0,i||N(e,t,this.length);for(var n=t,o=1,r=this[e+--n];n>0&&(o*=256);)r+=this[e+--n]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},s.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},s.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},s.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),Q.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),Q.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),Q.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),Q.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,i,n){if(e=+e,t|=0,i|=0,!n){var o=Math.pow(2,8*i)-1;_(this,e,t,i,o,0)}var r=1,s=0;for(this[t]=255&e;++s=0&&(s*=256);)this[t+r]=e/s&255;return t+i},s.prototype.writeUInt8=function(e,t,i){return e=+e,t|=0,i||_(this,e,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,i){return e=+e,t|=0,i||_(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},s.prototype.writeUInt16BE=function(e,t,i){return e=+e,t|=0,i||_(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},s.prototype.writeUInt32LE=function(e,t,i){return e=+e,t|=0,i||_(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):B(this,e,t,!0),t+4},s.prototype.writeUInt32BE=function(e,t,i){return e=+e,t|=0,i||_(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},s.prototype.writeIntLE=function(e,t,i,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*i-1);_(this,e,t,i,o-1,-o)}var r=0,s=1,a=0;for(this[t]=255&e;++r>0)-a&255;return t+i},s.prototype.writeIntBE=function(e,t,i,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*i-1);_(this,e,t,i,o-1,-o)}var r=i-1,s=1,a=0;for(this[t+r]=255&e;--r>=0&&(s*=256);)e<0&&0===a&&0!==this[t+r+1]&&(a=1),this[t+r]=(e/s>>0)-a&255;return t+i},s.prototype.writeInt8=function(e,t,i){return e=+e,t|=0,i||_(this,e,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,i){return e=+e,t|=0,i||_(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},s.prototype.writeInt16BE=function(e,t,i){return e=+e,t|=0,i||_(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},s.prototype.writeInt32LE=function(e,t,i){return e=+e,t|=0,i||_(this,e,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):B(this,e,t,!0),t+4},s.prototype.writeInt32BE=function(e,t,i){return e=+e,t|=0,i||_(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},s.prototype.writeFloatLE=function(e,t,i){return q(this,e,t,!0,i)},s.prototype.writeFloatBE=function(e,t,i){return q(this,e,t,!1,i)},s.prototype.writeDoubleLE=function(e,t,i){return U(this,e,t,!0,i)},s.prototype.writeDoubleBE=function(e,t,i){return U(this,e,t,!1,i)},s.prototype.copy=function(e,t,i,n){if(i||(i=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--o)e[o+t]=this[o+i];else if(r<1e3||!s.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,i=void 0===i?this.length:i>>>0,e||(e=0);var r;if("number"==typeof e)for(r=t;r-1}},{}],21:[function(e,t,i){"use strict";var n,o,r,s,a,p,l,c=e("d"),u=e("es5-ext/object/valid-callable"),d=Function.prototype.apply,f=Function.prototype.call,y=Object.create,m=Object.defineProperty,h=Object.defineProperties,v=Object.prototype.hasOwnProperty,A={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var i;return u(t),v.call(this,"__ee__")?i=this.__ee__:(i=A.value=y(null),m(this,"__ee__",A),A.value=null),i[e]?"object"==typeof i[e]?i[e].push(t):i[e]=[i[e],t]:i[e]=t,this},o=function(e,t){var i,o;return u(t),o=this,n.call(this,e,i=function(){r.call(o,e,i),d.call(t,this,arguments)}),i.__eeOnceListener__=t,this},r=function(e,t){var i,n,o,r;if(u(t),!v.call(this,"__ee__"))return this;if(i=this.__ee__,!i[e])return this;if(n=i[e],"object"==typeof n)for(r=0;o=n[r];++r)o!==t&&o.__eeOnceListener__!==t||(2===n.length?i[e]=n[r?0:1]:n.splice(r,1));else n!==t&&n.__eeOnceListener__!==t||delete i[e];return this},s=function(e){var t,i,n,o,r;if(v.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(i=arguments.length,r=new Array(i-1),t=1;t>1,c=-7,u=i?o-1:0,d=i?-1:1,f=e[t+u];for(u+=d,r=f&(1<<-c)-1,f>>=-c,c+=a;c>0;r=256*r+e[t+u],u+=d,c-=8);for(s=r&(1<<-c)-1,r>>=-c,c+=n;c>0;s=256*s+e[t+u],u+=d,c-=8);if(0===r)r=1-l;else{if(r===p)return s?NaN:(f?-1:1)*(1/0);s+=Math.pow(2,n),r-=l}return(f?-1:1)*s*Math.pow(2,r-n)},i.write=function(e,t,i,n,o,r){var s,a,p,l=8*r-o-1,c=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:r-1,y=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(p=Math.pow(2,-s))<1&&(s--,p*=2),t+=s+u>=1?d/p:d*Math.pow(2,1-u),t*p>=2&&(s++,p/=2),s+u>=c?(a=0,s=c):s+u>=1?(a=(t*p-1)*Math.pow(2,o),s+=u):(a=t*Math.pow(2,u-1)*Math.pow(2,o),s=0));o>=8;e[i+f]=255&a,f+=y,a/=256,o-=8);for(s=s<0;e[i+f]=255&s,f+=y,s/=256,l-=8);e[i+f-y]|=128*m}},{}],23:[function(t,i,n){(function(t){(function(){function o(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function s(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}function a(e,t,i,n){for(var o=-1,r=e?e.length:0;++o-1}function f(e,t,i){for(var n=-1,o=e?e.length:0;++n-1;);return i}function B(e,t){for(var i=e.length;i--&&P(t,e[i],0)>-1;);return i}function L(e,t){for(var i=e.length,n=0;i--;)e[i]===t&&++n;return n}function q(e){return"\\"+Vi[e]}function U(e,t){return null==e?ne:e[t]}function G(e){return xi.test(e)}function V(e){return Ni.test(e)}function z(e){for(var t,i=[];!(t=e.next()).done;)i.push(t.value);return i}function H(e){var t=-1,i=Array(e.size);return e.forEach(function(e,n){i[++t]=[n,e]}),i}function Y(e,t){return function(i){return e(t(i))}}function K(e,t){for(var i=-1,n=e.length,o=0,r=[];++i>>1,De=[["ary",Ae],["bind",ue],["bindKey",de],["curry",ye],["curryRight",me],["flip",ge],["partial",he],["partialRight",ve],["rearg",be]],Be="[object Arguments]",Le="[object Array]",qe="[object Boolean]",Ue="[object Date]",Ge="[object Error]",Ve="[object Function]",ze="[object GeneratorFunction]",He="[object Map]",Ye="[object Number]",Ke="[object Object]",We="[object Promise]",$e="[object Proxy]",Je="[object RegExp]",Xe="[object Set]",Qe="[object String]",Ze="[object Symbol]",et="[object WeakMap]",tt="[object WeakSet]",it="[object ArrayBuffer]",nt="[object DataView]",ot="[object Float32Array]",rt="[object Float64Array]",st="[object Int8Array]",at="[object Int16Array]",pt="[object Int32Array]",lt="[object Uint8Array]",ct="[object Uint8ClampedArray]",ut="[object Uint16Array]",dt="[object Uint32Array]",ft=/\b__p \+= '';/g,yt=/\b(__p \+=) '' \+/g,mt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ht=/&(?:amp|lt|gt|quot|#39);/g,vt=/[&<>"']/g,At=RegExp(ht.source),bt=RegExp(vt.source),gt=/<%-([\s\S]+?)%>/g,Ct=/<%([\s\S]+?)%>/g,Rt=/<%=([\s\S]+?)%>/g,Pt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wt=/^\w*$/,St=/^\./,Tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,It=/[\\^$.*+?()[\]{}|]/g,jt=RegExp(It.source),Ot=/^\s+|\s+$/g,Et=/^\s+/,kt=/\s+$/,Mt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ft=/\{\n\/\* \[wrapped with (.+)\] \*/,xt=/,? & /,Nt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,_t=/\\(\\)?/g,Dt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Bt=/\w*$/,Lt=/^[-+]0x[0-9a-f]+$/i,qt=/^0b[01]+$/i,Ut=/^\[object .+?Constructor\]$/,Gt=/^0o[0-7]+$/i,Vt=/^(?:0|[1-9]\d*)$/,zt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ht=/($^)/,Yt=/['\n\r\u2028\u2029\\]/g,Kt="\\ud800-\\udfff",Wt="\\u0300-\\u036f\\ufe20-\\ufe23",$t="\\u20d0-\\u20f0",Jt="\\u2700-\\u27bf",Xt="a-z\\xdf-\\xf6\\xf8-\\xff",Qt="\\xac\\xb1\\xd7\\xf7",Zt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ei="\\u2000-\\u206f",ti=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ii="A-Z\\xc0-\\xd6\\xd8-\\xde",ni="\\ufe0e\\ufe0f",oi=Qt+Zt+ei+ti,ri="['’]",si="["+Kt+"]",ai="["+oi+"]",pi="["+Wt+$t+"]",li="\\d+",ci="["+Jt+"]",ui="["+Xt+"]",di="[^"+Kt+oi+li+Jt+Xt+ii+"]",fi="\\ud83c[\\udffb-\\udfff]",yi="(?:"+pi+"|"+fi+")",mi="[^"+Kt+"]",hi="(?:\\ud83c[\\udde6-\\uddff]){2}",vi="[\\ud800-\\udbff][\\udc00-\\udfff]",Ai="["+ii+"]",bi="\\u200d",gi="(?:"+ui+"|"+di+")",Ci="(?:"+Ai+"|"+di+")",Ri="(?:"+ri+"(?:d|ll|m|re|s|t|ve))?",Pi="(?:"+ri+"(?:D|LL|M|RE|S|T|VE))?",wi=yi+"?",Si="["+ni+"]?",Ti="(?:"+bi+"(?:"+[mi,hi,vi].join("|")+")"+Si+wi+")*",Ii=Si+wi+Ti,ji="(?:"+[ci,hi,vi].join("|")+")"+Ii,Oi="(?:"+[mi+pi+"?",pi,hi,vi,si].join("|")+")",Ei=RegExp(ri,"g"),ki=RegExp(pi,"g"),Mi=RegExp(fi+"(?="+fi+")|"+Oi+Ii,"g"),Fi=RegExp([Ai+"?"+ui+"+"+Ri+"(?="+[ai,Ai,"$"].join("|")+")",Ci+"+"+Pi+"(?="+[ai,Ai+gi,"$"].join("|")+")",Ai+"?"+gi+"+"+Ri,Ai+"+"+Pi,li,ji].join("|"),"g"),xi=RegExp("["+bi+Kt+Wt+$t+ni+"]"),Ni=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_i=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Di=-1,Bi={};Bi[ot]=Bi[rt]=Bi[st]=Bi[at]=Bi[pt]=Bi[lt]=Bi[ct]=Bi[ut]=Bi[dt]=!0,Bi[Be]=Bi[Le]=Bi[it]=Bi[qe]=Bi[nt]=Bi[Ue]=Bi[Ge]=Bi[Ve]=Bi[He]=Bi[Ye]=Bi[Ke]=Bi[Je]=Bi[Xe]=Bi[Qe]=Bi[et]=!1;var Li={};Li[Be]=Li[Le]=Li[it]=Li[nt]=Li[qe]=Li[Ue]=Li[ot]=Li[rt]=Li[st]=Li[at]=Li[pt]=Li[He]=Li[Ye]=Li[Ke]=Li[Je]=Li[Xe]=Li[Qe]=Li[Ze]=Li[lt]=Li[ct]=Li[ut]=Li[dt]=!0,Li[Ge]=Li[Ve]=Li[et]=!1;var qi={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Ui={"&":"&","<":"<",">":">",'"':""","'":"'"},Gi={"&":"&","<":"<",">":">",""":'"',"'":"'"},Vi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},zi=parseFloat,Hi=parseInt,Yi="object"==typeof t&&t&&t.Object===Object&&t,Ki="object"==typeof self&&self&&self.Object===Object&&self,Wi=Yi||Ki||Function("return this")(),$i="object"==typeof n&&n&&!n.nodeType&&n,Ji=$i&&"object"==typeof i&&i&&!i.nodeType&&i,Xi=Ji&&Ji.exports===$i,Qi=Xi&&Yi.process,Zi=function(){try{return Qi&&Qi.binding("util")}catch(e){}}(),en=Zi&&Zi.isArrayBuffer,tn=Zi&&Zi.isDate,nn=Zi&&Zi.isMap,on=Zi&&Zi.isRegExp,rn=Zi&&Zi.isSet,sn=Zi&&Zi.isTypedArray,an=I("length"),pn=j(qi),ln=j(Ui),cn=j(Gi),un=function e(t){function i(e){if(Xa(e)&&!ad(e)&&!(e instanceof j)){if(e instanceof b)return e;if(lc.call(e,"__wrapped__"))return Wr(e)}return new b(e)}function n(){}function b(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=ne}function j(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=xe,this.__views__=[]}function J(){var e=new j(this.__wrapped__);return e.__actions__=xo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=xo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=xo(this.__views__),e}function ee(){if(this.__filtered__){var e=new j(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function te(){var e=this.__wrapped__.value(),t=this.__dir__,i=ad(e),n=t<0,o=i?e.length:0,r=Ar(0,o,this.__views__),s=r.start,a=r.end,p=a-s,l=n?a:s-1,c=this.__iteratees__,u=c.length,d=0,f=Dc(p,this.__takeCount__);if(!i||o-1}function ni(e,t){var i=this.__data__,n=Ti(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this}function oi(e){var t=-1,i=e?e.length:0;for(this.clear();++t=t?e:t)),e}function xi(e,t,i,n,o,r,s){var a;if(n&&(a=r?n(e,o,r,s):n(e)),a!==ne)return a;if(!Ja(e))return e;var l=ad(e);if(l){if(a=Cr(e),!t)return xo(e,a)}else{var c=vu(e),u=c==Ve||c==ze;if(ld(e))return Ro(e,t);if(c==Ke||c==Be||u&&!r){if(a=Rr(u?{}:e),!t)return _o(e,ji(a,e))}else{if(!Li[c])return r?e:{};a=Pr(e,c,xi,t)}}s||(s=new fi);var d=s.get(e);if(d)return d;s.set(e,a);var f=l?ne:(i?cr:Mp)(e);return p(f||e,function(o,r){f&&(r=o,o=e[r]),Si(a,r,xi(o,t,i,n,r,e,s))}),a}function Ni(e){var t=Mp(e);return function(i){return qi(i,e,t)}}function qi(e,t,i){var n=i.length;if(null==e)return!n;for(e=Zl(e);n--;){var o=i[n],r=t[o],s=e[o];if(s===ne&&!(o in e)||!r(s))return!1}return!0}function Ui(e,t,i){if("function"!=typeof e)throw new ic(ae);return gu(function(){e.apply(ne,i)},t)}function Gi(e,t,i,n){var o=-1,r=d,s=!0,a=e.length,p=[],l=t.length;if(!a)return p;i&&(t=y(t,x(i))),n?(r=f,s=!1):t.length>=re&&(r=_,s=!1,t=new ci(t));e:for(;++oo?0:o+i),n=n===ne||n>o?o:yp(n),n<0&&(n+=o),n=i>n?0:mp(n);i0&&i(a)?t>1?Ji(a,t-1,i,n,o):m(o,a):n||(o[o.length]=a)}return o}function Qi(e,t){return e&&au(e,t,Mp)}function Zi(e,t){return e&&pu(e,t,Mp)}function an(e,t){return u(t,function(t){return Ka(e[t])})}function un(e,t){t=jr(t,e)?[t]:go(t);for(var i=0,n=t.length;null!=e&&it}function hn(e,t){return null!=e&&lc.call(e,t)}function vn(e,t){return null!=e&&t in Zl(e)}function An(e,t,i){return e>=Dc(t,i)&&e<_c(t,i)}function bn(e,t,i){for(var n=i?f:d,o=e[0].length,r=e.length,s=r,a=Wl(r),p=1/0,l=[];s--;){var c=e[s];s&&t&&(c=y(c,x(t))),p=Dc(c.length,p),a[s]=!i&&(t||o>=120&&c.length>=120)?new ci(s&&c):ne}c=e[0];var u=-1,m=a[0];e:for(;++u-1;)a!==e&&Pc.call(a,p,1),Pc.call(e,p,1);return e}function Wn(e,t){for(var i=e?t.length:0,n=i-1;i--;){var o=t[i];if(i==n||o!==r){var r=o;if(Tr(o))Pc.call(e,o,1);else if(jr(o,e))delete e[Hr(o)];else{var s=go(o),a=qr(e,s);null!=a&&delete a[Hr(fs(s))]}}}return e}function $n(e,t){return e+Ec(qc()*(t-e+1))}function Jn(e,t,i,n){for(var o=-1,r=_c(Oc((t-e)/(i||1)),0),s=Wl(r);r--;)s[n?r:++o]=e,e+=i;return s}function Xn(e,t){var i="";if(!e||t<1||t>ke)return i;do t%2&&(i+=e),t=Ec(t/2),t&&(e+=e);while(t);return i}function Qn(e,t){return Cu(Lr(e,t,Rl),e+"")}function Zn(e){return gi(Hp(e))}function eo(e,t){var i=Hp(e);return zr(i,Fi(t,0,i.length))}function to(e,t,i,n){if(!Ja(e))return e;t=jr(t,e)?[t]:go(t);for(var o=-1,r=t.length,s=r-1,a=e;null!=a&&++oo?0:o+t),i=i>o?o:i,i<0&&(i+=o),o=t>i?0:i-t>>>0,t>>>=0;for(var r=Wl(o);++n>>1,s=e[r];null!==s&&!pp(s)&&(i?s<=t:s=re){var l=t?null:fu(e);if(l)return W(l);s=!1,o=_,p=new ci}else p=t?[]:a;e:for(;++n=n?e:no(e,t,i)}function Ro(e,t){if(t)return e.slice();var i=e.length,n=Ac?Ac(i):new e.constructor(i);return e.copy(n),n}function Po(e){var t=new e.constructor(e.byteLength);return new vc(t).set(new vc(e)),t}function wo(e,t){var i=t?Po(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}function So(e,t,i){var n=t?i(H(e),!0):H(e);return h(n,o,new e.constructor)}function To(e){var t=new e.constructor(e.source,Bt.exec(e));return t.lastIndex=e.lastIndex,t}function Io(e,t,i){var n=t?i(W(e),!0):W(e);return h(n,r,new e.constructor)}function jo(e){return iu?Zl(iu.call(e)):{}}function Oo(e,t){var i=t?Po(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function Eo(e,t){if(e!==t){var i=e!==ne,n=null===e,o=e===e,r=pp(e),s=t!==ne,a=null===t,p=t===t,l=pp(t);if(!a&&!l&&!r&&e>t||r&&s&&p&&!a&&!l||n&&s&&p||!i&&p||!o)return 1;if(!n&&!r&&!l&&e=a)return p;var l=i[n];return p*("desc"==l?-1:1)}}return e.index-t.index}function Mo(e,t,i,n){for(var o=-1,r=e.length,s=i.length,a=-1,p=t.length,l=_c(r-s,0),c=Wl(p+l),u=!n;++a1?i[o-1]:ne,s=o>2?i[2]:ne;for(r=e.length>3&&"function"==typeof r?(o--,r):ne,s&&Ir(i[0],i[1],s)&&(r=o<3?ne:r,o=1),t=Zl(t);++n-1?o[r?t[s]:s]:ne}}function Ko(e){return lr(function(t){var i=t.length,n=i,o=b.prototype.thru;for(e&&t.reverse();n--;){var r=t[n];if("function"!=typeof r)throw new ic(ae);if(o&&!s&&"wrapper"==dr(r))var s=new b([],!0)}for(n=s?n:i;++n=re)return s.plant(n).value();for(var o=0,r=i?t[o].apply(this,e):n;++o1&&A.reverse(),u&&pa))return!1;var l=r.get(e);if(l&&r.get(t))return l==t;var c=-1,u=!0,d=o&Ce?new ci:ne;for(r.set(e,t),r.set(t,e);++c1?"& ":"")+t[n],t=t.join(i>2?", ":" "),e.replace(Mt,"{\n/* [wrapped with "+t+"] */\n")}function Sr(e){return ad(e)||sd(e)||!!(wc&&e&&e[wc])}function Tr(e,t){return t=null==t?ke:t,!!t&&("number"==typeof e||Vt.test(e))&&e>-1&&e%1==0&&e0){if(++t>=Se)return arguments[0]}else t=0;return e.apply(ne,arguments)}}function zr(e,t){var i=-1,n=e.length,o=n-1;for(t=t===ne?n:t;++i=this.__values__.length,t=e?ne:this.__values__[this.__index__++];return{done:e,value:t}}function Ws(){return this}function $s(e){for(var t,i=this;i instanceof n;){var o=Wr(i);o.__index__=0,o.__values__=ne,t?r.__wrapped__=o:t=o;var r=o;i=i.__wrapped__}return r.__wrapped__=e,t}function Js(){var e=this.__wrapped__;if(e instanceof j){var t=e;return this.__actions__.length&&(t=new j(this)),t=t.reverse(),t.__actions__.push({func:zs,args:[gs],thisArg:ne}),new b(t,this.__chain__)}return this.thru(gs)}function Xs(){return mo(this.__wrapped__,this.__actions__)}function Qs(e,t,i){var n=ad(e)?c:Vi;return i&&Ir(e,t,i)&&(t=ne),n(e,yr(t,3))}function Zs(e,t){var i=ad(e)?u:$i;return i(e,yr(t,3))}function ea(e,t){return Ji(sa(e,t),1)}function ta(e,t){return Ji(sa(e,t),Ee)}function ia(e,t,i){return i=i===ne?1:yp(i),Ji(sa(e,t),i)}function na(e,t){var i=ad(e)?p:ru;return i(e,yr(t,3))}function oa(e,t){var i=ad(e)?l:su;return i(e,yr(t,3))}function ra(e,t,i,n){e=Ba(e)?e:Hp(e),i=i&&!n?yp(i):0;var o=e.length;return i<0&&(i=_c(o+i,0)),ap(e)?i<=o&&e.indexOf(t,i)>-1:!!o&&P(e,t,i)>-1}function sa(e,t){var i=ad(e)?y:Dn;return i(e,yr(t,3))}function aa(e,t,i,n){return null==e?[]:(ad(t)||(t=null==t?[]:[t]),i=n?ne:i,ad(i)||(i=null==i?[]:[i]),Vn(e,t,i))}function pa(e,t,i){var n=ad(e)?h:O,o=arguments.length<3;return n(e,yr(t,4),i,o,ru)}function la(e,t,i){var n=ad(e)?v:O,o=arguments.length<3;return n(e,yr(t,4),i,o,su)}function ca(e,t){var i=ad(e)?u:$i;return i(e,wa(yr(t,3)))}function ua(e){var t=ad(e)?gi:Zn;return t(e)}function da(e,t,i){t=(i?Ir(e,t,i):t===ne)?1:yp(t);var n=ad(e)?Ci:eo;return n(e,t)}function fa(e){var t=ad(e)?Ri:io;return t(e)}function ya(e){if(null==e)return 0;if(Ba(e))return ap(e)?Q(e):e.length;var t=vu(e);return t==He||t==Xe?e.size:xn(e).length}function ma(e,t,i){var n=ad(e)?A:oo;return i&&Ir(e,t,i)&&(t=ne),n(e,yr(t,3))}function ha(e,t){if("function"!=typeof t)throw new ic(ae);return e=yp(e),function(){if(--e<1)return t.apply(this,arguments)}}function va(e,t,i){return t=i?ne:t,t=e&&null==t?e.length:t,rr(e,Ae,ne,ne,ne,ne,t)}function Aa(e,t){var i;if("function"!=typeof t)throw new ic(ae);return e=yp(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=ne),i}}function ba(e,t,i){t=i?ne:t;var n=rr(e,ye,ne,ne,ne,ne,ne,t);return n.placeholder=ba.placeholder,n}function ga(e,t,i){t=i?ne:t;var n=rr(e,me,ne,ne,ne,ne,ne,t);return n.placeholder=ga.placeholder,n}function Ca(e,t,i){function n(t){var i=d,n=f;return d=f=ne,A=t,m=e.apply(n,i)}function o(e){return A=e,h=gu(a,t),b?n(e):m}function r(e){var i=e-v,n=e-A,o=t-i;return g?Dc(o,y-n):o}function s(e){var i=e-v,n=e-A;return v===ne||i>=t||i<0||g&&n>=y}function a(){var e=$u();return s(e)?p(e):void(h=gu(a,r(e)))}function p(e){return h=ne,C&&d?n(e):(d=f=ne,m)}function l(){h!==ne&&du(h),A=0,d=v=f=h=ne}function c(){return h===ne?m:p($u())}function u(){var e=$u(),i=s(e);if(d=arguments,f=this,v=e,i){if(h===ne)return o(v);if(g)return h=gu(a,t),n(v)}return h===ne&&(h=gu(a,t)),m}var d,f,y,m,h,v,A=0,b=!1,g=!1,C=!0;if("function"!=typeof e)throw new ic(ae);return t=hp(t)||0,Ja(i)&&(b=!!i.leading,g="maxWait"in i,y=g?_c(hp(i.maxWait)||0,t):y,C="trailing"in i?!!i.trailing:C),u.cancel=l,u.flush=c,u}function Ra(e){return rr(e,ge)}function Pa(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new ic(ae);var i=function(){var n=arguments,o=t?t.apply(this,n):n[0],r=i.cache;if(r.has(o))return r.get(o);var s=e.apply(this,n);return i.cache=r.set(o,s)||r,s};return i.cache=new(Pa.Cache||oi),i}function wa(e){if("function"!=typeof e)throw new ic(ae);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Sa(e){return Aa(2,e)}function Ta(e,t){if("function"!=typeof e)throw new ic(ae);return t=t===ne?t:yp(t),Qn(e,t)}function Ia(e,t){if("function"!=typeof e)throw new ic(ae);return t=t===ne?0:_c(yp(t),0),Qn(function(i){var n=i[t],o=Co(i,0,t);return n&&m(o,n),s(e,this,o)})}function ja(e,t,i){var n=!0,o=!0;if("function"!=typeof e)throw new ic(ae);return Ja(i)&&(n="leading"in i?!!i.leading:n,o="trailing"in i?!!i.trailing:o),Ca(e,t,{leading:n,maxWait:t,trailing:o})}function Oa(e){return va(e,1)}function Ea(e,t){return t=null==t?Rl:t,td(t,e)}function ka(){if(!arguments.length)return[];var e=arguments[0];return ad(e)?e:[e]}function Ma(e){return xi(e,!1,!0)}function Fa(e,t){return xi(e,!1,!0,t)}function xa(e){return xi(e,!0,!0)}function Na(e,t){return xi(e,!0,!0,t)}function _a(e,t){return null==t||qi(e,t,Mp(t))}function Da(e,t){return e===t||e!==e&&t!==t}function Ba(e){return null!=e&&$a(e.length)&&!Ka(e)}function La(e){return Xa(e)&&Ba(e)}function qa(e){return e===!0||e===!1||Xa(e)&&dc.call(e)==qe}function Ua(e){return null!=e&&1===e.nodeType&&Xa(e)&&!rp(e)}function Ga(e){if(Ba(e)&&(ad(e)||"string"==typeof e||"function"==typeof e.splice||ld(e)||yd(e)||sd(e)))return!e.length;var t=vu(e);if(t==He||t==Xe)return!e.size;if(Mr(e))return!xn(e).length;for(var i in e)if(lc.call(e,i))return!1;return!0}function Va(e,t){return Sn(e,t)}function za(e,t,i){i="function"==typeof i?i:ne;var n=i?i(e,t):ne;return n===ne?Sn(e,t,i):!!n}function Ha(e){return!!Xa(e)&&(dc.call(e)==Ge||"string"==typeof e.message&&"string"==typeof e.name)}function Ya(e){return"number"==typeof e&&Fc(e)}function Ka(e){var t=Ja(e)?dc.call(e):"";return t==Ve||t==ze||t==$e}function Wa(e){return"number"==typeof e&&e==yp(e)}function $a(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=ke}function Ja(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Xa(e){return null!=e&&"object"==typeof e}function Qa(e,t){return e===t||jn(e,t,hr(t))}function Za(e,t,i){return i="function"==typeof i?i:ne,jn(e,t,hr(t),i)}function ep(e){return op(e)&&e!=+e}function tp(e){if(Au(e))throw new Jl(se);return On(e)}function ip(e){return null===e}function np(e){return null==e}function op(e){return"number"==typeof e||Xa(e)&&dc.call(e)==Ye}function rp(e){if(!Xa(e)||dc.call(e)!=Ke)return!1;var t=bc(e);if(null===t)return!0;var i=lc.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&pc.call(i)==uc}function sp(e){return Wa(e)&&e>=-ke&&e<=ke}function ap(e){return"string"==typeof e||!ad(e)&&Xa(e)&&dc.call(e)==Qe}function pp(e){return"symbol"==typeof e||Xa(e)&&dc.call(e)==Ze}function lp(e){return e===ne}function cp(e){return Xa(e)&&vu(e)==et}function up(e){return Xa(e)&&dc.call(e)==tt}function dp(e){if(!e)return[];if(Ba(e))return ap(e)?Z(e):xo(e);if(gc&&e[gc])return z(e[gc]());var t=vu(e),i=t==He?H:t==Xe?W:Hp;return i(e)}function fp(e){if(!e)return 0===e?e:0;if(e=hp(e),e===Ee||e===-Ee){var t=e<0?-1:1;return t*Me}return e===e?e:0}function yp(e){var t=fp(e),i=t%1;return t===t?i?t-i:t:0}function mp(e){return e?Fi(yp(e),0,xe):0}function hp(e){if("number"==typeof e)return e;if(pp(e))return Fe;if(Ja(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ja(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ot,"");var i=qt.test(e);return i||Gt.test(e)?Hi(e.slice(2),i?2:8):Lt.test(e)?Fe:+e}function vp(e){return No(e,Fp(e))}function Ap(e){return Fi(yp(e),-ke,ke)}function bp(e){return null==e?"":lo(e)}function gp(e,t){var i=ou(e);return t?ji(i,t):i}function Cp(e,t){return C(e,yr(t,3),Qi)}function Rp(e,t){return C(e,yr(t,3),Zi)}function Pp(e,t){return null==e?e:au(e,yr(t,3),Fp)}function wp(e,t){return null==e?e:pu(e,yr(t,3),Fp)}function Sp(e,t){return e&&Qi(e,yr(t,3))}function Tp(e,t){return e&&Zi(e,yr(t,3))}function Ip(e){return null==e?[]:an(e,Mp(e))}function jp(e){return null==e?[]:an(e,Fp(e))}function Op(e,t,i){var n=null==e?ne:un(e,t);return n===ne?i:n}function Ep(e,t){return null!=e&&gr(e,t,hn)}function kp(e,t){return null!=e&&gr(e,t,vn)}function Mp(e){return Ba(e)?bi(e):xn(e)}function Fp(e){return Ba(e)?bi(e,!0):Nn(e)}function xp(e,t){var i={};return t=yr(t,3),Qi(e,function(e,n,o){Oi(i,t(e,n,o),e)}),i}function Np(e,t){var i={};return t=yr(t,3),Qi(e,function(e,n,o){Oi(i,n,t(e,n,o))}),i}function _p(e,t){return Dp(e,wa(yr(t)))}function Dp(e,t){return null==e?{}:Hn(e,ur(e),yr(t))}function Bp(e,t,i){t=jr(t,e)?[t]:go(t);var n=-1,o=t.length;for(o||(e=ne,o=1);++nt){var n=e;e=t,t=n}if(i||e%1||t%1){var o=qc();return Dc(e+o*(t-e+zi("1e-"+((o+"").length-1))),t)}return $n(e,t)}function Jp(e){return qd(bp(e).toLowerCase())}function Xp(e){return e=bp(e),e&&e.replace(zt,pn).replace(ki,"")}function Qp(e,t,i){e=bp(e),t=lo(t);var n=e.length;i=i===ne?n:Fi(yp(i),0,n);var o=i;return i-=t.length,i>=0&&e.slice(i,o)==t}function Zp(e){return e=bp(e),e&&bt.test(e)?e.replace(vt,ln):e}function el(e){return e=bp(e),e&&jt.test(e)?e.replace(It,"\\$&"):e}function tl(e,t,i){e=bp(e),t=yp(t);var n=t?Q(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return Qo(Ec(o),i)+e+Qo(Oc(o),i)}function il(e,t,i){e=bp(e),t=yp(t);var n=t?Q(e):0;return t&&n>>0)?(e=bp(e),e&&("string"==typeof t||null!=t&&!dd(t))&&(t=lo(t),!t&&G(e))?Co(Z(e),0,i):e.split(t,i)):[]}function pl(e,t,i){return e=bp(e),i=Fi(yp(i),0,e.length),t=lo(t),e.slice(i,i+t.length)==t}function ll(e,t,n){var o=i.templateSettings;n&&Ir(e,t,n)&&(t=ne),e=bp(e),t=bd({},t,o,Pi);var r,s,a=bd({},t.imports,o.imports,Pi),p=Mp(a),l=N(a,p),c=0,u=t.interpolate||Ht,d="__p += '",f=ec((t.escape||Ht).source+"|"+u.source+"|"+(u===Rt?Dt:Ht).source+"|"+(t.evaluate||Ht).source+"|$","g"),y="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++Di+"]")+"\n";e.replace(f,function(t,i,n,o,a,p){return n||(n=o),d+=e.slice(c,p).replace(Yt,q),i&&(r=!0,d+="' +\n__e("+i+") +\n'"),a&&(s=!0,d+="';\n"+a+";\n__p += '"),n&&(d+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=p+t.length,t}),d+="';\n";var m=t.variable;m||(d="with (obj) {\n"+d+"\n}\n"),d=(s?d.replace(ft,""):d).replace(yt,"$1").replace(mt,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var h=Ud(function(){return Xl(p,y+"return "+d).apply(ne,l)});if(h.source=d,Ha(h))throw h;return h}function cl(e){return bp(e).toLowerCase()}function ul(e){return bp(e).toUpperCase()}function dl(e,t,i){if(e=bp(e),e&&(i||t===ne))return e.replace(Ot,"");if(!e||!(t=lo(t)))return e;var n=Z(e),o=Z(t),r=D(n,o),s=B(n,o)+1;return Co(n,r,s).join("")}function fl(e,t,i){if(e=bp(e),e&&(i||t===ne))return e.replace(kt,"");if(!e||!(t=lo(t)))return e;var n=Z(e),o=B(n,Z(t))+1;return Co(n,0,o).join("")}function yl(e,t,i){if(e=bp(e),e&&(i||t===ne))return e.replace(Et,"");if(!e||!(t=lo(t)))return e;var n=Z(e),o=D(n,Z(t));return Co(n,o).join("")}function ml(e,t){var i=Pe,n=we;if(Ja(t)){var o="separator"in t?t.separator:o;i="length"in t?yp(t.length):i,n="omission"in t?lo(t.omission):n}e=bp(e);var r=e.length;if(G(e)){var s=Z(e);r=s.length}if(i>=r)return e;var a=i-Q(n);if(a<1)return n;var p=s?Co(s,0,a).join(""):e.slice(0,a);if(o===ne)return p+n;if(s&&(a+=p.length-a),dd(o)){if(e.slice(a).search(o)){var l,c=p;for(o.global||(o=ec(o.source,bp(Bt.exec(o))+"g")),o.lastIndex=0;l=o.exec(c);)var u=l.index;p=p.slice(0,u===ne?a:u)}}else if(e.indexOf(lo(o),a)!=a){var d=p.lastIndexOf(o);d>-1&&(p=p.slice(0,d))}return p+n}function hl(e){return e=bp(e),e&&At.test(e)?e.replace(ht,cn):e}function vl(e,t,i){return e=bp(e),t=i?ne:t,t===ne?V(e)?ie(e):g(e):e.match(t)||[]}function Al(e){var t=e?e.length:0,i=yr();return e=t?y(e,function(e){if("function"!=typeof e[1])throw new ic(ae);return[i(e[0]),e[1]]}):[],Qn(function(i){for(var n=-1;++nke)return[];var i=xe,n=Dc(e,xe);t=yr(t),e-=xe;for(var o=M(n,t);++i1?e[t-1]:ne;return i="function"==typeof i?(e.pop(),i):ne,Ls(e,i)}),qu=lr(function(e){var t=e.length,i=t?e[0]:0,n=this.__wrapped__,o=function(t){return Mi(t,e)};return!(t>1||this.__actions__.length)&&n instanceof j&&Tr(i)?(n=n.slice(i,+i+(t?1:0)),n.__actions__.push({func:zs,args:[o],thisArg:ne}),new b(n,this.__chain__).thru(function(e){return t&&!e.length&&e.push(ne),e})):this.thru(o)}),Uu=Do(function(e,t,i){lc.call(e,i)?++e[i]:Oi(e,i,1)}),Gu=Yo(ns),Vu=Yo(os),zu=Do(function(e,t,i){lc.call(e,i)?e[i].push(t):Oi(e,i,[t])}),Hu=Qn(function(e,t,i){var n=-1,o="function"==typeof t,r=jr(t),a=Ba(e)?Wl(e.length):[];return ru(e,function(e){var p=o?t:r&&null!=e?e[t]:ne;a[++n]=p?s(p,e,i):Cn(e,t,i)}),a}),Yu=Do(function(e,t,i){Oi(e,i,t)}),Ku=Do(function(e,t,i){e[i?0:1].push(t)},function(){return[[],[]]}),Wu=Qn(function(e,t){if(null==e)return[];var i=t.length;return i>1&&Ir(e,t[0],t[1])?t=[]:i>2&&Ir(t[0],t[1],t[2])&&(t=[t[0]]),Vn(e,Ji(t,1),[])}),$u=Ic||function(){return Wi.Date.now()},Ju=Qn(function(e,t,i){var n=ue;if(i.length){var o=K(i,fr(Ju));n|=he}return rr(e,n,t,i,o)}),Xu=Qn(function(e,t,i){var n=ue|de;if(i.length){var o=K(i,fr(Xu));n|=he}return rr(t,n,e,i,o)}),Qu=Qn(function(e,t){return Ui(e,1,t)}),Zu=Qn(function(e,t,i){return Ui(e,hp(t)||0,i)});Pa.Cache=oi;var ed=uu(function(e,t){t=1==t.length&&ad(t[0])?y(t[0],x(yr())):y(Ji(t,1),x(yr()));var i=t.length;return Qn(function(n){for(var o=-1,r=Dc(n.length,i);++o=t}),sd=Rn(function(){return arguments}())?Rn:function(e){return Xa(e)&&lc.call(e,"callee")&&!Rc.call(e,"callee")},ad=Wl.isArray,pd=en?x(en):Pn,ld=Mc||Fl,cd=tn?x(tn):wn,ud=nn?x(nn):In,dd=on?x(on):En,fd=rn?x(rn):kn,yd=sn?x(sn):Mn,md=tr(_n),hd=tr(function(e,t){return e<=t}),vd=Bo(function(e,t){if(Mr(t)||Ba(t))return void No(t,Mp(t),e);for(var i in t)lc.call(t,i)&&Si(e,i,t[i])}),Ad=Bo(function(e,t){No(t,Fp(t),e)}),bd=Bo(function(e,t,i,n){No(t,Fp(t),e,n)}),gd=Bo(function(e,t,i,n){No(t,Mp(t),e,n)}),Cd=lr(Mi),Rd=Qn(function(e){return e.push(ne,Pi),s(bd,ne,e)}),Pd=Qn(function(e){return e.push(ne,Dr),s(jd,ne,e)}),wd=$o(function(e,t,i){e[t]=i},gl(Rl)),Sd=$o(function(e,t,i){lc.call(e,t)?e[t].push(i):e[t]=[i]},yr),Td=Qn(Cn),Id=Bo(function(e,t,i){qn(e,t,i)}),jd=Bo(function(e,t,i,n){qn(e,t,i,n)}),Od=lr(function(e,t){return null==e?{}:(t=y(t,Hr),zn(e,Gi(ur(e),t)))}),Ed=lr(function(e,t){return null==e?{}:zn(e,y(t,Hr))}),kd=or(Mp),Md=or(Fp),Fd=Vo(function(e,t,i){return t=t.toLowerCase(),e+(i?Jp(t):t)}),xd=Vo(function(e,t,i){return e+(i?"-":"")+t.toLowerCase()}),Nd=Vo(function(e,t,i){return e+(i?" ":"")+t.toLowerCase()}),_d=Go("toLowerCase"),Dd=Vo(function(e,t,i){return e+(i?"_":"")+t.toLowerCase()}),Bd=Vo(function(e,t,i){return e+(i?" ":"")+qd(t)}),Ld=Vo(function(e,t,i){return e+(i?" ":"")+t.toUpperCase()}),qd=Go("toUpperCase"),Ud=Qn(function(e,t){try{return s(e,ne,t)}catch(e){return Ha(e)?e:new Jl(e)}}),Gd=lr(function(e,t){return p(t,function(t){t=Hr(t),Oi(e,t,Ju(e[t],e))}),e}),Vd=Ko(),zd=Ko(!0),Hd=Qn(function(e,t){return function(i){return Cn(i,e,t)}}),Yd=Qn(function(e,t){return function(i){return Cn(e,i,t)}}),Kd=Xo(y),Wd=Xo(c),$d=Xo(A),Jd=er(),Xd=er(!0),Qd=Jo(function(e,t){return e+t},0),Zd=nr("ceil"),ef=Jo(function(e,t){return e/t},1),tf=nr("floor"),nf=Jo(function(e,t){return e*t},1),of=nr("round"),rf=Jo(function(e,t){return e-t},0);return i.after=ha,i.ary=va,i.assign=vd,i.assignIn=Ad,i.assignInWith=bd,i.assignWith=gd,i.at=Cd,i.before=Aa,i.bind=Ju,i.bindAll=Gd,i.bindKey=Xu,i.castArray=ka,i.chain=Gs,i.chunk=$r,i.compact=Jr,i.concat=Xr,i.cond=Al,i.conforms=bl,i.constant=gl,i.countBy=Uu,i.create=gp,i.curry=ba,i.curryRight=ga,i.debounce=Ca,i.defaults=Rd,i.defaultsDeep=Pd,i.defer=Qu,i.delay=Zu,i.difference=Pu,i.differenceBy=wu,i.differenceWith=Su,i.drop=Qr,i.dropRight=Zr,i.dropRightWhile=es,i.dropWhile=ts,i.fill=is,i.filter=Zs,i.flatMap=ea,i.flatMapDeep=ta,i.flatMapDepth=ia,i.flatten=rs,i.flattenDeep=ss,i.flattenDepth=as,i.flip=Ra,i.flow=Vd,i.flowRight=zd,i.fromPairs=ps,i.functions=Ip,i.functionsIn=jp,i.groupBy=zu,i.initial=us,i.intersection=Tu,i.intersectionBy=Iu,i.intersectionWith=ju,i.invert=wd,i.invertBy=Sd,i.invokeMap=Hu,i.iteratee=Pl,i.keyBy=Yu,i.keys=Mp,i.keysIn=Fp,i.map=sa,i.mapKeys=xp,i.mapValues=Np,i.matches=wl,i.matchesProperty=Sl,i.memoize=Pa,i.merge=Id,i.mergeWith=jd,i.method=Hd,i.methodOf=Yd,i.mixin=Tl,i.negate=wa,i.nthArg=Ol,i.omit=Od,i.omitBy=_p,i.once=Sa,i.orderBy=aa,i.over=Kd,i.overArgs=ed,i.overEvery=Wd,i.overSome=$d,i.partial=td,i.partialRight=id,i.partition=Ku,i.pick=Ed,i.pickBy=Dp,i.property=El,i.propertyOf=kl,i.pull=Ou,i.pullAll=hs,i.pullAllBy=vs,i.pullAllWith=As,i.pullAt=Eu,i.range=Jd,i.rangeRight=Xd,i.rearg=nd,i.reject=ca,i.remove=bs,i.rest=Ta,i.reverse=gs,i.sampleSize=da,i.set=Lp,i.setWith=qp,i.shuffle=fa,i.slice=Cs,i.sortBy=Wu,i.sortedUniq=js,i.sortedUniqBy=Os,i.split=al,i.spread=Ia,i.tail=Es,i.take=ks,i.takeRight=Ms,i.takeRightWhile=Fs,i.takeWhile=xs,i.tap=Vs,i.throttle=ja,i.thru=zs,i.toArray=dp,i.toPairs=kd,i.toPairsIn=Md,i.toPath=Bl,i.toPlainObject=vp,i.transform=Up,i.unary=Oa,i.union=ku,i.unionBy=Mu,i.unionWith=Fu,i.uniq=Ns,i.uniqBy=_s,i.uniqWith=Ds,i.unset=Gp,i.unzip=Bs,i.unzipWith=Ls,i.update=Vp,i.updateWith=zp,i.values=Hp,i.valuesIn=Yp,i.without=xu,i.words=vl,i.wrap=Ea,i.xor=Nu,i.xorBy=_u,i.xorWith=Du,i.zip=Bu,i.zipObject=qs,i.zipObjectDeep=Us,i.zipWith=Lu,i.entries=kd,i.entriesIn=Md,i.extend=Ad,i.extendWith=bd,Tl(i,i),i.add=Qd,i.attempt=Ud,i.camelCase=Fd,i.capitalize=Jp,i.ceil=Zd,i.clamp=Kp,i.clone=Ma,i.cloneDeep=xa,i.cloneDeepWith=Na,i.cloneWith=Fa,i.conformsTo=_a,i.deburr=Xp,i.defaultTo=Cl,i.divide=ef,i.endsWith=Qp,i.eq=Da,i.escape=Zp,i.escapeRegExp=el,i.every=Qs,i.find=Gu,i.findIndex=ns,i.findKey=Cp,i.findLast=Vu,i.findLastIndex=os,i.findLastKey=Rp,i.floor=tf,i.forEach=na,i.forEachRight=oa,i.forIn=Pp,i.forInRight=wp,i.forOwn=Sp,i.forOwnRight=Tp,i.get=Op,i.gt=od,i.gte=rd,i.has=Ep,i.hasIn=kp,i.head=ls,i.identity=Rl,i.includes=ra,i.indexOf=cs,i.inRange=Wp,i.invoke=Td,i.isArguments=sd,i.isArray=ad,i.isArrayBuffer=pd,i.isArrayLike=Ba,i.isArrayLikeObject=La,i.isBoolean=qa,i.isBuffer=ld,i.isDate=cd,i.isElement=Ua,i.isEmpty=Ga,i.isEqual=Va,i.isEqualWith=za,i.isError=Ha,i.isFinite=Ya,i.isFunction=Ka,i.isInteger=Wa,i.isLength=$a,i.isMap=ud,i.isMatch=Qa,i.isMatchWith=Za,i.isNaN=ep,i.isNative=tp,i.isNil=np,i.isNull=ip,i.isNumber=op,i.isObject=Ja,i.isObjectLike=Xa,i.isPlainObject=rp,i.isRegExp=dd,i.isSafeInteger=sp,i.isSet=fd,i.isString=ap,i.isSymbol=pp,i.isTypedArray=yd,i.isUndefined=lp,i.isWeakMap=cp,i.isWeakSet=up,i.join=ds,i.kebabCase=xd,i.last=fs,i.lastIndexOf=ys,i.lowerCase=Nd,i.lowerFirst=_d,i.lt=md,i.lte=hd,i.max=ql,i.maxBy=Ul,i.mean=Gl,i.meanBy=Vl,i.min=zl,i.minBy=Hl,i.stubArray=Ml,i.stubFalse=Fl,i.stubObject=xl,i.stubString=Nl,i.stubTrue=_l,i.multiply=nf,i.nth=ms,i.noConflict=Il,i.noop=jl,i.now=$u,i.pad=tl,i.padEnd=il,i.padStart=nl,i.parseInt=ol,i.random=$p,i.reduce=pa,i.reduceRight=la,i.repeat=rl,i.replace=sl,i.result=Bp,i.round=of,i.runInContext=e,i.sample=ua,i.size=ya,i.snakeCase=Dd,i.some=ma,i.sortedIndex=Rs,i.sortedIndexBy=Ps,i.sortedIndexOf=ws,i.sortedLastIndex=Ss,i.sortedLastIndexBy=Ts,i.sortedLastIndexOf=Is,i.startCase=Bd,i.startsWith=pl,i.subtract=rf,i.sum=Yl,i.sumBy=Kl,i.template=ll,i.times=Dl,i.toFinite=fp,i.toInteger=yp,i.toLength=mp,i.toLower=cl,i.toNumber=hp,i.toSafeInteger=Ap,i.toString=bp,i.toUpper=ul,i.trim=dl,i.trimEnd=fl,i.trimStart=yl,i.truncate=ml,i.unescape=hl,i.uniqueId=Ll,i.upperCase=Ld,i.upperFirst=qd,i.each=na,i.eachRight=oa,i.first=ls,Tl(i,function(){var e={};return Qi(i,function(t,n){lc.call(i.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),i.VERSION=oe,p(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){ -i[e].placeholder=i}),p(["drop","take"],function(e,t){j.prototype[e]=function(i){var n=this.__filtered__;if(n&&!t)return new j(this);i=i===ne?1:_c(yp(i),0);var o=this.clone();return n?o.__takeCount__=Dc(i,o.__takeCount__):o.__views__.push({size:Dc(i,xe),type:e+(o.__dir__<0?"Right":"")}),o},j.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),p(["filter","map","takeWhile"],function(e,t){var i=t+1,n=i==Ie||i==Oe;j.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:yr(e,3),type:i}),t.__filtered__=t.__filtered__||n,t}}),p(["head","last"],function(e,t){var i="take"+(t?"Right":"");j.prototype[e]=function(){return this[i](1).value()[0]}}),p(["initial","tail"],function(e,t){var i="drop"+(t?"":"Right");j.prototype[e]=function(){return this.__filtered__?new j(this):this[i](1)}}),j.prototype.compact=function(){return this.filter(Rl)},j.prototype.find=function(e){return this.filter(e).head()},j.prototype.findLast=function(e){return this.reverse().find(e)},j.prototype.invokeMap=Qn(function(e,t){return"function"==typeof e?new j(this):this.map(function(i){return Cn(i,e,t)})}),j.prototype.reject=function(e){return this.filter(wa(yr(e)))},j.prototype.slice=function(e,t){e=yp(e);var i=this;return i.__filtered__&&(e>0||t<0)?new j(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==ne&&(t=yp(t),i=t<0?i.dropRight(-t):i.take(t-e)),i)},j.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},j.prototype.toArray=function(){return this.take(xe)},Qi(j.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),r=i[o?"take"+("last"==t?"Right":""):t],s=o||/^find/.test(t);r&&(i.prototype[t]=function(){var t=this.__wrapped__,a=o?[1]:arguments,p=t instanceof j,l=a[0],c=p||ad(t),u=function(e){var t=r.apply(i,m([e],a));return o&&d?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(p=c=!1);var d=this.__chain__,f=!!this.__actions__.length,y=s&&!d,h=p&&!f;if(!s&&c){t=h?t:new j(this);var v=e.apply(t,a);return v.__actions__.push({func:zs,args:[u],thisArg:ne}),new b(v,d)}return y&&h?e.apply(this,a):(v=this.thru(u),y?o?v.value()[0]:v.value():v)})}),p(["pop","push","shift","sort","splice","unshift"],function(e){var t=nc[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);i.prototype[e]=function(){var e=arguments;if(o&&!this.__chain__){var i=this.value();return t.apply(ad(i)?i:[],e)}return this[n](function(i){return t.apply(ad(i)?i:[],e)})}}),Qi(j.prototype,function(e,t){var n=i[t];if(n){var o=n.name+"",r=$c[o]||($c[o]=[]);r.push({name:t,func:n})}}),$c[Wo(ne,de).name]=[{name:"wrapper",func:ne}],j.prototype.clone=J,j.prototype.reverse=ee,j.prototype.value=te,i.prototype.at=qu,i.prototype.chain=Hs,i.prototype.commit=Ys,i.prototype.next=Ks,i.prototype.plant=$s,i.prototype.reverse=Js,i.prototype.toJSON=i.prototype.valueOf=i.prototype.value=Xs,i.prototype.first=i.prototype.head,gc&&(i.prototype[gc]=Ws),i},dn=un();"function"==typeof e&&"object"==typeof e.amd&&e.amd?(Wi._=dn,e(function(){return dn})):Ji?((Ji.exports=dn)._=dn,$i._=dn):Wi._=dn}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],24:[function(e,t,i){t.exports=function(e,t,i){for(var n=0,o=e.length,r=3==arguments.length?i:e[n++];n=200&&t.status<300)return i.callback(e,t);var n=new Error(t.statusText||"Unsuccessful HTTP response");n.original=e,n.response=t,n.status=t.status,i.callback(n,t)})}function m(e,t){return"function"==typeof t?new y("GET",e).end(t):1==arguments.length?new y("GET",e):new y(e,t)}function h(e,t){var i=m("DELETE",e);return t&&i.end(t),i}var v,A=e("emitter"),b=e("reduce");v="undefined"!=typeof window?window:"undefined"!=typeof self?self:this,m.getXHR=function(){if(!(!v.XMLHttpRequest||v.location&&"file:"==v.location.protocol&&v.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}return!1};var g="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};m.serializeObject=s,m.parseString=p,m.types={html:"text/html",json:"application/json",xml:"application/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},m.serialize={"application/x-www-form-urlencoded":s,"application/json":JSON.stringify},m.parse={"application/x-www-form-urlencoded":p,"application/json":JSON.parse},f.prototype.get=function(e){return this.header[e.toLowerCase()]},f.prototype.setHeaderProperties=function(e){var t=this.header["content-type"]||"";this.type=u(t);var i=d(t);for(var n in i)this[n]=i[n]},f.prototype.parseBody=function(e){var t=m.parse[this.type];return t&&e&&(e.length||e instanceof Object)?t(e):null},f.prototype.setStatusProperties=function(e){1223===e&&(e=204);var t=e/100|0;this.status=this.statusCode=e,this.statusType=t,this.info=1==t,this.ok=2==t,this.clientError=4==t,this.serverError=5==t,this.error=(4==t||5==t)&&this.toError(),this.accepted=202==e,this.noContent=204==e,this.badRequest=400==e,this.unauthorized=401==e,this.notAcceptable=406==e,this.notFound=404==e,this.forbidden=403==e},f.prototype.toError=function(){var e=this.req,t=e.method,i=e.url,n="cannot "+t+" "+i+" ("+this.status+")",o=new Error(n);return o.status=this.status,o.method=t,o.url=i,o},m.Response=f,A(y.prototype),y.prototype.use=function(e){return e(this),this},y.prototype.timeout=function(e){return this._timeout=e,this},y.prototype.clearTimeout=function(){return this._timeout=0,clearTimeout(this._timer),this},y.prototype.abort=function(){if(!this.aborted)return this.aborted=!0,this.xhr.abort(),this.clearTimeout(),this.emit("abort"),this},y.prototype.set=function(e,t){if(r(e)){for(var i in e)this.set(i,e[i]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},y.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},y.prototype.getHeader=function(e){return this._header[e.toLowerCase()]},y.prototype.type=function(e){return this.set("Content-Type",m.types[e]||e),this},y.prototype.parse=function(e){return this._parser=e,this},y.prototype.accept=function(e){return this.set("Accept",m.types[e]||e),this},y.prototype.auth=function(e,t){var i=btoa(e+":"+t);return this.set("Authorization","Basic "+i),this},y.prototype.query=function(e){return"string"!=typeof e&&(e=s(e)),e&&this._query.push(e),this},y.prototype.field=function(e,t){return this._formData||(this._formData=new v.FormData),this._formData.append(e,t),this},y.prototype.attach=function(e,t,i){return this._formData||(this._formData=new v.FormData),this._formData.append(e,t,i||t.name),this},y.prototype.send=function(e){var t=r(e),i=this.getHeader("Content-Type");if(t&&r(this._data))for(var n in e)this._data[n]=e[n];else"string"==typeof e?(i||this.type("form"),i=this.getHeader("Content-Type"),"application/x-www-form-urlencoded"==i?this._data=this._data?this._data+"&"+e:e:this._data=(this._data||"")+e):this._data=e;return!t||o(e)?this:(i||this.type("json"),this)},y.prototype.callback=function(e,t){var i=this._callback;this.clearTimeout(),i(e,t)},y.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},y.prototype.timeoutError=function(){var e=this._timeout,t=new Error("timeout of "+e+"ms exceeded");t.timeout=e,this.callback(t)},y.prototype.withCredentials=function(){return this._withCredentials=!0,this},y.prototype.end=function(e){var t=this,i=this.xhr=m.getXHR(),r=this._query.join("&"),s=this._timeout,a=this._formData||this._data;this._callback=e||n,i.onreadystatechange=function(){if(4==i.readyState){var e;try{e=i.status}catch(t){e=0}if(0==e){if(t.timedout)return t.timeoutError();if(t.aborted)return;return t.crossDomainError()}t.emit("end")}};var p=function(e){e.total>0&&(e.percent=e.loaded/e.total*100),e.direction="download",t.emit("progress",e)};this.hasListeners("progress")&&(i.onprogress=p);try{i.upload&&this.hasListeners("progress")&&(i.upload.onprogress=p)}catch(e){}if(s&&!this._timer&&(this._timer=setTimeout(function(){t.timedout=!0,t.abort()},s)),r&&(r=m.serializeObject(r),this.url+=~this.url.indexOf("?")?"&"+r:"?"+r),i.open(this.method,this.url,!0),this._withCredentials&&(i.withCredentials=!0),"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof a&&!o(a)){var l=this.getHeader("Content-Type"),u=this._parser||m.serialize[l?l.split(";")[0]:""];!u&&c(l)&&(u=m.serialize["application/json"]),u&&(a=u(a))}for(var d in this.header)null!=this.header[d]&&i.setRequestHeader(d,this.header[d]);return this.emit("request",this),i.send("undefined"!=typeof a?a:null),this},y.prototype.then=function(e,t){return this.end(function(i,n){i?t(i):e(n)})},m.Request=y,m.get=function(e,t,i){var n=m("GET",e);return"function"==typeof t&&(i=t,t=null),t&&n.query(t),i&&n.end(i),n},m.head=function(e,t,i){var n=m("HEAD",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},m.del=h,m.delete=h,m.patch=function(e,t,i){var n=m("PATCH",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},m.post=function(e,t,i){var n=m("POST",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},m.put=function(e,t,i){var n=m("PUT",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},t.exports=m},{emitter:6,reduce:24}],26:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AboutApi=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(t){this.apiClient=t||e.instance,this.getAppVersion=function(){var e=null,t={},i={},n={},o={},r=[],s=["application/json"],a=["application/json"],p={String:"String"};return this.apiClient.callApi("/api/enterprise/app-version","GET",t,i,n,o,e,r,s,a,p)}};return t})},{"../../../alfrescoApiClient":295}],27:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/CreateEndpointBasicAuthRepresentation","../model/EndpointBasicAuthRepresentation","../model/EndpointConfigurationRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/CreateEndpointBasicAuthRepresentation"),t("../model/EndpointBasicAuthRepresentation"),t("../model/EndpointConfigurationRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AdminEndpointsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.CreateEndpointBasicAuthRepresentation,n.ActivitiPublicRestApi.EndpointBasicAuthRepresentation,n.ActivitiPublicRestApi.EndpointConfigurationRepresentation))}(void 0,function(e,t,i,n){var o=function(t){this.apiClient=t||e.instance,this.createBasicAuthConfiguration=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'createRepresentation' when calling createBasicAuthConfiguration";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/admin/basic-auths","POST",n,o,r,s,t,a,p,l,c)},this.createEndpointConfiguration=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'representation' when calling createEndpointConfiguration";var i={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/admin/endpoints","POST",i,o,r,s,t,a,p,l,c)},this.getBasicAuthConfiguration=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'basicAuthId' when calling getBasicAuthConfiguration";if(void 0==t||null==t)throw"Missing the required parameter 'tenantId' when calling getBasicAuthConfiguration";var o={basicAuthId:e},r={tenantId:t},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/admin/basic-auths/{basicAuthId}","GET",o,r,s,a,n,p,l,c,u)},this.getBasicAuthConfigurations=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling getBasicAuthConfigurations";var n={},o={tenantId:e},r={},s={},a=[],p=["application/json"],l=["application/json"],c=[i];return this.apiClient.callApi("/api/enterprise/admin/basic-auths","GET",n,o,r,s,t,a,p,l,c)},this.getEndpointConfiguration=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'endpointConfigurationId' when calling getEndpointConfiguration";if(void 0==t||null==t)throw"Missing the required parameter 'tenantId' when calling getEndpointConfiguration";var o={endpointConfigurationId:e},r={tenantId:t},s={},a={},p=[],l=["application/json"],c=["application/json"],u=n;return this.apiClient.callApi("/api/enterprise/admin/endpoints/{endpointConfigurationId}","GET",o,r,s,a,i,p,l,c,u)},this.getEndpointConfigurations=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling getEndpointConfigurations";var i={},o={tenantId:e},r={},s={},a=[],p=["application/json"],l=["application/json"],c=[n];return this.apiClient.callApi("/api/enterprise/admin/endpoints","GET",i,o,r,s,t,a,p,l,c)},this.removeBasicAuthonfiguration=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'basicAuthId' when calling removeBasicAuthonfiguration";if(void 0==t||null==t)throw"Missing the required parameter 'tenantId' when calling removeBasicAuthonfiguration";var n={basicAuthId:e},o={tenantId:t},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/basic-auths/{basicAuthId}","DELETE",n,o,r,s,i,a,p,l,c)},this.removeEndpointConfiguration=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'endpointConfigurationId' when calling removeEndpointConfiguration";if(void 0==t||null==t)throw"Missing the required parameter 'tenantId' when calling removeEndpointConfiguration";var n={endpointConfigurationId:e},o={tenantId:t},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/endpoints/{endpointConfigurationId}","DELETE",n,o,r,s,i,a,p,l,c)},this.updateBasicAuthConfiguration=function(e,t){var n=t;if(void 0==e||null==e)throw"Missing the required parameter 'basicAuthId' when calling updateBasicAuthConfiguration";if(void 0==t||null==t)throw"Missing the required parameter 'createRepresentation' when calling updateBasicAuthConfiguration";var o={basicAuthId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/admin/basic-auths/{basicAuthId}","PUT",o,r,s,a,n,p,l,c,u)},this.updateEndpointConfiguration=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'endpointConfigurationId' when calling updateEndpointConfiguration";if(void 0==t||null==t)throw"Missing the required parameter 'representation' when calling updateEndpointConfiguration";var o={endpointConfigurationId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=n;return this.apiClient.callApi("/api/enterprise/admin/endpoints/{endpointConfigurationId}","PUT",o,r,s,a,i,p,l,c,u)}};return o})},{"../../../alfrescoApiClient":295,"../model/CreateEndpointBasicAuthRepresentation":90,"../model/EndpointBasicAuthRepresentation":93,"../model/EndpointConfigurationRepresentation":94}],28:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/AddGroupCapabilitiesRepresentation","../model/GroupRepresentation","../model/ResultListDataRepresentation","../model/AbstractGroupRepresentation","../model/LightGroupRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/AddGroupCapabilitiesRepresentation"),t("../model/GroupRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/AbstractGroupRepresentation"),t("../model/LightGroupRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AdminGroupsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.AddGroupCapabilitiesRepresentation,n.ActivitiPublicRestApi.GroupRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.AbstractGroupRepresentation,n.ActivitiPublicRestApi.LightGroupRepresentation))}(void 0,function(e,t,i,n,o,r){var s=function(t){this.apiClient=t||e.instance,this.activate=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling activate";var i={groupId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/action/activate","POST",i,n,o,r,t,s,a,p,l)},this.addAllUsersToGroup=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling addAllUsersToGroup";var i={groupId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/add-all-users","POST",i,n,o,r,t,s,a,p,l)},this.addGroupCapabilities=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling addGroupCapabilities";if(void 0==t||null==t)throw"Missing the required parameter 'addGroupCapabilitiesRepresentation' when calling addGroupCapabilities";var n={groupId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/capabilities","POST",n,o,r,s,i,a,p,l,c)},this.addGroupMember=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling addGroupMember";if(void 0==t||null==t)throw"Missing the required parameter 'userId' when calling addGroupMember";var n={groupId:e,userId:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/members/{userId}","POST",n,o,r,s,i,a,p,l,c)},this.addRelatedGroup=function(e,t,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling addRelatedGroup";if(void 0==t||null==t)throw"Missing the required parameter 'relatedGroupId' when calling addRelatedGroup";if(void 0==i||null==i)throw"Missing the required parameter 'type' when calling addRelatedGroup";var o={groupId:e,relatedGroupId:t},r={type:i},s={},a={},p=[],l=["application/json"],c=["application/json"],u=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/related-groups/{relatedGroupId}","POST",o,r,s,a,n,p,l,c,u)},this.createNewGroup=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'groupRepresentation' when calling createNewGroup";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/admin/groups","POST",n,o,r,s,t,a,p,l,c)},this.deleteGroupCapability=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling deleteGroupCapability";if(void 0==t||null==t)throw"Missing the required parameter 'groupCapabilityId' when calling deleteGroupCapability";var n={groupId:e,groupCapabilityId:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/capabilities/{groupCapabilityId}","DELETE",n,o,r,s,i,a,p,l,c)},this.deleteGroupMember=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling deleteGroupMember";if(void 0==t||null==t)throw"Missing the required parameter 'userId' when calling deleteGroupMember";var n={groupId:e,userId:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/members/{userId}","DELETE",n,o,r,s,i,a,p,l,c)},this.deleteGroup=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling deleteGroup";var i={groupId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}","DELETE",i,n,o,r,t,s,a,p,l)},this.deleteRelatedGroup=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling deleteRelatedGroup";if(void 0==t||null==t)throw"Missing the required parameter 'relatedGroupId' when calling deleteRelatedGroup";var n={groupId:e,relatedGroupId:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/related-groups/{relatedGroupId}","DELETE",n,o,r,s,i,a,p,l,c)},this.getCapabilities=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling getCapabilities";var i={groupId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=["String"];return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/potential-capabilities","GET",i,n,o,r,t,s,a,p,l)},this.getGroupUsers=function(e,t){t=t||{};var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling getGroupUsers";var o={groupId:e},r={filter:t.filter,page:t.page,pageSize:t.pageSize},s={},a={},p=[],l=["application/json"],c=["application/json"],u=n;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/users","GET",o,r,s,a,i,p,l,c,u)},this.getGroup=function(e,t){t=t||{};var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling getGroup";var n={groupId:e},r={includeAllUsers:t.includeAllUsers,summary:t.summary},s={},a={},p=[],l=["application/json"],c=["application/json"],u=o;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}","GET",n,r,s,a,i,p,l,c,u)},this.getGroups=function(e){e=e||{};var t=null,i={},n={tenantId:e.tenantId,functional:e.functional,summary:e.summary},o={},s={},a=[],p=["application/json"],l=["application/json"],c=[r];return this.apiClient.callApi("/api/enterprise/admin/groups","GET",i,n,o,s,t,a,p,l,c)},this.getRelatedGroups=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling getRelatedGroups";var i={groupId:e},n={},o={},s={},a=[],p=["application/json"],l=["application/json"],c=[r];return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/related-groups","GET",i,n,o,s,t,a,p,l,c)},this.updateGroup=function(e,t){var n=t;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling updateGroup";if(void 0==t||null==t)throw"Missing the required parameter 'groupRepresentation' when calling updateGroup";var o={groupId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}","PUT",o,r,s,a,n,p,l,c,u)}};return s})},{"../../../alfrescoApiClient":295,"../model/AbstractGroupRepresentation":72,"../model/AddGroupCapabilitiesRepresentation":75,"../model/GroupRepresentation":109,"../model/LightGroupRepresentation":113,"../model/ResultListDataRepresentation":138}],29:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/LightTenantRepresentation","../model/CreateTenantRepresentation","../model/TenantEvent","../model/TenantRepresentation","../model/ImageUploadRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/LightTenantRepresentation"),t("../model/CreateTenantRepresentation"),t("../model/TenantEvent"),t("../model/TenantRepresentation"),t("../model/ImageUploadRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AdminTenantsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.LightTenantRepresentation,n.ActivitiPublicRestApi.CreateTenantRepresentation,n.ActivitiPublicRestApi.TenantEvent,n.ActivitiPublicRestApi.TenantRepresentation,n.ActivitiPublicRestApi.ImageUploadRepresentation))}(void 0,function(e,t,i,n,o,r){var s=function(i){this.apiClient=i||e.instance,this.createTenant=function(e){var i=e;if(void 0==e||null==e)throw"Missing the required parameter 'createTenantRepresentation' when calling createTenant";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/admin/tenants","POST",n,o,r,s,i,a,p,l,c)},this.deleteTenant=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling deleteTenant";var i={tenantId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/admin/tenants/{tenantId}","DELETE",i,n,o,r,t,s,a,p,l)},this.getTenantEvents=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling getTenantEvents";var i={tenantId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=[n];return this.apiClient.callApi("/api/enterprise/admin/tenants/{tenantId}/events","GET",i,o,r,s,t,a,p,l,c)},this.getTenantLogo=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling getTenantLogo";var i={tenantId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/admin/tenants/{tenantId}/logo","GET",i,n,o,r,t,s,a,p,l)},this.getTenant=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling getTenant";var i={tenantId:e},n={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=o;return this.apiClient.callApi("/api/enterprise/admin/tenants/{tenantId}","GET",i,n,r,s,t,a,p,l,c)},this.getTenants=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=[t];return this.apiClient.callApi("/api/enterprise/admin/tenants","GET",i,n,o,r,e,s,a,p,l)},this.update=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling update";if(void 0==t||null==t)throw"Missing the required parameter 'createTenantRepresentation' when calling update";var n={tenantId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=o;return this.apiClient.callApi("/api/enterprise/admin/tenants/{tenantId}","PUT",n,r,s,a,i,p,l,c,u)},this.uploadTenantLogo=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling uploadTenantLogo";if(void 0==t||null==t)throw"Missing the required parameter 'file' when calling uploadTenantLogo";var n={tenantId:e},o={},s={},a={file:t},p=[],l=["multipart/form-data"],c=["application/json"],u=r;return this.apiClient.callApi("/api/enterprise/admin/tenants/{tenantId}/logo","POST",n,o,s,a,i,p,l,c,u)}};return s})},{"../../../alfrescoApiClient":295,"../model/CreateTenantRepresentation":92,"../model/ImageUploadRepresentation":110,"../model/LightTenantRepresentation":114,"../model/TenantEvent":148,"../model/TenantRepresentation":149}],30:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/BulkUserUpdateRepresentation","../model/UserRepresentation","../model/AbstractUserRepresentation","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/BulkUserUpdateRepresentation"),t("../model/UserRepresentation"),t("../model/AbstractUserRepresentation"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AdminUsersApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.BulkUserUpdateRepresentation,n.ActivitiPublicRestApi.UserRepresentation,n.ActivitiPublicRestApi.AbstractUserRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t,i,n,o){var r=function(t){this.apiClient=t||e.instance,this.bulkUpdateUsers=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'update' when calling bulkUpdateUsers";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/admin/users","PUT",i,n,o,r,t,s,a,p,l); -},this.createNewUser=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'userRepresentation' when calling createNewUser";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/admin/users","POST",n,o,r,s,t,a,p,l,c)},this.getUser=function(e,t){t=t||{};var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling getUser";var o={userId:e},r={summary:t.summary},s={},a={},p=[],l=["application/json"],c=["application/json"],u=n;return this.apiClient.callApi("/api/enterprise/admin/users/{userId}","GET",o,r,s,a,i,p,l,c,u)},this.getUsers=function(e){e=e||{};var t=null,i={},n={filter:e.filter,status:e.status,accountType:e.accountType,sort:e.sort,company:e.company,start:e.start,page:e.page,size:e.size,groupId:e.groupId,tenantId:e.tenantId,summary:e.summary},r={},s={},a=[],p=["application/json"],l=["application/json"],c=o;return this.apiClient.callApi("/api/enterprise/admin/users","GET",i,n,r,s,t,a,p,l,c)},this.updateUserDetails=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling updateUserDetails";if(void 0==t||null==t)throw"Missing the required parameter 'userRepresentation' when calling updateUserDetails";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/users/{userId}","PUT",n,o,r,s,i,a,p,l,c)}};return r})},{"../../../alfrescoApiClient":295,"../model/AbstractUserRepresentation":74,"../model/BulkUserUpdateRepresentation":83,"../model/ResultListDataRepresentation":138,"../model/UserRepresentation":154}],31:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AlfrescoApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.getAllNetworks=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks","GET",i,n,o,r,e,s,a,p,l)},this.getAllSites=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getAllSites";var n={networkId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/sites","GET",n,o,r,s,i,a,p,l,c)},this.getAllSites=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getAllSites";var n={repositoryId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/sites","GET",n,o,r,s,i,a,p,l,c)},this.getContentInFolder=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getContentInFolder";if(void 0==i||null==i)throw"Missing the required parameter 'folderId' when calling getContentInFolder";var o={networkId:e,folderId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/folders/{folderId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInFolder=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getContentInFolder";if(void 0==i||null==i)throw"Missing the required parameter 'folderId' when calling getContentInFolder";var o={repositoryId:e,folderId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/folders/{folderId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInSite=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getContentInSite";if(void 0==i||null==i)throw"Missing the required parameter 'siteId' when calling getContentInSite";var o={networkId:e,siteId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/sites/{siteId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInSite=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getContentInSite";if(void 0==i||null==i)throw"Missing the required parameter 'siteId' when calling getContentInSite";var o={repositoryId:e,siteId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/sites/{siteId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getRepositories=function(e){e=e||{};var i=null,n={},o={tenantId:e.tenantId,includeAccounts:e.includeAccounts},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/profile/accounts/alfresco","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],32:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/RuntimeAppDefinitionSaveRepresentation","../model/ResultListDataRepresentation","../model/AppDefinitionRepresentation","../model/AppDefinitionPublishRepresentation","../model/AppDefinitionUpdateResultRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/RuntimeAppDefinitionSaveRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/AppDefinitionRepresentation"),t("../model/AppDefinitionPublishRepresentation"),t("../model/AppDefinitionUpdateResultRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.RuntimeAppDefinitionSaveRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.AppDefinitionRepresentation,n.ActivitiPublicRestApi.AppDefinitionPublishRepresentation,n.ActivitiPublicRestApi.AppDefinitionUpdateResultRepresentation))}(void 0,function(e,t,i,n,o,r){var s=function(t){this.apiClient=t||e.instance,this.deployAppDefinitions=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'saveObject' when calling deployAppDefinitions";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/runtime-app-definitions","POST",i,n,o,r,t,s,a,p,l)},this.exportAppDefinition=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling exportAppDefinition";var i={modelId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/app-definitions/{modelId}/export","GET",i,n,o,r,t,s,a,p,l)},this.getAppDefinitions=function(){var e=null,t={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=i;return this.apiClient.callApi("/api/enterprise/runtime-app-definitions","GET",t,n,o,r,e,s,a,p,l)},this.importAppDefinition=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'file' when calling importAppDefinition";var i={},o={},r={},s={file:e},a=[],p=["multipart/form-data"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/app-definitions/import","POST",i,o,r,s,t,a,p,l,c)},this.importAppDefinition=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling importAppDefinition";if(void 0==t||null==t)throw"Missing the required parameter 'file' when calling importAppDefinition";var o={modelId:e},r={},s={},a={file:t},p=[],l=["multipart/form-data"],c=["application/json"],u=n;return this.apiClient.callApi("/api/enterprise/app-definitions/{modelId}/import","POST",o,r,s,a,i,p,l,c,u)},this.publishAppDefinition=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling publishAppDefinition";if(void 0==t||null==t)throw"Missing the required parameter 'publishModel' when calling publishAppDefinition";var n={modelId:e},o={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=r;return this.apiClient.callApi("/api/enterprise/app-definitions/{modelId}/publish","POST",n,o,s,a,i,p,l,c,u)}};return s})},{"../../../alfrescoApiClient":295,"../model/AppDefinitionPublishRepresentation":77,"../model/AppDefinitionRepresentation":78,"../model/AppDefinitionUpdateResultRepresentation":79,"../model/ResultListDataRepresentation":138,"../model/RuntimeAppDefinitionSaveRepresentation":139}],33:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/AppDefinitionRepresentation","../model/AppDefinitionPublishRepresentation","../model/AppDefinitionUpdateResultRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/AppDefinitionRepresentation"),t("../model/AppDefinitionPublishRepresentation"),t("../model/AppDefinitionUpdateResultRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppsDefinitionApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.AppDefinitionRepresentation,n.ActivitiPublicRestApi.AppDefinitionPublishRepresentation,n.ActivitiPublicRestApi.AppDefinitionUpdateResultRepresentation))}(void 0,function(e,t,i,n){var o=function(i){this.apiClient=i||e.instance,this.exportAppDefinition=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling exportAppDefinition";var i={modelId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/app-definitions/{modelId}/export","GET",i,n,o,r,t,s,a,p,l)},this.importAppDefinition=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'file' when calling importAppDefinition";var n={},o={},r={},s={file:e},a=[],p=["multipart/form-data"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/app-definitions/import","POST",n,o,r,s,i,a,p,l,c)},this.importAppDefinition=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling importAppDefinition";if(void 0==i||null==i)throw"Missing the required parameter 'file' when calling importAppDefinition";var o={modelId:e},r={},s={},a={file:i},p=[],l=["multipart/form-data"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/app-definitions/{modelId}/import","POST",o,r,s,a,n,p,l,c,u)},this.publishAppDefinition=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling publishAppDefinition";if(void 0==t||null==t)throw"Missing the required parameter 'publishModel' when calling publishAppDefinition";var o={modelId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=n;return this.apiClient.callApi("/api/enterprise/app-definitions/{modelId}/publish","POST",o,r,s,a,i,p,l,c,u)}};return o})},{"../../../alfrescoApiClient":295,"../model/AppDefinitionPublishRepresentation":77,"../model/AppDefinitionRepresentation":78,"../model/AppDefinitionUpdateResultRepresentation":79}],34:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/RuntimeAppDefinitionSaveRepresentation","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/RuntimeAppDefinitionSaveRepresentation"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppsRuntimeApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.RuntimeAppDefinitionSaveRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t,i){var n=function(t){this.apiClient=t||e.instance,this.deployAppDefinitions=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'saveObject' when calling deployAppDefinitions";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/runtime-app-definitions","POST",i,n,o,r,t,s,a,p,l)},this.getAppDefinitions=function(){var e=null,t={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=i;return this.apiClient.callApi("/api/enterprise/runtime-app-definitions","GET",t,n,o,r,e,s,a,p,l)}};return n})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138,"../model/RuntimeAppDefinitionSaveRepresentation":139}],35:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/CommentRepresentation","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/CommentRepresentation"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.CommentsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.CommentRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t,i){var n=function(n){this.apiClient=n||e.instance,this.addProcessInstanceComment=function(e,i){var n=e;if(void 0==e||null==e)throw"Missing the required parameter 'commentRequest' when calling addProcessInstanceComment";if(void 0==i||null==i)throw"Missing the required parameter 'processInstanceId' when calling addProcessInstanceComment";var o={processInstanceId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/comments","POST",o,r,s,a,n,p,l,c,u)},this.addTaskComment=function(e,i){var n=e;if(void 0==e||null==e)throw"Missing the required parameter 'commentRequest' when calling addTaskComment";if(void 0==i||null==i)throw"Missing the required parameter 'taskId' when calling addTaskComment";var o={taskId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/comments","POST",o,r,s,a,n,p,l,c,u)},this.getProcessInstanceComments=function(e,t){t=t||{};var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceComments";var o={processInstanceId:e},r={latestFirst:t.latestFirst},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/comments","GET",o,r,s,a,n,p,l,c,u)},this.getTaskComments=function(e,t){t=t||{};var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getTaskComments";var o={taskId:e},r={latestFirst:t.latestFirst},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/comments","GET",o,r,s,a,n,p,l,c,u)}};return n})},{"../../../alfrescoApiClient":295,"../model/CommentRepresentation":87,"../model/ResultListDataRepresentation":138}],36:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/RelatedContentRepresentation","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/RelatedContentRepresentation"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ContentApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.RelatedContentRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t,i){var n=function(n){this.apiClient=n||e.instance,this.createRelatedContentOnProcessInstance=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling createRelatedContentOnProcessInstance";if(void 0==i||null==i)throw"Missing the required parameter 'relatedContent' when calling createRelatedContentOnProcessInstance";var o={processInstanceId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/content","POST",o,r,s,a,n,p,l,c,u)},this.createRelatedContentOnProcessInstance=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling createRelatedContentOnProcessInstance";if(void 0==i||null==i)throw"Missing the required parameter 'file' when calling createRelatedContentOnProcessInstance";var o={processInstanceId:e},r={},s={},a={file:i},p=[],l=["multipart/form-data"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/raw-content","POST",o,r,s,a,n,p,l,c,u)},this.createRelatedContentOnTask=function(e,i,n){n=n||{};var o=i;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling createRelatedContentOnTask";if(void 0==i||null==i)throw"Missing the required parameter 'relatedContent' when calling createRelatedContentOnTask";var r={taskId:e},s={isRelatedContent:n.isRelatedContent},a={},p={},l=[],c=["application/json"],u=["application/json"],d=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/content","POST",r,s,a,p,o,l,c,u,d)},this.createRelatedContentOnTask=function(e,i,n){n=n||{};var o=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling createRelatedContentOnTask";if(void 0==i||null==i)throw"Missing the required parameter 'file' when calling createRelatedContentOnTask";var r={taskId:e},s={isRelatedContent:n.isRelatedContent},a={},p={file:i},l=[],c=["multipart/form-data"],u=["application/json"],d=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/raw-content","POST",r,s,a,p,o,l,c,u,d)},this.createTemporaryRawRelatedContent=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'file' when calling createTemporaryRawRelatedContent";var n={},o={},r={},s={file:e},a=[],p=["multipart/form-data"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/content/raw","POST",n,o,r,s,i,a,p,l,c)},this.createTemporaryRelatedContent=function(e){var i=e;if(void 0==e||null==e)throw"Missing the required parameter 'relatedContent' when calling createTemporaryRelatedContent";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/content","POST",n,o,r,s,i,a,p,l,c)},this.deleteContent=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'contentId' when calling deleteContent";var i={contentId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/content/{contentId}","DELETE",i,n,o,r,t,s,a,p,l)},this.getContent=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'contentId' when calling getContent";var n={contentId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/content/{contentId}","GET",n,o,r,s,i,a,p,l,c)},this.getProcessInstanceContent=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceContent";var n={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/field-content","GET",n,o,r,s,t,a,p,l,c)},this.getRawContent3=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'contentId' when calling getRawContent3";var i={contentId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/content/{contentId}/raw","GET",i,n,o,r,t,s,a,p,l)},this.getRelatedContentForProcessInstance=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getRelatedContentForProcessInstance";var n={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/content","GET",n,o,r,s,t,a,p,l,c)},this.getRelatedContentForTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getRelatedContentForTask";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/content","GET",n,o,r,s,t,a,p,l,c)}};return n})},{"../../../alfrescoApiClient":295,"../model/RelatedContentRepresentation":133,"../model/ResultListDataRepresentation":138}],37:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ContentRenditionApi=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(t){this.apiClient=t||e.instance,this.getRawContent=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'contentId' when calling getRawContent";if(void 0==t||null==t)throw"Missing the required parameter 'renditionType' when calling getRawContent";var n={contentId:e,renditionType:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/content/{contentId}/rendition/{renditionType}","GET",n,o,r,s,i,a,p,l,c)}};return t})},{"../../../alfrescoApiClient":295}],38:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/FormRepresentation","../model/FormSaveRepresentation","../model/ValidationErrorRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/FormRepresentation"),t("../model/FormSaveRepresentation"),t("../model/ValidationErrorRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.EditorApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.FormRepresentation,n.ActivitiPublicRestApi.FormSaveRepresentation,n.ActivitiPublicRestApi.ValidationErrorRepresentation))}(void 0,function(e,t,i,n){var o=function(i){this.apiClient=i||e.instance,this.getFormHistory=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'formId' when calling getFormHistory";if(void 0==i||null==i)throw"Missing the required parameter 'formHistoryId' when calling getFormHistory";var o={formId:e,formHistoryId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/editor/form-models/{formId}/history/{formHistoryId}","GET",o,r,s,a,n,p,l,c,u)},this.getForm=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'formId' when calling getForm";var n={formId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/editor/form-models/{formId}","GET",n,o,r,s,i,a,p,l,c)},this.getForms=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=[t];return this.apiClient.callApi("/api/enterprise/editor/form-models/values","GET",i,n,o,r,e,s,a,p,l)},this.saveForm=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'formId' when calling saveForm";if(void 0==i||null==i)throw"Missing the required parameter 'saveRepresentation' when calling saveForm";var o={formId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/editor/form-models/{formId}","PUT",o,r,s,a,n,p,l,c,u)},this.validateModel=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'formId' when calling validateModel";if(void 0==t||null==t)throw"Missing the required parameter 'saveRepresentation' when calling validateModel";var o={formId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=[n];return this.apiClient.callApi("/api/enterprise/editor/form-models/{formId}/validate","PUT",o,r,s,a,i,p,l,c,u)}};return o})},{"../../../alfrescoApiClient":295,"../model/FormRepresentation":103,"../model/FormSaveRepresentation":104,"../model/ValidationErrorRepresentation":156}],39:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.GroupsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getGroups=function(e){e=e||{};var i=null,n={},o={filter:e.filter,groupId:e.groupId,externalId:e.externalId,externalIdCaseInsensitive:e.externalIdCaseInsensitive,tenantId:e.tenantId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/groups","GET",n,o,r,s,i,a,p,l,c)},this.getUsersForGroup=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling getUsersForGroup";var n={groupId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/groups/{groupId}/users","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],40:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/SyncLogEntryRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/SyncLogEntryRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IDMSyncApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.SyncLogEntryRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getLogFile=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'syncLogEntryId' when calling getLogFile";var i={syncLogEntryId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/idm-sync-log-entries/{syncLogEntryId}/logfile","GET",i,n,o,r,t,s,a,p,l)},this.getSyncLogEntries=function(e){e=e||{};var i=null,n={},o={tenantId:e.tenantId,page:e.page,size:e.size},r={},s={},a=[],p=["application/json"],l=["application/json"],c=[t];return this.apiClient.callApi("/api/enterprise/idm-sync-log-entries","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/SyncLogEntryRepresentation":141}],41:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IntegrationAccountApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getAccounts=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=t;return this.apiClient.callApi("/api/enterprise/account/integration","GET",i,n,o,r,e,s,a,p,l)}};return i})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],42:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IntegrationAlfrescoCloudApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation)); -}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.getAllNetworks=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks","GET",i,n,o,r,e,s,a,p,l)},this.getAllSites=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getAllSites";var n={networkId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/sites","GET",n,o,r,s,i,a,p,l,c)},this.getContentInFolder=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getContentInFolder";if(void 0==i||null==i)throw"Missing the required parameter 'folderId' when calling getContentInFolder";var o={networkId:e,folderId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/folders/{folderId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInSite=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getContentInSite";if(void 0==i||null==i)throw"Missing the required parameter 'siteId' when calling getContentInSite";var o={networkId:e,siteId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/sites/{siteId}/content","GET",o,r,s,a,n,p,l,c,u)}};return i})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],43:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IntegrationAlfrescoOnPremiseApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getAllSites=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getAllSites";var n={repositoryId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/sites","GET",n,o,r,s,i,a,p,l,c)},this.getContentInFolder=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getContentInFolder";if(void 0==i||null==i)throw"Missing the required parameter 'folderId' when calling getContentInFolder";var o={repositoryId:e,folderId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/folders/{folderId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInSite=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getContentInSite";if(void 0==i||null==i)throw"Missing the required parameter 'siteId' when calling getContentInSite";var o={repositoryId:e,siteId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/sites/{siteId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getRepositories=function(e){e=e||{};var i=null,n={},o={tenantId:e.tenantId,includeAccounts:e.includeAccounts},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/profile/accounts/alfresco","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],44:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/UserAccountCredentialsRepresentation","../model/ResultListDataRepresentation","../model/BoxUserAccountCredentialsRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/UserAccountCredentialsRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/BoxUserAccountCredentialsRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IntegrationApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.UserAccountCredentialsRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.BoxUserAccountCredentialsRepresentation))}(void 0,function(e,t,i,n){var o=function(t){this.apiClient=t||e.instance,this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/box/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/google-drive/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.createRepositoryAccount=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling createRepositoryAccount";if(void 0==t||null==t)throw"Missing the required parameter 'credentials' when calling createRepositoryAccount";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","POST",n,o,r,s,i,a,p,l,c)},this.deleteRepositoryAccount=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling deleteRepositoryAccount";var i={userId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","DELETE",i,n,o,r,t,s,a,p,l)},this.getAllNetworks=function(){var e=null,t={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks","GET",t,n,o,r,e,s,a,p,l)},this.getAllSites=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getAllSites";var n={networkId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/sites","GET",n,o,r,s,t,a,p,l,c)},this.getAllSites=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getAllSites";var n={repositoryId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/sites","GET",n,o,r,s,t,a,p,l,c)},this.getBoxPluginStatus=function(){var e=null,t={},i={},n={},o={},r=[],s=["application/json"],a=["application/json"],p="Boolean";return this.apiClient.callApi("/api/enterprise/integration/box/status","GET",t,i,n,o,e,r,s,a,p)},this.getContentInFolder=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getContentInFolder";if(void 0==t||null==t)throw"Missing the required parameter 'folderId' when calling getContentInFolder";var o={networkId:e,folderId:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/folders/{folderId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInFolder=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getContentInFolder";if(void 0==t||null==t)throw"Missing the required parameter 'folderId' when calling getContentInFolder";var o={repositoryId:e,folderId:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/folders/{folderId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInSite=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getContentInSite";if(void 0==t||null==t)throw"Missing the required parameter 'siteId' when calling getContentInSite";var o={networkId:e,siteId:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/sites/{siteId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInSite=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getContentInSite";if(void 0==t||null==t)throw"Missing the required parameter 'siteId' when calling getContentInSite";var o={repositoryId:e,siteId:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/sites/{siteId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getFiles=function(e){e=e||{};var t=null,n={},o={filter:e.filter,parent:e.parent},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/integration/box/files","GET",n,o,r,s,t,a,p,l,c)},this.getFiles=function(e){e=e||{};var t=null,n={},o={filter:e.filter,parent:e.parent,currentFolderOnly:e.currentFolderOnly},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/integration/google-drive/files","GET",n,o,r,s,t,a,p,l,c)},this.getRepositories=function(e){e=e||{};var t=null,n={},o={tenantId:e.tenantId,includeAccounts:e.includeAccounts},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/profile/accounts/alfresco","GET",n,o,r,s,t,a,p,l,c)},this.getRepositoryAccount=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling getRepositoryAccount";var i={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","GET",i,o,r,s,t,a,p,l,c)},this.updateRepositoryAccount=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling updateRepositoryAccount";if(void 0==t||null==t)throw"Missing the required parameter 'credentials' when calling updateRepositoryAccount";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","PUT",n,o,r,s,i,a,p,l,c)}};return o})},{"../../../alfrescoApiClient":295,"../model/BoxUserAccountCredentialsRepresentation":82,"../model/ResultListDataRepresentation":138,"../model/UserAccountCredentialsRepresentation":150}],45:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/UserAccountCredentialsRepresentation","../model/ResultListDataRepresentation","../model/BoxUserAccountCredentialsRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/UserAccountCredentialsRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/BoxUserAccountCredentialsRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IntegrationBoxApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.UserAccountCredentialsRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.BoxUserAccountCredentialsRepresentation))}(void 0,function(e,t,i,n){var o=function(t){this.apiClient=t||e.instance,this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/box/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.createRepositoryAccount=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling createRepositoryAccount";if(void 0==t||null==t)throw"Missing the required parameter 'credentials' when calling createRepositoryAccount";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","POST",n,o,r,s,i,a,p,l,c)},this.deleteRepositoryAccount=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling deleteRepositoryAccount";var i={userId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","DELETE",i,n,o,r,t,s,a,p,l)},this.getBoxPluginStatus=function(){var e=null,t={},i={},n={},o={},r=[],s=["application/json"],a=["application/json"],p="Boolean";return this.apiClient.callApi("/api/enterprise/integration/box/status","GET",t,i,n,o,e,r,s,a,p)},this.getFiles=function(e){e=e||{};var t=null,n={},o={filter:e.filter,parent:e.parent},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/integration/box/files","GET",n,o,r,s,t,a,p,l,c)},this.getRepositoryAccount=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling getRepositoryAccount";var i={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","GET",i,o,r,s,t,a,p,l,c)},this.updateRepositoryAccount=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling updateRepositoryAccount";if(void 0==t||null==t)throw"Missing the required parameter 'credentials' when calling updateRepositoryAccount";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","PUT",n,o,r,s,i,a,p,l,c)}};return o})},{"../../../alfrescoApiClient":295,"../model/BoxUserAccountCredentialsRepresentation":82,"../model/ResultListDataRepresentation":138,"../model/UserAccountCredentialsRepresentation":150}],46:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IntegrationDriveApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/google-drive/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.getFiles=function(e){e=e||{};var i=null,n={},o={filter:e.filter,parent:e.parent,currentFolderOnly:e.currentFolderOnly},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/integration/google-drive/files","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],47:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ModelBpmnApi=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(t){this.apiClient=t||e.instance,this.getHistoricProcessModelBpmn20Xml=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'processModelId' when calling getHistoricProcessModelBpmn20Xml";if(void 0==t||null==t)throw"Missing the required parameter 'processModelHistoryId' when calling getHistoricProcessModelBpmn20Xml";var n={processModelId:e,processModelHistoryId:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/models/{processModelId}/history/{processModelHistoryId}/bpmn20","GET",n,o,r,s,i,a,p,l,c)},this.getProcessModelBpmn20Xml=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processModelId' when calling getProcessModelBpmn20Xml";var i={processModelId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/models/{processModelId}/bpmn20","GET",i,n,o,r,t,s,a,p,l)}};return t})},{"../../../alfrescoApiClient":295}],48:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ObjectNode"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ObjectNode")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ModelJsonBpmnApi=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getHistoricEditorDisplayJsonClient=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'processModelId' when calling getHistoricEditorDisplayJsonClient";if(void 0==i||null==i)throw"Missing the required parameter 'processModelHistoryId' when calling getHistoricEditorDisplayJsonClient";var o={processModelId:e,processModelHistoryId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/app/rest/models/{processModelId}/history/{processModelHistoryId}/model-json","GET",o,r,s,a,n,p,l,c,u)},this.getEditorDisplayJsonClient=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'processModelId' when calling getEditorDisplayJsonClient";var n={processModelId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/app/rest/models/{processModelId}/model-json","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/ObjectNode":121}],49:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ModelRepresentation","../model/ObjectNode","../model/ResultListDataRepresentation","../model/ValidationErrorRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ModelRepresentation"),t("../model/ObjectNode"),t("../model/ResultListDataRepresentation"),t("../model/ValidationErrorRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ModelsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ModelRepresentation,n.ActivitiPublicRestApi.ObjectNode,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.ValidationErrorRepresentation))}(void 0,function(e,t,i,n,o){var r=function(r){this.apiClient=r||e.instance,this.createModel=function(e){var i=e;if(void 0==e||null==e)throw"Missing the required parameter 'modelRepresentation' when calling createModel";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/models","POST",n,o,r,s,i,a,p,l,c)},this.deleteModel=function(e,t){t=t||{};var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling deleteModel";var n={modelId:e},o={cascade:t.cascade,deleteRuntimeApp:t.deleteRuntimeApp},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/models/{modelId}","DELETE",n,o,r,s,i,a,p,l,c)},this.duplicateModel=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling duplicateModel";if(void 0==i||null==i)throw"Missing the required parameter 'modelRepresentation' when calling duplicateModel";var o={modelId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/models/{modelId}/clone","POST",o,r,s,a,n,p,l,c,u)},this.getModelJSON=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling getModelJSON";var n={modelId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/models/{modelId}/editor/json","GET",n,o,r,s,t,a,p,l,c)},this.getModelThumbnail=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling getModelThumbnail";var i={modelId:e},n={},o={},r={},s=[],a=["application/json"],p=["image/png","application/json"],l=["String"];return this.apiClient.callApi("/api/enterprise/models/{modelId}/thumbnail","GET",i,n,o,r,t,s,a,p,l)},this.getModel=function(e,i){i=i||{};var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling getModel";var o={modelId:e},r={includePermissions:i.includePermissions},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/models/{modelId}","GET",o,r,s,a,n,p,l,c,u)},this.getModelsToIncludeInAppDefinition=function(){var e=null,t={},i={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=n;return this.apiClient.callApi("/api/enterprise/models-for-app-definition","GET",t,i,o,r,e,s,a,p,l)},this.getModels=function(e){e=e||{};var t=null,i={},o={filter:e.filter,filterText:e.filterText,sort:e.sort,modelType:e.modelType,referenceId:e.referenceId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/models","GET",i,o,r,s,t,a,p,l,c)},this.importNewVersion=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling importNewVersion";if(void 0==i||null==i)throw"Missing the required parameter 'file' when calling importNewVersion";var o={modelId:e},r={},s={},a={file:i},p=[],l=["multipart/form-data"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/models/{modelId}/newversion","POST",o,r,s,a,n,p,l,c,u)},this.importProcessModel=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'file' when calling importProcessModel";var n={},o={},r={},s={file:e},a=[],p=["multipart/form-data"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/process-models/import","POST",n,o,r,s,i,a,p,l,c)},this.saveModel=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling saveModel";if(void 0==i||null==i)throw"Missing the required parameter 'values' when calling saveModel";var o={modelId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/models/{modelId}/editor/json","POST",o,r,s,a,n,p,l,c,u)},this.updateModel=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling updateModel";if(void 0==i||null==i)throw"Missing the required parameter 'updatedModel' when calling updateModel";var o={modelId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/models/{modelId}","PUT",o,r,s,a,n,p,l,c,u)},this.validateModel=function(e,t){t=t||{};var i=t.values;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling validateModel";var n={modelId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=[o];return this.apiClient.callApi("/api/enterprise/models/{modelId}/editor/validate","POST",n,r,s,a,i,p,l,c,u)}};return r})},{"../../../alfrescoApiClient":295,"../model/ModelRepresentation":120,"../model/ObjectNode":121,"../model/ResultListDataRepresentation":138,"../model/ValidationErrorRepresentation":156}],50:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation","../model/ModelRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation"),t("../model/ModelRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ModelsHistoryApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.ModelRepresentation))}(void 0,function(e,t,i){var n=function(n){this.apiClient=n||e.instance,this.getModelHistoryCollection=function(e,i){i=i||{};var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling getModelHistoryCollection";var o={modelId:e},r={includeLatestVersion:i.includeLatestVersion},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/models/{modelId}/history","GET",o,r,s,a,n,p,l,c,u)},this.getProcessModelHistory=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling getProcessModelHistory";if(void 0==t||null==t)throw"Missing the required parameter 'modelHistoryId' when calling getProcessModelHistory";var o={modelId:e,modelHistoryId:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/models/{modelId}/history/{modelHistoryId}","GET",o,r,s,a,n,p,l,c,u)}};return n})},{"../../../alfrescoApiClient":295,"../model/ModelRepresentation":120,"../model/ResultListDataRepresentation":138}],51:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ProcessInstanceFilterRequestRepresentation","../model/ResultListDataRepresentation","../model/FormDefinitionRepresentation","../model/ProcessInstanceRepresentation","../model/ProcessFilterRequestRepresentation","../model/FormValueRepresentation","../model/CreateProcessInstanceRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ProcessInstanceFilterRequestRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/FormDefinitionRepresentation"),t("../model/ProcessInstanceRepresentation"),t("../model/ProcessFilterRequestRepresentation"),t("../model/FormValueRepresentation"),t("../model/CreateProcessInstanceRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ProcessInstanceFilterRequestRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.FormDefinitionRepresentation,n.ActivitiPublicRestApi.ProcessInstanceRepresentation,n.ActivitiPublicRestApi.ProcessFilterRequestRepresentation,n.ActivitiPublicRestApi.FormValueRepresentation,n.ActivitiPublicRestApi.CreateProcessInstanceRepresentation))}(void 0,function(e,t,i,n,o,r,s,a){var p=function(t){this.apiClient=t||e.instance,this.deleteProcessInstance=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling deleteProcessInstance";var i={processInstanceId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}","DELETE",i,n,o,r,t,s,a,p,l)},this.filterProcessInstances=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'filterRequest' when calling filterProcessInstances";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/filter","POST",n,o,r,s,t,a,p,l,c)},this.getProcessDefinitionStartForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processDefinitionId' when calling getProcessInstanceContent";var i={processDefinitionId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/process-definitions/{processDefinitionId}/start-form","GET",i,o,r,s,t,a,p,l,c)},this.getProcessDefinitions=function(e){e=e||{};var t=null,n={},o={latest:e.latest,appDefinitionId:e.appDefinitionId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i; -return this.apiClient.callApi("/api/enterprise/process-definitions","GET",n,o,r,s,t,a,p,l,c)},this.getProcessInstanceContent=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceContent";var n={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/field-content","GET",n,o,r,s,t,a,p,l,c)},this.getProcessInstanceStartForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceStartForm";var i={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/start-form","GET",i,o,r,s,t,a,p,l,c)},this.getProcessInstance=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstance";var i={processInstanceId:e},n={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=o;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}","GET",i,n,r,s,t,a,p,l,c)},this.getProcessInstances=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'requestNode' when calling getProcessInstances";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/query","POST",n,o,r,s,t,a,p,l,c)},this.getRestFieldValues=function(e,t){var i=null,n={processDefinitionId:e,field:t},o={},r={},a={},p=[],l=["application/json"],c=["application/json"],u=[s];return this.apiClient.callApi("/api/enterprise/process-definitions/{processDefinitionId}/start-form-values/{field}","GET",n,o,r,a,i,p,l,c,u)},this.getRestTableFieldValues=function(e,t,i){var n=null,o={processDefinitionId:e,field:t,column:i},r={},a={},p={},l=[],c=["application/json"],u=["application/json"],d=[s];return this.apiClient.callApi("/api/enterprise/process-definitions/{processDefinitionId}/start-form-values/{field}/{column}","GET",o,r,a,p,n,l,c,u,d)},this.startNewProcessInstance=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'startRequest' when calling startNewProcessInstance";var i={},n={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=o;return this.apiClient.callApi("/api/enterprise/process-instances","POST",i,n,r,s,t,a,p,l,c)}};return p})},{"../../../alfrescoApiClient":295,"../model/CreateProcessInstanceRepresentation":91,"../model/FormDefinitionRepresentation":99,"../model/FormValueRepresentation":107,"../model/ProcessFilterRequestRepresentation":124,"../model/ProcessInstanceFilterRequestRepresentation":126,"../model/ProcessInstanceRepresentation":127,"../model/ResultListDataRepresentation":138}],52:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessDefinitionsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getProcessDefinitions=function(e){e=e||{};var i=null,n={},o={latest:e.latest,appDefinitionId:e.appDefinitionId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/process-definitions","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],53:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/FormDefinitionRepresentation","../model/FormValueRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/FormDefinitionRepresentation"),t("../model/FormValueRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessDefinitionsFormApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.FormDefinitionRepresentation,n.ActivitiPublicRestApi.FormValueRepresentation))}(void 0,function(e,t,i){var n=function(n){this.apiClient=n||e.instance,this.getProcessDefinitionStartForm=function(e){var i=null,n={processDefinitionId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/process-definitions/{processDefinitionId}/start-form","GET",n,o,r,s,i,a,p,l,c)},this.getRestFieldValues=function(e,t){var n=null,o={processDefinitionId:e,field:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=[i];return this.apiClient.callApi("/api/enterprise/process-definitions/{processDefinitionId}/start-form-values/{field}","GET",o,r,s,a,n,p,l,c,u)},this.getRestTableFieldValues=function(e,t,n){var o=null,r={processDefinitionId:e,field:t,column:n},s={},a={},p={},l=[],c=["application/json"],u=["application/json"],d=[i];return this.apiClient.callApi("/api/enterprise/process-definitions/{processDefinitionId}/start-form-values/{field}/{column}","GET",r,s,a,p,o,l,c,u,d)}};return n})},{"../../../alfrescoApiClient":295,"../model/FormDefinitionRepresentation":99,"../model/FormValueRepresentation":107}],54:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/RestVariable"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/RestVariable")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstanceVariablesApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.RestVariable))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getProcessInstanceVariables=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceVariables";var n={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=[t];return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/variables","GET",n,o,r,s,i,a,p,l,c)},this.createProcessInstanceVariables=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling createProcessInstanceVariables";if(void 0==i||null==i)throw"Missing the required parameter 'restVariables' when calling createProcessInstanceVariables";var o={processInstanceId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=[t];return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/variables","POST",o,r,s,a,n,p,l,c,u)},this.createOrUpdateProcessInstanceVariables=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling createOrUpdateProcessInstanceVariables";if(void 0==i||null==i)throw"Missing the required parameter 'restVariables' when calling createOrUpdateProcessInstanceVariables";var o={processInstanceId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=[t];return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/variables","PUT",o,r,s,a,n,p,l,c,u)},this.getProcessInstanceVariable=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceVariable";if(void 0==i||null==i)throw"Missing the required parameter 'variableName' when calling getProcessInstanceVariable";var o={processInstanceId:e,variableName:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/variables/{variableName}","GET",o,r,s,a,n,p,l,c,u)},this.updateProcessInstanceVariable=function(e,i,n){var o=n;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling updateProcessInstanceVariable";if(void 0==i||null==i)throw"Missing the required parameter 'variableName' when calling updateProcessInstanceVariable";var r={processInstanceId:e,variableName:i},s={},a={},p={},l=[],c=["application/json"],u=["application/json"],d=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/variables/{variableName}","PUT",r,s,a,p,o,l,c,u,d)},this.deleteProcessInstanceVariable=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling deleteProcessInstanceVariable";if(void 0==t||null==t)throw"Missing the required parameter 'variableName' when calling deleteProcessInstanceVariable";var n={processInstanceId:e,variableName:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/variables/{variableName}","DELETE",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/RestVariable":137}],55:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/CommentRepresentation","../model/ResultListDataRepresentation","../model/FormDefinitionRepresentation","../model/ProcessInstanceRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/CommentRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/FormDefinitionRepresentation"),t("../model/ProcessInstanceRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstancesApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.CommentRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.FormDefinitionRepresentation,n.ActivitiPublicRestApi.ProcessInstanceRepresentation))}(void 0,function(e,t,i,n,o){var r=function(r){this.apiClient=r||e.instance,this.addProcessInstanceComment=function(e,i){var n=e;if(void 0==e||null==e)throw"Missing the required parameter 'commentRequest' when calling addProcessInstanceComment";if(void 0==i||null==i)throw"Missing the required parameter 'processInstanceId' when calling addProcessInstanceComment";var o={processInstanceId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/comments","POST",o,r,s,a,n,p,l,c,u)},this.deleteProcessInstance=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling deleteProcessInstance";var i={processInstanceId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}","DELETE",i,n,o,r,t,s,a,p,l)},this.getProcessInstanceComments=function(e,t){t=t||{};var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceComments";var o={processInstanceId:e},r={latestFirst:t.latestFirst},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/comments","GET",o,r,s,a,n,p,l,c,u)},this.getProcessInstanceStartForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceStartForm";var i={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/start-form","GET",i,o,r,s,t,a,p,l,c)},this.getProcessInstance=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstance";var i={processInstanceId:e},n={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=o;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}","GET",i,n,r,s,t,a,p,l,c)}};return r})},{"../../../alfrescoApiClient":295,"../model/CommentRepresentation":87,"../model/FormDefinitionRepresentation":99,"../model/ProcessInstanceRepresentation":127,"../model/ResultListDataRepresentation":138}],56:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation","../model/CreateProcessInstanceRepresentation","../model/ProcessInstanceRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation"),t("../model/CreateProcessInstanceRepresentation"),t("../model/ProcessInstanceRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstancesInformationApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.CreateProcessInstanceRepresentation,n.ActivitiPublicRestApi.ProcessInstanceRepresentation))}(void 0,function(e,t,i,n){var o=function(i){this.apiClient=i||e.instance,this.getProcessInstanceContent=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceContent";var n={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/field-content","GET",n,o,r,s,i,a,p,l,c)},this.startNewProcessInstance=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'startRequest' when calling startNewProcessInstance";var i={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/process-instances","POST",i,o,r,s,t,a,p,l,c)}};return o})},{"../../../alfrescoApiClient":295,"../model/CreateProcessInstanceRepresentation":91,"../model/ProcessInstanceRepresentation":127,"../model/ResultListDataRepresentation":138}],57:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ProcessInstanceFilterRequestRepresentation","../model/ResultListDataRepresentation","../model/ObjectNode"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ProcessInstanceFilterRequestRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/ObjectNode")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstancesListingApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ProcessInstanceFilterRequestRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.ObjectNode))}(void 0,function(e,t,i,n){var o=function(t){this.apiClient=t||e.instance,this.filterProcessInstances=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'filterRequest' when calling filterProcessInstances";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/filter","POST",n,o,r,s,t,a,p,l,c)},this.getProcessInstances=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'requestNode' when calling getProcessInstances";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/query","POST",n,o,r,s,t,a,p,l,c)}};return o})},{"../../../alfrescoApiClient":295,"../model/ObjectNode":121,"../model/ProcessInstanceFilterRequestRepresentation":126,"../model/ResultListDataRepresentation":138}],58:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ProcessScopesRequestRepresentation","../model/ProcessScopeRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ProcessScopesRequestRepresentation"),t("../model/ProcessScopeRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessScopeApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ProcessScopesRequestRepresentation,n.ActivitiPublicRestApi.ProcessScopeRepresentation))}(void 0,function(e,t,i){var n=function(t){this.apiClient=t||e.instance,this.getRuntimeProcessScopes=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'processScopesRequest' when calling getRuntimeProcessScopes";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=[i];return this.apiClient.callApi("/api/enterprise/process-scopes","POST",n,o,r,s,t,a,p,l,c)}};return n})},{"../../../alfrescoApiClient":295,"../model/ProcessScopeRepresentation":130,"../model/ProcessScopesRequestRepresentation":131}],59:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ChangePasswordRepresentation","../model/UserRepresentation","../model/ImageUploadRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ChangePasswordRepresentation"),t("../model/UserRepresentation"),t("../model/ImageUploadRepresentation"),t("../model/File")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProfileApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ChangePasswordRepresentation,n.ActivitiPublicRestApi.UserRepresentation,n.ActivitiPublicRestApi.ImageUploadRepresentation,n.ActivitiPublicRestApi.File))}(void 0,function(e,t,i,n,o){var r=function(t){this.apiClient=t||e.instance,this.changePassword=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'changePasswordRepresentation' when calling changePassword";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/profile-password","POST",i,n,o,r,t,s,a,p,l)},this.getProfilePicture=function(){var e=null,t={},i={},n={},r={},s=[],a=["application/json"],p=["application/json"],l=o;return this.apiClient.callApi("/api/enterprise/profile-picture","GET",t,i,n,r,e,s,a,p,l)},this.getProfilePictureUrl=function(){return this.apiClient.basePath+"/app/rest/admin/profile-picture"},this.getProfile=function(){var e=null,t={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=i;return this.apiClient.callApi("/api/enterprise/profile","GET",t,n,o,r,e,s,a,p,l)},this.updateProfile=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'userRepresentation' when calling updateProfile";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/profile","POST",n,o,r,s,t,a,p,l,c)},this.uploadProfilePicture=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'file' when calling uploadProfilePicture";var i={},o={},r={},s={file:e},a=[],p=["multipart/form-data"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/profile-picture","POST",i,o,r,s,t,a,p,l,c)}};return r})},{"../../../alfrescoApiClient":295,"../model/ChangePasswordRepresentation":84,"../model/File":98,"../model/ImageUploadRepresentation":110,"../model/UserRepresentation":154}],60:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ReportCharts","../model/ParameterValueRepresentation","../model/ReportParametersDefinition"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ReportCharts"),t("../model/ParameterValueRepresentation"),t("../model/ReportParametersDefinition")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ReportApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ReportCharts,n.ActivitiPublicRestApi.ParameterValueRepresentation,n.ActivitiPublicRestApi.ReportParametersDefinition))}(void 0,function(e,t,i,n){var o=function(o){this.apiClient=o||e.instance,this.createDefaultReports=function(){var e=null,t={},i={},n={},o={},r=[],s=["application/json"],a=["application/json"],p=null;return this.apiClient.callApi("/app/rest/reporting/default-reports","POST",t,i,n,o,e,r,s,a,p)},this.getTasksByProcessDefinitionId=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'reportId' when calling getTasksByProcessDefinitionId";if(void 0==t||null==t)throw"Missing the required parameter 'processDefinitionId' when calling getTasksByProcessDefinitionId";var n={reportId:e},o={processDefinitionId:t},r={},s={},a=[],p=["application/json"],l=["application/json"],c=["String"];return this.apiClient.callApi("/app/rest/reporting/report-params/{reportId}/tasks","GET",n,o,r,s,i,a,p,l,c)},this.getReportsByParams=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'reportId' when calling getReportsByParams";var o={reportId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/app/rest/reporting/report-params/{reportId}","POST",o,r,s,a,n,p,l,c,u)},this.getProcessDefinitionsValuesNoApp=function(){var e=null,t={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=[i];return this.apiClient.callApi("/app/rest/reporting/process-definitions","GET",t,n,o,r,e,s,a,p,l)},this.getReportParams=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'reportId' when calling getReportParams";var i={reportId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/app/rest/reporting/report-params/{reportId}","GET",i,o,r,s,t,a,p,l,c)},this.getReportList=function(){var e=null,t={},i={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=[n];return this.apiClient.callApi("/app/rest/reporting/reports","GET",t,i,o,r,e,s,a,p,l)}};return o})},{"../../../alfrescoApiClient":295,"../model/ParameterValueRepresentation":123,"../model/ReportCharts":134,"../model/ReportParametersDefinition":135}],61:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ScriptFileApi=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(t){this.apiClient=t||e.instance,this.getControllers=function(){var e=null,t={},i={},n={},o={},r=[],s=["application/json"],a=["application/json","application/javascript"],p="String";return this.apiClient.callApi("/api/enterprise/script-files/controllers","GET",t,i,n,o,e,r,s,a,p)},this.getLibraries=function(){var e=null,t={},i={},n={},o={},r=[],s=["application/json"],a=["application/json","application/javascript"],p="String";return this.apiClient.callApi("/api/enterprise/script-files/libraries","GET",t,i,n,o,e,r,s,a,p)}};return t})},{"../../../alfrescoApiClient":295}],62:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/SystemPropertiesRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/SystemPropertiesRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.SystemPropertiesApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.SystemPropertiesRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getProperties=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=t;return this.apiClient.callApi("/api/enterprise/system/properties","GET",i,n,o,r,e,s,a,p,l)}};return i})},{"../../../alfrescoApiClient":295,"../model/SystemPropertiesRepresentation":142}],63:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ObjectNode","../model/TaskRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ObjectNode"),t("../model/TaskRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskActionsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ObjectNode,n.ActivitiPublicRestApi.TaskRepresentation))}(void 0,function(e,t,i){var n=function(t){this.apiClient=t||e.instance,this.assignTask=function(e,t){var n=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling assignTask";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling assignTask";var o={taskId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/assign","PUT",o,r,s,a,n,p,l,c,u)},this.attachForm=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling attachForm";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling attachForm";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/attach-form","PUT",n,o,r,s,i,a,p,l,c)},this.claimTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling claimTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/claim","PUT",i,n,o,r,t,s,a,p,l)},this.completeTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling completeTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/complete","PUT",i,n,o,r,t,s,a,p,l)},this.involveUser=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling involveUser";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling involveUser";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/involve","PUT",n,o,r,s,i,a,p,l,c)},this.removeForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling removeForm";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/remove-form","DELETE",i,n,o,r,t,s,a,p,l)},this.removeInvolvedUser=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling removeInvolvedUser";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling removeInvolvedUser";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/remove-involved","PUT",n,o,r,s,i,a,p,l,c)},this.unclaimTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling unclaimTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/unclaim","PUT",i,n,o,r,t,s,a,p,l)}};return n})},{"../../../alfrescoApiClient":295,"../model/ObjectNode":121,"../model/TaskRepresentation":146}],64:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/TaskRepresentation","../model/CommentRepresentation","../model/ObjectNode","../model/CompleteFormRepresentation","../model/RelatedContentRepresentation","../model/TaskFilterRequestRepresentation","../model/ResultListDataRepresentation","../model/FormValueRepresentation","../model/FormDefinitionRepresentation","../model/ChecklistOrderRepresentation","../model/SaveFormRepresentation","../model/TaskUpdateRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/TaskRepresentation"),t("../model/CommentRepresentation"),t("../model/ObjectNode"),t("../model/CompleteFormRepresentation"),t("../model/RelatedContentRepresentation"),t("../model/TaskFilterRequestRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/FormValueRepresentation"),t("../model/FormDefinitionRepresentation"),t("../model/ChecklistOrderRepresentation"),t("../model/SaveFormRepresentation"),t("../model/TaskUpdateRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.TaskRepresentation,n.ActivitiPublicRestApi.CommentRepresentation,n.ActivitiPublicRestApi.ObjectNode,n.ActivitiPublicRestApi.CompleteFormRepresentation,n.ActivitiPublicRestApi.RelatedContentRepresentation,n.ActivitiPublicRestApi.TaskFilterRequestRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.FormValueRepresentation,n.ActivitiPublicRestApi.FormDefinitionRepresentation,n.ActivitiPublicRestApi.ChecklistOrderRepresentation,n.ActivitiPublicRestApi.SaveFormRepresentation,n.ActivitiPublicRestApi.TaskUpdateRepresentation)); -}(void 0,function(e,t,i,n,o,r,s,a,p,l,c,u,d){var f=function(n){this.apiClient=n||e.instance,this.addSubtask=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling addSubtask";if(void 0==i||null==i)throw"Missing the required parameter 'taskRepresentation' when calling addSubtask";var o={taskId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/checklist","POST",o,r,s,a,n,p,l,c,u)},this.addTaskComment=function(e,t){var n=e;if(void 0==e||null==e)throw"Missing the required parameter 'commentRequest' when calling addTaskComment";if(void 0==t||null==t)throw"Missing the required parameter 'taskId' when calling addTaskComment";var o={taskId:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/comments","POST",o,r,s,a,n,p,l,c,u)},this.assignTask=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling assignTask";if(void 0==i||null==i)throw"Missing the required parameter 'requestNode' when calling assignTask";var o={taskId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/assign","PUT",o,r,s,a,n,p,l,c,u)},this.attachForm=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling attachForm";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling attachForm";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/attach-form","PUT",n,o,r,s,i,a,p,l,c)},this.claimTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling claimTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/claim","PUT",i,n,o,r,t,s,a,p,l)},this.completeTaskForm=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling completeTaskForm";if(void 0==t||null==t)throw"Missing the required parameter 'completeTaskFormRepresentation' when calling completeTaskForm";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}","POST",n,o,r,s,i,a,p,l,c)},this.completeTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling completeTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/complete","PUT",i,n,o,r,t,s,a,p,l)},this.createNewTask=function(e){var i=e;if(void 0==e||null==e)throw"Missing the required parameter 'taskRepresentation' when calling createNewTask";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/tasks","POST",n,o,r,s,i,a,p,l,c)},this.createRelatedContentOnTask=function(e,t,i){i=i||{};var n=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling createRelatedContentOnTask";if(void 0==t||null==t)throw"Missing the required parameter 'relatedContent' when calling createRelatedContentOnTask";var o={taskId:e},s={isRelatedContent:i.isRelatedContent},a={},p={},l=[],c=["application/json"],u=["application/json"],d=r;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/content","POST",o,s,a,p,n,l,c,u,d)},this.createRelatedContentOnTask=function(e,t,i){i=i||{};var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling createRelatedContentOnTask";if(void 0==t||null==t)throw"Missing the required parameter 'file' when calling createRelatedContentOnTask";var o={taskId:e},s={isRelatedContent:i.isRelatedContent},a={},p={file:t},l=[],c=["multipart/form-data"],u=["application/json"],d=r;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/raw-content","POST",o,s,a,p,n,l,c,u,d)},this.deleteTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling deleteTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}","DELETE",i,n,o,r,t,s,a,p,l)},this.filterTasks=function(e){var t=e;void 0!=e&&null!=e||(console.log("a"),t=new s);var i={},n={},o={},r={},p=[],l=["application/json"],c=["application/json"],u=a;return this.apiClient.callApi("/api/enterprise/tasks/filter","POST",i,n,o,r,t,p,l,c,u)},this.getChecklist=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getChecklist";var i={taskId:e},n={},o={},r={},s=[],p=["application/json"],l=["application/json"],c=a;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/checklist","GET",i,n,o,r,t,s,p,l,c)},this.getRelatedContentForTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getRelatedContentForTask";var i={taskId:e},n={},o={},r={},s=[],p=["application/json"],l=["application/json"],c=a;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/content","GET",i,n,o,r,t,s,p,l,c)},this.getRestFieldValuesColumn=function(e,t,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getRestFieldValues";if(void 0==t||null==t)throw"Missing the required parameter 'field' when calling getRestFieldValues";if(void 0==i||null==i)throw"Missing the required parameter 'column' when calling getRestFieldValues";var o={taskId:e,field:t,column:i},r={},s={},a={},l=[],c=["application/json"],u=["application/json"],d=[p];return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}/form-values/{field}/{column}","GET",o,r,s,a,n,l,c,u,d)},this.getRestFieldValues=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getRestFieldValues";if(void 0==t||null==t)throw"Missing the required parameter 'field' when calling getRestFieldValues";var n={taskId:e,field:t},o={},r={},s={},a=[],l=["application/json"],c=["application/json"],u=[p];return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}/form-values/{field}","GET",n,o,r,s,i,a,l,c,u)},this.getTaskComments=function(e,t){t=t||{};var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getTaskComments";var n={taskId:e},o={latestFirst:t.latestFirst},r={},s={},p=[],l=["application/json"],c=["application/json"],u=a;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/comments","GET",n,o,r,s,i,p,l,c,u)},this.getTaskForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getTaskForm";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],c=l;return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}","GET",i,n,o,r,t,s,a,p,c)},this.getTask=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getTask";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}","GET",n,o,r,s,i,a,p,l,c)},this.involveUser=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling involveUser";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling involveUser";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/involve","PUT",n,o,r,s,i,a,p,l,c)},this.listTasks=function(e){var t=e||{},i={},n={},o={},r={},s=[],p=["application/json"],l=["application/json"],c=a;return this.apiClient.callApi("/api/enterprise/tasks/query","POST",i,n,o,r,t,s,p,l,c)},this.orderChecklist=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling orderChecklist";if(void 0==t||null==t)throw"Missing the required parameter 'orderRepresentation' when calling orderChecklist";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/checklist","PUT",n,o,r,s,i,a,p,l,c)},this.removeForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling removeForm";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/remove-form","DELETE",i,n,o,r,t,s,a,p,l)},this.removeInvolvedUser=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling removeInvolvedUser";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling removeInvolvedUser";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/remove-involved","PUT",n,o,r,s,i,a,p,l,c)},this.saveTaskForm=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling saveTaskForm";if(void 0==t||null==t)throw"Missing the required parameter 'saveTaskFormRepresentation' when calling saveTaskForm";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}/save-form","POST",n,o,r,s,i,a,p,l,c)},this.unclaimTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling unclaimTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/unclaim","PUT",i,n,o,r,t,s,a,p,l)},this.updateTask=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling updateTask";if(void 0==i||null==i)throw"Missing the required parameter 'updated' when calling updateTask";var o={taskId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}","PUT",o,r,s,a,n,p,l,c,u)}};return f})},{"../../../alfrescoApiClient":295,"../model/ChecklistOrderRepresentation":86,"../model/CommentRepresentation":87,"../model/CompleteFormRepresentation":88,"../model/FormDefinitionRepresentation":99,"../model/FormValueRepresentation":107,"../model/ObjectNode":121,"../model/RelatedContentRepresentation":133,"../model/ResultListDataRepresentation":138,"../model/SaveFormRepresentation":140,"../model/TaskFilterRequestRepresentation":144,"../model/TaskRepresentation":146,"../model/TaskUpdateRepresentation":147}],65:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/TaskRepresentation","../model/ResultListDataRepresentation","../model/ChecklistOrderRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/TaskRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/ChecklistOrderRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskCheckListApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.TaskRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.ChecklistOrderRepresentation))}(void 0,function(e,t,i,n){var o=function(n){this.apiClient=n||e.instance,this.addSubtask=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling addSubtask";if(void 0==i||null==i)throw"Missing the required parameter 'taskRepresentation' when calling addSubtask";var o={taskId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/checklist","POST",o,r,s,a,n,p,l,c,u)},this.getChecklist=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getChecklist";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/checklist","GET",n,o,r,s,t,a,p,l,c)},this.orderChecklist=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling orderChecklist";if(void 0==t||null==t)throw"Missing the required parameter 'orderRepresentation' when calling orderChecklist";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/checklist","PUT",n,o,r,s,i,a,p,l,c)}};return o})},{"../../../alfrescoApiClient":295,"../model/ChecklistOrderRepresentation":86,"../model/ResultListDataRepresentation":138,"../model/TaskRepresentation":146}],66:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/CompleteFormRepresentation","../model/FormValueRepresentation","../model/FormDefinitionRepresentation","../model/SaveFormRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/CompleteFormRepresentation"),t("../model/FormValueRepresentation"),t("../model/FormDefinitionRepresentation"),t("../model/SaveFormRepresentation"),t("../model/ProcessInstanceVariableRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskFormsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.CompleteFormRepresentation,n.ActivitiPublicRestApi.FormValueRepresentation,n.ActivitiPublicRestApi.FormDefinitionRepresentation,n.ActivitiPublicRestApi.SaveFormRepresentation,n.ActivitiPublicRestApi.ProcessInstanceVariableRepresentation))}(void 0,function(e,t,i,n,o,r){var s=function(t){this.apiClient=t||e.instance,this.completeTaskForm=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling completeTaskForm";if(void 0==t||null==t)throw"Missing the required parameter 'completeTaskFormRepresentation' when calling completeTaskForm";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}","POST",n,o,r,s,i,a,p,l,c)},this.getRestFieldValues=function(e,t,n){var o=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getRestFieldValues";if(void 0==t||null==t)throw"Missing the required parameter 'field' when calling getRestFieldValues";if(void 0==n||null==n)throw"Missing the required parameter 'column' when calling getRestFieldValues";var r={taskId:e,field:t,column:n},s={},a={},p={},l=[],c=["application/json"],u=["application/json"],d=[i];return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}/form-values/{field}/{column}","GET",r,s,a,p,o,l,c,u,d)},this.getRestFieldValues=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getRestFieldValues";if(void 0==t||null==t)throw"Missing the required parameter 'field' when calling getRestFieldValues";var o={taskId:e,field:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=[i];return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}/form-values/{field}","GET",o,r,s,a,n,p,l,c,u)},this.getTaskForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getTaskForm";var i={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}","GET",i,o,r,s,t,a,p,l,c)},this.getTaskFormVariables=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getTaskFormVariables";var i={taskId:e},n={},o={},s={},a=[],p=["application/json"],l=["application/json"],c=[r];return this.apiClient.callApi("/app/rest/task-forms/{taskId}/variables","GET",i,n,o,s,t,a,p,l,c)},this.saveTaskForm=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling saveTaskForm";if(void 0==t||null==t)throw"Missing the required parameter 'saveTaskFormRepresentation' when calling saveTaskForm";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}/save-form","POST",n,o,r,s,i,a,p,l,c)}};return s})},{"../../../alfrescoApiClient":295,"../model/CompleteFormRepresentation":88,"../model/FormDefinitionRepresentation":99,"../model/FormValueRepresentation":107,"../model/ProcessInstanceVariableRepresentation":128,"../model/SaveFormRepresentation":140}],67:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ArrayNode"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ArrayNode")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TemporaryApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ArrayNode))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.completeTasks=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling completeTasks";if(void 0==t||null==t)throw"Missing the required parameter 'processDefinitionKey' when calling completeTasks";var n={},o={userId:e,processDefinitionKey:t},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/temporary/generate-report-data/complete-tasks","GET",n,o,r,s,i,a,p,l,c)},this.generateData=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling generateData";if(void 0==t||null==t)throw"Missing the required parameter 'processDefinitionKey' when calling generateData";var n={},o={userId:e,processDefinitionKey:t},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/temporary/generate-report-data/start-process","GET",n,o,r,s,i,a,p,l,c)},this.getHeaders=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=t;return this.apiClient.callApi("/api/enterprise/temporary/example-headers","GET",i,n,o,r,e,s,a,p,l)},this.getOptions=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=t;return this.apiClient.callApi("/api/enterprise/temporary/example-options","GET",i,n,o,r,e,s,a,p,l)}};return i})},{"../../../alfrescoApiClient":295,"../model/ArrayNode":81}],68:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/UserActionRepresentation","../model/UserRepresentation","../model/ResultListDataRepresentation","../model/ResetPasswordRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/UserActionRepresentation"),t("../model/UserRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/ResetPasswordRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UserApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.UserActionRepresentation,n.ActivitiPublicRestApi.UserRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.ResetPasswordRepresentation))}(void 0,function(e,t,i,n,o){var r=function(t){this.apiClient=t||e.instance,this.executeAction=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling executeAction";if(void 0==t||null==t)throw"Missing the required parameter 'actionRequest' when calling executeAction";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/users/{userId}","POST",n,o,r,s,i,a,p,l,c)},this.getProfilePicture=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling getProfilePicture";var i={userId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/users/{userId}/picture","GET",i,n,o,r,t,s,a,p,l)},this.getUser=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling getUser";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/users/{userId}","GET",n,o,r,s,t,a,p,l,c)},this.getUsers=function(e){e=e||{};var t=null,i={},o={filter:e.filter,email:e.email,externalId:e.externalId,externalIdCaseInsensitive:e.externalIdCaseInsensitive,excludeTaskId:e.excludeTaskId,excludeProcessId:e.excludeProcessId,groupId:e.groupId,tenantId:e.tenantId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/users","GET",i,o,r,s,t,a,p,l,c)},this.requestPasswordReset=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'resetPassword' when calling requestPasswordReset";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/idm/passwords","POST",i,n,o,r,t,s,a,p,l)},this.updateUser=function(e,t){var n=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling updateUser";if(void 0==t||null==t)throw"Missing the required parameter 'userRequest' when calling updateUser";var o={userId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/users/{userId}","PUT",o,r,s,a,n,p,l,c,u)}};return r})},{"../../../alfrescoApiClient":295,"../model/ResetPasswordRepresentation":136,"../model/ResultListDataRepresentation":138,"../model/UserActionRepresentation":151,"../model/UserRepresentation":154}],69:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/UserProcessInstanceFilterRepresentation","../model/UserTaskFilterRepresentation","../model/ResultListDataRepresentation","../model/UserFilterOrderRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/UserProcessInstanceFilterRepresentation"),t("../model/UserTaskFilterRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/UserFilterOrderRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UserFiltersApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.UserProcessInstanceFilterRepresentation,n.ActivitiPublicRestApi.UserTaskFilterRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.UserFilterOrderRepresentation))}(void 0,function(e,t,i,n,o){var r=function(o){this.apiClient=o||e.instance,this.createUserProcessInstanceFilter=function(e){var i=e;if(void 0==e||null==e)throw"Missing the required parameter 'userProcessInstanceFilterRepresentation' when calling createUserProcessInstanceFilter";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/filters/processes","POST",n,o,r,s,i,a,p,l,c)},this.createUserTaskFilter=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'userTaskFilterRepresentation' when calling createUserTaskFilter";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/filters/tasks","POST",n,o,r,s,t,a,p,l,c)},this.deleteUserProcessInstanceFilter=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userFilterId' when calling deleteUserProcessInstanceFilter";var i={userFilterId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/filters/processes/{userFilterId}","DELETE",i,n,o,r,t,s,a,p,l)},this.deleteUserTaskFilter=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userFilterId' when calling deleteUserTaskFilter";var i={userFilterId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/filters/tasks/{userFilterId}","DELETE",i,n,o,r,t,s,a,p,l)},this.getUserProcessInstanceFilter=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'userFilterId' when calling getUserProcessInstanceFilter";var n={userFilterId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/filters/processes/{userFilterId}","GET",n,o,r,s,i,a,p,l,c)},this.getUserProcessInstanceFilters=function(e){e=e||{};var t=null,i={},o={appId:e.appId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/filters/processes","GET",i,o,r,s,t,a,p,l,c)},this.getUserTaskFilter=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userFilterId' when calling getUserTaskFilter";var n={userFilterId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/filters/tasks/{userFilterId}","GET",n,o,r,s,t,a,p,l,c)},this.getUserTaskFilters=function(e){e=e||{};var t=null,i={},o={appId:e.appId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/filters/tasks","GET",i,o,r,s,t,a,p,l,c)},this.orderUserProcessInstanceFilters=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'filterOrderRepresentation' when calling orderUserProcessInstanceFilters";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/filters/processes","PUT",i,n,o,r,t,s,a,p,l)},this.orderUserTaskFilters=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'filterOrderRepresentation' when calling orderUserTaskFilters";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/filters/tasks","PUT",i,n,o,r,t,s,a,p,l)},this.updateUserProcessInstanceFilter=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'userFilterId' when calling updateUserProcessInstanceFilter";if(void 0==i||null==i)throw"Missing the required parameter 'userProcessInstanceFilterRepresentation' when calling updateUserProcessInstanceFilter";var o={userFilterId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/filters/processes/{userFilterId}","PUT",o,r,s,a,n,p,l,c,u)},this.updateUserTaskFilter=function(e,t){var n=t;if(void 0==e||null==e)throw"Missing the required parameter 'userFilterId' when calling updateUserTaskFilter";if(void 0==t||null==t)throw"Missing the required parameter 'userTaskFilterRepresentation' when calling updateUserTaskFilter";var o={userFilterId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/filters/tasks/{userFilterId}","PUT",o,r,s,a,n,p,l,c,u)}};return r})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138,"../model/UserFilterOrderRepresentation":152,"../model/UserProcessInstanceFilterRepresentation":153,"../model/UserTaskFilterRepresentation":155}],70:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UsersWorkflowApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getUsers=function(e){e=e||{};var i=null,n={},o={filter:e.filter,email:e.email,externalId:e.externalId,externalIdCaseInsensitive:e.externalIdCaseInsensitive,excludeTaskId:e.excludeTaskId,excludeProcessId:e.excludeProcessId,groupId:e.groupId,tenantId:e.tenantId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/users","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],71:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n){"function"==typeof e&&e.amd?e(["../../alfrescoApiClient","./model/AbstractGroupRepresentation","./model/AbstractRepresentation","./model/AbstractUserRepresentation","./model/AddGroupCapabilitiesRepresentation","./model/AppDefinition","./model/AppDefinitionPublishRepresentation","./model/AppDefinitionRepresentation","./model/AppDefinitionUpdateResultRepresentation","./model/AppModelDefinition","./model/ArrayNode","./model/BoxUserAccountCredentialsRepresentation","./model/BulkUserUpdateRepresentation","./model/ChangePasswordRepresentation","./model/ChecklistOrderRepresentation","./model/CommentRepresentation","./model/CompleteFormRepresentation","./model/ConditionRepresentation","./model/CreateEndpointBasicAuthRepresentation","./model/CreateProcessInstanceRepresentation","./model/CreateTenantRepresentation","./model/EndpointBasicAuthRepresentation","./model/EndpointConfigurationRepresentation","./model/EndpointRequestHeaderRepresentation","./model/EntityAttributeScopeRepresentation","./model/EntityVariableScopeRepresentation","./model/File","./model/FormDefinitionRepresentation","./model/FormFieldRepresentation","./model/FormJavascriptEventRepresentation","./model/FormOutcomeRepresentation","./model/FormRepresentation","./model/FormSaveRepresentation","./model/FormScopeRepresentation","./model/FormTabRepresentation","./model/FormValueRepresentation","./model/GroupCapabilityRepresentation","./model/GroupRepresentation","./model/ImageUploadRepresentation","./model/LayoutRepresentation","./model/LightAppRepresentation","./model/LightGroupRepresentation","./model/LightTenantRepresentation","./model/LightUserRepresentation","./model/MaplongListstring","./model/MapstringListEntityVariableScopeRepresentation","./model/MapstringListVariableScopeRepresentation","./model/Mapstringstring","./model/ModelRepresentation","./model/ObjectNode","./model/OptionRepresentation","./model/ProcessFilterRequestRepresentation","./model/ProcessInstanceFilterRepresentation","./model/ProcessInstanceFilterRequestRepresentation","./model/ProcessInstanceRepresentation","./model/ProcessInstanceVariableRepresentation","./model/ProcessScopeIdentifierRepresentation","./model/ProcessScopeRepresentation","./model/ProcessScopesRequestRepresentation","./model/PublishIdentityInfoRepresentation","./model/RelatedContentRepresentation","./model/ResetPasswordRepresentation","./model/RestVariable","./model/ResultListDataRepresentation","./model/RuntimeAppDefinitionSaveRepresentation","./model/SaveFormRepresentation","./model/SyncLogEntryRepresentation","./model/SystemPropertiesRepresentation","./model/TaskFilterRepresentation","./model/TaskFilterRequestRepresentation","./model/TaskQueryRequestRepresentation","./model/TaskRepresentation","./model/TaskUpdateRepresentation","./model/TenantEvent","./model/TenantRepresentation","./model/UserAccountCredentialsRepresentation","./model/UserActionRepresentation","./model/UserFilterOrderRepresentation","./model/UserProcessInstanceFilterRepresentation","./model/UserRepresentation","./model/UserTaskFilterRepresentation","./model/ValidationErrorRepresentation","./model/VariableScopeRepresentation","./api/AboutApi","./api/AdminEndpointsApi","./api/AdminGroupsApi","./api/AdminTenantsApi","./api/AdminUsersApi","./api/AlfrescoApi","./api/AppsApi","./api/AppsDefinitionApi","./api/AppsRuntimeApi","./api/CommentsApi","./api/ContentApi","./api/ContentRenditionApi","./api/EditorApi","./api/GroupsApi","./api/IDMSyncApi","./api/IntegrationApi","./api/IntegrationAccountApi","./api/IntegrationAlfrescoCloudApi","./api/IntegrationAlfrescoOnPremiseApi","./api/IntegrationBoxApi","./api/IntegrationDriveApi","./api/ModelBpmnApi","./api/ModelJsonBpmnApi","./api/ModelsApi","./api/ModelsHistoryApi","./api/ProcessApi","./api/ProcessDefinitionsApi","./api/ProcessDefinitionsFormApi","./api/ProcessInstancesApi","./api/ProcessInstancesInformationApi","./api/ProcessInstancesListingApi","./api/ProcessInstanceVariablesApi","./api/ProcessScopeApi","./api/ProfileApi","./api/ScriptFileApi","./api/SystemPropertiesApi","./api/TaskApi","./api/TaskActionsApi","./api/TaskCheckListApi","./api/TaskFormsApi","./api/TemporaryApi","./api/UserApi","./api/UserFiltersApi","./api/UsersWorkflowApi","./api/ReportApi"],n):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports&&(i.exports=n(t("../../alfrescoApiClient"),t("./model/AbstractGroupRepresentation"),t("./model/AbstractRepresentation"),t("./model/AbstractUserRepresentation"),t("./model/AddGroupCapabilitiesRepresentation"),t("./model/AppDefinition"),t("./model/AppDefinitionPublishRepresentation"),t("./model/AppDefinitionRepresentation"),t("./model/AppDefinitionUpdateResultRepresentation"),t("./model/AppModelDefinition"),t("./model/ArrayNode"),t("./model/BoxUserAccountCredentialsRepresentation"),t("./model/BulkUserUpdateRepresentation"),t("./model/ChangePasswordRepresentation"),t("./model/ChecklistOrderRepresentation"),t("./model/CommentRepresentation"),t("./model/CompleteFormRepresentation"),t("./model/ConditionRepresentation"),t("./model/CreateEndpointBasicAuthRepresentation"),t("./model/CreateProcessInstanceRepresentation"),t("./model/CreateTenantRepresentation"),t("./model/EndpointBasicAuthRepresentation"),t("./model/EndpointConfigurationRepresentation"),t("./model/EndpointRequestHeaderRepresentation"),t("./model/EntityAttributeScopeRepresentation"),t("./model/EntityVariableScopeRepresentation"),t("./model/File"),t("./model/FormDefinitionRepresentation"),t("./model/FormFieldRepresentation"),t("./model/FormJavascriptEventRepresentation"),t("./model/FormOutcomeRepresentation"),t("./model/FormRepresentation"),t("./model/FormSaveRepresentation"),t("./model/FormScopeRepresentation"),t("./model/FormTabRepresentation"),t("./model/FormValueRepresentation"),t("./model/GroupCapabilityRepresentation"),t("./model/GroupRepresentation"),t("./model/ImageUploadRepresentation"),t("./model/LayoutRepresentation"),t("./model/LightAppRepresentation"),t("./model/LightGroupRepresentation"),t("./model/LightTenantRepresentation"),t("./model/LightUserRepresentation"),t("./model/MaplongListstring"),t("./model/MapstringListEntityVariableScopeRepresentation"),t("./model/MapstringListVariableScopeRepresentation"),t("./model/Mapstringstring"),t("./model/ModelRepresentation"),t("./model/ObjectNode"),t("./model/OptionRepresentation"),t("./model/ProcessFilterRequestRepresentation"),t("./model/ProcessInstanceFilterRepresentation"),t("./model/ProcessInstanceFilterRequestRepresentation"),t("./model/ProcessInstanceRepresentation"),t("./model/ProcessInstanceVariableRepresentation"),t("./model/ProcessScopeIdentifierRepresentation"),t("./model/ProcessScopeRepresentation"),t("./model/ProcessScopesRequestRepresentation"),t("./model/PublishIdentityInfoRepresentation"),t("./model/RelatedContentRepresentation"),t("./model/ResetPasswordRepresentation"),t("./model/RestVariable"),t("./model/ResultListDataRepresentation"),t("./model/RuntimeAppDefinitionSaveRepresentation"),t("./model/SaveFormRepresentation"),t("./model/SyncLogEntryRepresentation"),t("./model/SystemPropertiesRepresentation"),t("./model/TaskFilterRepresentation"),t("./model/TaskFilterRequestRepresentation"),t("./model/TaskQueryRequestRepresentation"),t("./model/TaskRepresentation"),t("./model/TaskUpdateRepresentation"),t("./model/TenantEvent"),t("./model/TenantRepresentation"),t("./model/UserAccountCredentialsRepresentation"),t("./model/UserActionRepresentation"),t("./model/UserFilterOrderRepresentation"),t("./model/UserProcessInstanceFilterRepresentation"),t("./model/UserRepresentation"),t("./model/UserTaskFilterRepresentation"),t("./model/ValidationErrorRepresentation"),t("./model/VariableScopeRepresentation"),t("./api/AboutApi"),t("./api/AdminEndpointsApi"),t("./api/AdminGroupsApi"),t("./api/AdminTenantsApi"),t("./api/AdminUsersApi"),t("./api/AlfrescoApi"),t("./api/AppsApi"),t("./api/AppsDefinitionApi"),t("./api/AppsRuntimeApi"),t("./api/CommentsApi"),t("./api/ContentApi"),t("./api/ContentRenditionApi"),t("./api/EditorApi"),t("./api/GroupsApi"),t("./api/IDMSyncApi"),t("./api/IntegrationApi"),t("./api/IntegrationAccountApi"),t("./api/IntegrationAlfrescoCloudApi"),t("./api/IntegrationAlfrescoOnPremiseApi"),t("./api/IntegrationBoxApi"),t("./api/IntegrationDriveApi"),t("./api/ModelBpmnApi"),t("./api/ModelJsonBpmnApi"),t("./api/ModelsApi"),t("./api/ModelsHistoryApi"),t("./api/ProcessApi"),t("./api/ProcessDefinitionsApi"),t("./api/ProcessDefinitionsFormApi"),t("./api/ProcessInstancesApi"),t("./api/ProcessInstancesInformationApi"),t("./api/ProcessInstancesListingApi"),t("./api/ProcessInstanceVariablesApi"),t("./api/ProcessScopeApi"),t("./api/ProfileApi"),t("./api/ScriptFileApi"),t("./api/SystemPropertiesApi"),t("./api/TaskApi"),t("./api/TaskActionsApi"),t("./api/TaskCheckListApi"),t("./api/TaskFormsApi"),t("./api/TemporaryApi"),t("./api/UserApi"),t("./api/UserFiltersApi"),t("./api/UsersWorkflowApi"),t("./api/ReportApi"))); -}(function(e,t,i,n,o,r,s,a,p,l,c,u,d,f,y,m,h,v,A,b,g,C,R,P,w,S,T,I,j,O,E,k,M,F,x,N,_,D,B,L,q,U,G,V,z,H,Y,K,W,$,J,X,Q,Z,ee,te,ie,ne,oe,re,se,ae,pe,le,ce,ue,de,fe,ye,me,he,ve,Ae,be,ge,Ce,Re,Pe,we,Se,Te,Ie,je,Oe,Ee,ke,Me,Fe,xe,Ne,_e,De,Be,Le,qe,Ue,Ge,Ve,ze,He,Ye,Ke,We,$e,Je,Xe,Qe,Ze,et,tt,it,nt,ot,rt,st,at,pt,lt,ct,ut,dt,ft,yt,mt,ht,vt,At,bt){var gt={ApiClient:e,AbstractGroupRepresentation:t,AbstractRepresentation:i,AbstractUserRepresentation:n,AddGroupCapabilitiesRepresentation:o,AppDefinition:r,AppDefinitionPublishRepresentation:s,AppDefinitionRepresentation:a,AppDefinitionUpdateResultRepresentation:p,AppModelDefinition:l,ArrayNode:c,BoxUserAccountCredentialsRepresentation:u,BulkUserUpdateRepresentation:d,ChangePasswordRepresentation:f,ChecklistOrderRepresentation:y,CommentRepresentation:m,CompleteFormRepresentation:h,ConditionRepresentation:v,CreateEndpointBasicAuthRepresentation:A,CreateProcessInstanceRepresentation:b,CreateTenantRepresentation:g,EndpointBasicAuthRepresentation:C,EndpointConfigurationRepresentation:R,EndpointRequestHeaderRepresentation:P,EntityAttributeScopeRepresentation:w,EntityVariableScopeRepresentation:S,File:T,FormDefinitionRepresentation:I,FormFieldRepresentation:j,FormJavascriptEventRepresentation:O,FormOutcomeRepresentation:E,FormRepresentation:k,FormSaveRepresentation:M,FormScopeRepresentation:F,FormTabRepresentation:x,FormValueRepresentation:N,GroupCapabilityRepresentation:_,GroupRepresentation:D,ImageUploadRepresentation:B,LayoutRepresentation:L,LightAppRepresentation:q,LightGroupRepresentation:U,LightTenantRepresentation:G,LightUserRepresentation:V,MaplongListstring:z,MapstringListEntityVariableScopeRepresentation:H,MapstringListVariableScopeRepresentation:Y,Mapstringstring:K,ModelRepresentation:W,ObjectNode:$,OptionRepresentation:J,ProcessFilterRequestRepresentation:X,ProcessInstanceFilterRepresentation:Q,ProcessInstanceFilterRequestRepresentation:Z,ProcessInstanceRepresentation:ee,ProcessInstanceVariableRepresentation:te,ProcessScopeIdentifierRepresentation:ie,ProcessScopeRepresentation:ne,ProcessScopesRequestRepresentation:oe,PublishIdentityInfoRepresentation:re,RelatedContentRepresentation:se,ResetPasswordRepresentation:ae,RestVariable:pe,ResultListDataRepresentation:le,RuntimeAppDefinitionSaveRepresentation:ce,SaveFormRepresentation:ue,SyncLogEntryRepresentation:de,SystemPropertiesRepresentation:fe,TaskFilterRepresentation:ye,TaskFilterRequestRepresentation:me,TaskQueryRequestRepresentation:he,TaskRepresentation:ve,TaskUpdateRepresentation:Ae,TenantEvent:be,TenantRepresentation:ge,UserAccountCredentialsRepresentation:Ce,UserActionRepresentation:Re,UserFilterOrderRepresentation:Pe,UserProcessInstanceFilterRepresentation:we,UserRepresentation:Se,UserTaskFilterRepresentation:Te,ValidationErrorRepresentation:Ie,VariableScopeRepresentation:je,AboutApi:Oe,AdminEndpointsApi:Ee,AdminGroupsApi:ke,AdminTenantsApi:Me,AdminUsersApi:Fe,AlfrescoApi:xe,AppsApi:Ne,AppsDefinitionApi:_e,AppsRuntimeApi:De,CommentsApi:Be,ContentApi:Le,ContentRenditionApi:qe,EditorApi:Ue,GroupsApi:Ge,IDMSyncApi:Ve,IntegrationApi:ze,IntegrationAccountApi:He,IntegrationAlfrescoCloudApi:Ye,IntegrationAlfrescoOnPremiseApi:Ke,IntegrationBoxApi:We,IntegrationDriveApi:$e,ModelBpmnApi:Je,ModelJsonBpmnApi:Xe,ModelsApi:Qe,ModelsHistoryApi:Ze,ProcessApi:et,ProcessDefinitionsApi:tt,ProcessDefinitionsFormApi:it,ProcessInstancesApi:nt,ProcessInstancesInformationApi:ot,ProcessInstancesListingApi:rt,ProcessScopeApi:at,ProcessInstanceVariablesApi:st,ProfileApi:pt,ScriptFileApi:lt,SystemPropertiesApi:ct,TaskApi:ut,TaskActionsApi:dt,TaskCheckListApi:ft,TaskFormsApi:yt,TemporaryApi:mt,UserApi:ht,UserFiltersApi:vt,UsersWorkflowApi:At,ReportApi:bt};return gt})},{"../../alfrescoApiClient":295,"./api/AboutApi":26,"./api/AdminEndpointsApi":27,"./api/AdminGroupsApi":28,"./api/AdminTenantsApi":29,"./api/AdminUsersApi":30,"./api/AlfrescoApi":31,"./api/AppsApi":32,"./api/AppsDefinitionApi":33,"./api/AppsRuntimeApi":34,"./api/CommentsApi":35,"./api/ContentApi":36,"./api/ContentRenditionApi":37,"./api/EditorApi":38,"./api/GroupsApi":39,"./api/IDMSyncApi":40,"./api/IntegrationAccountApi":41,"./api/IntegrationAlfrescoCloudApi":42,"./api/IntegrationAlfrescoOnPremiseApi":43,"./api/IntegrationApi":44,"./api/IntegrationBoxApi":45,"./api/IntegrationDriveApi":46,"./api/ModelBpmnApi":47,"./api/ModelJsonBpmnApi":48,"./api/ModelsApi":49,"./api/ModelsHistoryApi":50,"./api/ProcessApi":51,"./api/ProcessDefinitionsApi":52,"./api/ProcessDefinitionsFormApi":53,"./api/ProcessInstanceVariablesApi":54,"./api/ProcessInstancesApi":55,"./api/ProcessInstancesInformationApi":56,"./api/ProcessInstancesListingApi":57,"./api/ProcessScopeApi":58,"./api/ProfileApi":59,"./api/ReportApi":60,"./api/ScriptFileApi":61,"./api/SystemPropertiesApi":62,"./api/TaskActionsApi":63,"./api/TaskApi":64,"./api/TaskCheckListApi":65,"./api/TaskFormsApi":66,"./api/TemporaryApi":67,"./api/UserApi":68,"./api/UserFiltersApi":69,"./api/UsersWorkflowApi":70,"./model/AbstractGroupRepresentation":72,"./model/AbstractRepresentation":73,"./model/AbstractUserRepresentation":74,"./model/AddGroupCapabilitiesRepresentation":75,"./model/AppDefinition":76,"./model/AppDefinitionPublishRepresentation":77,"./model/AppDefinitionRepresentation":78,"./model/AppDefinitionUpdateResultRepresentation":79,"./model/AppModelDefinition":80,"./model/ArrayNode":81,"./model/BoxUserAccountCredentialsRepresentation":82,"./model/BulkUserUpdateRepresentation":83,"./model/ChangePasswordRepresentation":84,"./model/ChecklistOrderRepresentation":86,"./model/CommentRepresentation":87,"./model/CompleteFormRepresentation":88,"./model/ConditionRepresentation":89,"./model/CreateEndpointBasicAuthRepresentation":90,"./model/CreateProcessInstanceRepresentation":91,"./model/CreateTenantRepresentation":92,"./model/EndpointBasicAuthRepresentation":93,"./model/EndpointConfigurationRepresentation":94,"./model/EndpointRequestHeaderRepresentation":95,"./model/EntityAttributeScopeRepresentation":96,"./model/EntityVariableScopeRepresentation":97,"./model/File":98,"./model/FormDefinitionRepresentation":99,"./model/FormFieldRepresentation":100,"./model/FormJavascriptEventRepresentation":101,"./model/FormOutcomeRepresentation":102,"./model/FormRepresentation":103,"./model/FormSaveRepresentation":104,"./model/FormScopeRepresentation":105,"./model/FormTabRepresentation":106,"./model/FormValueRepresentation":107,"./model/GroupCapabilityRepresentation":108,"./model/GroupRepresentation":109,"./model/ImageUploadRepresentation":110,"./model/LayoutRepresentation":111,"./model/LightAppRepresentation":112,"./model/LightGroupRepresentation":113,"./model/LightTenantRepresentation":114,"./model/LightUserRepresentation":115,"./model/MaplongListstring":116,"./model/MapstringListEntityVariableScopeRepresentation":117,"./model/MapstringListVariableScopeRepresentation":118,"./model/Mapstringstring":119,"./model/ModelRepresentation":120,"./model/ObjectNode":121,"./model/OptionRepresentation":122,"./model/ProcessFilterRequestRepresentation":124,"./model/ProcessInstanceFilterRepresentation":125,"./model/ProcessInstanceFilterRequestRepresentation":126,"./model/ProcessInstanceRepresentation":127,"./model/ProcessInstanceVariableRepresentation":128,"./model/ProcessScopeIdentifierRepresentation":129,"./model/ProcessScopeRepresentation":130,"./model/ProcessScopesRequestRepresentation":131,"./model/PublishIdentityInfoRepresentation":132,"./model/RelatedContentRepresentation":133,"./model/ResetPasswordRepresentation":136,"./model/RestVariable":137,"./model/ResultListDataRepresentation":138,"./model/RuntimeAppDefinitionSaveRepresentation":139,"./model/SaveFormRepresentation":140,"./model/SyncLogEntryRepresentation":141,"./model/SystemPropertiesRepresentation":142,"./model/TaskFilterRepresentation":143,"./model/TaskFilterRequestRepresentation":144,"./model/TaskQueryRequestRepresentation":145,"./model/TaskRepresentation":146,"./model/TaskUpdateRepresentation":147,"./model/TenantEvent":148,"./model/TenantRepresentation":149,"./model/UserAccountCredentialsRepresentation":150,"./model/UserActionRepresentation":151,"./model/UserFilterOrderRepresentation":152,"./model/UserProcessInstanceFilterRepresentation":153,"./model/UserRepresentation":154,"./model/UserTaskFilterRepresentation":155,"./model/ValidationErrorRepresentation":156,"./model/VariableScopeRepresentation":157}],72:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AbstractGroupRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("externalId")&&(n.externalId=e.convertToType(i.externalId,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("status")&&(n.status=e.convertToType(i.status,"String"))),n},t.prototype.externalId=void 0,t.prototype.id=void 0,t.prototype.name=void 0,t.prototype.status=void 0,t})},{"../../../alfrescoApiClient":295}],73:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AbstractRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(e,i){return e&&(i=e||new t),i},t})},{"../../../alfrescoApiClient":295}],74:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AbstractUserRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("email")&&(n.email=e.convertToType(i.email,"String")),i.hasOwnProperty("externalId")&&(n.externalId=e.convertToType(i.externalId,"String")),i.hasOwnProperty("firstName")&&(n.firstName=e.convertToType(i.firstName,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("lastName")&&(n.lastName=e.convertToType(i.lastName,"String")),i.hasOwnProperty("pictureId")&&(n.pictureId=e.convertToType(i.pictureId,"Integer"))),n},t.prototype.email=void 0,t.prototype.externalId=void 0,t.prototype.firstName=void 0,t.prototype.id=void 0,t.prototype.lastName=void 0,t.prototype.pictureId=void 0,t})},{"../../../alfrescoApiClient":295}],75:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AddGroupCapabilitiesRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("capabilities")&&(n.capabilities=e.convertToType(i.capabilities,["String"]))),n},t.prototype.capabilities=void 0,t})},{"../../../alfrescoApiClient":295}],76:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/AppModelDefinition","../model/PublishIdentityInfoRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./AppModelDefinition"),t("./PublishIdentityInfoRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppDefinition=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.AppModelDefinition,n.ActivitiPublicRestApi.PublishIdentityInfoRepresentation))}(void 0,function(e,t,i){var n=function(){};return n.constructFromObject=function(o,r){return o&&(r=o||new n,o.hasOwnProperty("icon")&&(r.icon=e.convertToType(o.icon,"String")),o.hasOwnProperty("models")&&(r.models=e.convertToType(o.models,[t])),o.hasOwnProperty("publishIdentityInfo")&&(r.publishIdentityInfo=e.convertToType(o.publishIdentityInfo,[i])),o.hasOwnProperty("theme")&&(r.theme=e.convertToType(o.theme,"String"))),r},n.prototype.icon=void 0,n.prototype.models=void 0,n.prototype.publishIdentityInfo=void 0,n.prototype.theme=void 0,n})},{"../../../alfrescoApiClient":295,"./AppModelDefinition":80,"./PublishIdentityInfoRepresentation":132}],77:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppDefinitionPublishRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("comment")&&(n.comment=e.convertToType(i.comment,"String")),i.hasOwnProperty("force")&&(n.force=e.convertToType(i.force,"Boolean"))),n},t.prototype.comment=void 0,t.prototype.force=void 0,t})},{"../../../alfrescoApiClient":295}],78:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppDefinitionRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("defaultAppId")&&(n.defaultAppId=e.convertToType(i.defaultAppId,"String")),i.hasOwnProperty("deploymentId")&&(n.deploymentId=e.convertToType(i.deploymentId,"String")),i.hasOwnProperty("description")&&(n.description=e.convertToType(i.description,"String")),i.hasOwnProperty("icon")&&(n.icon=e.convertToType(i.icon,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("modelId")&&(n.modelId=e.convertToType(i.modelId,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("tenantId")&&(n.tenantId=e.convertToType(i.tenantId,"Integer")),i.hasOwnProperty("theme")&&(n.theme=e.convertToType(i.theme,"String"))),n},t.prototype.defaultAppId=void 0,t.prototype.deploymentId=void 0,t.prototype.description=void 0,t.prototype.icon=void 0,t.prototype.id=void 0,t.prototype.modelId=void 0,t.prototype.name=void 0,t.prototype.tenantId=void 0,t.prototype.theme=void 0,t})},{"../../../alfrescoApiClient":295}],79:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/AppDefinitionRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./AppDefinitionRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppDefinitionUpdateResultRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.AppDefinitionRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("appDefinition")&&(o.appDefinition=t.constructFromObject(n.appDefinition)),n.hasOwnProperty("customData")&&(o.customData=e.convertToType(n.customData,Object)),n.hasOwnProperty("error")&&(o.error=e.convertToType(n.error,"Boolean")),n.hasOwnProperty("errorDescription")&&(o.errorDescription=e.convertToType(n.errorDescription,"String")),n.hasOwnProperty("errorType")&&(o.errorType=e.convertToType(n.errorType,"Integer")),n.hasOwnProperty("message")&&(o.message=e.convertToType(n.message,"String")),n.hasOwnProperty("messageKey")&&(o.messageKey=e.convertToType(n.messageKey,"String"))),o},i.prototype.appDefinition=void 0,i.prototype.customData=void 0,i.prototype.error=void 0,i.prototype.errorDescription=void 0,i.prototype.errorType=void 0,i.prototype.message=void 0,i.prototype.messageKey=void 0,i})},{"../../../alfrescoApiClient":295,"./AppDefinitionRepresentation":78}],80:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppModelDefinition=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("createdBy")&&(n.createdBy=e.convertToType(i.createdBy,"Integer")),i.hasOwnProperty("createdByFullName")&&(n.createdByFullName=e.convertToType(i.createdByFullName,"String")),i.hasOwnProperty("description")&&(n.description=e.convertToType(i.description,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("lastUpdated")&&(n.lastUpdated=e.convertToType(i.lastUpdated,"Date")),i.hasOwnProperty("lastUpdatedBy")&&(n.lastUpdatedBy=e.convertToType(i.lastUpdatedBy,"Integer")),i.hasOwnProperty("lastUpdatedByFullName")&&(n.lastUpdatedByFullName=e.convertToType(i.lastUpdatedByFullName,"String")),i.hasOwnProperty("modelType")&&(n.modelType=e.convertToType(i.modelType,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("stencilSetId")&&(n.stencilSetId=e.convertToType(i.stencilSetId,"Integer")),i.hasOwnProperty("version")&&(n.version=e.convertToType(i.version,"Integer"))),n},t.prototype.createdBy=void 0,t.prototype.createdByFullName=void 0,t.prototype.description=void 0,t.prototype.id=void 0,t.prototype.lastUpdated=void 0,t.prototype.lastUpdatedBy=void 0,t.prototype.lastUpdatedByFullName=void 0,t.prototype.modelType=void 0,t.prototype.name=void 0,t.prototype.stencilSetId=void 0,t.prototype.version=void 0,t})},{"../../../alfrescoApiClient":295}],81:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ArrayNode=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("array")&&(n.array=e.convertToType(i.array,"Boolean")),i.hasOwnProperty("bigDecimal")&&(n.bigDecimal=e.convertToType(i.bigDecimal,"Boolean")),i.hasOwnProperty("bigInteger")&&(n.bigInteger=e.convertToType(i.bigInteger,"Boolean")),i.hasOwnProperty("binary")&&(n.binary=e.convertToType(i.binary,"Boolean")),i.hasOwnProperty("boolean")&&(n.boolean=e.convertToType(i.boolean,"Boolean")),i.hasOwnProperty("containerNode")&&(n.containerNode=e.convertToType(i.containerNode,"Boolean")),i.hasOwnProperty("double")&&(n.double=e.convertToType(i.double,"Boolean")),i.hasOwnProperty("float")&&(n.float=e.convertToType(i.float,"Boolean")),i.hasOwnProperty("floatingPointNumber")&&(n.floatingPointNumber=e.convertToType(i.floatingPointNumber,"Boolean")),i.hasOwnProperty("int")&&(n.int=e.convertToType(i.int,"Boolean")),i.hasOwnProperty("integralNumber")&&(n.integralNumber=e.convertToType(i.integralNumber,"Boolean")),i.hasOwnProperty("long")&&(n.long=e.convertToType(i.long,"Boolean")),i.hasOwnProperty("missingNode")&&(n.missingNode=e.convertToType(i.missingNode,"Boolean")),i.hasOwnProperty("nodeType")&&(n.nodeType=e.convertToType(i.nodeType,"String")),i.hasOwnProperty("null")&&(n.null=e.convertToType(i.null,"Boolean")),i.hasOwnProperty("number")&&(n.number=e.convertToType(i.number,"Boolean")),i.hasOwnProperty("object")&&(n.object=e.convertToType(i.object,"Boolean")),i.hasOwnProperty("pojo")&&(n.pojo=e.convertToType(i.pojo,"Boolean")),i.hasOwnProperty("short")&&(n.short=e.convertToType(i.short,"Boolean")),i.hasOwnProperty("textual")&&(n.textual=e.convertToType(i.textual,"Boolean")),i.hasOwnProperty("valueNode")&&(n.valueNode=e.convertToType(i.valueNode,"Boolean"))),n},t.prototype.array=void 0,t.prototype.bigDecimal=void 0,t.prototype.bigInteger=void 0,t.prototype.binary=void 0,t.prototype.boolean=void 0,t.prototype.containerNode=void 0,t.prototype.double=void 0,t.prototype.float=void 0,t.prototype.floatingPointNumber=void 0,t.prototype.int=void 0,t.prototype.integralNumber=void 0,t.prototype.long=void 0,t.prototype.missingNode=void 0,t.prototype.nodeType=void 0,t.prototype.null=void 0,t.prototype.number=void 0,t.prototype.object=void 0,t.prototype.pojo=void 0,t.prototype.short=void 0,t.prototype.textual=void 0,t.prototype.valueNode=void 0,t.NodeTypeEnum={ARRAY:"ARRAY",BINARY:"BINARY",BOOLEAN:"BOOLEAN",MISSING:"MISSING",NULL:"NULL",NUMBER:"NUMBER",OBJECT:"OBJECT",POJO:"POJO",STRING:"STRING"},t})},{"../../../alfrescoApiClient":295}],82:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.BoxUserAccountCredentialsRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("authenticationURL")&&(n.authenticationURL=e.convertToType(i.authenticationURL,"String")),i.hasOwnProperty("expireDate")&&(n.expireDate=e.convertToType(i.expireDate,"Date")),i.hasOwnProperty("ownerEmail")&&(n.ownerEmail=e.convertToType(i.ownerEmail,"String"))),n},t.prototype.authenticationURL=void 0,t.prototype.expireDate=void 0,t.prototype.ownerEmail=void 0,t})},{"../../../alfrescoApiClient":295}],83:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.BulkUserUpdateRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("accountType")&&(n.accountType=e.convertToType(i.accountType,"String")),i.hasOwnProperty("password")&&(n.password=e.convertToType(i.password,"String")),i.hasOwnProperty("sendNotifications")&&(n.sendNotifications=e.convertToType(i.sendNotifications,"Boolean")),i.hasOwnProperty("status")&&(n.status=e.convertToType(i.status,"String")),i.hasOwnProperty("tenantId")&&(n.tenantId=e.convertToType(i.tenantId,"Integer")),i.hasOwnProperty("users")&&(n.users=e.convertToType(i.users,["Integer"]))),n},t.prototype.accountType=void 0,t.prototype.password=void 0,t.prototype.sendNotifications=void 0,t.prototype.status=void 0,t.prototype.tenantId=void 0,t.prototype.users=void 0,t})},{"../../../alfrescoApiClient":295}],84:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ChangePasswordRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("newPassword")&&(n.newPassword=e.convertToType(i.newPassword,"String")),i.hasOwnProperty("oldPassword")&&(n.oldPassword=e.convertToType(i.oldPassword,"String"))),n},t.prototype.newPassword=void 0,t.prototype.oldPassword=void 0,t})},{"../../../alfrescoApiClient":295}],85:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.Chart=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"String")),i.hasOwnProperty("type")&&(n.type=e.convertToType(i.type,"String"))),n},t.prototype.id=void 0,t.prototype.type=void 0,t})},{"../../../alfrescoApiClient":295}],86:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ChecklistOrderRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("order")&&(n.order=e.convertToType(i.order,["String"]))),n},t.prototype.order=void 0,t})},{"../../../alfrescoApiClient":295}],87:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/LightUserRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./LightUserRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.CommentRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.LightUserRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("created")&&(o.created=e.convertToType(n.created,"Date")),n.hasOwnProperty("createdBy")&&(o.createdBy=t.constructFromObject(n.createdBy)),n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"Integer")),n.hasOwnProperty("message")&&(o.message=e.convertToType(n.message,"String"))),o},i.prototype.created=void 0,i.prototype.createdBy=void 0,i.prototype.id=void 0,i.prototype.message=void 0,i})},{"../../../alfrescoApiClient":295,"./LightUserRepresentation":115}],88:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.CompleteFormRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("outcome")&&(n.outcome=e.convertToType(i.outcome,"String")),i.hasOwnProperty("values")&&(n.values=e.convertToType(i.values,Object))),n},t.prototype.outcome=void 0,t.prototype.values=void 0,t})},{"../../../alfrescoApiClient":295}],89:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ConditionRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("leftFormFieldId")&&(n.leftFormFieldId=e.convertToType(i.leftFormFieldId,"String")),i.hasOwnProperty("leftRestResponseId")&&(n.leftRestResponseId=e.convertToType(i.leftRestResponseId,"String")),i.hasOwnProperty("nextConditionOperator")&&(n.nextConditionOperator=e.convertToType(i.nextConditionOperator,"String")),i.hasOwnProperty("operator")&&(n.operator=e.convertToType(i.operator,"String")),i.hasOwnProperty("rightFormFieldId")&&(n.rightFormFieldId=e.convertToType(i.rightFormFieldId,"String")),i.hasOwnProperty("rightRestResponseId")&&(n.rightRestResponseId=e.convertToType(i.rightRestResponseId,"String")),i.hasOwnProperty("rightType")&&(n.rightType=e.convertToType(i.rightType,"String")), +!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.AlfrescoApi=e()}}(function(){var e;return function e(t,i,n){function o(s,a){if(!i[s]){if(!t[s]){var p="function"==typeof require&&require;if(!a&&p)return p(s,!0);if(r)return r(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var c=i[s]={exports:{}};t[s][0].call(c.exports,function(e){var i=t[s][1][e];return o(i?i:e)},c,c.exports,e,t,i,n)}return i[s].exports}for(var r="function"==typeof require&&require,s=0;s0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function o(e){return 3*e.length/4-n(e)}function r(e){var t,i,o,r,s,a,p=e.length;s=n(e),a=new u(3*p/4-s),o=s>0?p-4:p;var l=0;for(t=0,i=0;t>16&255,a[l++]=r>>8&255,a[l++]=255&r;return 2===s?(r=c[e.charCodeAt(t)]<<2|c[e.charCodeAt(t+1)]>>4,a[l++]=255&r):1===s&&(r=c[e.charCodeAt(t)]<<10|c[e.charCodeAt(t+1)]<<4|c[e.charCodeAt(t+2)]>>2,a[l++]=r>>8&255,a[l++]=255&r),a}function s(e){return l[e>>18&63]+l[e>>12&63]+l[e>>6&63]+l[63&e]}function a(e,t,i){for(var n,o=[],r=t;rc?c:p+s));return 1===n?(t=e[i-1],o+=l[t>>2],o+=l[t<<4&63],o+="=="):2===n&&(t=(e[i-2]<<8)+e[i-1],o+=l[t>>10],o+=l[t>>4&63],o+=l[t<<2&63],o+="="),r.push(o),r.join("")}i.byteLength=o,i.toByteArray=r,i.fromByteArray=p;for(var l=[],c=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,y=d.length;f=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function h(e){return+e!=e&&(e=0),s.alloc(+e)}function v(e,t){if(s.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var i=e.length;if(0===i)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return W(e).length;default:if(n)return H(e).length;t=(""+t).toLowerCase(),n=!0}}function A(e,t,i){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if(i>>>=0,t>>>=0,i<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return k(this,t,i);case"utf8":case"utf-8":return O(this,t,i);case"ascii":return M(this,t,i);case"latin1":case"binary":return F(this,t,i);case"base64":return j(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,i);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function b(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function g(e,t,i,n,o){if(0===e.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=o?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(o)return-1;i=e.length-1}else if(i<0){if(!o)return-1;i=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:C(e,t,i,n,o);if("number"==typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):C(e,[t],i,n,o);throw new TypeError("val must be string, number or Buffer")}function C(e,t,i,n,o){function r(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}var s=1,a=e.length,p=t.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,p/=2,i/=2}var l;if(o){var c=-1;for(l=i;la&&(i=a-p),l=i;l>=0;l--){for(var u=!0,d=0;do&&(n=o)):n=o;var r=t.length;if(r%2!==0)throw new TypeError("Invalid hex string");n>r/2&&(n=r/2);for(var s=0;s239?4:r>223?3:r>191?2:1;if(o+a<=i){var p,l,c,u;switch(a){case 1:r<128&&(s=r);break;case 2:p=e[o+1],128===(192&p)&&(u=(31&r)<<6|63&p,u>127&&(s=u));break;case 3:p=e[o+1],l=e[o+2],128===(192&p)&&128===(192&l)&&(u=(15&r)<<12|(63&p)<<6|63&l,u>2047&&(u<55296||u>57343)&&(s=u));break;case 4:p=e[o+1],l=e[o+2],c=e[o+3],128===(192&p)&&128===(192&l)&&128===(192&c)&&(u=(15&r)<<18|(63&p)<<12|(63&l)<<6|63&c,u>65535&&u<1114112&&(s=u))}}null===s?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),o+=a}return E(n)}function E(e){var t=e.length;if(t<=ee)return String.fromCharCode.apply(String,e);for(var i="",n=0;nn)&&(i=n);for(var o="",r=t;ri)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,i,n,o,r){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function B(e,t,i,n){t<0&&(t=65535+t+1);for(var o=0,r=Math.min(e.length-i,2);o>>8*(n?o:1-o)}function _(e,t,i,n){t<0&&(t=4294967295+t+1);for(var o=0,r=Math.min(e.length-i,4);o>>8*(n?o:3-o)&255}function L(e,t,i,n,o,r){if(i+n>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function q(e,t,i,n,o){return o||L(e,t,i,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(e,t,i,n,23,4),i+4}function U(e,t,i,n,o){return o||L(e,t,i,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(e,t,i,n,52,8),i+8}function G(e){if(e=V(e).replace(te,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function V(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){t=t||1/0;for(var i,n=e.length,o=null,r=[],s=0;s55295&&i<57344){if(!o){if(i>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&r.push(239,191,189);continue}o=i;continue}if(i<56320){(t-=3)>-1&&r.push(239,191,189),o=i;continue}i=(o-55296<<10|i-56320)+65536}else o&&(t-=3)>-1&&r.push(239,191,189);if(o=null,i<128){if((t-=1)<0)break;r.push(i)}else if(i<2048){if((t-=2)<0)break;r.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;r.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return r}function Y(e){for(var t=[],i=0;i>8,o=i%256,r.push(o),r.push(n);return r}function W(e){return X.toByteArray(G(e))}function $(e,t,i,n){for(var o=0;o=t.length||o>=e.length);++o)t[o+i]=e[o];return o}function J(e){return e!==e}var X=e("base64-js"),Q=e("ieee754"),Z=e("isarray");i.Buffer=s,i.SlowBuffer=h,i.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:n(),i.kMaxLength=o(),s.poolSize=8192,s._augment=function(e){return e.__proto__=s.prototype,e},s.from=function(e,t,i){return a(null,e,t,i)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(e,t,i){return l(null,e,t,i)},s.allocUnsafe=function(e){return c(null,e)},s.allocUnsafeSlow=function(e){return c(null,e)},s.isBuffer=function(e){return!(null==e||!e._isBuffer)},s.compare=function(e,t){if(!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var i=e.length,n=t.length,o=0,r=Math.min(i,n);o0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},s.prototype.compare=function(e,t,i,n,o){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||i>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=i)return 0;if(n>=o)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,o>>>=0,this===e)return 0;for(var r=o-n,a=i-t,p=Math.min(r,a),l=this.slice(n,o),c=e.slice(t,i),u=0;uo)&&(i=o),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var r=!1;;)switch(n){case"hex":return R(this,e,t,i);case"utf8":case"utf-8":return P(this,e,t,i);case"ascii":return w(this,e,t,i);case"latin1":case"binary":return S(this,e,t,i);case"base64":return T(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,i);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),r=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ee=4096;s.prototype.slice=function(e,t){var i=this.length;e=~~e,t=void 0===t?i:~~t,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t0&&(o*=256);)n+=this[e+--t]*o;return n},s.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,i){e|=0,t|=0,i||N(e,t,this.length);for(var n=this[e],o=1,r=0;++r=o&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,i){e|=0,t|=0,i||N(e,t,this.length);for(var n=t,o=1,r=this[e+--n];n>0&&(o*=256);)r+=this[e+--n]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},s.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},s.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},s.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),Q.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),Q.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),Q.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),Q.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,i,n){if(e=+e,t|=0,i|=0,!n){var o=Math.pow(2,8*i)-1;D(this,e,t,i,o,0)}var r=1,s=0;for(this[t]=255&e;++s=0&&(s*=256);)this[t+r]=e/s&255;return t+i},s.prototype.writeUInt8=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},s.prototype.writeUInt16BE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},s.prototype.writeUInt32LE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):_(this,e,t,!0),t+4},s.prototype.writeUInt32BE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):_(this,e,t,!1),t+4},s.prototype.writeIntLE=function(e,t,i,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*i-1);D(this,e,t,i,o-1,-o)}var r=0,s=1,a=0;for(this[t]=255&e;++r>0)-a&255;return t+i},s.prototype.writeIntBE=function(e,t,i,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*i-1);D(this,e,t,i,o-1,-o)}var r=i-1,s=1,a=0;for(this[t+r]=255&e;--r>=0&&(s*=256);)e<0&&0===a&&0!==this[t+r+1]&&(a=1),this[t+r]=(e/s>>0)-a&255;return t+i},s.prototype.writeInt8=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},s.prototype.writeInt16BE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},s.prototype.writeInt32LE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):_(this,e,t,!0),t+4},s.prototype.writeInt32BE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):_(this,e,t,!1),t+4},s.prototype.writeFloatLE=function(e,t,i){return q(this,e,t,!0,i)},s.prototype.writeFloatBE=function(e,t,i){return q(this,e,t,!1,i)},s.prototype.writeDoubleLE=function(e,t,i){return U(this,e,t,!0,i)},s.prototype.writeDoubleBE=function(e,t,i){return U(this,e,t,!1,i)},s.prototype.copy=function(e,t,i,n){if(i||(i=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--o)e[o+t]=this[o+i];else if(r<1e3||!s.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,i=void 0===i?this.length:i>>>0,e||(e=0);var r;if("number"==typeof e)for(r=t;r-1}},{}],21:[function(e,t,i){"use strict";var n,o,r,s,a,p,l,c=e("d"),u=e("es5-ext/object/valid-callable"),d=Function.prototype.apply,f=Function.prototype.call,y=Object.create,m=Object.defineProperty,h=Object.defineProperties,v=Object.prototype.hasOwnProperty,A={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var i;return u(t),v.call(this,"__ee__")?i=this.__ee__:(i=A.value=y(null),m(this,"__ee__",A),A.value=null),i[e]?"object"==typeof i[e]?i[e].push(t):i[e]=[i[e],t]:i[e]=t,this},o=function(e,t){var i,o;return u(t),o=this,n.call(this,e,i=function(){r.call(o,e,i),d.call(t,this,arguments)}),i.__eeOnceListener__=t,this},r=function(e,t){var i,n,o,r;if(u(t),!v.call(this,"__ee__"))return this;if(i=this.__ee__,!i[e])return this;if(n=i[e],"object"==typeof n)for(r=0;o=n[r];++r)o!==t&&o.__eeOnceListener__!==t||(2===n.length?i[e]=n[r?0:1]:n.splice(r,1));else n!==t&&n.__eeOnceListener__!==t||delete i[e];return this},s=function(e){var t,i,n,o,r;if(v.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(i=arguments.length,r=new Array(i-1),t=1;t>1,c=-7,u=i?o-1:0,d=i?-1:1,f=e[t+u];for(u+=d,r=f&(1<<-c)-1,f>>=-c,c+=a;c>0;r=256*r+e[t+u],u+=d,c-=8);for(s=r&(1<<-c)-1,r>>=-c,c+=n;c>0;s=256*s+e[t+u],u+=d,c-=8);if(0===r)r=1-l;else{if(r===p)return s?NaN:(f?-1:1)*(1/0);s+=Math.pow(2,n),r-=l}return(f?-1:1)*s*Math.pow(2,r-n)},i.write=function(e,t,i,n,o,r){var s,a,p,l=8*r-o-1,c=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:r-1,y=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(p=Math.pow(2,-s))<1&&(s--,p*=2),t+=s+u>=1?d/p:d*Math.pow(2,1-u),t*p>=2&&(s++,p/=2),s+u>=c?(a=0,s=c):s+u>=1?(a=(t*p-1)*Math.pow(2,o),s+=u):(a=t*Math.pow(2,u-1)*Math.pow(2,o),s=0));o>=8;e[i+f]=255&a,f+=y,a/=256,o-=8);for(s=s<0;e[i+f]=255&s,f+=y,s/=256,l-=8);e[i+f-y]|=128*m}},{}],23:[function(t,i,n){(function(t){(function(){function o(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function s(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}function a(e,t,i,n){for(var o=-1,r=null==e?0:e.length;++o-1}function f(e,t,i){for(var n=-1,o=null==e?0:e.length;++n-1;);return i}function _(e,t){for(var i=e.length;i--&&P(t,e[i],0)>-1;);return i}function L(e,t){for(var i=e.length,n=0;i--;)e[i]===t&&++n;return n}function q(e){return"\\"+en[e]}function U(e,t){return null==e?ne:e[t]}function G(e){return Hi.test(e)}function V(e){return Yi.test(e)}function z(e){for(var t,i=[];!(t=e.next()).done;)i.push(t.value);return i}function H(e){var t=-1,i=Array(e.size);return e.forEach(function(e,n){i[++t]=[n,e]}),i}function Y(e,t){return function(i){ +return e(t(i))}}function K(e,t){for(var i=-1,n=e.length,o=0,r=[];++i>>1,qe=[["ary",Pe],["bind",he],["bindKey",ve],["curry",be],["curryRight",ge],["flip",Se],["partial",Ce],["partialRight",Re],["rearg",we]],Ue="[object Arguments]",Ge="[object Array]",Ve="[object AsyncFunction]",ze="[object Boolean]",He="[object Date]",Ye="[object DOMException]",Ke="[object Error]",We="[object Function]",$e="[object GeneratorFunction]",Je="[object Map]",Xe="[object Number]",Qe="[object Null]",Ze="[object Object]",et="[object Promise]",tt="[object Proxy]",it="[object RegExp]",nt="[object Set]",ot="[object String]",rt="[object Symbol]",st="[object Undefined]",at="[object WeakMap]",pt="[object WeakSet]",lt="[object ArrayBuffer]",ct="[object DataView]",ut="[object Float32Array]",dt="[object Float64Array]",ft="[object Int8Array]",yt="[object Int16Array]",mt="[object Int32Array]",ht="[object Uint8Array]",vt="[object Uint8ClampedArray]",At="[object Uint16Array]",bt="[object Uint32Array]",gt=/\b__p \+= '';/g,Ct=/\b(__p \+=) '' \+/g,Rt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Pt=/&(?:amp|lt|gt|quot|#39);/g,wt=/[&<>"']/g,St=RegExp(Pt.source),Tt=RegExp(wt.source),It=/<%-([\s\S]+?)%>/g,jt=/<%([\s\S]+?)%>/g,Ot=/<%=([\s\S]+?)%>/g,Et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mt=/^\w*$/,Ft=/^\./,kt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xt=/[\\^$.*+?()[\]{}|]/g,Nt=RegExp(xt.source),Dt=/^\s+|\s+$/g,Bt=/^\s+/,_t=/\s+$/,Lt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ut=/,? & /,Gt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Vt=/\\(\\)?/g,zt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ht=/\w*$/,Yt=/^[-+]0x[0-9a-f]+$/i,Kt=/^0b[01]+$/i,Wt=/^\[object .+?Constructor\]$/,$t=/^0o[0-7]+$/i,Jt=/^(?:0|[1-9]\d*)$/,Xt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qt=/($^)/,Zt=/['\n\r\u2028\u2029\\]/g,ei="\\ud800-\\udfff",ti="\\u0300-\\u036f",ii="\\ufe20-\\ufe2f",ni="\\u20d0-\\u20ff",oi=ti+ii+ni,ri="\\u2700-\\u27bf",si="a-z\\xdf-\\xf6\\xf8-\\xff",ai="\\xac\\xb1\\xd7\\xf7",pi="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",li="\\u2000-\\u206f",ci=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ui="A-Z\\xc0-\\xd6\\xd8-\\xde",di="\\ufe0e\\ufe0f",fi=ai+pi+li+ci,yi="['’]",mi="["+ei+"]",hi="["+fi+"]",vi="["+oi+"]",Ai="\\d+",bi="["+ri+"]",gi="["+si+"]",Ci="[^"+ei+fi+Ai+ri+si+ui+"]",Ri="\\ud83c[\\udffb-\\udfff]",Pi="(?:"+vi+"|"+Ri+")",wi="[^"+ei+"]",Si="(?:\\ud83c[\\udde6-\\uddff]){2}",Ti="[\\ud800-\\udbff][\\udc00-\\udfff]",Ii="["+ui+"]",ji="\\u200d",Oi="(?:"+gi+"|"+Ci+")",Ei="(?:"+Ii+"|"+Ci+")",Mi="(?:"+yi+"(?:d|ll|m|re|s|t|ve))?",Fi="(?:"+yi+"(?:D|LL|M|RE|S|T|VE))?",ki=Pi+"?",xi="["+di+"]?",Ni="(?:"+ji+"(?:"+[wi,Si,Ti].join("|")+")"+xi+ki+")*",Di="\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",Bi="\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)",_i=xi+ki+Ni,Li="(?:"+[bi,Si,Ti].join("|")+")"+_i,qi="(?:"+[wi+vi+"?",vi,Si,Ti,mi].join("|")+")",Ui=RegExp(yi,"g"),Gi=RegExp(vi,"g"),Vi=RegExp(Ri+"(?="+Ri+")|"+qi+_i,"g"),zi=RegExp([Ii+"?"+gi+"+"+Mi+"(?="+[hi,Ii,"$"].join("|")+")",Ei+"+"+Fi+"(?="+[hi,Ii+Oi,"$"].join("|")+")",Ii+"?"+Oi+"+"+Mi,Ii+"+"+Fi,Bi,Di,Ai,Li].join("|"),"g"),Hi=RegExp("["+ji+ei+oi+di+"]"),Yi=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ki=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Wi=-1,$i={};$i[ut]=$i[dt]=$i[ft]=$i[yt]=$i[mt]=$i[ht]=$i[vt]=$i[At]=$i[bt]=!0,$i[Ue]=$i[Ge]=$i[lt]=$i[ze]=$i[ct]=$i[He]=$i[Ke]=$i[We]=$i[Je]=$i[Xe]=$i[Ze]=$i[it]=$i[nt]=$i[ot]=$i[at]=!1;var Ji={};Ji[Ue]=Ji[Ge]=Ji[lt]=Ji[ct]=Ji[ze]=Ji[He]=Ji[ut]=Ji[dt]=Ji[ft]=Ji[yt]=Ji[mt]=Ji[Je]=Ji[Xe]=Ji[Ze]=Ji[it]=Ji[nt]=Ji[ot]=Ji[rt]=Ji[ht]=Ji[vt]=Ji[At]=Ji[bt]=!0,Ji[Ke]=Ji[We]=Ji[at]=!1;var Xi={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Qi={"&":"&","<":"<",">":">",'"':""","'":"'"},Zi={"&":"&","<":"<",">":">",""":'"',"'":"'"},en={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tn=parseFloat,nn=parseInt,on="object"==typeof t&&t&&t.Object===Object&&t,rn="object"==typeof self&&self&&self.Object===Object&&self,sn=on||rn||Function("return this")(),an="object"==typeof n&&n&&!n.nodeType&&n,pn=an&&"object"==typeof i&&i&&!i.nodeType&&i,ln=pn&&pn.exports===an,cn=ln&&on.process,un=function(){try{return cn&&cn.binding&&cn.binding("util")}catch(e){}}(),dn=un&&un.isArrayBuffer,fn=un&&un.isDate,yn=un&&un.isMap,mn=un&&un.isRegExp,hn=un&&un.isSet,vn=un&&un.isTypedArray,An=I("length"),bn=j(Xi),gn=j(Qi),Cn=j(Zi),Rn=function e(t){function i(e){if(pp(e)&&!bd(e)&&!(e instanceof j)){if(e instanceof b)return e;if(bc.call(e,"__wrapped__"))return rs(e)}return new b(e)}function n(){}function b(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=ne}function j(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Be,this.__views__=[]}function J(){var e=new j(this.__wrapped__);return e.__actions__=Go(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Go(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Go(this.__views__),e}function ee(){if(this.__filtered__){var e=new j(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function te(){var e=this.__wrapped__.value(),t=this.__dir__,i=bd(e),n=t<0,o=i?e.length:0,r=jr(0,o,this.__views__),s=r.start,a=r.end,p=a-s,l=n?a:s-1,c=this.__iteratees__,u=c.length,d=0,f=$c(p,this.__takeCount__);if(!i||o-1}function ci(e,t){var i=this.__data__,n=ki(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this}function ui(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function qi(e,t,i,n,o,r){var s,a=t&ue,l=t&de,c=t&fe;if(i&&(s=o?i(e,n,o,r):i(e)),s!==ne)return s;if(!ap(e))return e;var u=bd(e);if(u){if(s=Mr(e),!a)return Go(e,s)}else{var d=Ou(e),f=d==We||d==$e;if(Cd(e))return Eo(e,a);if(d==Ze||d==Ue||f&&!o){if(s=l||f?{}:Fr(e),!a)return l?Ho(e,Di(s,e)):zo(e,Ni(s,e))}else{if(!Ji[d])return o?e:{};s=kr(e,d,qi,a)}}r||(r=new gi);var y=r.get(e);if(y)return y;r.set(e,s);var m=c?l?gr:br:l?zp:Vp,h=u?ne:m(e);return p(h||e,function(n,o){h&&(o=n,n=e[o]),Fi(s,o,qi(n,t,i,o,e,r))}),s}function Vi(e){var t=Vp(e);return function(i){return zi(i,e,t)}}function zi(e,t,i){var n=i.length;if(null==e)return!n;for(e=cc(e);n--;){var o=i[n],r=t[o],s=e[o];if(s===ne&&!(o in e)||!r(s))return!1}return!0}function Hi(e,t,i){if("function"!=typeof e)throw new fc(ae);return Fu(function(){e.apply(ne,i)},t)}function Yi(e,t,i,n){var o=-1,r=d,s=!0,a=e.length,p=[],l=t.length;if(!a)return p;i&&(t=y(t,x(i))),n?(r=f,s=!1):t.length>=re&&(r=D,s=!1,t=new vi(t));e:for(;++oo?0:o+i),n=n===ne||n>o?o:Sp(n),n<0&&(n+=o),n=i>n?0:Tp(n);i0&&i(a)?t>1?on(a,t-1,i,n,o):m(o,a):n||(o[o.length]=a)}return o}function rn(e,t){return e&&bu(e,t,Vp)}function an(e,t){return e&&gu(e,t,Vp)}function pn(e,t){return u(t,function(t){return op(e[t])})}function cn(e,t){t=jo(t,e);for(var i=0,n=t.length;null!=e&&it}function wn(e,t){return null!=e&&bc.call(e,t)}function Sn(e,t){return null!=e&&t in cc(e)}function Tn(e,t,i){return e>=$c(t,i)&&e=120&&c.length>=120)?new vi(s&&c):ne}c=e[0];var u=-1,m=a[0];e:for(;++u-1;)a!==e&&kc.call(a,p,1),kc.call(e,p,1);return e}function io(e,t){for(var i=e?t.length:0,n=i-1;i--;){var o=t[i];if(i==n||o!==r){var r=o;Dr(o)?kc.call(e,o,1):go(e,o)}}return e}function no(e,t){return e+Gc(Qc()*(t-e+1))}function oo(e,t,i,n){for(var o=-1,r=Wc(Uc((t-e)/(i||1)),0),s=rc(r);r--;)s[n?r:++o]=e,e+=i;return s}function ro(e,t){var i="";if(!e||t<1||t>xe)return i;do t%2&&(i+=e),t=Gc(t/2),t&&(e+=e);while(t);return i}function so(e,t){return ku(Jr(e,t,kl),e+"")}function ao(e){return Ii(il(e))}function po(e,t){var i=il(e);return ts(i,Li(t,0,i.length))}function lo(e,t,i,n){if(!ap(e))return e;t=jo(t,e);for(var o=-1,r=t.length,s=r-1,a=e;null!=a&&++oo?0:o+t),i=i>o?o:i,i<0&&(i+=o),o=t>i?0:i-t>>>0,t>>>=0;for(var r=rc(o);++n>>1,s=e[r];null!==s&&!bp(s)&&(i?s<=t:s=re){var l=t?null:Su(e);if(l)return W(l);s=!1,o=D,p=new vi}else p=t?[]:a;e:for(;++n=n?e:uo(e,t,i)}function Eo(e,t){if(t)return e.slice();var i=e.length,n=Oc?Oc(i):new e.constructor(i);return e.copy(n),n}function Mo(e){var t=new e.constructor(e.byteLength);return new jc(t).set(new jc(e)),t}function Fo(e,t){var i=t?Mo(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}function ko(e,t,i){var n=t?i(H(e),ue):H(e);return h(n,o,new e.constructor)}function xo(e){var t=new e.constructor(e.source,Ht.exec(e));return t.lastIndex=e.lastIndex,t}function No(e,t,i){var n=t?i(W(e),ue):W(e);return h(n,r,new e.constructor)}function Do(e){return yu?cc(yu.call(e)):{}}function Bo(e,t){var i=t?Mo(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function _o(e,t){if(e!==t){var i=e!==ne,n=null===e,o=e===e,r=bp(e),s=t!==ne,a=null===t,p=t===t,l=bp(t);if(!a&&!l&&!r&&e>t||r&&s&&p&&!a&&!l||n&&s&&p||!i&&p||!o)return 1;if(!n&&!r&&!l&&e=a)return p;var l=i[n];return p*("desc"==l?-1:1)}}return e.index-t.index}function qo(e,t,i,n){for(var o=-1,r=e.length,s=i.length,a=-1,p=t.length,l=Wc(r-s,0),c=rc(p+l),u=!n;++a1?i[o-1]:ne,s=o>2?i[2]:ne;for(r=e.length>3&&"function"==typeof r?(o--,r):ne,s&&Br(i[0],i[1],s)&&(r=o<3?ne:r,o=1),t=cc(t);++n-1?o[r?t[s]:s]:ne}}function ir(e){return Ar(function(t){var i=t.length,n=i,o=b.prototype.thru;for(e&&t.reverse();n--;){var r=t[n];if("function"!=typeof r)throw new fc(ae);if(o&&!s&&"wrapper"==Cr(r))var s=new b([],!0)}for(n=s?n:i;++n=re)return s.plant(n).value();for(var o=0,r=i?t[o].apply(this,e):n;++o1&&A.reverse(),u&&pa))return!1;var l=r.get(e);if(l&&r.get(t))return l==t;var c=-1,u=!0,d=i&me?new vi:ne;for(r.set(e,t),r.set(t,e);++c1?"& ":"")+t[n],t=t.join(i>2?", ":" "),e.replace(Lt,"{\n/* [wrapped with "+t+"] */\n")}function Nr(e){return bd(e)||Ad(e)||!!(xc&&e&&e[xc])}function Dr(e,t){return t=null==t?xe:t,!!t&&("number"==typeof e||Jt.test(e))&&e>-1&&e%1==0&&e0){if(++t>=je)return arguments[0]}else t=0;return e.apply(ne,arguments)}}function ts(e,t){var i=-1,n=e.length,o=n-1;for(t=t===ne?n:t;++i=this.__values__.length,t=e?ne:this.__values__[this.__index__++];return{done:e,value:t}}function ra(){return this}function sa(e){for(var t,i=this;i instanceof n;){var o=rs(i);o.__index__=0,o.__values__=ne,t?r.__wrapped__=o:t=o;var r=o;i=i.__wrapped__}return r.__wrapped__=e,t}function aa(){var e=this.__wrapped__;if(e instanceof j){var t=e;return this.__actions__.length&&(t=new j(this)),t=t.reverse(),t.__actions__.push({func:ta,args:[Ms],thisArg:ne}),new b(t,this.__chain__)}return this.thru(Ms)}function pa(){return Po(this.__wrapped__,this.__actions__)}function la(e,t,i){var n=bd(e)?c:Xi;return i&&Br(e,t,i)&&(t=ne),n(e,Pr(t,3))}function ca(e,t){var i=bd(e)?u:en;return i(e,Pr(t,3))}function ua(e,t){return on(va(e,t),1)}function da(e,t){return on(va(e,t),ke)}function fa(e,t,i){return i=i===ne?1:Sp(i),on(va(e,t),i)}function ya(e,t){var i=bd(e)?p:vu;return i(e,Pr(t,3))}function ma(e,t){var i=bd(e)?l:Au;return i(e,Pr(t,3))}function ha(e,t,i,n){e=$a(e)?e:il(e),i=i&&!n?Sp(i):0;var o=e.length;return i<0&&(i=Wc(o+i,0)),Ap(e)?i<=o&&e.indexOf(t,i)>-1:!!o&&P(e,t,i)>-1}function va(e,t){var i=bd(e)?y:Hn;return i(e,Pr(t,3))}function Aa(e,t,i,n){return null==e?[]:(bd(t)||(t=null==t?[]:[t]),i=n?ne:i,bd(i)||(i=null==i?[]:[i]),Xn(e,t,i))}function ba(e,t,i){var n=bd(e)?h:O,o=arguments.length<3;return n(e,Pr(t,4),i,o,vu)}function ga(e,t,i){var n=bd(e)?v:O,o=arguments.length<3;return n(e,Pr(t,4),i,o,Au)}function Ca(e,t){var i=bd(e)?u:en;return i(e,Na(Pr(t,3)))}function Ra(e){var t=bd(e)?Ii:ao;return t(e)}function Pa(e,t,i){t=(i?Br(e,t,i):t===ne)?1:Sp(t);var n=bd(e)?ji:po;return n(e,t)}function wa(e){var t=bd(e)?Oi:co;return t(e)}function Sa(e){if(null==e)return 0;if($a(e))return Ap(e)?Q(e):e.length;var t=Ou(e);return t==Je||t==nt?e.size:Gn(e).length}function Ta(e,t,i){var n=bd(e)?A:fo;return i&&Br(e,t,i)&&(t=ne),n(e,Pr(t,3))}function Ia(e,t){if("function"!=typeof t)throw new fc(ae);return e=Sp(e),function(){if(--e<1)return t.apply(this,arguments)}}function ja(e,t,i){return t=i?ne:t,t=e&&null==t?e.length:t,yr(e,Pe,ne,ne,ne,ne,t)}function Oa(e,t){var i;if("function"!=typeof t)throw new fc(ae);return e=Sp(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=ne),i}}function Ea(e,t,i){t=i?ne:t;var n=yr(e,be,ne,ne,ne,ne,ne,t);return n.placeholder=Ea.placeholder,n}function Ma(e,t,i){t=i?ne:t;var n=yr(e,ge,ne,ne,ne,ne,ne,t);return n.placeholder=Ma.placeholder,n}function Fa(e,t,i){function n(t){var i=d,n=f;return d=f=ne,A=t,m=e.apply(n,i)}function o(e){return A=e,h=Fu(a,t),b?n(e):m}function r(e){var i=e-v,n=e-A,o=t-i;return g?$c(o,y-n):o}function s(e){var i=e-v,n=e-A;return v===ne||i>=t||i<0||g&&n>=y}function a(){var e=ad();return s(e)?p(e):void(h=Fu(a,r(e)))}function p(e){return h=ne,C&&d?n(e):(d=f=ne,m)}function l(){h!==ne&&wu(h),A=0,d=v=f=h=ne}function c(){return h===ne?m:p(ad())}function u(){var e=ad(),i=s(e);if(d=arguments,f=this,v=e,i){if(h===ne)return o(v);if(g)return h=Fu(a,t),n(v)}return h===ne&&(h=Fu(a,t)),m}var d,f,y,m,h,v,A=0,b=!1,g=!1,C=!0;if("function"!=typeof e)throw new fc(ae);return t=Ip(t)||0,ap(i)&&(b=!!i.leading,g="maxWait"in i,y=g?Wc(Ip(i.maxWait)||0,t):y,C="trailing"in i?!!i.trailing:C),u.cancel=l,u.flush=c,u}function ka(e){return yr(e,Se)}function xa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new fc(ae);var i=function(){var n=arguments,o=t?t.apply(this,n):n[0],r=i.cache;if(r.has(o))return r.get(o);var s=e.apply(this,n);return i.cache=r.set(o,s)||r,s};return i.cache=new(xa.Cache||ui),i}function Na(e){if("function"!=typeof e)throw new fc(ae);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Da(e){return Oa(2,e)}function Ba(e,t){if("function"!=typeof e)throw new fc(ae);return t=t===ne?t:Sp(t),so(e,t)}function _a(e,t){if("function"!=typeof e)throw new fc(ae);return t=t===ne?0:Wc(Sp(t),0),so(function(i){var n=i[t],o=Oo(i,0,t);return n&&m(o,n),s(e,this,o)})}function La(e,t,i){var n=!0,o=!0;if("function"!=typeof e)throw new fc(ae);return ap(i)&&(n="leading"in i?!!i.leading:n,o="trailing"in i?!!i.trailing:o),Fa(e,t,{leading:n,maxWait:t,trailing:o})}function qa(e){return ja(e,1)}function Ua(e,t){return fd(Io(t),e)}function Ga(){if(!arguments.length)return[];var e=arguments[0];return bd(e)?e:[e]}function Va(e){return qi(e,fe)}function za(e,t){return t="function"==typeof t?t:ne,qi(e,fe,t)}function Ha(e){return qi(e,ue|fe)}function Ya(e,t){return t="function"==typeof t?t:ne,qi(e,ue|fe,t)}function Ka(e,t){return null==t||zi(e,t,Vp(t))}function Wa(e,t){return e===t||e!==e&&t!==t}function $a(e){return null!=e&&sp(e.length)&&!op(e)}function Ja(e){return pp(e)&&$a(e)}function Xa(e){return e===!0||e===!1||pp(e)&&An(e)==ze}function Qa(e){return pp(e)&&1===e.nodeType&&!hp(e)}function Za(e){if(null==e)return!0;if($a(e)&&(bd(e)||"string"==typeof e||"function"==typeof e.splice||Cd(e)||Td(e)||Ad(e)))return!e.length;var t=Ou(e);if(t==Je||t==nt)return!e.size;if(Gr(e))return!Gn(e).length;for(var i in e)if(bc.call(e,i))return!1;return!0}function ep(e,t){return kn(e,t)}function tp(e,t,i){i="function"==typeof i?i:ne;var n=i?i(e,t):ne;return n===ne?kn(e,t,ne,i):!!n}function ip(e){if(!pp(e))return!1;var t=An(e);return t==Ke||t==Ye||"string"==typeof e.message&&"string"==typeof e.name&&!hp(e)}function np(e){return"number"==typeof e&&Hc(e)}function op(e){if(!ap(e))return!1;var t=An(e);return t==We||t==$e||t==Ve||t==tt}function rp(e){return"number"==typeof e&&e==Sp(e)}function sp(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=xe}function ap(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function pp(e){return null!=e&&"object"==typeof e}function lp(e,t){return e===t||Dn(e,t,Sr(t))}function cp(e,t,i){return i="function"==typeof i?i:ne,Dn(e,t,Sr(t),i)}function up(e){return mp(e)&&e!=+e}function dp(e){if(Eu(e))throw new ac(se);return Bn(e)}function fp(e){return null===e}function yp(e){return null==e}function mp(e){return"number"==typeof e||pp(e)&&An(e)==Xe}function hp(e){if(!pp(e)||An(e)!=Ze)return!1;var t=Ec(e);if(null===t)return!0;var i=bc.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&Ac.call(i)==Pc}function vp(e){return rp(e)&&e>=-xe&&e<=xe}function Ap(e){return"string"==typeof e||!bd(e)&&pp(e)&&An(e)==ot}function bp(e){return"symbol"==typeof e||pp(e)&&An(e)==rt}function gp(e){return e===ne}function Cp(e){return pp(e)&&Ou(e)==at}function Rp(e){return pp(e)&&An(e)==pt}function Pp(e){if(!e)return[];if($a(e))return Ap(e)?Z(e):Go(e);if(Nc&&e[Nc])return z(e[Nc]());var t=Ou(e),i=t==Je?H:t==nt?W:il;return i(e)}function wp(e){if(!e)return 0===e?e:0;if(e=Ip(e),e===ke||e===-ke){var t=e<0?-1:1;return t*Ne}return e===e?e:0}function Sp(e){var t=wp(e),i=t%1;return t===t?i?t-i:t:0}function Tp(e){return e?Li(Sp(e),0,Be):0}function Ip(e){if("number"==typeof e)return e;if(bp(e))return De;if(ap(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ap(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Dt,"");var i=Kt.test(e);return i||$t.test(e)?nn(e.slice(2),i?2:8):Yt.test(e)?De:+e}function jp(e){return Vo(e,zp(e))}function Op(e){return Li(Sp(e),-xe,xe)}function Ep(e){return null==e?"":Ao(e)}function Mp(e,t){var i=hu(e);return null==t?i:Ni(i,t)}function Fp(e,t){return C(e,Pr(t,3),rn)}function kp(e,t){return C(e,Pr(t,3),an)}function xp(e,t){return null==e?e:bu(e,Pr(t,3),zp)}function Np(e,t){return null==e?e:gu(e,Pr(t,3),zp)}function Dp(e,t){return e&&rn(e,Pr(t,3))}function Bp(e,t){return e&&an(e,Pr(t,3))}function _p(e){return null==e?[]:pn(e,Vp(e))}function Lp(e){return null==e?[]:pn(e,zp(e))}function qp(e,t,i){var n=null==e?ne:cn(e,t);return n===ne?i:n}function Up(e,t){return null!=e&&Er(e,t,wn)}function Gp(e,t){return null!=e&&Er(e,t,Sn)}function Vp(e){return $a(e)?Ti(e):Gn(e)}function zp(e){return $a(e)?Ti(e,!0):Vn(e)}function Hp(e,t){var i={};return t=Pr(t,3),rn(e,function(e,n,o){Bi(i,t(e,n,o),e)}),i}function Yp(e,t){var i={};return t=Pr(t,3),rn(e,function(e,n,o){Bi(i,n,t(e,n,o))}),i}function Kp(e,t){return Wp(e,Na(Pr(t)))}function Wp(e,t){if(null==e)return{};var i=y(gr(e),function(e){return[e]});return t=Pr(t),Zn(e,i,function(e,i){return t(e,i[0])})}function $p(e,t,i){t=jo(t,e);var n=-1,o=t.length;for(o||(o=1,e=ne);++nt){var n=e;e=t,t=n}if(i||e%1||t%1){var o=Qc();return $c(e+o*(t-e+tn("1e-"+((o+"").length-1))),t)}return no(e,t)}function al(e){return Qd(Ep(e).toLowerCase())}function pl(e){return e=Ep(e),e&&e.replace(Xt,bn).replace(Gi,"")}function ll(e,t,i){e=Ep(e),t=Ao(t);var n=e.length;i=i===ne?n:Li(Sp(i),0,n);var o=i;return i-=t.length,i>=0&&e.slice(i,o)==t}function cl(e){return e=Ep(e),e&&Tt.test(e)?e.replace(wt,gn):e}function ul(e){return e=Ep(e),e&&Nt.test(e)?e.replace(xt,"\\$&"):e}function dl(e,t,i){e=Ep(e),t=Sp(t);var n=t?Q(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return ar(Gc(o),i)+e+ar(Uc(o),i)}function fl(e,t,i){e=Ep(e),t=Sp(t);var n=t?Q(e):0;return t&&n>>0)?(e=Ep(e),e&&("string"==typeof t||null!=t&&!wd(t))&&(t=Ao(t),!t&&G(e))?Oo(Z(e),0,i):e.split(t,i)):[]}function bl(e,t,i){return e=Ep(e),i=Li(Sp(i),0,e.length),t=Ao(t),e.slice(i,i+t.length)==t}function gl(e,t,n){var o=i.templateSettings;n&&Br(e,t,n)&&(t=ne),e=Ep(e),t=Md({},t,o,Ei);var r,s,a=Md({},t.imports,o.imports,Ei),p=Vp(a),l=N(a,p),c=0,u=t.interpolate||Qt,d="__p += '",f=uc((t.escape||Qt).source+"|"+u.source+"|"+(u===Ot?zt:Qt).source+"|"+(t.evaluate||Qt).source+"|$","g"),y="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++Wi+"]")+"\n";e.replace(f,function(t,i,n,o,a,p){return n||(n=o),d+=e.slice(c,p).replace(Zt,q),i&&(r=!0,d+="' +\n__e("+i+") +\n'"),a&&(s=!0,d+="';\n"+a+";\n__p += '"),n&&(d+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=p+t.length,t}),d+="';\n";var m=t.variable;m||(d="with (obj) {\n"+d+"\n}\n"),d=(s?d.replace(gt,""):d).replace(Ct,"$1").replace(Rt,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var h=Zd(function(){return pc(p,y+"return "+d).apply(ne,l)});if(h.source=d,ip(h))throw h;return h}function Cl(e){return Ep(e).toLowerCase()}function Rl(e){return Ep(e).toUpperCase()}function Pl(e,t,i){if(e=Ep(e),e&&(i||t===ne))return e.replace(Dt,"");if(!e||!(t=Ao(t)))return e;var n=Z(e),o=Z(t),r=B(n,o),s=_(n,o)+1;return Oo(n,r,s).join("")}function wl(e,t,i){if(e=Ep(e),e&&(i||t===ne))return e.replace(_t,"");if(!e||!(t=Ao(t)))return e;var n=Z(e),o=_(n,Z(t))+1;return Oo(n,0,o).join("")}function Sl(e,t,i){if(e=Ep(e),e&&(i||t===ne))return e.replace(Bt,"");if(!e||!(t=Ao(t)))return e;var n=Z(e),o=B(n,Z(t));return Oo(n,o).join("")}function Tl(e,t){var i=Te,n=Ie;if(ap(t)){var o="separator"in t?t.separator:o;i="length"in t?Sp(t.length):i,n="omission"in t?Ao(t.omission):n}e=Ep(e);var r=e.length;if(G(e)){var s=Z(e);r=s.length}if(i>=r)return e;var a=i-Q(n);if(a<1)return n;var p=s?Oo(s,0,a).join(""):e.slice(0,a);if(o===ne)return p+n;if(s&&(a+=p.length-a),wd(o)){if(e.slice(a).search(o)){var l,c=p;for(o.global||(o=uc(o.source,Ep(Ht.exec(o))+"g")),o.lastIndex=0;l=o.exec(c);)var u=l.index;p=p.slice(0,u===ne?a:u)}}else if(e.indexOf(Ao(o),a)!=a){var d=p.lastIndexOf(o);d>-1&&(p=p.slice(0,d))}return p+n}function Il(e){return e=Ep(e),e&&St.test(e)?e.replace(Pt,Cn):e}function jl(e,t,i){return e=Ep(e),t=i?ne:t,t===ne?V(e)?ie(e):g(e):e.match(t)||[]}function Ol(e){var t=null==e?0:e.length,i=Pr();return e=t?y(e,function(e){if("function"!=typeof e[1])throw new fc(ae);return[i(e[0]),e[1]]}):[],so(function(i){for(var n=-1;++nxe)return[];var i=Be,n=$c(e,Be);t=Pr(t),e-=Be;for(var o=F(n,t);++i1?e[t-1]:ne;return i="function"==typeof i?(e.pop(),i):ne,Js(e,i)}),Qu=Ar(function(e){var t=e.length,i=t?e[0]:0,n=this.__wrapped__,o=function(t){return _i(t,e)};return!(t>1||this.__actions__.length)&&n instanceof j&&Dr(i)?(n=n.slice(i,+i+(t?1:0)),n.__actions__.push({func:ta,args:[o],thisArg:ne}),new b(n,this.__chain__).thru(function(e){return t&&!e.length&&e.push(ne),e})):this.thru(o)}),Zu=Yo(function(e,t,i){bc.call(e,i)?++e[i]:Bi(e,i,1)}),ed=tr(ys),td=tr(ms),id=Yo(function(e,t,i){bc.call(e,i)?e[i].push(t):Bi(e,i,[t])}),nd=so(function(e,t,i){var n=-1,o="function"==typeof t,r=$a(e)?rc(e.length):[];return vu(e,function(e){r[++n]=o?s(t,e,i):On(e,t,i)}),r}),od=Yo(function(e,t,i){Bi(e,i,t)}),rd=Yo(function(e,t,i){e[i?0:1].push(t)},function(){return[[],[]]}),sd=so(function(e,t){if(null==e)return[];var i=t.length;return i>1&&Br(e,t[0],t[1])?t=[]:i>2&&Br(t[0],t[1],t[2])&&(t=[t[0]]),Xn(e,on(t,1),[])}),ad=Lc||function(){return sn.Date.now()},pd=so(function(e,t,i){var n=he;if(i.length){var o=K(i,Rr(pd));n|=Ce}return yr(e,n,t,i,o)}),ld=so(function(e,t,i){var n=he|ve;if(i.length){var o=K(i,Rr(ld));n|=Ce}return yr(t,n,e,i,o)}),cd=so(function(e,t){return Hi(e,1,t)}),ud=so(function(e,t,i){return Hi(e,Ip(t)||0,i)});xa.Cache=ui;var dd=Pu(function(e,t){t=1==t.length&&bd(t[0])?y(t[0],x(Pr())):y(on(t,1),x(Pr()));var i=t.length;return so(function(n){for(var o=-1,r=$c(n.length,i);++o=t}),Ad=En(function(){return arguments}())?En:function(e){return pp(e)&&bc.call(e,"callee")&&!Fc.call(e,"callee")},bd=rc.isArray,gd=dn?x(dn):Mn,Cd=zc||zl,Rd=fn?x(fn):Fn,Pd=yn?x(yn):Nn,wd=mn?x(mn):_n,Sd=hn?x(hn):Ln,Td=vn?x(vn):qn,Id=cr(zn),jd=cr(function(e,t){return e<=t}),Od=Ko(function(e,t){if(Gr(t)||$a(t))return void Vo(t,Vp(t),e);for(var i in t)bc.call(t,i)&&Fi(e,i,t[i])}),Ed=Ko(function(e,t){Vo(t,zp(t),e)}),Md=Ko(function(e,t,i,n){Vo(t,zp(t),e,n)}),Fd=Ko(function(e,t,i,n){Vo(t,Vp(t),e,n)}),kd=Ar(_i),xd=so(function(e){return e.push(ne,Ei),s(Md,ne,e)}),Nd=so(function(e){return e.push(ne,Kr),s(qd,ne,e)}),Dd=or(function(e,t,i){e[t]=i},Ml(kl)),Bd=or(function(e,t,i){bc.call(e,t)?e[t].push(i):e[t]=[i]},Pr),_d=so(On),Ld=Ko(function(e,t,i){Wn(e,t,i)}),qd=Ko(function(e,t,i,n){Wn(e,t,i,n)}),Ud=Ar(function(e,t){var i={};if(null==e)return i;var n=!1;t=y(t,function(t){return t=jo(t,e),n||(n=t.length>1),t}),Vo(e,gr(e),i),n&&(i=qi(i,ue|de|fe));for(var o=t.length;o--;)go(i,t[o]);return i}),Gd=Ar(function(e,t){return null==e?{}:Qn(e,t)}),Vd=fr(Vp),zd=fr(zp),Hd=Qo(function(e,t,i){return t=t.toLowerCase(),e+(i?al(t):t)}),Yd=Qo(function(e,t,i){return e+(i?"-":"")+t.toLowerCase()}),Kd=Qo(function(e,t,i){return e+(i?" ":"")+t.toLowerCase()}),Wd=Xo("toLowerCase"),$d=Qo(function(e,t,i){return e+(i?"_":"")+t.toLowerCase()}),Jd=Qo(function(e,t,i){return e+(i?" ":"")+Qd(t)}),Xd=Qo(function(e,t,i){return e+(i?" ":"")+t.toUpperCase()}),Qd=Xo("toUpperCase"),Zd=so(function(e,t){try{return s(e,ne,t)}catch(e){return ip(e)?e:new ac(e)}}),ef=Ar(function(e,t){return p(t,function(t){t=is(t),Bi(e,t,pd(e[t],e))}),e}),tf=ir(),nf=ir(!0),of=so(function(e,t){return function(i){return On(i,e,t)}}),rf=so(function(e,t){return function(i){return On(e,i,t)}}),sf=sr(y),af=sr(c),pf=sr(A),lf=lr(),cf=lr(!0),uf=rr(function(e,t){return e+t},0),df=dr("ceil"),ff=rr(function(e,t){return e/t},1),yf=dr("floor"),mf=rr(function(e,t){return e*t},1),hf=dr("round"),vf=rr(function(e,t){return e-t},0);return i.after=Ia,i.ary=ja,i.assign=Od,i.assignIn=Ed,i.assignInWith=Md,i.assignWith=Fd,i.at=kd,i.before=Oa,i.bind=pd,i.bindAll=ef,i.bindKey=ld,i.castArray=Ga,i.chain=Zs,i.chunk=ss,i.compact=as,i.concat=ps,i.cond=Ol,i.conforms=El,i.constant=Ml,i.countBy=Zu,i.create=Mp,i.curry=Ea,i.curryRight=Ma,i.debounce=Fa,i.defaults=xd,i.defaultsDeep=Nd,i.defer=cd,i.delay=ud,i.difference=Nu,i.differenceBy=Du,i.differenceWith=Bu,i.drop=ls,i.dropRight=cs,i.dropRightWhile=us,i.dropWhile=ds,i.fill=fs,i.filter=ca,i.flatMap=ua,i.flatMapDeep=da,i.flatMapDepth=fa,i.flatten=hs,i.flattenDeep=vs,i.flattenDepth=As,i.flip=ka,i.flow=tf,i.flowRight=nf,i.fromPairs=bs,i.functions=_p,i.functionsIn=Lp,i.groupBy=id,i.initial=Rs,i.intersection=_u,i.intersectionBy=Lu,i.intersectionWith=qu,i.invert=Dd,i.invertBy=Bd,i.invokeMap=nd,i.iteratee=xl,i.keyBy=od,i.keys=Vp,i.keysIn=zp,i.map=va,i.mapKeys=Hp,i.mapValues=Yp,i.matches=Nl,i.matchesProperty=Dl,i.memoize=xa,i.merge=Ld,i.mergeWith=qd,i.method=of,i.methodOf=rf,i.mixin=Bl,i.negate=Na,i.nthArg=ql,i.omit=Ud,i.omitBy=Kp,i.once=Da,i.orderBy=Aa,i.over=sf,i.overArgs=dd,i.overEvery=af,i.overSome=pf,i.partial=fd,i.partialRight=yd,i.partition=rd,i.pick=Gd,i.pickBy=Wp,i.property=Ul,i.propertyOf=Gl,i.pull=Uu,i.pullAll=Is,i.pullAllBy=js,i.pullAllWith=Os,i.pullAt=Gu,i.range=lf,i.rangeRight=cf,i.rearg=md,i.reject=Ca,i.remove=Es,i.rest=Ba,i.reverse=Ms,i.sampleSize=Pa,i.set=Jp,i.setWith=Xp,i.shuffle=wa,i.slice=Fs,i.sortBy=sd,i.sortedUniq=Ls,i.sortedUniqBy=qs,i.split=Al,i.spread=_a,i.tail=Us,i.take=Gs,i.takeRight=Vs,i.takeRightWhile=zs,i.takeWhile=Hs,i.tap=ea,i.throttle=La,i.thru=ta,i.toArray=Pp,i.toPairs=Vd,i.toPairsIn=zd,i.toPath=$l,i.toPlainObject=jp,i.transform=Qp,i.unary=qa,i.union=Vu,i.unionBy=zu,i.unionWith=Hu,i.uniq=Ys,i.uniqBy=Ks,i.uniqWith=Ws,i.unset=Zp,i.unzip=$s,i.unzipWith=Js,i.update=el,i.updateWith=tl,i.values=il,i.valuesIn=nl,i.without=Yu,i.words=jl,i.wrap=Ua,i.xor=Ku,i.xorBy=Wu,i.xorWith=$u,i.zip=Ju,i.zipObject=Xs,i.zipObjectDeep=Qs,i.zipWith=Xu,i.entries=Vd,i.entriesIn=zd,i.extend=Ed,i.extendWith=Md,Bl(i,i),i.add=uf,i.attempt=Zd,i.camelCase=Hd,i.capitalize=al,i.ceil=df,i.clamp=ol,i.clone=Va,i.cloneDeep=Ha,i.cloneDeepWith=Ya,i.cloneWith=za,i.conformsTo=Ka,i.deburr=pl,i.defaultTo=Fl,i.divide=ff,i.endsWith=ll,i.eq=Wa,i.escape=cl,i.escapeRegExp=ul,i.every=la,i.find=ed,i.findIndex=ys,i.findKey=Fp,i.findLast=td,i.findLastIndex=ms,i.findLastKey=kp,i.floor=yf,i.forEach=ya,i.forEachRight=ma,i.forIn=xp,i.forInRight=Np,i.forOwn=Dp,i.forOwnRight=Bp,i.get=qp,i.gt=hd,i.gte=vd,i.has=Up,i.hasIn=Gp,i.head=gs,i.identity=kl,i.includes=ha,i.indexOf=Cs,i.inRange=rl,i.invoke=_d,i.isArguments=Ad,i.isArray=bd,i.isArrayBuffer=gd,i.isArrayLike=$a,i.isArrayLikeObject=Ja,i.isBoolean=Xa,i.isBuffer=Cd,i.isDate=Rd,i.isElement=Qa,i.isEmpty=Za,i.isEqual=ep,i.isEqualWith=tp,i.isError=ip,i.isFinite=np,i.isFunction=op,i.isInteger=rp,i.isLength=sp,i.isMap=Pd,i.isMatch=lp,i.isMatchWith=cp,i.isNaN=up,i.isNative=dp,i.isNil=yp,i.isNull=fp,i.isNumber=mp,i.isObject=ap,i.isObjectLike=pp,i.isPlainObject=hp,i.isRegExp=wd,i.isSafeInteger=vp,i.isSet=Sd,i.isString=Ap,i.isSymbol=bp,i.isTypedArray=Td,i.isUndefined=gp,i.isWeakMap=Cp,i.isWeakSet=Rp,i.join=Ps,i.kebabCase=Yd,i.last=ws,i.lastIndexOf=Ss,i.lowerCase=Kd, +i.lowerFirst=Wd,i.lt=Id,i.lte=jd,i.max=Xl,i.maxBy=Ql,i.mean=Zl,i.meanBy=ec,i.min=tc,i.minBy=ic,i.stubArray=Vl,i.stubFalse=zl,i.stubObject=Hl,i.stubString=Yl,i.stubTrue=Kl,i.multiply=mf,i.nth=Ts,i.noConflict=_l,i.noop=Ll,i.now=ad,i.pad=dl,i.padEnd=fl,i.padStart=yl,i.parseInt=ml,i.random=sl,i.reduce=ba,i.reduceRight=ga,i.repeat=hl,i.replace=vl,i.result=$p,i.round=hf,i.runInContext=e,i.sample=Ra,i.size=Sa,i.snakeCase=$d,i.some=Ta,i.sortedIndex=ks,i.sortedIndexBy=xs,i.sortedIndexOf=Ns,i.sortedLastIndex=Ds,i.sortedLastIndexBy=Bs,i.sortedLastIndexOf=_s,i.startCase=Jd,i.startsWith=bl,i.subtract=vf,i.sum=nc,i.sumBy=oc,i.template=gl,i.times=Wl,i.toFinite=wp,i.toInteger=Sp,i.toLength=Tp,i.toLower=Cl,i.toNumber=Ip,i.toSafeInteger=Op,i.toString=Ep,i.toUpper=Rl,i.trim=Pl,i.trimEnd=wl,i.trimStart=Sl,i.truncate=Tl,i.unescape=Il,i.uniqueId=Jl,i.upperCase=Xd,i.upperFirst=Qd,i.each=ya,i.eachRight=ma,i.first=gs,Bl(i,function(){var e={};return rn(i,function(t,n){bc.call(i.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),i.VERSION=oe,p(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){i[e].placeholder=i}),p(["drop","take"],function(e,t){j.prototype[e]=function(i){var n=this.__filtered__;if(n&&!t)return new j(this);i=i===ne?1:Wc(Sp(i),0);var o=this.clone();return n?o.__takeCount__=$c(i,o.__takeCount__):o.__views__.push({size:$c(i,Be),type:e+(o.__dir__<0?"Right":"")}),o},j.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),p(["filter","map","takeWhile"],function(e,t){var i=t+1,n=i==Ee||i==Fe;j.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Pr(e,3),type:i}),t.__filtered__=t.__filtered__||n,t}}),p(["head","last"],function(e,t){var i="take"+(t?"Right":"");j.prototype[e]=function(){return this[i](1).value()[0]}}),p(["initial","tail"],function(e,t){var i="drop"+(t?"":"Right");j.prototype[e]=function(){return this.__filtered__?new j(this):this[i](1)}}),j.prototype.compact=function(){return this.filter(kl)},j.prototype.find=function(e){return this.filter(e).head()},j.prototype.findLast=function(e){return this.reverse().find(e)},j.prototype.invokeMap=so(function(e,t){return"function"==typeof e?new j(this):this.map(function(i){return On(i,e,t)})}),j.prototype.reject=function(e){return this.filter(Na(Pr(e)))},j.prototype.slice=function(e,t){e=Sp(e);var i=this;return i.__filtered__&&(e>0||t<0)?new j(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==ne&&(t=Sp(t),i=t<0?i.dropRight(-t):i.take(t-e)),i)},j.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},j.prototype.toArray=function(){return this.take(Be)},rn(j.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),r=i[o?"take"+("last"==t?"Right":""):t],s=o||/^find/.test(t);r&&(i.prototype[t]=function(){var t=this.__wrapped__,a=o?[1]:arguments,p=t instanceof j,l=a[0],c=p||bd(t),u=function(e){var t=r.apply(i,m([e],a));return o&&d?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(p=c=!1);var d=this.__chain__,f=!!this.__actions__.length,y=s&&!d,h=p&&!f;if(!s&&c){t=h?t:new j(this);var v=e.apply(t,a);return v.__actions__.push({func:ta,args:[u],thisArg:ne}),new b(v,d)}return y&&h?e.apply(this,a):(v=this.thru(u),y?o?v.value()[0]:v.value():v)})}),p(["pop","push","shift","sort","splice","unshift"],function(e){var t=yc[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);i.prototype[e]=function(){var e=arguments;if(o&&!this.__chain__){var i=this.value();return t.apply(bd(i)?i:[],e)}return this[n](function(i){return t.apply(bd(i)?i:[],e)})}}),rn(j.prototype,function(e,t){var n=i[t];if(n){var o=n.name+"",r=au[o]||(au[o]=[]);r.push({name:t,func:n})}}),au[nr(ne,ve).name]=[{name:"wrapper",func:ne}],j.prototype.clone=J,j.prototype.reverse=ee,j.prototype.value=te,i.prototype.at=Qu,i.prototype.chain=ia,i.prototype.commit=na,i.prototype.next=oa,i.prototype.plant=sa,i.prototype.reverse=aa,i.prototype.toJSON=i.prototype.valueOf=i.prototype.value=pa,i.prototype.first=i.prototype.head,Nc&&(i.prototype[Nc]=ra),i},Pn=Rn();"function"==typeof e&&"object"==typeof e.amd&&e.amd?(sn._=Pn,e(function(){return Pn})):pn?((pn.exports=Pn)._=Pn,an._=Pn):sn._=Pn}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],24:[function(e,t,i){t.exports=function(e,t,i){for(var n=0,o=e.length,r=3==arguments.length?i:e[n++];n=200&&t.status<300)return i.callback(e,t);var n=new Error(t.statusText||"Unsuccessful HTTP response");n.original=e,n.response=t,n.status=t.status,i.callback(n,t)})}function m(e,t){return"function"==typeof t?new y("GET",e).end(t):1==arguments.length?new y("GET",e):new y(e,t)}function h(e,t){var i=m("DELETE",e);return t&&i.end(t),i}var v,A=e("emitter"),b=e("reduce");v="undefined"!=typeof window?window:"undefined"!=typeof self?self:this,m.getXHR=function(){if(!(!v.XMLHttpRequest||v.location&&"file:"==v.location.protocol&&v.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}return!1};var g="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};m.serializeObject=s,m.parseString=p,m.types={html:"text/html",json:"application/json",xml:"application/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},m.serialize={"application/x-www-form-urlencoded":s,"application/json":JSON.stringify},m.parse={"application/x-www-form-urlencoded":p,"application/json":JSON.parse},f.prototype.get=function(e){return this.header[e.toLowerCase()]},f.prototype.setHeaderProperties=function(e){var t=this.header["content-type"]||"";this.type=u(t);var i=d(t);for(var n in i)this[n]=i[n]},f.prototype.parseBody=function(e){var t=m.parse[this.type];return t&&e&&(e.length||e instanceof Object)?t(e):null},f.prototype.setStatusProperties=function(e){1223===e&&(e=204);var t=e/100|0;this.status=this.statusCode=e,this.statusType=t,this.info=1==t,this.ok=2==t,this.clientError=4==t,this.serverError=5==t,this.error=(4==t||5==t)&&this.toError(),this.accepted=202==e,this.noContent=204==e,this.badRequest=400==e,this.unauthorized=401==e,this.notAcceptable=406==e,this.notFound=404==e,this.forbidden=403==e},f.prototype.toError=function(){var e=this.req,t=e.method,i=e.url,n="cannot "+t+" "+i+" ("+this.status+")",o=new Error(n);return o.status=this.status,o.method=t,o.url=i,o},m.Response=f,A(y.prototype),y.prototype.use=function(e){return e(this),this},y.prototype.timeout=function(e){return this._timeout=e,this},y.prototype.clearTimeout=function(){return this._timeout=0,clearTimeout(this._timer),this},y.prototype.abort=function(){if(!this.aborted)return this.aborted=!0,this.xhr.abort(),this.clearTimeout(),this.emit("abort"),this},y.prototype.set=function(e,t){if(r(e)){for(var i in e)this.set(i,e[i]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},y.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},y.prototype.getHeader=function(e){return this._header[e.toLowerCase()]},y.prototype.type=function(e){return this.set("Content-Type",m.types[e]||e),this},y.prototype.parse=function(e){return this._parser=e,this},y.prototype.accept=function(e){return this.set("Accept",m.types[e]||e),this},y.prototype.auth=function(e,t){var i=btoa(e+":"+t);return this.set("Authorization","Basic "+i),this},y.prototype.query=function(e){return"string"!=typeof e&&(e=s(e)),e&&this._query.push(e),this},y.prototype.field=function(e,t){return this._formData||(this._formData=new v.FormData),this._formData.append(e,t),this},y.prototype.attach=function(e,t,i){return this._formData||(this._formData=new v.FormData),this._formData.append(e,t,i||t.name),this},y.prototype.send=function(e){var t=r(e),i=this.getHeader("Content-Type");if(t&&r(this._data))for(var n in e)this._data[n]=e[n];else"string"==typeof e?(i||this.type("form"),i=this.getHeader("Content-Type"),"application/x-www-form-urlencoded"==i?this._data=this._data?this._data+"&"+e:e:this._data=(this._data||"")+e):this._data=e;return!t||o(e)?this:(i||this.type("json"),this)},y.prototype.callback=function(e,t){var i=this._callback;this.clearTimeout(),i(e,t)},y.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},y.prototype.timeoutError=function(){var e=this._timeout,t=new Error("timeout of "+e+"ms exceeded");t.timeout=e,this.callback(t)},y.prototype.withCredentials=function(){return this._withCredentials=!0,this},y.prototype.end=function(e){var t=this,i=this.xhr=m.getXHR(),r=this._query.join("&"),s=this._timeout,a=this._formData||this._data;this._callback=e||n,i.onreadystatechange=function(){if(4==i.readyState){var e;try{e=i.status}catch(t){e=0}if(0==e){if(t.timedout)return t.timeoutError();if(t.aborted)return;return t.crossDomainError()}t.emit("end")}};var p=function(e){e.total>0&&(e.percent=e.loaded/e.total*100),e.direction="download",t.emit("progress",e)};this.hasListeners("progress")&&(i.onprogress=p);try{i.upload&&this.hasListeners("progress")&&(i.upload.onprogress=p)}catch(e){}if(s&&!this._timer&&(this._timer=setTimeout(function(){t.timedout=!0,t.abort()},s)),r&&(r=m.serializeObject(r),this.url+=~this.url.indexOf("?")?"&"+r:"?"+r),i.open(this.method,this.url,!0),this._withCredentials&&(i.withCredentials=!0),"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof a&&!o(a)){var l=this.getHeader("Content-Type"),u=this._parser||m.serialize[l?l.split(";")[0]:""];!u&&c(l)&&(u=m.serialize["application/json"]),u&&(a=u(a))}for(var d in this.header)null!=this.header[d]&&i.setRequestHeader(d,this.header[d]);return this.emit("request",this),i.send("undefined"!=typeof a?a:null),this},y.prototype.then=function(e,t){return this.end(function(i,n){i?t(i):e(n)})},m.Request=y,m.get=function(e,t,i){var n=m("GET",e);return"function"==typeof t&&(i=t,t=null),t&&n.query(t),i&&n.end(i),n},m.head=function(e,t,i){var n=m("HEAD",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},m.del=h,m.delete=h,m.patch=function(e,t,i){var n=m("PATCH",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},m.post=function(e,t,i){var n=m("POST",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},m.put=function(e,t,i){var n=m("PUT",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},t.exports=m},{emitter:6,reduce:24}],26:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AboutApi=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(t){this.apiClient=t||e.instance,this.getAppVersion=function(){var e=null,t={},i={},n={},o={},r=[],s=["application/json"],a=["application/json"],p={String:"String"};return this.apiClient.callApi("/api/enterprise/app-version","GET",t,i,n,o,e,r,s,a,p)}};return t})},{"../../../alfrescoApiClient":295}],27:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/CreateEndpointBasicAuthRepresentation","../model/EndpointBasicAuthRepresentation","../model/EndpointConfigurationRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/CreateEndpointBasicAuthRepresentation"),t("../model/EndpointBasicAuthRepresentation"),t("../model/EndpointConfigurationRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AdminEndpointsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.CreateEndpointBasicAuthRepresentation,n.ActivitiPublicRestApi.EndpointBasicAuthRepresentation,n.ActivitiPublicRestApi.EndpointConfigurationRepresentation))}(void 0,function(e,t,i,n){var o=function(t){this.apiClient=t||e.instance,this.createBasicAuthConfiguration=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'createRepresentation' when calling createBasicAuthConfiguration";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/admin/basic-auths","POST",n,o,r,s,t,a,p,l,c)},this.createEndpointConfiguration=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'representation' when calling createEndpointConfiguration";var i={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/admin/endpoints","POST",i,o,r,s,t,a,p,l,c)},this.getBasicAuthConfiguration=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'basicAuthId' when calling getBasicAuthConfiguration";if(void 0==t||null==t)throw"Missing the required parameter 'tenantId' when calling getBasicAuthConfiguration";var o={basicAuthId:e},r={tenantId:t},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/admin/basic-auths/{basicAuthId}","GET",o,r,s,a,n,p,l,c,u)},this.getBasicAuthConfigurations=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling getBasicAuthConfigurations";var n={},o={tenantId:e},r={},s={},a=[],p=["application/json"],l=["application/json"],c=[i];return this.apiClient.callApi("/api/enterprise/admin/basic-auths","GET",n,o,r,s,t,a,p,l,c)},this.getEndpointConfiguration=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'endpointConfigurationId' when calling getEndpointConfiguration";if(void 0==t||null==t)throw"Missing the required parameter 'tenantId' when calling getEndpointConfiguration";var o={endpointConfigurationId:e},r={tenantId:t},s={},a={},p=[],l=["application/json"],c=["application/json"],u=n;return this.apiClient.callApi("/api/enterprise/admin/endpoints/{endpointConfigurationId}","GET",o,r,s,a,i,p,l,c,u)},this.getEndpointConfigurations=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling getEndpointConfigurations";var i={},o={tenantId:e},r={},s={},a=[],p=["application/json"],l=["application/json"],c=[n];return this.apiClient.callApi("/api/enterprise/admin/endpoints","GET",i,o,r,s,t,a,p,l,c)},this.removeBasicAuthonfiguration=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'basicAuthId' when calling removeBasicAuthonfiguration";if(void 0==t||null==t)throw"Missing the required parameter 'tenantId' when calling removeBasicAuthonfiguration";var n={basicAuthId:e},o={tenantId:t},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/basic-auths/{basicAuthId}","DELETE",n,o,r,s,i,a,p,l,c)},this.removeEndpointConfiguration=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'endpointConfigurationId' when calling removeEndpointConfiguration";if(void 0==t||null==t)throw"Missing the required parameter 'tenantId' when calling removeEndpointConfiguration";var n={endpointConfigurationId:e},o={tenantId:t},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/endpoints/{endpointConfigurationId}","DELETE",n,o,r,s,i,a,p,l,c)},this.updateBasicAuthConfiguration=function(e,t){var n=t;if(void 0==e||null==e)throw"Missing the required parameter 'basicAuthId' when calling updateBasicAuthConfiguration";if(void 0==t||null==t)throw"Missing the required parameter 'createRepresentation' when calling updateBasicAuthConfiguration";var o={basicAuthId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/admin/basic-auths/{basicAuthId}","PUT",o,r,s,a,n,p,l,c,u)},this.updateEndpointConfiguration=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'endpointConfigurationId' when calling updateEndpointConfiguration";if(void 0==t||null==t)throw"Missing the required parameter 'representation' when calling updateEndpointConfiguration";var o={endpointConfigurationId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=n;return this.apiClient.callApi("/api/enterprise/admin/endpoints/{endpointConfigurationId}","PUT",o,r,s,a,i,p,l,c,u)}};return o})},{"../../../alfrescoApiClient":295,"../model/CreateEndpointBasicAuthRepresentation":90,"../model/EndpointBasicAuthRepresentation":93,"../model/EndpointConfigurationRepresentation":94}],28:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/AddGroupCapabilitiesRepresentation","../model/GroupRepresentation","../model/ResultListDataRepresentation","../model/AbstractGroupRepresentation","../model/LightGroupRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/AddGroupCapabilitiesRepresentation"),t("../model/GroupRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/AbstractGroupRepresentation"),t("../model/LightGroupRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AdminGroupsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.AddGroupCapabilitiesRepresentation,n.ActivitiPublicRestApi.GroupRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.AbstractGroupRepresentation,n.ActivitiPublicRestApi.LightGroupRepresentation))}(void 0,function(e,t,i,n,o,r){var s=function(t){this.apiClient=t||e.instance,this.activate=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling activate";var i={groupId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/action/activate","POST",i,n,o,r,t,s,a,p,l)},this.addAllUsersToGroup=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling addAllUsersToGroup";var i={groupId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/add-all-users","POST",i,n,o,r,t,s,a,p,l)},this.addGroupCapabilities=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling addGroupCapabilities";if(void 0==t||null==t)throw"Missing the required parameter 'addGroupCapabilitiesRepresentation' when calling addGroupCapabilities";var n={groupId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/capabilities","POST",n,o,r,s,i,a,p,l,c)},this.addGroupMember=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling addGroupMember";if(void 0==t||null==t)throw"Missing the required parameter 'userId' when calling addGroupMember";var n={groupId:e,userId:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/members/{userId}","POST",n,o,r,s,i,a,p,l,c)},this.addRelatedGroup=function(e,t,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling addRelatedGroup";if(void 0==t||null==t)throw"Missing the required parameter 'relatedGroupId' when calling addRelatedGroup";if(void 0==i||null==i)throw"Missing the required parameter 'type' when calling addRelatedGroup";var o={groupId:e,relatedGroupId:t},r={type:i},s={},a={},p=[],l=["application/json"],c=["application/json"],u=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/related-groups/{relatedGroupId}","POST",o,r,s,a,n,p,l,c,u)},this.createNewGroup=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'groupRepresentation' when calling createNewGroup";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/admin/groups","POST",n,o,r,s,t,a,p,l,c)},this.deleteGroupCapability=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling deleteGroupCapability";if(void 0==t||null==t)throw"Missing the required parameter 'groupCapabilityId' when calling deleteGroupCapability";var n={groupId:e,groupCapabilityId:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/capabilities/{groupCapabilityId}","DELETE",n,o,r,s,i,a,p,l,c)},this.deleteGroupMember=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling deleteGroupMember";if(void 0==t||null==t)throw"Missing the required parameter 'userId' when calling deleteGroupMember";var n={groupId:e,userId:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/members/{userId}","DELETE",n,o,r,s,i,a,p,l,c)},this.deleteGroup=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling deleteGroup";var i={groupId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}","DELETE",i,n,o,r,t,s,a,p,l)},this.deleteRelatedGroup=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling deleteRelatedGroup";if(void 0==t||null==t)throw"Missing the required parameter 'relatedGroupId' when calling deleteRelatedGroup";var n={groupId:e,relatedGroupId:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/related-groups/{relatedGroupId}","DELETE",n,o,r,s,i,a,p,l,c)},this.getCapabilities=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling getCapabilities";var i={groupId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=["String"];return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/potential-capabilities","GET",i,n,o,r,t,s,a,p,l)},this.getGroupUsers=function(e,t){t=t||{};var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling getGroupUsers";var o={groupId:e},r={filter:t.filter,page:t.page,pageSize:t.pageSize},s={},a={},p=[],l=["application/json"],c=["application/json"],u=n;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/users","GET",o,r,s,a,i,p,l,c,u)},this.getGroup=function(e,t){t=t||{};var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling getGroup";var n={groupId:e},r={includeAllUsers:t.includeAllUsers,summary:t.summary},s={},a={},p=[],l=["application/json"],c=["application/json"],u=o;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}","GET",n,r,s,a,i,p,l,c,u)},this.getGroups=function(e){e=e||{};var t=null,i={},n={tenantId:e.tenantId,functional:e.functional,summary:e.summary},o={},s={},a=[],p=["application/json"],l=["application/json"],c=[r];return this.apiClient.callApi("/api/enterprise/admin/groups","GET",i,n,o,s,t,a,p,l,c)},this.getRelatedGroups=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling getRelatedGroups";var i={groupId:e},n={},o={},s={},a=[],p=["application/json"],l=["application/json"],c=[r];return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}/related-groups","GET",i,n,o,s,t,a,p,l,c)},this.updateGroup=function(e,t){var n=t;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling updateGroup";if(void 0==t||null==t)throw"Missing the required parameter 'groupRepresentation' when calling updateGroup";var o={groupId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/admin/groups/{groupId}","PUT",o,r,s,a,n,p,l,c,u)}};return s})},{"../../../alfrescoApiClient":295,"../model/AbstractGroupRepresentation":72,"../model/AddGroupCapabilitiesRepresentation":75,"../model/GroupRepresentation":109,"../model/LightGroupRepresentation":113,"../model/ResultListDataRepresentation":138}],29:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/LightTenantRepresentation","../model/CreateTenantRepresentation","../model/TenantEvent","../model/TenantRepresentation","../model/ImageUploadRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/LightTenantRepresentation"),t("../model/CreateTenantRepresentation"),t("../model/TenantEvent"),t("../model/TenantRepresentation"),t("../model/ImageUploadRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AdminTenantsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.LightTenantRepresentation,n.ActivitiPublicRestApi.CreateTenantRepresentation,n.ActivitiPublicRestApi.TenantEvent,n.ActivitiPublicRestApi.TenantRepresentation,n.ActivitiPublicRestApi.ImageUploadRepresentation))}(void 0,function(e,t,i,n,o,r){var s=function(i){this.apiClient=i||e.instance,this.createTenant=function(e){var i=e;if(void 0==e||null==e)throw"Missing the required parameter 'createTenantRepresentation' when calling createTenant";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/admin/tenants","POST",n,o,r,s,i,a,p,l,c)},this.deleteTenant=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling deleteTenant";var i={tenantId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/admin/tenants/{tenantId}","DELETE",i,n,o,r,t,s,a,p,l)},this.getTenantEvents=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling getTenantEvents";var i={tenantId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=[n];return this.apiClient.callApi("/api/enterprise/admin/tenants/{tenantId}/events","GET",i,o,r,s,t,a,p,l,c)},this.getTenantLogo=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling getTenantLogo";var i={tenantId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/admin/tenants/{tenantId}/logo","GET",i,n,o,r,t,s,a,p,l)},this.getTenant=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling getTenant";var i={tenantId:e},n={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=o;return this.apiClient.callApi("/api/enterprise/admin/tenants/{tenantId}","GET",i,n,r,s,t,a,p,l,c)},this.getTenants=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=[t];return this.apiClient.callApi("/api/enterprise/admin/tenants","GET",i,n,o,r,e,s,a,p,l)},this.update=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling update";if(void 0==t||null==t)throw"Missing the required parameter 'createTenantRepresentation' when calling update";var n={tenantId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=o;return this.apiClient.callApi("/api/enterprise/admin/tenants/{tenantId}","PUT",n,r,s,a,i,p,l,c,u)},this.uploadTenantLogo=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'tenantId' when calling uploadTenantLogo";if(void 0==t||null==t)throw"Missing the required parameter 'file' when calling uploadTenantLogo";var n={tenantId:e},o={},s={},a={file:t},p=[],l=["multipart/form-data"],c=["application/json"],u=r;return this.apiClient.callApi("/api/enterprise/admin/tenants/{tenantId}/logo","POST",n,o,s,a,i,p,l,c,u)}};return s})},{"../../../alfrescoApiClient":295,"../model/CreateTenantRepresentation":92,"../model/ImageUploadRepresentation":110,"../model/LightTenantRepresentation":114,"../model/TenantEvent":148,"../model/TenantRepresentation":149}],30:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/BulkUserUpdateRepresentation","../model/UserRepresentation","../model/AbstractUserRepresentation","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/BulkUserUpdateRepresentation"),t("../model/UserRepresentation"),t("../model/AbstractUserRepresentation"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}), +n.ActivitiPublicRestApi.AdminUsersApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.BulkUserUpdateRepresentation,n.ActivitiPublicRestApi.UserRepresentation,n.ActivitiPublicRestApi.AbstractUserRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t,i,n,o){var r=function(t){this.apiClient=t||e.instance,this.bulkUpdateUsers=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'update' when calling bulkUpdateUsers";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/admin/users","PUT",i,n,o,r,t,s,a,p,l)},this.createNewUser=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'userRepresentation' when calling createNewUser";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/admin/users","POST",n,o,r,s,t,a,p,l,c)},this.getUser=function(e,t){t=t||{};var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling getUser";var o={userId:e},r={summary:t.summary},s={},a={},p=[],l=["application/json"],c=["application/json"],u=n;return this.apiClient.callApi("/api/enterprise/admin/users/{userId}","GET",o,r,s,a,i,p,l,c,u)},this.getUsers=function(e){e=e||{};var t=null,i={},n={filter:e.filter,status:e.status,accountType:e.accountType,sort:e.sort,company:e.company,start:e.start,page:e.page,size:e.size,groupId:e.groupId,tenantId:e.tenantId,summary:e.summary},r={},s={},a=[],p=["application/json"],l=["application/json"],c=o;return this.apiClient.callApi("/api/enterprise/admin/users","GET",i,n,r,s,t,a,p,l,c)},this.updateUserDetails=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling updateUserDetails";if(void 0==t||null==t)throw"Missing the required parameter 'userRepresentation' when calling updateUserDetails";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/admin/users/{userId}","PUT",n,o,r,s,i,a,p,l,c)}};return r})},{"../../../alfrescoApiClient":295,"../model/AbstractUserRepresentation":74,"../model/BulkUserUpdateRepresentation":83,"../model/ResultListDataRepresentation":138,"../model/UserRepresentation":154}],31:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AlfrescoApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.getAllNetworks=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks","GET",i,n,o,r,e,s,a,p,l)},this.getAllSites=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getAllSites";var n={networkId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/sites","GET",n,o,r,s,i,a,p,l,c)},this.getAllSites=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getAllSites";var n={repositoryId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/sites","GET",n,o,r,s,i,a,p,l,c)},this.getContentInFolder=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getContentInFolder";if(void 0==i||null==i)throw"Missing the required parameter 'folderId' when calling getContentInFolder";var o={networkId:e,folderId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/folders/{folderId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInFolder=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getContentInFolder";if(void 0==i||null==i)throw"Missing the required parameter 'folderId' when calling getContentInFolder";var o={repositoryId:e,folderId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/folders/{folderId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInSite=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getContentInSite";if(void 0==i||null==i)throw"Missing the required parameter 'siteId' when calling getContentInSite";var o={networkId:e,siteId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/sites/{siteId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInSite=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getContentInSite";if(void 0==i||null==i)throw"Missing the required parameter 'siteId' when calling getContentInSite";var o={repositoryId:e,siteId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/sites/{siteId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getRepositories=function(e){e=e||{};var i=null,n={},o={tenantId:e.tenantId,includeAccounts:e.includeAccounts},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/profile/accounts/alfresco","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],32:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/RuntimeAppDefinitionSaveRepresentation","../model/ResultListDataRepresentation","../model/AppDefinitionRepresentation","../model/AppDefinitionPublishRepresentation","../model/AppDefinitionUpdateResultRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/RuntimeAppDefinitionSaveRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/AppDefinitionRepresentation"),t("../model/AppDefinitionPublishRepresentation"),t("../model/AppDefinitionUpdateResultRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.RuntimeAppDefinitionSaveRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.AppDefinitionRepresentation,n.ActivitiPublicRestApi.AppDefinitionPublishRepresentation,n.ActivitiPublicRestApi.AppDefinitionUpdateResultRepresentation))}(void 0,function(e,t,i,n,o,r){var s=function(t){this.apiClient=t||e.instance,this.deployAppDefinitions=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'saveObject' when calling deployAppDefinitions";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/runtime-app-definitions","POST",i,n,o,r,t,s,a,p,l)},this.exportAppDefinition=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling exportAppDefinition";var i={modelId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/app-definitions/{modelId}/export","GET",i,n,o,r,t,s,a,p,l)},this.getAppDefinitions=function(){var e=null,t={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=i;return this.apiClient.callApi("/api/enterprise/runtime-app-definitions","GET",t,n,o,r,e,s,a,p,l)},this.importAppDefinition=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'file' when calling importAppDefinition";var i={},o={},r={},s={file:e},a=[],p=["multipart/form-data"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/app-definitions/import","POST",i,o,r,s,t,a,p,l,c)},this.importAppDefinition=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling importAppDefinition";if(void 0==t||null==t)throw"Missing the required parameter 'file' when calling importAppDefinition";var o={modelId:e},r={},s={},a={file:t},p=[],l=["multipart/form-data"],c=["application/json"],u=n;return this.apiClient.callApi("/api/enterprise/app-definitions/{modelId}/import","POST",o,r,s,a,i,p,l,c,u)},this.publishAppDefinition=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling publishAppDefinition";if(void 0==t||null==t)throw"Missing the required parameter 'publishModel' when calling publishAppDefinition";var n={modelId:e},o={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=r;return this.apiClient.callApi("/api/enterprise/app-definitions/{modelId}/publish","POST",n,o,s,a,i,p,l,c,u)}};return s})},{"../../../alfrescoApiClient":295,"../model/AppDefinitionPublishRepresentation":77,"../model/AppDefinitionRepresentation":78,"../model/AppDefinitionUpdateResultRepresentation":79,"../model/ResultListDataRepresentation":138,"../model/RuntimeAppDefinitionSaveRepresentation":139}],33:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/AppDefinitionRepresentation","../model/AppDefinitionPublishRepresentation","../model/AppDefinitionUpdateResultRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/AppDefinitionRepresentation"),t("../model/AppDefinitionPublishRepresentation"),t("../model/AppDefinitionUpdateResultRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppsDefinitionApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.AppDefinitionRepresentation,n.ActivitiPublicRestApi.AppDefinitionPublishRepresentation,n.ActivitiPublicRestApi.AppDefinitionUpdateResultRepresentation))}(void 0,function(e,t,i,n){var o=function(i){this.apiClient=i||e.instance,this.exportAppDefinition=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling exportAppDefinition";var i={modelId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/app-definitions/{modelId}/export","GET",i,n,o,r,t,s,a,p,l)},this.importAppDefinition=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'file' when calling importAppDefinition";var n={},o={},r={},s={file:e},a=[],p=["multipart/form-data"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/app-definitions/import","POST",n,o,r,s,i,a,p,l,c)},this.importAppDefinition=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling importAppDefinition";if(void 0==i||null==i)throw"Missing the required parameter 'file' when calling importAppDefinition";var o={modelId:e},r={},s={},a={file:i},p=[],l=["multipart/form-data"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/app-definitions/{modelId}/import","POST",o,r,s,a,n,p,l,c,u)},this.publishAppDefinition=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling publishAppDefinition";if(void 0==t||null==t)throw"Missing the required parameter 'publishModel' when calling publishAppDefinition";var o={modelId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=n;return this.apiClient.callApi("/api/enterprise/app-definitions/{modelId}/publish","POST",o,r,s,a,i,p,l,c,u)}};return o})},{"../../../alfrescoApiClient":295,"../model/AppDefinitionPublishRepresentation":77,"../model/AppDefinitionRepresentation":78,"../model/AppDefinitionUpdateResultRepresentation":79}],34:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/RuntimeAppDefinitionSaveRepresentation","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/RuntimeAppDefinitionSaveRepresentation"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppsRuntimeApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.RuntimeAppDefinitionSaveRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t,i){var n=function(t){this.apiClient=t||e.instance,this.deployAppDefinitions=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'saveObject' when calling deployAppDefinitions";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/runtime-app-definitions","POST",i,n,o,r,t,s,a,p,l)},this.getAppDefinitions=function(){var e=null,t={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=i;return this.apiClient.callApi("/api/enterprise/runtime-app-definitions","GET",t,n,o,r,e,s,a,p,l)}};return n})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138,"../model/RuntimeAppDefinitionSaveRepresentation":139}],35:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/CommentRepresentation","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/CommentRepresentation"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.CommentsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.CommentRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t,i){var n=function(n){this.apiClient=n||e.instance,this.addProcessInstanceComment=function(e,i){var n=e;if(void 0==e||null==e)throw"Missing the required parameter 'commentRequest' when calling addProcessInstanceComment";if(void 0==i||null==i)throw"Missing the required parameter 'processInstanceId' when calling addProcessInstanceComment";var o={processInstanceId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/comments","POST",o,r,s,a,n,p,l,c,u)},this.addTaskComment=function(e,i){var n=e;if(void 0==e||null==e)throw"Missing the required parameter 'commentRequest' when calling addTaskComment";if(void 0==i||null==i)throw"Missing the required parameter 'taskId' when calling addTaskComment";var o={taskId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/comments","POST",o,r,s,a,n,p,l,c,u)},this.getProcessInstanceComments=function(e,t){t=t||{};var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceComments";var o={processInstanceId:e},r={latestFirst:t.latestFirst},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/comments","GET",o,r,s,a,n,p,l,c,u)},this.getTaskComments=function(e,t){t=t||{};var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getTaskComments";var o={taskId:e},r={latestFirst:t.latestFirst},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/comments","GET",o,r,s,a,n,p,l,c,u)}};return n})},{"../../../alfrescoApiClient":295,"../model/CommentRepresentation":87,"../model/ResultListDataRepresentation":138}],36:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/RelatedContentRepresentation","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/RelatedContentRepresentation"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ContentApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.RelatedContentRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t,i){var n=function(n){this.apiClient=n||e.instance,this.createRelatedContentOnProcessInstance=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling createRelatedContentOnProcessInstance";if(void 0==i||null==i)throw"Missing the required parameter 'relatedContent' when calling createRelatedContentOnProcessInstance";var o={processInstanceId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/content","POST",o,r,s,a,n,p,l,c,u)},this.createRelatedContentOnProcessInstance=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling createRelatedContentOnProcessInstance";if(void 0==i||null==i)throw"Missing the required parameter 'file' when calling createRelatedContentOnProcessInstance";var o={processInstanceId:e},r={},s={},a={file:i},p=[],l=["multipart/form-data"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/raw-content","POST",o,r,s,a,n,p,l,c,u)},this.createRelatedContentOnTask=function(e,i,n){n=n||{};var o=i;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling createRelatedContentOnTask";if(void 0==i||null==i)throw"Missing the required parameter 'relatedContent' when calling createRelatedContentOnTask";var r={taskId:e},s={isRelatedContent:n.isRelatedContent},a={},p={},l=[],c=["application/json"],u=["application/json"],d=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/content","POST",r,s,a,p,o,l,c,u,d)},this.createRelatedContentOnTask=function(e,i,n){n=n||{};var o=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling createRelatedContentOnTask";if(void 0==i||null==i)throw"Missing the required parameter 'file' when calling createRelatedContentOnTask";var r={taskId:e},s={isRelatedContent:n.isRelatedContent},a={},p={file:i},l=[],c=["multipart/form-data"],u=["application/json"],d=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/raw-content","POST",r,s,a,p,o,l,c,u,d)},this.createTemporaryRawRelatedContent=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'file' when calling createTemporaryRawRelatedContent";var n={},o={},r={},s={file:e},a=[],p=["multipart/form-data"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/content/raw","POST",n,o,r,s,i,a,p,l,c)},this.createTemporaryRelatedContent=function(e){var i=e;if(void 0==e||null==e)throw"Missing the required parameter 'relatedContent' when calling createTemporaryRelatedContent";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/content","POST",n,o,r,s,i,a,p,l,c)},this.deleteContent=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'contentId' when calling deleteContent";var i={contentId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/content/{contentId}","DELETE",i,n,o,r,t,s,a,p,l)},this.getContent=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'contentId' when calling getContent";var n={contentId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/content/{contentId}","GET",n,o,r,s,i,a,p,l,c)},this.getProcessInstanceContent=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceContent";var n={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/field-content","GET",n,o,r,s,t,a,p,l,c)},this.getRawContent3=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'contentId' when calling getRawContent3";var i={contentId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/content/{contentId}/raw","GET",i,n,o,r,t,s,a,p,l)},this.getRelatedContentForProcessInstance=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getRelatedContentForProcessInstance";var n={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/content","GET",n,o,r,s,t,a,p,l,c)},this.getRelatedContentForTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getRelatedContentForTask";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/content","GET",n,o,r,s,t,a,p,l,c)}};return n})},{"../../../alfrescoApiClient":295,"../model/RelatedContentRepresentation":133,"../model/ResultListDataRepresentation":138}],37:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ContentRenditionApi=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(t){this.apiClient=t||e.instance,this.getRawContent=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'contentId' when calling getRawContent";if(void 0==t||null==t)throw"Missing the required parameter 'renditionType' when calling getRawContent";var n={contentId:e,renditionType:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/content/{contentId}/rendition/{renditionType}","GET",n,o,r,s,i,a,p,l,c)}};return t})},{"../../../alfrescoApiClient":295}],38:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/FormRepresentation","../model/FormSaveRepresentation","../model/ValidationErrorRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/FormRepresentation"),t("../model/FormSaveRepresentation"),t("../model/ValidationErrorRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.EditorApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.FormRepresentation,n.ActivitiPublicRestApi.FormSaveRepresentation,n.ActivitiPublicRestApi.ValidationErrorRepresentation))}(void 0,function(e,t,i,n){var o=function(i){this.apiClient=i||e.instance,this.getFormHistory=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'formId' when calling getFormHistory";if(void 0==i||null==i)throw"Missing the required parameter 'formHistoryId' when calling getFormHistory";var o={formId:e,formHistoryId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/editor/form-models/{formId}/history/{formHistoryId}","GET",o,r,s,a,n,p,l,c,u)},this.getForm=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'formId' when calling getForm";var n={formId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/editor/form-models/{formId}","GET",n,o,r,s,i,a,p,l,c)},this.getForms=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=[t];return this.apiClient.callApi("/api/enterprise/editor/form-models/values","GET",i,n,o,r,e,s,a,p,l)},this.saveForm=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'formId' when calling saveForm";if(void 0==i||null==i)throw"Missing the required parameter 'saveRepresentation' when calling saveForm";var o={formId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/editor/form-models/{formId}","PUT",o,r,s,a,n,p,l,c,u)},this.validateModel=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'formId' when calling validateModel";if(void 0==t||null==t)throw"Missing the required parameter 'saveRepresentation' when calling validateModel";var o={formId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=[n];return this.apiClient.callApi("/api/enterprise/editor/form-models/{formId}/validate","PUT",o,r,s,a,i,p,l,c,u)}};return o})},{"../../../alfrescoApiClient":295,"../model/FormRepresentation":103,"../model/FormSaveRepresentation":104,"../model/ValidationErrorRepresentation":156}],39:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.GroupsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getGroups=function(e){e=e||{};var i=null,n={},o={filter:e.filter,groupId:e.groupId,externalId:e.externalId,externalIdCaseInsensitive:e.externalIdCaseInsensitive,tenantId:e.tenantId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/groups","GET",n,o,r,s,i,a,p,l,c)},this.getUsersForGroup=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'groupId' when calling getUsersForGroup";var n={groupId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/groups/{groupId}/users","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],40:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/SyncLogEntryRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/SyncLogEntryRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IDMSyncApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.SyncLogEntryRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getLogFile=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'syncLogEntryId' when calling getLogFile";var i={syncLogEntryId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/idm-sync-log-entries/{syncLogEntryId}/logfile","GET",i,n,o,r,t,s,a,p,l)},this.getSyncLogEntries=function(e){e=e||{};var i=null,n={},o={tenantId:e.tenantId,page:e.page,size:e.size},r={},s={},a=[],p=["application/json"],l=["application/json"],c=[t];return this.apiClient.callApi("/api/enterprise/idm-sync-log-entries","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/SyncLogEntryRepresentation":141}],41:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IntegrationAccountApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getAccounts=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=t;return this.apiClient.callApi("/api/enterprise/account/integration","GET",i,n,o,r,e,s,a,p,l)}};return i})},{"../../../alfrescoApiClient":295, +"../model/ResultListDataRepresentation":138}],42:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IntegrationAlfrescoCloudApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.getAllNetworks=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks","GET",i,n,o,r,e,s,a,p,l)},this.getAllSites=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getAllSites";var n={networkId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/sites","GET",n,o,r,s,i,a,p,l,c)},this.getContentInFolder=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getContentInFolder";if(void 0==i||null==i)throw"Missing the required parameter 'folderId' when calling getContentInFolder";var o={networkId:e,folderId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/folders/{folderId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInSite=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getContentInSite";if(void 0==i||null==i)throw"Missing the required parameter 'siteId' when calling getContentInSite";var o={networkId:e,siteId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/sites/{siteId}/content","GET",o,r,s,a,n,p,l,c,u)}};return i})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],43:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IntegrationAlfrescoOnPremiseApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getAllSites=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getAllSites";var n={repositoryId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/sites","GET",n,o,r,s,i,a,p,l,c)},this.getContentInFolder=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getContentInFolder";if(void 0==i||null==i)throw"Missing the required parameter 'folderId' when calling getContentInFolder";var o={repositoryId:e,folderId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/folders/{folderId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInSite=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getContentInSite";if(void 0==i||null==i)throw"Missing the required parameter 'siteId' when calling getContentInSite";var o={repositoryId:e,siteId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/sites/{siteId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getRepositories=function(e){e=e||{};var i=null,n={},o={tenantId:e.tenantId,includeAccounts:e.includeAccounts},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/profile/accounts/alfresco","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],44:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/UserAccountCredentialsRepresentation","../model/ResultListDataRepresentation","../model/BoxUserAccountCredentialsRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/UserAccountCredentialsRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/BoxUserAccountCredentialsRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IntegrationApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.UserAccountCredentialsRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.BoxUserAccountCredentialsRepresentation))}(void 0,function(e,t,i,n){var o=function(t){this.apiClient=t||e.instance,this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/box/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/google-drive/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.createRepositoryAccount=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling createRepositoryAccount";if(void 0==t||null==t)throw"Missing the required parameter 'credentials' when calling createRepositoryAccount";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","POST",n,o,r,s,i,a,p,l,c)},this.deleteRepositoryAccount=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling deleteRepositoryAccount";var i={userId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","DELETE",i,n,o,r,t,s,a,p,l)},this.getAllNetworks=function(){var e=null,t={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks","GET",t,n,o,r,e,s,a,p,l)},this.getAllSites=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getAllSites";var n={networkId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/sites","GET",n,o,r,s,t,a,p,l,c)},this.getAllSites=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getAllSites";var n={repositoryId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/sites","GET",n,o,r,s,t,a,p,l,c)},this.getBoxPluginStatus=function(){var e=null,t={},i={},n={},o={},r=[],s=["application/json"],a=["application/json"],p="Boolean";return this.apiClient.callApi("/api/enterprise/integration/box/status","GET",t,i,n,o,e,r,s,a,p)},this.getContentInFolder=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getContentInFolder";if(void 0==t||null==t)throw"Missing the required parameter 'folderId' when calling getContentInFolder";var o={networkId:e,folderId:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/folders/{folderId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInFolder=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getContentInFolder";if(void 0==t||null==t)throw"Missing the required parameter 'folderId' when calling getContentInFolder";var o={repositoryId:e,folderId:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/folders/{folderId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInSite=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'networkId' when calling getContentInSite";if(void 0==t||null==t)throw"Missing the required parameter 'siteId' when calling getContentInSite";var o={networkId:e,siteId:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco-cloud/networks/{networkId}/sites/{siteId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getContentInSite=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'repositoryId' when calling getContentInSite";if(void 0==t||null==t)throw"Missing the required parameter 'siteId' when calling getContentInSite";var o={repositoryId:e,siteId:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/integration/alfresco/{repositoryId}/sites/{siteId}/content","GET",o,r,s,a,n,p,l,c,u)},this.getFiles=function(e){e=e||{};var t=null,n={},o={filter:e.filter,parent:e.parent},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/integration/box/files","GET",n,o,r,s,t,a,p,l,c)},this.getFiles=function(e){e=e||{};var t=null,n={},o={filter:e.filter,parent:e.parent,currentFolderOnly:e.currentFolderOnly},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/integration/google-drive/files","GET",n,o,r,s,t,a,p,l,c)},this.getRepositories=function(e){e=e||{};var t=null,n={},o={tenantId:e.tenantId,includeAccounts:e.includeAccounts},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/profile/accounts/alfresco","GET",n,o,r,s,t,a,p,l,c)},this.getRepositoryAccount=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling getRepositoryAccount";var i={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","GET",i,o,r,s,t,a,p,l,c)},this.updateRepositoryAccount=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling updateRepositoryAccount";if(void 0==t||null==t)throw"Missing the required parameter 'credentials' when calling updateRepositoryAccount";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","PUT",n,o,r,s,i,a,p,l,c)}};return o})},{"../../../alfrescoApiClient":295,"../model/BoxUserAccountCredentialsRepresentation":82,"../model/ResultListDataRepresentation":138,"../model/UserAccountCredentialsRepresentation":150}],45:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/UserAccountCredentialsRepresentation","../model/ResultListDataRepresentation","../model/BoxUserAccountCredentialsRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/UserAccountCredentialsRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/BoxUserAccountCredentialsRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IntegrationBoxApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.UserAccountCredentialsRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.BoxUserAccountCredentialsRepresentation))}(void 0,function(e,t,i,n){var o=function(t){this.apiClient=t||e.instance,this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/box/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.createRepositoryAccount=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling createRepositoryAccount";if(void 0==t||null==t)throw"Missing the required parameter 'credentials' when calling createRepositoryAccount";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","POST",n,o,r,s,i,a,p,l,c)},this.deleteRepositoryAccount=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling deleteRepositoryAccount";var i={userId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","DELETE",i,n,o,r,t,s,a,p,l)},this.getBoxPluginStatus=function(){var e=null,t={},i={},n={},o={},r=[],s=["application/json"],a=["application/json"],p="Boolean";return this.apiClient.callApi("/api/enterprise/integration/box/status","GET",t,i,n,o,e,r,s,a,p)},this.getFiles=function(e){e=e||{};var t=null,n={},o={filter:e.filter,parent:e.parent},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/integration/box/files","GET",n,o,r,s,t,a,p,l,c)},this.getRepositoryAccount=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling getRepositoryAccount";var i={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","GET",i,o,r,s,t,a,p,l,c)},this.updateRepositoryAccount=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling updateRepositoryAccount";if(void 0==t||null==t)throw"Missing the required parameter 'credentials' when calling updateRepositoryAccount";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/integration/box/{userId}/account","PUT",n,o,r,s,i,a,p,l,c)}};return o})},{"../../../alfrescoApiClient":295,"../model/BoxUserAccountCredentialsRepresentation":82,"../model/ResultListDataRepresentation":138,"../model/UserAccountCredentialsRepresentation":150}],46:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.IntegrationDriveApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.confirmAuthorisation=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'code' when calling confirmAuthorisation";var i={},n={code:e},o={},r={},s=[],a=["application/json"],p=["text/html","application/json"],l=null;return this.apiClient.callApi("/api/enterprise/integration/google-drive/confirm-auth-request","GET",i,n,o,r,t,s,a,p,l)},this.getFiles=function(e){e=e||{};var i=null,n={},o={filter:e.filter,parent:e.parent,currentFolderOnly:e.currentFolderOnly},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/integration/google-drive/files","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],47:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ModelBpmnApi=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(t){this.apiClient=t||e.instance,this.getHistoricProcessModelBpmn20Xml=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'processModelId' when calling getHistoricProcessModelBpmn20Xml";if(void 0==t||null==t)throw"Missing the required parameter 'processModelHistoryId' when calling getHistoricProcessModelBpmn20Xml";var n={processModelId:e,processModelHistoryId:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/models/{processModelId}/history/{processModelHistoryId}/bpmn20","GET",n,o,r,s,i,a,p,l,c)},this.getProcessModelBpmn20Xml=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processModelId' when calling getProcessModelBpmn20Xml";var i={processModelId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/models/{processModelId}/bpmn20","GET",i,n,o,r,t,s,a,p,l)}};return t})},{"../../../alfrescoApiClient":295}],48:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ObjectNode"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ObjectNode")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ModelJsonBpmnApi=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getHistoricEditorDisplayJsonClient=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'processModelId' when calling getHistoricEditorDisplayJsonClient";if(void 0==i||null==i)throw"Missing the required parameter 'processModelHistoryId' when calling getHistoricEditorDisplayJsonClient";var o={processModelId:e,processModelHistoryId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/app/rest/models/{processModelId}/history/{processModelHistoryId}/model-json","GET",o,r,s,a,n,p,l,c,u)},this.getEditorDisplayJsonClient=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'processModelId' when calling getEditorDisplayJsonClient";var n={processModelId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/app/rest/models/{processModelId}/model-json","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/ObjectNode":121}],49:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ModelRepresentation","../model/ObjectNode","../model/ResultListDataRepresentation","../model/ValidationErrorRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ModelRepresentation"),t("../model/ObjectNode"),t("../model/ResultListDataRepresentation"),t("../model/ValidationErrorRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ModelsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ModelRepresentation,n.ActivitiPublicRestApi.ObjectNode,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.ValidationErrorRepresentation))}(void 0,function(e,t,i,n,o){var r=function(r){this.apiClient=r||e.instance,this.createModel=function(e){var i=e;if(void 0==e||null==e)throw"Missing the required parameter 'modelRepresentation' when calling createModel";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/models","POST",n,o,r,s,i,a,p,l,c)},this.deleteModel=function(e,t){t=t||{};var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling deleteModel";var n={modelId:e},o={cascade:t.cascade,deleteRuntimeApp:t.deleteRuntimeApp},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/models/{modelId}","DELETE",n,o,r,s,i,a,p,l,c)},this.duplicateModel=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling duplicateModel";if(void 0==i||null==i)throw"Missing the required parameter 'modelRepresentation' when calling duplicateModel";var o={modelId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/models/{modelId}/clone","POST",o,r,s,a,n,p,l,c,u)},this.getModelJSON=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling getModelJSON";var n={modelId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/models/{modelId}/editor/json","GET",n,o,r,s,t,a,p,l,c)},this.getModelThumbnail=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling getModelThumbnail";var i={modelId:e},n={},o={},r={},s=[],a=["application/json"],p=["image/png","application/json"],l=["String"];return this.apiClient.callApi("/api/enterprise/models/{modelId}/thumbnail","GET",i,n,o,r,t,s,a,p,l)},this.getModel=function(e,i){i=i||{};var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling getModel";var o={modelId:e},r={includePermissions:i.includePermissions},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/models/{modelId}","GET",o,r,s,a,n,p,l,c,u)},this.getModelsToIncludeInAppDefinition=function(){var e=null,t={},i={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=n;return this.apiClient.callApi("/api/enterprise/models-for-app-definition","GET",t,i,o,r,e,s,a,p,l)},this.getModels=function(e){e=e||{};var t=null,i={},o={filter:e.filter,filterText:e.filterText,sort:e.sort,modelType:e.modelType,referenceId:e.referenceId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/models","GET",i,o,r,s,t,a,p,l,c)},this.importNewVersion=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling importNewVersion";if(void 0==i||null==i)throw"Missing the required parameter 'file' when calling importNewVersion";var o={modelId:e},r={},s={},a={file:i},p=[],l=["multipart/form-data"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/models/{modelId}/newversion","POST",o,r,s,a,n,p,l,c,u)},this.importProcessModel=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'file' when calling importProcessModel";var n={},o={},r={},s={file:e},a=[],p=["multipart/form-data"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/process-models/import","POST",n,o,r,s,i,a,p,l,c)},this.saveModel=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling saveModel";if(void 0==i||null==i)throw"Missing the required parameter 'values' when calling saveModel";var o={modelId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/models/{modelId}/editor/json","POST",o,r,s,a,n,p,l,c,u)},this.updateModel=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling updateModel";if(void 0==i||null==i)throw"Missing the required parameter 'updatedModel' when calling updateModel";var o={modelId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/models/{modelId}","PUT",o,r,s,a,n,p,l,c,u)},this.validateModel=function(e,t){t=t||{};var i=t.values;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling validateModel";var n={modelId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=[o];return this.apiClient.callApi("/api/enterprise/models/{modelId}/editor/validate","POST",n,r,s,a,i,p,l,c,u)}};return r})},{"../../../alfrescoApiClient":295,"../model/ModelRepresentation":120,"../model/ObjectNode":121,"../model/ResultListDataRepresentation":138,"../model/ValidationErrorRepresentation":156}],50:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation","../model/ModelRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation"),t("../model/ModelRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ModelsHistoryApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.ModelRepresentation))}(void 0,function(e,t,i){var n=function(n){this.apiClient=n||e.instance,this.getModelHistoryCollection=function(e,i){i=i||{};var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling getModelHistoryCollection";var o={modelId:e},r={includeLatestVersion:i.includeLatestVersion},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/models/{modelId}/history","GET",o,r,s,a,n,p,l,c,u)},this.getProcessModelHistory=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'modelId' when calling getProcessModelHistory";if(void 0==t||null==t)throw"Missing the required parameter 'modelHistoryId' when calling getProcessModelHistory";var o={modelId:e,modelHistoryId:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/models/{modelId}/history/{modelHistoryId}","GET",o,r,s,a,n,p,l,c,u)}};return n})},{"../../../alfrescoApiClient":295,"../model/ModelRepresentation":120,"../model/ResultListDataRepresentation":138}],51:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ProcessInstanceFilterRequestRepresentation","../model/ResultListDataRepresentation","../model/FormDefinitionRepresentation","../model/ProcessInstanceRepresentation","../model/ProcessFilterRequestRepresentation","../model/FormValueRepresentation","../model/CreateProcessInstanceRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ProcessInstanceFilterRequestRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/FormDefinitionRepresentation"),t("../model/ProcessInstanceRepresentation"),t("../model/ProcessFilterRequestRepresentation"),t("../model/FormValueRepresentation"),t("../model/CreateProcessInstanceRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ProcessInstanceFilterRequestRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.FormDefinitionRepresentation,n.ActivitiPublicRestApi.ProcessInstanceRepresentation,n.ActivitiPublicRestApi.ProcessFilterRequestRepresentation,n.ActivitiPublicRestApi.FormValueRepresentation,n.ActivitiPublicRestApi.CreateProcessInstanceRepresentation))}(void 0,function(e,t,i,n,o,r,s,a){var p=function(t){this.apiClient=t||e.instance,this.deleteProcessInstance=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling deleteProcessInstance";var i={processInstanceId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}","DELETE",i,n,o,r,t,s,a,p,l)},this.filterProcessInstances=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'filterRequest' when calling filterProcessInstances"; +var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/filter","POST",n,o,r,s,t,a,p,l,c)},this.getProcessDefinitionStartForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processDefinitionId' when calling getProcessInstanceContent";var i={processDefinitionId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/process-definitions/{processDefinitionId}/start-form","GET",i,o,r,s,t,a,p,l,c)},this.getProcessDefinitions=function(e){e=e||{};var t=null,n={},o={latest:e.latest,appDefinitionId:e.appDefinitionId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-definitions","GET",n,o,r,s,t,a,p,l,c)},this.getProcessInstanceContent=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceContent";var n={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/field-content","GET",n,o,r,s,t,a,p,l,c)},this.getProcessInstanceStartForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceStartForm";var i={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/start-form","GET",i,o,r,s,t,a,p,l,c)},this.getProcessInstance=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstance";var i={processInstanceId:e},n={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=o;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}","GET",i,n,r,s,t,a,p,l,c)},this.getProcessInstances=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'requestNode' when calling getProcessInstances";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/query","POST",n,o,r,s,t,a,p,l,c)},this.getRestFieldValues=function(e,t){var i=null,n={processDefinitionId:e,field:t},o={},r={},a={},p=[],l=["application/json"],c=["application/json"],u=[s];return this.apiClient.callApi("/api/enterprise/process-definitions/{processDefinitionId}/start-form-values/{field}","GET",n,o,r,a,i,p,l,c,u)},this.getRestTableFieldValues=function(e,t,i){var n=null,o={processDefinitionId:e,field:t,column:i},r={},a={},p={},l=[],c=["application/json"],u=["application/json"],d=[s];return this.apiClient.callApi("/api/enterprise/process-definitions/{processDefinitionId}/start-form-values/{field}/{column}","GET",o,r,a,p,n,l,c,u,d)},this.startNewProcessInstance=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'startRequest' when calling startNewProcessInstance";var i={},n={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=o;return this.apiClient.callApi("/api/enterprise/process-instances","POST",i,n,r,s,t,a,p,l,c)}};return p})},{"../../../alfrescoApiClient":295,"../model/CreateProcessInstanceRepresentation":91,"../model/FormDefinitionRepresentation":99,"../model/FormValueRepresentation":107,"../model/ProcessFilterRequestRepresentation":124,"../model/ProcessInstanceFilterRequestRepresentation":126,"../model/ProcessInstanceRepresentation":127,"../model/ResultListDataRepresentation":138}],52:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessDefinitionsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getProcessDefinitions=function(e){e=e||{};var i=null,n={},o={latest:e.latest,appDefinitionId:e.appDefinitionId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/process-definitions","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],53:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/FormDefinitionRepresentation","../model/FormValueRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/FormDefinitionRepresentation"),t("../model/FormValueRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessDefinitionsFormApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.FormDefinitionRepresentation,n.ActivitiPublicRestApi.FormValueRepresentation))}(void 0,function(e,t,i){var n=function(n){this.apiClient=n||e.instance,this.getProcessDefinitionStartForm=function(e){var i=null,n={processDefinitionId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/process-definitions/{processDefinitionId}/start-form","GET",n,o,r,s,i,a,p,l,c)},this.getRestFieldValues=function(e,t){var n=null,o={processDefinitionId:e,field:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=[i];return this.apiClient.callApi("/api/enterprise/process-definitions/{processDefinitionId}/start-form-values/{field}","GET",o,r,s,a,n,p,l,c,u)},this.getRestTableFieldValues=function(e,t,n){var o=null,r={processDefinitionId:e,field:t,column:n},s={},a={},p={},l=[],c=["application/json"],u=["application/json"],d=[i];return this.apiClient.callApi("/api/enterprise/process-definitions/{processDefinitionId}/start-form-values/{field}/{column}","GET",r,s,a,p,o,l,c,u,d)}};return n})},{"../../../alfrescoApiClient":295,"../model/FormDefinitionRepresentation":99,"../model/FormValueRepresentation":107}],54:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/RestVariable"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/RestVariable")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstanceVariablesApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.RestVariable))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getProcessInstanceVariables=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceVariables";var n={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=[t];return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/variables","GET",n,o,r,s,i,a,p,l,c)},this.createProcessInstanceVariables=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling createProcessInstanceVariables";if(void 0==i||null==i)throw"Missing the required parameter 'restVariables' when calling createProcessInstanceVariables";var o={processInstanceId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=[t];return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/variables","POST",o,r,s,a,n,p,l,c,u)},this.createOrUpdateProcessInstanceVariables=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling createOrUpdateProcessInstanceVariables";if(void 0==i||null==i)throw"Missing the required parameter 'restVariables' when calling createOrUpdateProcessInstanceVariables";var o={processInstanceId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=[t];return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/variables","PUT",o,r,s,a,n,p,l,c,u)},this.getProcessInstanceVariable=function(e,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceVariable";if(void 0==i||null==i)throw"Missing the required parameter 'variableName' when calling getProcessInstanceVariable";var o={processInstanceId:e,variableName:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/variables/{variableName}","GET",o,r,s,a,n,p,l,c,u)},this.updateProcessInstanceVariable=function(e,i,n){var o=n;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling updateProcessInstanceVariable";if(void 0==i||null==i)throw"Missing the required parameter 'variableName' when calling updateProcessInstanceVariable";var r={processInstanceId:e,variableName:i},s={},a={},p={},l=[],c=["application/json"],u=["application/json"],d=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/variables/{variableName}","PUT",r,s,a,p,o,l,c,u,d)},this.deleteProcessInstanceVariable=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling deleteProcessInstanceVariable";if(void 0==t||null==t)throw"Missing the required parameter 'variableName' when calling deleteProcessInstanceVariable";var n={processInstanceId:e,variableName:t},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/variables/{variableName}","DELETE",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/RestVariable":137}],55:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/CommentRepresentation","../model/ResultListDataRepresentation","../model/FormDefinitionRepresentation","../model/ProcessInstanceRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/CommentRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/FormDefinitionRepresentation"),t("../model/ProcessInstanceRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstancesApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.CommentRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.FormDefinitionRepresentation,n.ActivitiPublicRestApi.ProcessInstanceRepresentation))}(void 0,function(e,t,i,n,o){var r=function(r){this.apiClient=r||e.instance,this.addProcessInstanceComment=function(e,i){var n=e;if(void 0==e||null==e)throw"Missing the required parameter 'commentRequest' when calling addProcessInstanceComment";if(void 0==i||null==i)throw"Missing the required parameter 'processInstanceId' when calling addProcessInstanceComment";var o={processInstanceId:i},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/comments","POST",o,r,s,a,n,p,l,c,u)},this.deleteProcessInstance=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling deleteProcessInstance";var i={processInstanceId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}","DELETE",i,n,o,r,t,s,a,p,l)},this.getProcessInstanceComments=function(e,t){t=t||{};var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceComments";var o={processInstanceId:e},r={latestFirst:t.latestFirst},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/comments","GET",o,r,s,a,n,p,l,c,u)},this.getProcessInstanceStartForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceStartForm";var i={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/start-form","GET",i,o,r,s,t,a,p,l,c)},this.getProcessInstance=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstance";var i={processInstanceId:e},n={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=o;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}","GET",i,n,r,s,t,a,p,l,c)}};return r})},{"../../../alfrescoApiClient":295,"../model/CommentRepresentation":87,"../model/FormDefinitionRepresentation":99,"../model/ProcessInstanceRepresentation":127,"../model/ResultListDataRepresentation":138}],56:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation","../model/CreateProcessInstanceRepresentation","../model/ProcessInstanceRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation"),t("../model/CreateProcessInstanceRepresentation"),t("../model/ProcessInstanceRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstancesInformationApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.CreateProcessInstanceRepresentation,n.ActivitiPublicRestApi.ProcessInstanceRepresentation))}(void 0,function(e,t,i,n){var o=function(i){this.apiClient=i||e.instance,this.getProcessInstanceContent=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'processInstanceId' when calling getProcessInstanceContent";var n={processInstanceId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/process-instances/{processInstanceId}/field-content","GET",n,o,r,s,i,a,p,l,c)},this.startNewProcessInstance=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'startRequest' when calling startNewProcessInstance";var i={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/process-instances","POST",i,o,r,s,t,a,p,l,c)}};return o})},{"../../../alfrescoApiClient":295,"../model/CreateProcessInstanceRepresentation":91,"../model/ProcessInstanceRepresentation":127,"../model/ResultListDataRepresentation":138}],57:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ProcessInstanceFilterRequestRepresentation","../model/ResultListDataRepresentation","../model/ObjectNode"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ProcessInstanceFilterRequestRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/ObjectNode")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstancesListingApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ProcessInstanceFilterRequestRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.ObjectNode))}(void 0,function(e,t,i,n){var o=function(t){this.apiClient=t||e.instance,this.filterProcessInstances=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'filterRequest' when calling filterProcessInstances";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/filter","POST",n,o,r,s,t,a,p,l,c)},this.getProcessInstances=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'requestNode' when calling getProcessInstances";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/process-instances/query","POST",n,o,r,s,t,a,p,l,c)}};return o})},{"../../../alfrescoApiClient":295,"../model/ObjectNode":121,"../model/ProcessInstanceFilterRequestRepresentation":126,"../model/ResultListDataRepresentation":138}],58:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ProcessScopesRequestRepresentation","../model/ProcessScopeRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ProcessScopesRequestRepresentation"),t("../model/ProcessScopeRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessScopeApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ProcessScopesRequestRepresentation,n.ActivitiPublicRestApi.ProcessScopeRepresentation))}(void 0,function(e,t,i){var n=function(t){this.apiClient=t||e.instance,this.getRuntimeProcessScopes=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'processScopesRequest' when calling getRuntimeProcessScopes";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=[i];return this.apiClient.callApi("/api/enterprise/process-scopes","POST",n,o,r,s,t,a,p,l,c)}};return n})},{"../../../alfrescoApiClient":295,"../model/ProcessScopeRepresentation":130,"../model/ProcessScopesRequestRepresentation":131}],59:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ChangePasswordRepresentation","../model/UserRepresentation","../model/ImageUploadRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ChangePasswordRepresentation"),t("../model/UserRepresentation"),t("../model/ImageUploadRepresentation"),t("../model/File")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProfileApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ChangePasswordRepresentation,n.ActivitiPublicRestApi.UserRepresentation,n.ActivitiPublicRestApi.ImageUploadRepresentation,n.ActivitiPublicRestApi.File))}(void 0,function(e,t,i,n,o){var r=function(t){this.apiClient=t||e.instance,this.changePassword=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'changePasswordRepresentation' when calling changePassword";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/profile-password","POST",i,n,o,r,t,s,a,p,l)},this.getProfilePicture=function(){var e=null,t={},i={},n={},r={},s=[],a=["application/json"],p=["application/json"],l=o;return this.apiClient.callApi("/api/enterprise/profile-picture","GET",t,i,n,r,e,s,a,p,l)},this.getProfilePictureUrl=function(){return this.apiClient.basePath+"/app/rest/admin/profile-picture"},this.getProfile=function(){var e=null,t={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=i;return this.apiClient.callApi("/api/enterprise/profile","GET",t,n,o,r,e,s,a,p,l)},this.updateProfile=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'userRepresentation' when calling updateProfile";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/profile","POST",n,o,r,s,t,a,p,l,c)},this.uploadProfilePicture=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'file' when calling uploadProfilePicture";var i={},o={},r={},s={file:e},a=[],p=["multipart/form-data"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/profile-picture","POST",i,o,r,s,t,a,p,l,c)}};return r})},{"../../../alfrescoApiClient":295,"../model/ChangePasswordRepresentation":84,"../model/File":98,"../model/ImageUploadRepresentation":110,"../model/UserRepresentation":154}],60:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ReportCharts","../model/ParameterValueRepresentation","../model/ReportParametersDefinition"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ReportCharts"),t("../model/ParameterValueRepresentation"),t("../model/ReportParametersDefinition")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ReportApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ReportCharts,n.ActivitiPublicRestApi.ParameterValueRepresentation,n.ActivitiPublicRestApi.ReportParametersDefinition))}(void 0,function(e,t,i,n){var o=function(o){this.apiClient=o||e.instance,this.createDefaultReports=function(){var e=null,t={},i={},n={},o={},r=[],s=["application/json"],a=["application/json"],p=null;return this.apiClient.callApi("/app/rest/reporting/default-reports","POST",t,i,n,o,e,r,s,a,p)},this.getTasksByProcessDefinitionId=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'reportId' when calling getTasksByProcessDefinitionId";if(void 0==t||null==t)throw"Missing the required parameter 'processDefinitionId' when calling getTasksByProcessDefinitionId";var n={reportId:e},o={processDefinitionId:t},r={},s={},a=[],p=["application/json"],l=["application/json"],c=["String"];return this.apiClient.callApi("/app/rest/reporting/report-params/{reportId}/tasks","GET",n,o,r,s,i,a,p,l,c)},this.getReportsByParams=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'reportId' when calling getReportsByParams";var o={reportId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/app/rest/reporting/report-params/{reportId}","POST",o,r,s,a,n,p,l,c,u)},this.getProcessDefinitions=function(){var e=null,t={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=[i];return this.apiClient.callApi("/app/rest/reporting/process-definitions","GET",t,n,o,r,e,s,a,p,l)},this.getReportParams=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'reportId' when calling getReportParams";var i={reportId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/app/rest/reporting/report-params/{reportId}","GET",i,o,r,s,t,a,p,l,c)},this.getReportList=function(){var e=null,t={},i={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=[n];return this.apiClient.callApi("/app/rest/reporting/reports","GET",t,i,o,r,e,s,a,p,l)},this.updateReport=function(e,t){var i={name:t};if(void 0==e||null==e)throw"Missing the required parameter 'reportId' when calling updateReport";var n={reportId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/app/rest/reporting/reports/{reportId}","PUT",n,o,r,s,i,a,p,l,c)}};return o})},{"../../../alfrescoApiClient":295,"../model/ParameterValueRepresentation":123,"../model/ReportCharts":134,"../model/ReportParametersDefinition":135}],61:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ScriptFileApi=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(t){this.apiClient=t||e.instance,this.getControllers=function(){var e=null,t={},i={},n={},o={},r=[],s=["application/json"],a=["application/json","application/javascript"],p="String";return this.apiClient.callApi("/api/enterprise/script-files/controllers","GET",t,i,n,o,e,r,s,a,p)},this.getLibraries=function(){var e=null,t={},i={},n={},o={},r=[],s=["application/json"],a=["application/json","application/javascript"],p="String";return this.apiClient.callApi("/api/enterprise/script-files/libraries","GET",t,i,n,o,e,r,s,a,p)}};return t})},{"../../../alfrescoApiClient":295}],62:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/SystemPropertiesRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/SystemPropertiesRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.SystemPropertiesApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.SystemPropertiesRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getProperties=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=t;return this.apiClient.callApi("/api/enterprise/system/properties","GET",i,n,o,r,e,s,a,p,l)}};return i})},{"../../../alfrescoApiClient":295,"../model/SystemPropertiesRepresentation":142}],63:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ObjectNode","../model/TaskRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ObjectNode"),t("../model/TaskRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskActionsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ObjectNode,n.ActivitiPublicRestApi.TaskRepresentation))}(void 0,function(e,t,i){var n=function(t){this.apiClient=t||e.instance,this.assignTask=function(e,t){var n=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling assignTask";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling assignTask";var o={taskId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/assign","PUT",o,r,s,a,n,p,l,c,u)},this.attachForm=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling attachForm";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling attachForm";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/attach-form","PUT",n,o,r,s,i,a,p,l,c)},this.claimTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling claimTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/claim","PUT",i,n,o,r,t,s,a,p,l)},this.completeTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling completeTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/complete","PUT",i,n,o,r,t,s,a,p,l)},this.involveUser=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling involveUser";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling involveUser";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/involve","PUT",n,o,r,s,i,a,p,l,c)},this.removeForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling removeForm";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/remove-form","DELETE",i,n,o,r,t,s,a,p,l)},this.removeInvolvedUser=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling removeInvolvedUser";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling removeInvolvedUser";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/remove-involved","PUT",n,o,r,s,i,a,p,l,c)},this.unclaimTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling unclaimTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/unclaim","PUT",i,n,o,r,t,s,a,p,l)}};return n})},{"../../../alfrescoApiClient":295,"../model/ObjectNode":121,"../model/TaskRepresentation":146}],64:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/TaskRepresentation","../model/CommentRepresentation","../model/ObjectNode","../model/CompleteFormRepresentation","../model/RelatedContentRepresentation","../model/TaskFilterRequestRepresentation","../model/ResultListDataRepresentation","../model/FormValueRepresentation","../model/FormDefinitionRepresentation","../model/ChecklistOrderRepresentation","../model/SaveFormRepresentation","../model/TaskUpdateRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/TaskRepresentation"),t("../model/CommentRepresentation"),t("../model/ObjectNode"),t("../model/CompleteFormRepresentation"),t("../model/RelatedContentRepresentation"),t("../model/TaskFilterRequestRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/FormValueRepresentation"),t("../model/FormDefinitionRepresentation"),t("../model/ChecklistOrderRepresentation"),t("../model/SaveFormRepresentation"),t("../model/TaskUpdateRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}), +n.ActivitiPublicRestApi.TaskApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.TaskRepresentation,n.ActivitiPublicRestApi.CommentRepresentation,n.ActivitiPublicRestApi.ObjectNode,n.ActivitiPublicRestApi.CompleteFormRepresentation,n.ActivitiPublicRestApi.RelatedContentRepresentation,n.ActivitiPublicRestApi.TaskFilterRequestRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.FormValueRepresentation,n.ActivitiPublicRestApi.FormDefinitionRepresentation,n.ActivitiPublicRestApi.ChecklistOrderRepresentation,n.ActivitiPublicRestApi.SaveFormRepresentation,n.ActivitiPublicRestApi.TaskUpdateRepresentation))}(void 0,function(e,t,i,n,o,r,s,a,p,l,c,u,d){var f=function(n){this.apiClient=n||e.instance,this.addSubtask=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling addSubtask";if(void 0==i||null==i)throw"Missing the required parameter 'taskRepresentation' when calling addSubtask";var o={taskId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/checklist","POST",o,r,s,a,n,p,l,c,u)},this.addTaskComment=function(e,t){var n=e;if(void 0==e||null==e)throw"Missing the required parameter 'commentRequest' when calling addTaskComment";if(void 0==t||null==t)throw"Missing the required parameter 'taskId' when calling addTaskComment";var o={taskId:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/comments","POST",o,r,s,a,n,p,l,c,u)},this.assignTask=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling assignTask";if(void 0==i||null==i)throw"Missing the required parameter 'requestNode' when calling assignTask";var o={taskId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/assign","PUT",o,r,s,a,n,p,l,c,u)},this.attachForm=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling attachForm";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling attachForm";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/attach-form","PUT",n,o,r,s,i,a,p,l,c)},this.claimTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling claimTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/claim","PUT",i,n,o,r,t,s,a,p,l)},this.completeTaskForm=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling completeTaskForm";if(void 0==t||null==t)throw"Missing the required parameter 'completeTaskFormRepresentation' when calling completeTaskForm";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}","POST",n,o,r,s,i,a,p,l,c)},this.completeTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling completeTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/complete","PUT",i,n,o,r,t,s,a,p,l)},this.createNewTask=function(e){var i=e;if(void 0==e||null==e)throw"Missing the required parameter 'taskRepresentation' when calling createNewTask";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/tasks","POST",n,o,r,s,i,a,p,l,c)},this.createRelatedContentOnTask=function(e,t,i){i=i||{};var n=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling createRelatedContentOnTask";if(void 0==t||null==t)throw"Missing the required parameter 'relatedContent' when calling createRelatedContentOnTask";var o={taskId:e},s={isRelatedContent:i.isRelatedContent},a={},p={},l=[],c=["application/json"],u=["application/json"],d=r;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/content","POST",o,s,a,p,n,l,c,u,d)},this.createRelatedContentOnTask=function(e,t,i){i=i||{};var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling createRelatedContentOnTask";if(void 0==t||null==t)throw"Missing the required parameter 'file' when calling createRelatedContentOnTask";var o={taskId:e},s={isRelatedContent:i.isRelatedContent},a={},p={file:t},l=[],c=["multipart/form-data"],u=["application/json"],d=r;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/raw-content","POST",o,s,a,p,n,l,c,u,d)},this.deleteTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling deleteTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}","DELETE",i,n,o,r,t,s,a,p,l)},this.filterTasks=function(e){var t=e;void 0!=e&&null!=e||(console.log("a"),t=new s);var i={},n={},o={},r={},p=[],l=["application/json"],c=["application/json"],u=a;return this.apiClient.callApi("/api/enterprise/tasks/filter","POST",i,n,o,r,t,p,l,c,u)},this.getChecklist=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getChecklist";var i={taskId:e},n={},o={},r={},s=[],p=["application/json"],l=["application/json"],c=a;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/checklist","GET",i,n,o,r,t,s,p,l,c)},this.getRelatedContentForTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getRelatedContentForTask";var i={taskId:e},n={},o={},r={},s=[],p=["application/json"],l=["application/json"],c=a;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/content","GET",i,n,o,r,t,s,p,l,c)},this.getRestFieldValuesColumn=function(e,t,i){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getRestFieldValues";if(void 0==t||null==t)throw"Missing the required parameter 'field' when calling getRestFieldValues";if(void 0==i||null==i)throw"Missing the required parameter 'column' when calling getRestFieldValues";var o={taskId:e,field:t,column:i},r={},s={},a={},l=[],c=["application/json"],u=["application/json"],d=[p];return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}/form-values/{field}/{column}","GET",o,r,s,a,n,l,c,u,d)},this.getRestFieldValues=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getRestFieldValues";if(void 0==t||null==t)throw"Missing the required parameter 'field' when calling getRestFieldValues";var n={taskId:e,field:t},o={},r={},s={},a=[],l=["application/json"],c=["application/json"],u=[p];return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}/form-values/{field}","GET",n,o,r,s,i,a,l,c,u)},this.getTaskComments=function(e,t){t=t||{};var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getTaskComments";var n={taskId:e},o={latestFirst:t.latestFirst},r={},s={},p=[],l=["application/json"],c=["application/json"],u=a;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/comments","GET",n,o,r,s,i,p,l,c,u)},this.getTaskForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getTaskForm";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],c=l;return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}","GET",i,n,o,r,t,s,a,p,c)},this.getTask=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getTask";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}","GET",n,o,r,s,i,a,p,l,c)},this.involveUser=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling involveUser";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling involveUser";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/involve","PUT",n,o,r,s,i,a,p,l,c)},this.listTasks=function(e){var t=e||{},i={},n={},o={},r={},s=[],p=["application/json"],l=["application/json"],c=a;return this.apiClient.callApi("/api/enterprise/tasks/query","POST",i,n,o,r,t,s,p,l,c)},this.orderChecklist=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling orderChecklist";if(void 0==t||null==t)throw"Missing the required parameter 'orderRepresentation' when calling orderChecklist";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/checklist","PUT",n,o,r,s,i,a,p,l,c)},this.removeForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling removeForm";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/remove-form","DELETE",i,n,o,r,t,s,a,p,l)},this.removeInvolvedUser=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling removeInvolvedUser";if(void 0==t||null==t)throw"Missing the required parameter 'requestNode' when calling removeInvolvedUser";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/remove-involved","PUT",n,o,r,s,i,a,p,l,c)},this.saveTaskForm=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling saveTaskForm";if(void 0==t||null==t)throw"Missing the required parameter 'saveTaskFormRepresentation' when calling saveTaskForm";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}/save-form","POST",n,o,r,s,i,a,p,l,c)},this.unclaimTask=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling unclaimTask";var i={taskId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/action/unclaim","PUT",i,n,o,r,t,s,a,p,l)},this.updateTask=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling updateTask";if(void 0==i||null==i)throw"Missing the required parameter 'updated' when calling updateTask";var o={taskId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}","PUT",o,r,s,a,n,p,l,c,u)}};return f})},{"../../../alfrescoApiClient":295,"../model/ChecklistOrderRepresentation":86,"../model/CommentRepresentation":87,"../model/CompleteFormRepresentation":88,"../model/FormDefinitionRepresentation":99,"../model/FormValueRepresentation":107,"../model/ObjectNode":121,"../model/RelatedContentRepresentation":133,"../model/ResultListDataRepresentation":138,"../model/SaveFormRepresentation":140,"../model/TaskFilterRequestRepresentation":144,"../model/TaskRepresentation":146,"../model/TaskUpdateRepresentation":147}],65:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/TaskRepresentation","../model/ResultListDataRepresentation","../model/ChecklistOrderRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/TaskRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/ChecklistOrderRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskCheckListApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.TaskRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.ChecklistOrderRepresentation))}(void 0,function(e,t,i,n){var o=function(n){this.apiClient=n||e.instance,this.addSubtask=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling addSubtask";if(void 0==i||null==i)throw"Missing the required parameter 'taskRepresentation' when calling addSubtask";var o={taskId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/checklist","POST",o,r,s,a,n,p,l,c,u)},this.getChecklist=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getChecklist";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/checklist","GET",n,o,r,s,t,a,p,l,c)},this.orderChecklist=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling orderChecklist";if(void 0==t||null==t)throw"Missing the required parameter 'orderRepresentation' when calling orderChecklist";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/tasks/{taskId}/checklist","PUT",n,o,r,s,i,a,p,l,c)}};return o})},{"../../../alfrescoApiClient":295,"../model/ChecklistOrderRepresentation":86,"../model/ResultListDataRepresentation":138,"../model/TaskRepresentation":146}],66:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/CompleteFormRepresentation","../model/FormValueRepresentation","../model/FormDefinitionRepresentation","../model/SaveFormRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/CompleteFormRepresentation"),t("../model/FormValueRepresentation"),t("../model/FormDefinitionRepresentation"),t("../model/SaveFormRepresentation"),t("../model/ProcessInstanceVariableRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskFormsApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.CompleteFormRepresentation,n.ActivitiPublicRestApi.FormValueRepresentation,n.ActivitiPublicRestApi.FormDefinitionRepresentation,n.ActivitiPublicRestApi.SaveFormRepresentation,n.ActivitiPublicRestApi.ProcessInstanceVariableRepresentation))}(void 0,function(e,t,i,n,o,r){var s=function(t){this.apiClient=t||e.instance,this.completeTaskForm=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling completeTaskForm";if(void 0==t||null==t)throw"Missing the required parameter 'completeTaskFormRepresentation' when calling completeTaskForm";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}","POST",n,o,r,s,i,a,p,l,c)},this.getRestFieldValues=function(e,t,n){var o=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getRestFieldValues";if(void 0==t||null==t)throw"Missing the required parameter 'field' when calling getRestFieldValues";if(void 0==n||null==n)throw"Missing the required parameter 'column' when calling getRestFieldValues";var r={taskId:e,field:t,column:n},s={},a={},p={},l=[],c=["application/json"],u=["application/json"],d=[i];return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}/form-values/{field}/{column}","GET",r,s,a,p,o,l,c,u,d)},this.getRestFieldValues=function(e,t){var n=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getRestFieldValues";if(void 0==t||null==t)throw"Missing the required parameter 'field' when calling getRestFieldValues";var o={taskId:e,field:t},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=[i];return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}/form-values/{field}","GET",o,r,s,a,n,p,l,c,u)},this.getTaskForm=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getTaskForm";var i={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}","GET",i,o,r,s,t,a,p,l,c)},this.getTaskFormVariables=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling getTaskFormVariables";var i={taskId:e},n={},o={},s={},a=[],p=["application/json"],l=["application/json"],c=[r];return this.apiClient.callApi("/app/rest/task-forms/{taskId}/variables","GET",i,n,o,s,t,a,p,l,c)},this.saveTaskForm=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'taskId' when calling saveTaskForm";if(void 0==t||null==t)throw"Missing the required parameter 'saveTaskFormRepresentation' when calling saveTaskForm";var n={taskId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/task-forms/{taskId}/save-form","POST",n,o,r,s,i,a,p,l,c)}};return s})},{"../../../alfrescoApiClient":295,"../model/CompleteFormRepresentation":88,"../model/FormDefinitionRepresentation":99,"../model/FormValueRepresentation":107,"../model/ProcessInstanceVariableRepresentation":128,"../model/SaveFormRepresentation":140}],67:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ArrayNode"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ArrayNode")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TemporaryApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ArrayNode))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.completeTasks=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling completeTasks";if(void 0==t||null==t)throw"Missing the required parameter 'processDefinitionKey' when calling completeTasks";var n={},o={userId:e,processDefinitionKey:t},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/temporary/generate-report-data/complete-tasks","GET",n,o,r,s,i,a,p,l,c)},this.generateData=function(e,t){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling generateData";if(void 0==t||null==t)throw"Missing the required parameter 'processDefinitionKey' when calling generateData";var n={},o={userId:e,processDefinitionKey:t},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/temporary/generate-report-data/start-process","GET",n,o,r,s,i,a,p,l,c)},this.getHeaders=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=t;return this.apiClient.callApi("/api/enterprise/temporary/example-headers","GET",i,n,o,r,e,s,a,p,l)},this.getOptions=function(){var e=null,i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=t;return this.apiClient.callApi("/api/enterprise/temporary/example-options","GET",i,n,o,r,e,s,a,p,l)}};return i})},{"../../../alfrescoApiClient":295,"../model/ArrayNode":81}],68:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/UserActionRepresentation","../model/UserRepresentation","../model/ResultListDataRepresentation","../model/ResetPasswordRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/UserActionRepresentation"),t("../model/UserRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/ResetPasswordRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UserApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.UserActionRepresentation,n.ActivitiPublicRestApi.UserRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.ResetPasswordRepresentation))}(void 0,function(e,t,i,n,o){var r=function(t){this.apiClient=t||e.instance,this.executeAction=function(e,t){var i=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling executeAction";if(void 0==t||null==t)throw"Missing the required parameter 'actionRequest' when calling executeAction";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=null;return this.apiClient.callApi("/api/enterprise/users/{userId}","POST",n,o,r,s,i,a,p,l,c)},this.getProfilePicture=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling getProfilePicture";var i={userId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/users/{userId}/picture","GET",i,n,o,r,t,s,a,p,l)},this.getUser=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling getUser";var n={userId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/users/{userId}","GET",n,o,r,s,t,a,p,l,c)},this.getUsers=function(e){e=e||{};var t=null,i={},o={filter:e.filter,email:e.email,externalId:e.externalId,externalIdCaseInsensitive:e.externalIdCaseInsensitive,excludeTaskId:e.excludeTaskId,excludeProcessId:e.excludeProcessId,groupId:e.groupId,tenantId:e.tenantId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/users","GET",i,o,r,s,t,a,p,l,c)},this.requestPasswordReset=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'resetPassword' when calling requestPasswordReset";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/idm/passwords","POST",i,n,o,r,t,s,a,p,l)},this.updateUser=function(e,t){var n=t;if(void 0==e||null==e)throw"Missing the required parameter 'userId' when calling updateUser";if(void 0==t||null==t)throw"Missing the required parameter 'userRequest' when calling updateUser";var o={userId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/users/{userId}","PUT",o,r,s,a,n,p,l,c,u)}};return r})},{"../../../alfrescoApiClient":295,"../model/ResetPasswordRepresentation":136,"../model/ResultListDataRepresentation":138,"../model/UserActionRepresentation":151,"../model/UserRepresentation":154}],69:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/UserProcessInstanceFilterRepresentation","../model/UserTaskFilterRepresentation","../model/ResultListDataRepresentation","../model/UserFilterOrderRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/UserProcessInstanceFilterRepresentation"),t("../model/UserTaskFilterRepresentation"),t("../model/ResultListDataRepresentation"),t("../model/UserFilterOrderRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UserFiltersApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.UserProcessInstanceFilterRepresentation,n.ActivitiPublicRestApi.UserTaskFilterRepresentation,n.ActivitiPublicRestApi.ResultListDataRepresentation,n.ActivitiPublicRestApi.UserFilterOrderRepresentation))}(void 0,function(e,t,i,n,o){var r=function(o){this.apiClient=o||e.instance,this.createUserProcessInstanceFilter=function(e){var i=e;if(void 0==e||null==e)throw"Missing the required parameter 'userProcessInstanceFilterRepresentation' when calling createUserProcessInstanceFilter";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/filters/processes","POST",n,o,r,s,i,a,p,l,c)},this.createUserTaskFilter=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'userTaskFilterRepresentation' when calling createUserTaskFilter";var n={},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/filters/tasks","POST",n,o,r,s,t,a,p,l,c)},this.deleteUserProcessInstanceFilter=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userFilterId' when calling deleteUserProcessInstanceFilter";var i={userFilterId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/filters/processes/{userFilterId}","DELETE",i,n,o,r,t,s,a,p,l)},this.deleteUserTaskFilter=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userFilterId' when calling deleteUserTaskFilter";var i={userFilterId:e},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/filters/tasks/{userFilterId}","DELETE",i,n,o,r,t,s,a,p,l)},this.getUserProcessInstanceFilter=function(e){var i=null;if(void 0==e||null==e)throw"Missing the required parameter 'userFilterId' when calling getUserProcessInstanceFilter";var n={userFilterId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/filters/processes/{userFilterId}","GET",n,o,r,s,i,a,p,l,c)},this.getUserProcessInstanceFilters=function(e){e=e||{};var t=null,i={},o={appId:e.appId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/filters/processes","GET",i,o,r,s,t,a,p,l,c)},this.getUserTaskFilter=function(e){var t=null;if(void 0==e||null==e)throw"Missing the required parameter 'userFilterId' when calling getUserTaskFilter";var n={userFilterId:e},o={},r={},s={},a=[],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/api/enterprise/filters/tasks/{userFilterId}","GET",n,o,r,s,t,a,p,l,c)},this.getUserTaskFilters=function(e){e=e||{};var t=null,i={},o={appId:e.appId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=n;return this.apiClient.callApi("/api/enterprise/filters/tasks","GET",i,o,r,s,t,a,p,l,c)},this.orderUserProcessInstanceFilters=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'filterOrderRepresentation' when calling orderUserProcessInstanceFilters";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/filters/processes","PUT",i,n,o,r,t,s,a,p,l)},this.orderUserTaskFilters=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'filterOrderRepresentation' when calling orderUserTaskFilters";var i={},n={},o={},r={},s=[],a=["application/json"],p=["application/json"],l=null;return this.apiClient.callApi("/api/enterprise/filters/tasks","PUT",i,n,o,r,t,s,a,p,l)},this.updateUserProcessInstanceFilter=function(e,i){var n=i;if(void 0==e||null==e)throw"Missing the required parameter 'userFilterId' when calling updateUserProcessInstanceFilter";if(void 0==i||null==i)throw"Missing the required parameter 'userProcessInstanceFilterRepresentation' when calling updateUserProcessInstanceFilter";var o={userFilterId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=t;return this.apiClient.callApi("/api/enterprise/filters/processes/{userFilterId}","PUT",o,r,s,a,n,p,l,c,u)},this.updateUserTaskFilter=function(e,t){var n=t;if(void 0==e||null==e)throw"Missing the required parameter 'userFilterId' when calling updateUserTaskFilter";if(void 0==t||null==t)throw"Missing the required parameter 'userTaskFilterRepresentation' when calling updateUserTaskFilter";var o={userFilterId:e},r={},s={},a={},p=[],l=["application/json"],c=["application/json"],u=i;return this.apiClient.callApi("/api/enterprise/filters/tasks/{userFilterId}","PUT",o,r,s,a,n,p,l,c,u)}};return r})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138,"../model/UserFilterOrderRepresentation":152,"../model/UserProcessInstanceFilterRepresentation":153,"../model/UserTaskFilterRepresentation":155}],70:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ResultListDataRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/ResultListDataRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UsersWorkflowApi=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ResultListDataRepresentation))}(void 0,function(e,t){var i=function(i){this.apiClient=i||e.instance,this.getUsers=function(e){e=e||{};var i=null,n={},o={filter:e.filter,email:e.email,externalId:e.externalId,externalIdCaseInsensitive:e.externalIdCaseInsensitive,excludeTaskId:e.excludeTaskId,excludeProcessId:e.excludeProcessId,groupId:e.groupId,tenantId:e.tenantId},r={},s={},a=[],p=["application/json"],l=["application/json"],c=t;return this.apiClient.callApi("/api/enterprise/users","GET",n,o,r,s,i,a,p,l,c)}};return i})},{"../../../alfrescoApiClient":295,"../model/ResultListDataRepresentation":138}],71:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n){"function"==typeof e&&e.amd?e(["../../alfrescoApiClient","./model/AbstractGroupRepresentation","./model/AbstractRepresentation","./model/AbstractUserRepresentation","./model/AddGroupCapabilitiesRepresentation","./model/AppDefinition","./model/AppDefinitionPublishRepresentation","./model/AppDefinitionRepresentation","./model/AppDefinitionUpdateResultRepresentation","./model/AppModelDefinition","./model/ArrayNode","./model/BoxUserAccountCredentialsRepresentation","./model/BulkUserUpdateRepresentation","./model/ChangePasswordRepresentation","./model/ChecklistOrderRepresentation","./model/CommentRepresentation","./model/CompleteFormRepresentation","./model/ConditionRepresentation","./model/CreateEndpointBasicAuthRepresentation","./model/CreateProcessInstanceRepresentation","./model/CreateTenantRepresentation","./model/EndpointBasicAuthRepresentation","./model/EndpointConfigurationRepresentation","./model/EndpointRequestHeaderRepresentation","./model/EntityAttributeScopeRepresentation","./model/EntityVariableScopeRepresentation","./model/File","./model/FormDefinitionRepresentation","./model/FormFieldRepresentation","./model/FormJavascriptEventRepresentation","./model/FormOutcomeRepresentation","./model/FormRepresentation","./model/FormSaveRepresentation","./model/FormScopeRepresentation","./model/FormTabRepresentation","./model/FormValueRepresentation","./model/GroupCapabilityRepresentation","./model/GroupRepresentation","./model/ImageUploadRepresentation","./model/LayoutRepresentation","./model/LightAppRepresentation","./model/LightGroupRepresentation","./model/LightTenantRepresentation","./model/LightUserRepresentation","./model/MaplongListstring","./model/MapstringListEntityVariableScopeRepresentation","./model/MapstringListVariableScopeRepresentation","./model/Mapstringstring","./model/ModelRepresentation","./model/ObjectNode","./model/OptionRepresentation","./model/ProcessFilterRequestRepresentation","./model/ProcessInstanceFilterRepresentation","./model/ProcessInstanceFilterRequestRepresentation","./model/ProcessInstanceRepresentation","./model/ProcessInstanceVariableRepresentation","./model/ProcessScopeIdentifierRepresentation","./model/ProcessScopeRepresentation","./model/ProcessScopesRequestRepresentation","./model/PublishIdentityInfoRepresentation","./model/RelatedContentRepresentation","./model/ResetPasswordRepresentation","./model/RestVariable","./model/ResultListDataRepresentation","./model/RuntimeAppDefinitionSaveRepresentation","./model/SaveFormRepresentation","./model/SyncLogEntryRepresentation","./model/SystemPropertiesRepresentation","./model/TaskFilterRepresentation","./model/TaskFilterRequestRepresentation","./model/TaskQueryRequestRepresentation","./model/TaskRepresentation","./model/TaskUpdateRepresentation","./model/TenantEvent","./model/TenantRepresentation","./model/UserAccountCredentialsRepresentation","./model/UserActionRepresentation","./model/UserFilterOrderRepresentation","./model/UserProcessInstanceFilterRepresentation","./model/UserRepresentation","./model/UserTaskFilterRepresentation","./model/ValidationErrorRepresentation","./model/VariableScopeRepresentation","./api/AboutApi","./api/AdminEndpointsApi","./api/AdminGroupsApi","./api/AdminTenantsApi","./api/AdminUsersApi","./api/AlfrescoApi","./api/AppsApi","./api/AppsDefinitionApi","./api/AppsRuntimeApi","./api/CommentsApi","./api/ContentApi","./api/ContentRenditionApi","./api/EditorApi","./api/GroupsApi","./api/IDMSyncApi","./api/IntegrationApi","./api/IntegrationAccountApi","./api/IntegrationAlfrescoCloudApi","./api/IntegrationAlfrescoOnPremiseApi","./api/IntegrationBoxApi","./api/IntegrationDriveApi","./api/ModelBpmnApi","./api/ModelJsonBpmnApi","./api/ModelsApi","./api/ModelsHistoryApi","./api/ProcessApi","./api/ProcessDefinitionsApi","./api/ProcessDefinitionsFormApi","./api/ProcessInstancesApi","./api/ProcessInstancesInformationApi","./api/ProcessInstancesListingApi","./api/ProcessInstanceVariablesApi","./api/ProcessScopeApi","./api/ProfileApi","./api/ScriptFileApi","./api/SystemPropertiesApi","./api/TaskApi","./api/TaskActionsApi","./api/TaskCheckListApi","./api/TaskFormsApi","./api/TemporaryApi","./api/UserApi","./api/UserFiltersApi","./api/UsersWorkflowApi","./api/ReportApi"],n):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports&&(i.exports=n(t("../../alfrescoApiClient"),t("./model/AbstractGroupRepresentation"),t("./model/AbstractRepresentation"),t("./model/AbstractUserRepresentation"),t("./model/AddGroupCapabilitiesRepresentation"),t("./model/AppDefinition"),t("./model/AppDefinitionPublishRepresentation"),t("./model/AppDefinitionRepresentation"),t("./model/AppDefinitionUpdateResultRepresentation"),t("./model/AppModelDefinition"),t("./model/ArrayNode"),t("./model/BoxUserAccountCredentialsRepresentation"),t("./model/BulkUserUpdateRepresentation"),t("./model/ChangePasswordRepresentation"),t("./model/ChecklistOrderRepresentation"),t("./model/CommentRepresentation"),t("./model/CompleteFormRepresentation"),t("./model/ConditionRepresentation"),t("./model/CreateEndpointBasicAuthRepresentation"),t("./model/CreateProcessInstanceRepresentation"),t("./model/CreateTenantRepresentation"),t("./model/EndpointBasicAuthRepresentation"),t("./model/EndpointConfigurationRepresentation"),t("./model/EndpointRequestHeaderRepresentation"),t("./model/EntityAttributeScopeRepresentation"),t("./model/EntityVariableScopeRepresentation"),t("./model/File"),t("./model/FormDefinitionRepresentation"),t("./model/FormFieldRepresentation"),t("./model/FormJavascriptEventRepresentation"),t("./model/FormOutcomeRepresentation"),t("./model/FormRepresentation"),t("./model/FormSaveRepresentation"),t("./model/FormScopeRepresentation"),t("./model/FormTabRepresentation"),t("./model/FormValueRepresentation"),t("./model/GroupCapabilityRepresentation"),t("./model/GroupRepresentation"),t("./model/ImageUploadRepresentation"),t("./model/LayoutRepresentation"),t("./model/LightAppRepresentation"),t("./model/LightGroupRepresentation"),t("./model/LightTenantRepresentation"),t("./model/LightUserRepresentation"),t("./model/MaplongListstring"),t("./model/MapstringListEntityVariableScopeRepresentation"),t("./model/MapstringListVariableScopeRepresentation"),t("./model/Mapstringstring"),t("./model/ModelRepresentation"),t("./model/ObjectNode"),t("./model/OptionRepresentation"),t("./model/ProcessFilterRequestRepresentation"),t("./model/ProcessInstanceFilterRepresentation"),t("./model/ProcessInstanceFilterRequestRepresentation"),t("./model/ProcessInstanceRepresentation"),t("./model/ProcessInstanceVariableRepresentation"),t("./model/ProcessScopeIdentifierRepresentation"),t("./model/ProcessScopeRepresentation"),t("./model/ProcessScopesRequestRepresentation"),t("./model/PublishIdentityInfoRepresentation"),t("./model/RelatedContentRepresentation"),t("./model/ResetPasswordRepresentation"),t("./model/RestVariable"),t("./model/ResultListDataRepresentation"),t("./model/RuntimeAppDefinitionSaveRepresentation"),t("./model/SaveFormRepresentation"),t("./model/SyncLogEntryRepresentation"),t("./model/SystemPropertiesRepresentation"),t("./model/TaskFilterRepresentation"),t("./model/TaskFilterRequestRepresentation"),t("./model/TaskQueryRequestRepresentation"),t("./model/TaskRepresentation"),t("./model/TaskUpdateRepresentation"),t("./model/TenantEvent"),t("./model/TenantRepresentation"),t("./model/UserAccountCredentialsRepresentation"),t("./model/UserActionRepresentation"),t("./model/UserFilterOrderRepresentation"),t("./model/UserProcessInstanceFilterRepresentation"),t("./model/UserRepresentation"),t("./model/UserTaskFilterRepresentation"),t("./model/ValidationErrorRepresentation"),t("./model/VariableScopeRepresentation"),t("./api/AboutApi"),t("./api/AdminEndpointsApi"),t("./api/AdminGroupsApi"),t("./api/AdminTenantsApi"),t("./api/AdminUsersApi"),t("./api/AlfrescoApi"),t("./api/AppsApi"),t("./api/AppsDefinitionApi"),t("./api/AppsRuntimeApi"),t("./api/CommentsApi"),t("./api/ContentApi"),t("./api/ContentRenditionApi"),t("./api/EditorApi"),t("./api/GroupsApi"),t("./api/IDMSyncApi"),t("./api/IntegrationApi"),t("./api/IntegrationAccountApi"),t("./api/IntegrationAlfrescoCloudApi"),t("./api/IntegrationAlfrescoOnPremiseApi"),t("./api/IntegrationBoxApi"),t("./api/IntegrationDriveApi"),t("./api/ModelBpmnApi"),t("./api/ModelJsonBpmnApi"),t("./api/ModelsApi"),t("./api/ModelsHistoryApi"),t("./api/ProcessApi"),t("./api/ProcessDefinitionsApi"),t("./api/ProcessDefinitionsFormApi"),t("./api/ProcessInstancesApi"),t("./api/ProcessInstancesInformationApi"),t("./api/ProcessInstancesListingApi"),t("./api/ProcessInstanceVariablesApi"),t("./api/ProcessScopeApi"),t("./api/ProfileApi"),t("./api/ScriptFileApi"),t("./api/SystemPropertiesApi"),t("./api/TaskApi"),t("./api/TaskActionsApi"),t("./api/TaskCheckListApi"),t("./api/TaskFormsApi"),t("./api/TemporaryApi"),t("./api/UserApi"),t("./api/UserFiltersApi"),t("./api/UsersWorkflowApi"),t("./api/ReportApi"))); +}(function(e,t,i,n,o,r,s,a,p,l,c,u,d,f,y,m,h,v,A,b,g,C,R,P,w,S,T,I,j,O,E,M,F,k,x,N,D,B,_,L,q,U,G,V,z,H,Y,K,W,$,J,X,Q,Z,ee,te,ie,ne,oe,re,se,ae,pe,le,ce,ue,de,fe,ye,me,he,ve,Ae,be,ge,Ce,Re,Pe,we,Se,Te,Ie,je,Oe,Ee,Me,Fe,ke,xe,Ne,De,Be,_e,Le,qe,Ue,Ge,Ve,ze,He,Ye,Ke,We,$e,Je,Xe,Qe,Ze,et,tt,it,nt,ot,rt,st,at,pt,lt,ct,ut,dt,ft,yt,mt,ht,vt,At,bt){var gt={ApiClient:e,AbstractGroupRepresentation:t,AbstractRepresentation:i,AbstractUserRepresentation:n,AddGroupCapabilitiesRepresentation:o,AppDefinition:r,AppDefinitionPublishRepresentation:s,AppDefinitionRepresentation:a,AppDefinitionUpdateResultRepresentation:p,AppModelDefinition:l,ArrayNode:c,BoxUserAccountCredentialsRepresentation:u,BulkUserUpdateRepresentation:d,ChangePasswordRepresentation:f,ChecklistOrderRepresentation:y,CommentRepresentation:m,CompleteFormRepresentation:h,ConditionRepresentation:v,CreateEndpointBasicAuthRepresentation:A,CreateProcessInstanceRepresentation:b,CreateTenantRepresentation:g,EndpointBasicAuthRepresentation:C,EndpointConfigurationRepresentation:R,EndpointRequestHeaderRepresentation:P,EntityAttributeScopeRepresentation:w,EntityVariableScopeRepresentation:S,File:T,FormDefinitionRepresentation:I,FormFieldRepresentation:j,FormJavascriptEventRepresentation:O,FormOutcomeRepresentation:E,FormRepresentation:M,FormSaveRepresentation:F,FormScopeRepresentation:k,FormTabRepresentation:x,FormValueRepresentation:N,GroupCapabilityRepresentation:D,GroupRepresentation:B,ImageUploadRepresentation:_,LayoutRepresentation:L,LightAppRepresentation:q,LightGroupRepresentation:U,LightTenantRepresentation:G,LightUserRepresentation:V,MaplongListstring:z,MapstringListEntityVariableScopeRepresentation:H,MapstringListVariableScopeRepresentation:Y,Mapstringstring:K,ModelRepresentation:W,ObjectNode:$,OptionRepresentation:J,ProcessFilterRequestRepresentation:X,ProcessInstanceFilterRepresentation:Q,ProcessInstanceFilterRequestRepresentation:Z,ProcessInstanceRepresentation:ee,ProcessInstanceVariableRepresentation:te,ProcessScopeIdentifierRepresentation:ie,ProcessScopeRepresentation:ne,ProcessScopesRequestRepresentation:oe,PublishIdentityInfoRepresentation:re,RelatedContentRepresentation:se,ResetPasswordRepresentation:ae,RestVariable:pe,ResultListDataRepresentation:le,RuntimeAppDefinitionSaveRepresentation:ce,SaveFormRepresentation:ue,SyncLogEntryRepresentation:de,SystemPropertiesRepresentation:fe,TaskFilterRepresentation:ye,TaskFilterRequestRepresentation:me,TaskQueryRequestRepresentation:he,TaskRepresentation:ve,TaskUpdateRepresentation:Ae,TenantEvent:be,TenantRepresentation:ge,UserAccountCredentialsRepresentation:Ce,UserActionRepresentation:Re,UserFilterOrderRepresentation:Pe,UserProcessInstanceFilterRepresentation:we,UserRepresentation:Se,UserTaskFilterRepresentation:Te,ValidationErrorRepresentation:Ie,VariableScopeRepresentation:je,AboutApi:Oe,AdminEndpointsApi:Ee,AdminGroupsApi:Me,AdminTenantsApi:Fe,AdminUsersApi:ke,AlfrescoApi:xe,AppsApi:Ne,AppsDefinitionApi:De,AppsRuntimeApi:Be,CommentsApi:_e,ContentApi:Le,ContentRenditionApi:qe,EditorApi:Ue,GroupsApi:Ge,IDMSyncApi:Ve,IntegrationApi:ze,IntegrationAccountApi:He,IntegrationAlfrescoCloudApi:Ye,IntegrationAlfrescoOnPremiseApi:Ke,IntegrationBoxApi:We,IntegrationDriveApi:$e,ModelBpmnApi:Je,ModelJsonBpmnApi:Xe,ModelsApi:Qe,ModelsHistoryApi:Ze,ProcessApi:et,ProcessDefinitionsApi:tt,ProcessDefinitionsFormApi:it,ProcessInstancesApi:nt,ProcessInstancesInformationApi:ot,ProcessInstancesListingApi:rt,ProcessScopeApi:at,ProcessInstanceVariablesApi:st,ProfileApi:pt,ScriptFileApi:lt,SystemPropertiesApi:ct,TaskApi:ut,TaskActionsApi:dt,TaskCheckListApi:ft,TaskFormsApi:yt,TemporaryApi:mt,UserApi:ht,UserFiltersApi:vt,UsersWorkflowApi:At,ReportApi:bt};return gt})},{"../../alfrescoApiClient":295,"./api/AboutApi":26,"./api/AdminEndpointsApi":27,"./api/AdminGroupsApi":28,"./api/AdminTenantsApi":29,"./api/AdminUsersApi":30,"./api/AlfrescoApi":31,"./api/AppsApi":32,"./api/AppsDefinitionApi":33,"./api/AppsRuntimeApi":34,"./api/CommentsApi":35,"./api/ContentApi":36,"./api/ContentRenditionApi":37,"./api/EditorApi":38,"./api/GroupsApi":39,"./api/IDMSyncApi":40,"./api/IntegrationAccountApi":41,"./api/IntegrationAlfrescoCloudApi":42,"./api/IntegrationAlfrescoOnPremiseApi":43,"./api/IntegrationApi":44,"./api/IntegrationBoxApi":45,"./api/IntegrationDriveApi":46,"./api/ModelBpmnApi":47,"./api/ModelJsonBpmnApi":48,"./api/ModelsApi":49,"./api/ModelsHistoryApi":50,"./api/ProcessApi":51,"./api/ProcessDefinitionsApi":52,"./api/ProcessDefinitionsFormApi":53,"./api/ProcessInstanceVariablesApi":54,"./api/ProcessInstancesApi":55,"./api/ProcessInstancesInformationApi":56,"./api/ProcessInstancesListingApi":57,"./api/ProcessScopeApi":58,"./api/ProfileApi":59,"./api/ReportApi":60,"./api/ScriptFileApi":61,"./api/SystemPropertiesApi":62,"./api/TaskActionsApi":63,"./api/TaskApi":64,"./api/TaskCheckListApi":65,"./api/TaskFormsApi":66,"./api/TemporaryApi":67,"./api/UserApi":68,"./api/UserFiltersApi":69,"./api/UsersWorkflowApi":70,"./model/AbstractGroupRepresentation":72,"./model/AbstractRepresentation":73,"./model/AbstractUserRepresentation":74,"./model/AddGroupCapabilitiesRepresentation":75,"./model/AppDefinition":76,"./model/AppDefinitionPublishRepresentation":77,"./model/AppDefinitionRepresentation":78,"./model/AppDefinitionUpdateResultRepresentation":79,"./model/AppModelDefinition":80,"./model/ArrayNode":81,"./model/BoxUserAccountCredentialsRepresentation":82,"./model/BulkUserUpdateRepresentation":83,"./model/ChangePasswordRepresentation":84,"./model/ChecklistOrderRepresentation":86,"./model/CommentRepresentation":87,"./model/CompleteFormRepresentation":88,"./model/ConditionRepresentation":89,"./model/CreateEndpointBasicAuthRepresentation":90,"./model/CreateProcessInstanceRepresentation":91,"./model/CreateTenantRepresentation":92,"./model/EndpointBasicAuthRepresentation":93,"./model/EndpointConfigurationRepresentation":94,"./model/EndpointRequestHeaderRepresentation":95,"./model/EntityAttributeScopeRepresentation":96,"./model/EntityVariableScopeRepresentation":97,"./model/File":98,"./model/FormDefinitionRepresentation":99,"./model/FormFieldRepresentation":100,"./model/FormJavascriptEventRepresentation":101,"./model/FormOutcomeRepresentation":102,"./model/FormRepresentation":103,"./model/FormSaveRepresentation":104,"./model/FormScopeRepresentation":105,"./model/FormTabRepresentation":106,"./model/FormValueRepresentation":107,"./model/GroupCapabilityRepresentation":108,"./model/GroupRepresentation":109,"./model/ImageUploadRepresentation":110,"./model/LayoutRepresentation":111,"./model/LightAppRepresentation":112,"./model/LightGroupRepresentation":113,"./model/LightTenantRepresentation":114,"./model/LightUserRepresentation":115,"./model/MaplongListstring":116,"./model/MapstringListEntityVariableScopeRepresentation":117,"./model/MapstringListVariableScopeRepresentation":118,"./model/Mapstringstring":119,"./model/ModelRepresentation":120,"./model/ObjectNode":121,"./model/OptionRepresentation":122,"./model/ProcessFilterRequestRepresentation":124,"./model/ProcessInstanceFilterRepresentation":125,"./model/ProcessInstanceFilterRequestRepresentation":126,"./model/ProcessInstanceRepresentation":127,"./model/ProcessInstanceVariableRepresentation":128,"./model/ProcessScopeIdentifierRepresentation":129,"./model/ProcessScopeRepresentation":130,"./model/ProcessScopesRequestRepresentation":131,"./model/PublishIdentityInfoRepresentation":132,"./model/RelatedContentRepresentation":133,"./model/ResetPasswordRepresentation":136,"./model/RestVariable":137,"./model/ResultListDataRepresentation":138,"./model/RuntimeAppDefinitionSaveRepresentation":139,"./model/SaveFormRepresentation":140,"./model/SyncLogEntryRepresentation":141,"./model/SystemPropertiesRepresentation":142,"./model/TaskFilterRepresentation":143,"./model/TaskFilterRequestRepresentation":144,"./model/TaskQueryRequestRepresentation":145,"./model/TaskRepresentation":146,"./model/TaskUpdateRepresentation":147,"./model/TenantEvent":148,"./model/TenantRepresentation":149,"./model/UserAccountCredentialsRepresentation":150,"./model/UserActionRepresentation":151,"./model/UserFilterOrderRepresentation":152,"./model/UserProcessInstanceFilterRepresentation":153,"./model/UserRepresentation":154,"./model/UserTaskFilterRepresentation":155,"./model/ValidationErrorRepresentation":156,"./model/VariableScopeRepresentation":157}],72:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AbstractGroupRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("externalId")&&(n.externalId=e.convertToType(i.externalId,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("status")&&(n.status=e.convertToType(i.status,"String"))),n},t.prototype.externalId=void 0,t.prototype.id=void 0,t.prototype.name=void 0,t.prototype.status=void 0,t})},{"../../../alfrescoApiClient":295}],73:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AbstractRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(e,i){return e&&(i=e||new t),i},t})},{"../../../alfrescoApiClient":295}],74:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AbstractUserRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("email")&&(n.email=e.convertToType(i.email,"String")),i.hasOwnProperty("externalId")&&(n.externalId=e.convertToType(i.externalId,"String")),i.hasOwnProperty("firstName")&&(n.firstName=e.convertToType(i.firstName,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("lastName")&&(n.lastName=e.convertToType(i.lastName,"String")),i.hasOwnProperty("pictureId")&&(n.pictureId=e.convertToType(i.pictureId,"Integer"))),n},t.prototype.email=void 0,t.prototype.externalId=void 0,t.prototype.firstName=void 0,t.prototype.id=void 0,t.prototype.lastName=void 0,t.prototype.pictureId=void 0,t})},{"../../../alfrescoApiClient":295}],75:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AddGroupCapabilitiesRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("capabilities")&&(n.capabilities=e.convertToType(i.capabilities,["String"]))),n},t.prototype.capabilities=void 0,t})},{"../../../alfrescoApiClient":295}],76:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/AppModelDefinition","../model/PublishIdentityInfoRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./AppModelDefinition"),t("./PublishIdentityInfoRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppDefinition=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.AppModelDefinition,n.ActivitiPublicRestApi.PublishIdentityInfoRepresentation))}(void 0,function(e,t,i){var n=function(){};return n.constructFromObject=function(o,r){return o&&(r=o||new n,o.hasOwnProperty("icon")&&(r.icon=e.convertToType(o.icon,"String")),o.hasOwnProperty("models")&&(r.models=e.convertToType(o.models,[t])),o.hasOwnProperty("publishIdentityInfo")&&(r.publishIdentityInfo=e.convertToType(o.publishIdentityInfo,[i])),o.hasOwnProperty("theme")&&(r.theme=e.convertToType(o.theme,"String"))),r},n.prototype.icon=void 0,n.prototype.models=void 0,n.prototype.publishIdentityInfo=void 0,n.prototype.theme=void 0,n})},{"../../../alfrescoApiClient":295,"./AppModelDefinition":80,"./PublishIdentityInfoRepresentation":132}],77:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppDefinitionPublishRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("comment")&&(n.comment=e.convertToType(i.comment,"String")),i.hasOwnProperty("force")&&(n.force=e.convertToType(i.force,"Boolean"))),n},t.prototype.comment=void 0,t.prototype.force=void 0,t})},{"../../../alfrescoApiClient":295}],78:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppDefinitionRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("defaultAppId")&&(n.defaultAppId=e.convertToType(i.defaultAppId,"String")),i.hasOwnProperty("deploymentId")&&(n.deploymentId=e.convertToType(i.deploymentId,"String")),i.hasOwnProperty("description")&&(n.description=e.convertToType(i.description,"String")),i.hasOwnProperty("icon")&&(n.icon=e.convertToType(i.icon,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("modelId")&&(n.modelId=e.convertToType(i.modelId,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("tenantId")&&(n.tenantId=e.convertToType(i.tenantId,"Integer")),i.hasOwnProperty("theme")&&(n.theme=e.convertToType(i.theme,"String"))),n},t.prototype.defaultAppId=void 0,t.prototype.deploymentId=void 0,t.prototype.description=void 0,t.prototype.icon=void 0,t.prototype.id=void 0,t.prototype.modelId=void 0,t.prototype.name=void 0,t.prototype.tenantId=void 0,t.prototype.theme=void 0,t})},{"../../../alfrescoApiClient":295}],79:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/AppDefinitionRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./AppDefinitionRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppDefinitionUpdateResultRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.AppDefinitionRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("appDefinition")&&(o.appDefinition=t.constructFromObject(n.appDefinition)),n.hasOwnProperty("customData")&&(o.customData=e.convertToType(n.customData,Object)),n.hasOwnProperty("error")&&(o.error=e.convertToType(n.error,"Boolean")),n.hasOwnProperty("errorDescription")&&(o.errorDescription=e.convertToType(n.errorDescription,"String")),n.hasOwnProperty("errorType")&&(o.errorType=e.convertToType(n.errorType,"Integer")),n.hasOwnProperty("message")&&(o.message=e.convertToType(n.message,"String")),n.hasOwnProperty("messageKey")&&(o.messageKey=e.convertToType(n.messageKey,"String"))),o},i.prototype.appDefinition=void 0,i.prototype.customData=void 0,i.prototype.error=void 0,i.prototype.errorDescription=void 0,i.prototype.errorType=void 0,i.prototype.message=void 0,i.prototype.messageKey=void 0,i})},{"../../../alfrescoApiClient":295,"./AppDefinitionRepresentation":78}],80:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.AppModelDefinition=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("createdBy")&&(n.createdBy=e.convertToType(i.createdBy,"Integer")),i.hasOwnProperty("createdByFullName")&&(n.createdByFullName=e.convertToType(i.createdByFullName,"String")),i.hasOwnProperty("description")&&(n.description=e.convertToType(i.description,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("lastUpdated")&&(n.lastUpdated=e.convertToType(i.lastUpdated,"Date")),i.hasOwnProperty("lastUpdatedBy")&&(n.lastUpdatedBy=e.convertToType(i.lastUpdatedBy,"Integer")),i.hasOwnProperty("lastUpdatedByFullName")&&(n.lastUpdatedByFullName=e.convertToType(i.lastUpdatedByFullName,"String")),i.hasOwnProperty("modelType")&&(n.modelType=e.convertToType(i.modelType,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("stencilSetId")&&(n.stencilSetId=e.convertToType(i.stencilSetId,"Integer")),i.hasOwnProperty("version")&&(n.version=e.convertToType(i.version,"Integer"))),n},t.prototype.createdBy=void 0,t.prototype.createdByFullName=void 0,t.prototype.description=void 0,t.prototype.id=void 0,t.prototype.lastUpdated=void 0,t.prototype.lastUpdatedBy=void 0,t.prototype.lastUpdatedByFullName=void 0,t.prototype.modelType=void 0,t.prototype.name=void 0,t.prototype.stencilSetId=void 0,t.prototype.version=void 0,t})},{"../../../alfrescoApiClient":295}],81:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ArrayNode=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("array")&&(n.array=e.convertToType(i.array,"Boolean")),i.hasOwnProperty("bigDecimal")&&(n.bigDecimal=e.convertToType(i.bigDecimal,"Boolean")),i.hasOwnProperty("bigInteger")&&(n.bigInteger=e.convertToType(i.bigInteger,"Boolean")),i.hasOwnProperty("binary")&&(n.binary=e.convertToType(i.binary,"Boolean")),i.hasOwnProperty("boolean")&&(n.boolean=e.convertToType(i.boolean,"Boolean")),i.hasOwnProperty("containerNode")&&(n.containerNode=e.convertToType(i.containerNode,"Boolean")),i.hasOwnProperty("double")&&(n.double=e.convertToType(i.double,"Boolean")),i.hasOwnProperty("float")&&(n.float=e.convertToType(i.float,"Boolean")),i.hasOwnProperty("floatingPointNumber")&&(n.floatingPointNumber=e.convertToType(i.floatingPointNumber,"Boolean")),i.hasOwnProperty("int")&&(n.int=e.convertToType(i.int,"Boolean")),i.hasOwnProperty("integralNumber")&&(n.integralNumber=e.convertToType(i.integralNumber,"Boolean")),i.hasOwnProperty("long")&&(n.long=e.convertToType(i.long,"Boolean")),i.hasOwnProperty("missingNode")&&(n.missingNode=e.convertToType(i.missingNode,"Boolean")),i.hasOwnProperty("nodeType")&&(n.nodeType=e.convertToType(i.nodeType,"String")),i.hasOwnProperty("null")&&(n.null=e.convertToType(i.null,"Boolean")),i.hasOwnProperty("number")&&(n.number=e.convertToType(i.number,"Boolean")),i.hasOwnProperty("object")&&(n.object=e.convertToType(i.object,"Boolean")),i.hasOwnProperty("pojo")&&(n.pojo=e.convertToType(i.pojo,"Boolean")),i.hasOwnProperty("short")&&(n.short=e.convertToType(i.short,"Boolean")),i.hasOwnProperty("textual")&&(n.textual=e.convertToType(i.textual,"Boolean")),i.hasOwnProperty("valueNode")&&(n.valueNode=e.convertToType(i.valueNode,"Boolean"))),n},t.prototype.array=void 0,t.prototype.bigDecimal=void 0,t.prototype.bigInteger=void 0,t.prototype.binary=void 0,t.prototype.boolean=void 0,t.prototype.containerNode=void 0,t.prototype.double=void 0,t.prototype.float=void 0,t.prototype.floatingPointNumber=void 0,t.prototype.int=void 0,t.prototype.integralNumber=void 0,t.prototype.long=void 0,t.prototype.missingNode=void 0,t.prototype.nodeType=void 0,t.prototype.null=void 0,t.prototype.number=void 0,t.prototype.object=void 0,t.prototype.pojo=void 0,t.prototype.short=void 0,t.prototype.textual=void 0,t.prototype.valueNode=void 0,t.NodeTypeEnum={ARRAY:"ARRAY",BINARY:"BINARY",BOOLEAN:"BOOLEAN",MISSING:"MISSING",NULL:"NULL",NUMBER:"NUMBER",OBJECT:"OBJECT",POJO:"POJO",STRING:"STRING"},t})},{"../../../alfrescoApiClient":295}],82:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.BoxUserAccountCredentialsRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("authenticationURL")&&(n.authenticationURL=e.convertToType(i.authenticationURL,"String")),i.hasOwnProperty("expireDate")&&(n.expireDate=e.convertToType(i.expireDate,"Date")),i.hasOwnProperty("ownerEmail")&&(n.ownerEmail=e.convertToType(i.ownerEmail,"String"))),n},t.prototype.authenticationURL=void 0,t.prototype.expireDate=void 0,t.prototype.ownerEmail=void 0,t})},{"../../../alfrescoApiClient":295}],83:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.BulkUserUpdateRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("accountType")&&(n.accountType=e.convertToType(i.accountType,"String")),i.hasOwnProperty("password")&&(n.password=e.convertToType(i.password,"String")),i.hasOwnProperty("sendNotifications")&&(n.sendNotifications=e.convertToType(i.sendNotifications,"Boolean")),i.hasOwnProperty("status")&&(n.status=e.convertToType(i.status,"String")),i.hasOwnProperty("tenantId")&&(n.tenantId=e.convertToType(i.tenantId,"Integer")),i.hasOwnProperty("users")&&(n.users=e.convertToType(i.users,["Integer"]))),n},t.prototype.accountType=void 0,t.prototype.password=void 0,t.prototype.sendNotifications=void 0,t.prototype.status=void 0,t.prototype.tenantId=void 0,t.prototype.users=void 0,t})},{"../../../alfrescoApiClient":295}],84:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ChangePasswordRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("newPassword")&&(n.newPassword=e.convertToType(i.newPassword,"String")),i.hasOwnProperty("oldPassword")&&(n.oldPassword=e.convertToType(i.oldPassword,"String"))),n},t.prototype.newPassword=void 0,t.prototype.oldPassword=void 0,t})},{"../../../alfrescoApiClient":295}],85:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.Chart=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"String")),i.hasOwnProperty("type")&&(n.type=e.convertToType(i.type,"String"))),n},t.prototype.id=void 0,t.prototype.type=void 0,t})},{"../../../alfrescoApiClient":295}],86:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ChecklistOrderRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("order")&&(n.order=e.convertToType(i.order,["String"]))),n},t.prototype.order=void 0,t})},{"../../../alfrescoApiClient":295}],87:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/LightUserRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./LightUserRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.CommentRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.LightUserRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("created")&&(o.created=e.convertToType(n.created,"Date")),n.hasOwnProperty("createdBy")&&(o.createdBy=t.constructFromObject(n.createdBy)),n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"Integer")),n.hasOwnProperty("message")&&(o.message=e.convertToType(n.message,"String"))),o},i.prototype.created=void 0,i.prototype.createdBy=void 0,i.prototype.id=void 0,i.prototype.message=void 0,i})},{"../../../alfrescoApiClient":295,"./LightUserRepresentation":115}],88:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.CompleteFormRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("outcome")&&(n.outcome=e.convertToType(i.outcome,"String")),i.hasOwnProperty("values")&&(n.values=e.convertToType(i.values,Object))),n},t.prototype.outcome=void 0,t.prototype.values=void 0,t})},{"../../../alfrescoApiClient":295}],89:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ConditionRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("leftFormFieldId")&&(n.leftFormFieldId=e.convertToType(i.leftFormFieldId,"String")),i.hasOwnProperty("leftRestResponseId")&&(n.leftRestResponseId=e.convertToType(i.leftRestResponseId,"String")),i.hasOwnProperty("nextConditionOperator")&&(n.nextConditionOperator=e.convertToType(i.nextConditionOperator,"String")),i.hasOwnProperty("operator")&&(n.operator=e.convertToType(i.operator,"String")),i.hasOwnProperty("rightFormFieldId")&&(n.rightFormFieldId=e.convertToType(i.rightFormFieldId,"String")),i.hasOwnProperty("rightRestResponseId")&&(n.rightRestResponseId=e.convertToType(i.rightRestResponseId,"String")),i.hasOwnProperty("rightType")&&(n.rightType=e.convertToType(i.rightType,"String")), i.hasOwnProperty("rightValue")&&(n.rightValue=e.convertToType(i.rightValue,Object))),n},t.prototype.leftFormFieldId=void 0,t.prototype.leftRestResponseId=void 0,t.prototype.nextConditionOperator=void 0,t.prototype.operator=void 0,t.prototype.rightFormFieldId=void 0,t.prototype.rightRestResponseId=void 0,t.prototype.rightType=void 0,t.prototype.rightValue=void 0,t})},{"../../../alfrescoApiClient":295}],90:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.CreateEndpointBasicAuthRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("password")&&(n.password=e.convertToType(i.password,"String")),i.hasOwnProperty("tenantId")&&(n.tenantId=e.convertToType(i.tenantId,"Integer")),i.hasOwnProperty("username")&&(n.username=e.convertToType(i.username,"String"))),n},t.prototype.name=void 0,t.prototype.password=void 0,t.prototype.tenantId=void 0,t.prototype.username=void 0,t})},{"../../../alfrescoApiClient":295}],91:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.CreateProcessInstanceRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("outcome")&&(n.outcome=e.convertToType(i.outcome,"String")),i.hasOwnProperty("processDefinitionId")&&(n.processDefinitionId=e.convertToType(i.processDefinitionId,"String")),i.hasOwnProperty("values")&&(n.values=e.convertToType(i.values,Object))),n},t.prototype.name=void 0,t.prototype.outcome=void 0,t.prototype.processDefinitionId=void 0,t.prototype.values=void 0,t})},{"../../../alfrescoApiClient":295}],92:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.CreateTenantRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("active")&&(n.active=e.convertToType(i.active,"Boolean")),i.hasOwnProperty("domain")&&(n.domain=e.convertToType(i.domain,"String")),i.hasOwnProperty("maxUsers")&&(n.maxUsers=e.convertToType(i.maxUsers,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String"))),n},t.prototype.active=void 0,t.prototype.domain=void 0,t.prototype.maxUsers=void 0,t.prototype.name=void 0,t})},{"../../../alfrescoApiClient":295}],93:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.EndpointBasicAuthRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("created")&&(n.created=e.convertToType(i.created,"Date")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("lastUpdated")&&(n.lastUpdated=e.convertToType(i.lastUpdated,"Date")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("tenantId")&&(n.tenantId=e.convertToType(i.tenantId,"Integer")),i.hasOwnProperty("username")&&(n.username=e.convertToType(i.username,"String"))),n},t.prototype.created=void 0,t.prototype.id=void 0,t.prototype.lastUpdated=void 0,t.prototype.name=void 0,t.prototype.tenantId=void 0,t.prototype.username=void 0,t})},{"../../../alfrescoApiClient":295}],94:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/EndpointRequestHeaderRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./EndpointRequestHeaderRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.EndpointConfigurationRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.EndpointRequestHeaderRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("basicAuthId")&&(o.basicAuthId=e.convertToType(n.basicAuthId,"Integer")),n.hasOwnProperty("basicAuthName")&&(o.basicAuthName=e.convertToType(n.basicAuthName,"String")),n.hasOwnProperty("host")&&(o.host=e.convertToType(n.host,"String")),n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"Integer")),n.hasOwnProperty("name")&&(o.name=e.convertToType(n.name,"String")),n.hasOwnProperty("path")&&(o.path=e.convertToType(n.path,"String")),n.hasOwnProperty("port")&&(o.port=e.convertToType(n.port,"String")),n.hasOwnProperty("protocol")&&(o.protocol=e.convertToType(n.protocol,"String")),n.hasOwnProperty("requestHeaders")&&(o.requestHeaders=e.convertToType(n.requestHeaders,[t])),n.hasOwnProperty("tenantId")&&(o.tenantId=e.convertToType(n.tenantId,"Integer"))),o},i.prototype.basicAuthId=void 0,i.prototype.basicAuthName=void 0,i.prototype.host=void 0,i.prototype.id=void 0,i.prototype.name=void 0,i.prototype.path=void 0,i.prototype.port=void 0,i.prototype.protocol=void 0,i.prototype.requestHeaders=void 0,i.prototype.tenantId=void 0,i})},{"../../../alfrescoApiClient":295,"./EndpointRequestHeaderRepresentation":95}],95:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.EndpointRequestHeaderRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("value")&&(n.value=e.convertToType(i.value,"String"))),n},t.prototype.name=void 0,t.prototype.value=void 0,t})},{"../../../alfrescoApiClient":295}],96:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.EntityAttributeScopeRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("type")&&(n.type=e.convertToType(i.type,"String"))),n},t.prototype.name=void 0,t.prototype.type=void 0,t})},{"../../../alfrescoApiClient":295}],97:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/EntityAttributeScopeRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./EntityAttributeScopeRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.EntityVariableScopeRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.EntityAttributeScopeRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("attributes")&&(o.attributes=e.convertToType(n.attributes,[t])),n.hasOwnProperty("entityName")&&(o.entityName=e.convertToType(n.entityName,"String")),n.hasOwnProperty("mappedDataModel")&&(o.mappedDataModel=e.convertToType(n.mappedDataModel,"Integer")),n.hasOwnProperty("mappedVariableName")&&(o.mappedVariableName=e.convertToType(n.mappedVariableName,"String"))),o},i.prototype.attributes=void 0,i.prototype.entityName=void 0,i.prototype.mappedDataModel=void 0,i.prototype.mappedVariableName=void 0,i})},{"../../../alfrescoApiClient":295,"./EntityAttributeScopeRepresentation":96}],98:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.File=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("absolute")&&(n.absolute=e.convertToType(i.absolute,"Boolean")),i.hasOwnProperty("absoluteFile")&&(n.absoluteFile=e.convertToType(i.absoluteFile,File)),i.hasOwnProperty("absolutePath")&&(n.absolutePath=e.convertToType(i.absolutePath,"String")),i.hasOwnProperty("canonicalFile")&&(n.canonicalFile=e.convertToType(i.canonicalFile,File)),i.hasOwnProperty("canonicalPath")&&(n.canonicalPath=e.convertToType(i.canonicalPath,"String")),i.hasOwnProperty("directory")&&(n.directory=e.convertToType(i.directory,"Boolean")),i.hasOwnProperty("file")&&(n.file=e.convertToType(i.file,"Boolean")),i.hasOwnProperty("freeSpace")&&(n.freeSpace=e.convertToType(i.freeSpace,"Integer")),i.hasOwnProperty("hidden")&&(n.hidden=e.convertToType(i.hidden,"Boolean")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("parent")&&(n.parent=e.convertToType(i.parent,"String")),i.hasOwnProperty("parentFile")&&(n.parentFile=e.convertToType(i.parentFile,File)),i.hasOwnProperty("path")&&(n.path=e.convertToType(i.path,"String")),i.hasOwnProperty("totalSpace")&&(n.totalSpace=e.convertToType(i.totalSpace,"Integer")),i.hasOwnProperty("usableSpace")&&(n.usableSpace=e.convertToType(i.usableSpace,"Integer"))),n},t.prototype.absolute=void 0,t.prototype.absoluteFile=void 0,t.prototype.absolutePath=void 0,t.prototype.canonicalFile=void 0,t.prototype.canonicalPath=void 0,t.prototype.directory=void 0,t.prototype.file=void 0,t.prototype.freeSpace=void 0,t.prototype.hidden=void 0,t.prototype.name=void 0,t.prototype.parent=void 0,t.prototype.parentFile=void 0,t.prototype.path=void 0,t.prototype.totalSpace=void 0,t.prototype.usableSpace=void 0,t})},{"../../../alfrescoApiClient":295}],99:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/FormFieldRepresentation","../model/FormJavascriptEventRepresentation","../model/FormOutcomeRepresentation","../model/FormTabRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./FormFieldRepresentation"),t("./FormJavascriptEventRepresentation"),t("./FormOutcomeRepresentation"),t("./FormTabRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormDefinitionRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.FormFieldRepresentation,n.ActivitiPublicRestApi.FormJavascriptEventRepresentation,n.ActivitiPublicRestApi.FormOutcomeRepresentation,n.ActivitiPublicRestApi.FormTabRepresentation))}(void 0,function(e,t,i,n,o){var r=function(){};return r.constructFromObject=function(s,a){return s&&(a=s||new r,s.hasOwnProperty("className")&&(a.className=e.convertToType(s.className,"String")),s.hasOwnProperty("customFieldTemplates")&&(a.customFieldTemplates=e.convertToType(s.customFieldTemplates,{String:"String"})),s.hasOwnProperty("fields")&&(a.fields=e.convertToType(s.fields,[t])),s.hasOwnProperty("gridsterForm")&&(a.gridsterForm=e.convertToType(s.gridsterForm,"Boolean")),s.hasOwnProperty("id")&&(a.id=e.convertToType(s.id,"Integer")),s.hasOwnProperty("javascriptEvents")&&(a.javascriptEvents=e.convertToType(s.javascriptEvents,[i])),s.hasOwnProperty("metadata")&&(a.metadata=e.convertToType(s.metadata,{String:"String"})),s.hasOwnProperty("name")&&(a.name=e.convertToType(s.name,"String")),s.hasOwnProperty("outcomeTarget")&&(a.outcomeTarget=e.convertToType(s.outcomeTarget,"String")),s.hasOwnProperty("outcomes")&&(a.outcomes=e.convertToType(s.outcomes,[n])),s.hasOwnProperty("processDefinitionId")&&(a.processDefinitionId=e.convertToType(s.processDefinitionId,"String")),s.hasOwnProperty("processDefinitionKey")&&(a.processDefinitionKey=e.convertToType(s.processDefinitionKey,"String")),s.hasOwnProperty("processDefinitionName")&&(a.processDefinitionName=e.convertToType(s.processDefinitionName,"String")),s.hasOwnProperty("selectedOutcome")&&(a.selectedOutcome=e.convertToType(s.selectedOutcome,"String")),s.hasOwnProperty("style")&&(a.style=e.convertToType(s.style,"String")),s.hasOwnProperty("tabs")&&(a.tabs=e.convertToType(s.tabs,[o])),s.hasOwnProperty("taskDefinitionKey")&&(a.taskDefinitionKey=e.convertToType(s.taskDefinitionKey,"String")),s.hasOwnProperty("taskId")&&(a.taskId=e.convertToType(s.taskId,"String")),s.hasOwnProperty("taskName")&&(a.taskName=e.convertToType(s.taskName,"String"))),a},r.prototype.className=void 0,r.prototype.customFieldTemplates=void 0,r.prototype.fields=void 0,r.prototype.gridsterForm=void 0,r.prototype.id=void 0,r.prototype.javascriptEvents=void 0,r.prototype.metadata=void 0,r.prototype.name=void 0,r.prototype.outcomeTarget=void 0,r.prototype.outcomes=void 0,r.prototype.processDefinitionId=void 0,r.prototype.processDefinitionKey=void 0,r.prototype.processDefinitionName=void 0,r.prototype.selectedOutcome=void 0,r.prototype.style=void 0,r.prototype.tabs=void 0,r.prototype.taskDefinitionKey=void 0,r.prototype.taskId=void 0,r.prototype.taskName=void 0,r})},{"../../../alfrescoApiClient":295,"./FormFieldRepresentation":100,"./FormJavascriptEventRepresentation":101,"./FormOutcomeRepresentation":102,"./FormTabRepresentation":106}],100:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ConditionRepresentation","../model/LayoutRepresentation","../model/OptionRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./ConditionRepresentation"),t("./LayoutRepresentation"),t("./OptionRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormFieldRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ConditionRepresentation,n.ActivitiPublicRestApi.LayoutRepresentation,n.ActivitiPublicRestApi.OptionRepresentation))}(void 0,function(e,t,i,n){var o=function(){};return o.constructFromObject=function(r,s){return r&&(s=r||new o,r.hasOwnProperty("className")&&(s.className=e.convertToType(r.className,"String")),r.hasOwnProperty("col")&&(s.col=e.convertToType(r.col,"Integer")),r.hasOwnProperty("colspan")&&(s.colspan=e.convertToType(r.colspan,"Integer")),r.hasOwnProperty("hasEmptyValue")&&(s.hasEmptyValue=e.convertToType(r.hasEmptyValue,"Boolean")),r.hasOwnProperty("id")&&(s.id=e.convertToType(r.id,"String")),r.hasOwnProperty("layout")&&(s.layout=i.constructFromObject(r.layout)),r.hasOwnProperty("maxLength")&&(s.maxLength=e.convertToType(r.maxLength,"Integer")),r.hasOwnProperty("maxValue")&&(s.maxValue=e.convertToType(r.maxValue,"String")),r.hasOwnProperty("minLength")&&(s.minLength=e.convertToType(r.minLength,"Integer")),r.hasOwnProperty("minValue")&&(s.minValue=e.convertToType(r.minValue,"String")),r.hasOwnProperty("name")&&(s.name=e.convertToType(r.name,"String")),r.hasOwnProperty("optionType")&&(s.optionType=e.convertToType(r.optionType,"String")),r.hasOwnProperty("options")&&(s.options=e.convertToType(r.options,[n])),r.hasOwnProperty("overrideId")&&(s.overrideId=e.convertToType(r.overrideId,"Boolean")),r.hasOwnProperty("params")&&(s.params=e.convertToType(r.params,Object)),r.hasOwnProperty("placeholder")&&(s.placeholder=e.convertToType(r.placeholder,"String")),r.hasOwnProperty("readOnly")&&(s.readOnly=e.convertToType(r.readOnly,"Boolean")),r.hasOwnProperty("regexPattern")&&(s.regexPattern=e.convertToType(r.regexPattern,"String")),r.hasOwnProperty("required")&&(s.required=e.convertToType(r.required,"Boolean")),r.hasOwnProperty("restIdProperty")&&(s.restIdProperty=e.convertToType(r.restIdProperty,"String")),r.hasOwnProperty("restLabelProperty")&&(s.restLabelProperty=e.convertToType(r.restLabelProperty,"String")),r.hasOwnProperty("restResponsePath")&&(s.restResponsePath=e.convertToType(r.restResponsePath,"String")),r.hasOwnProperty("restUrl")&&(s.restUrl=e.convertToType(r.restUrl,"String")),r.hasOwnProperty("row")&&(s.row=e.convertToType(r.row,"Integer")),r.hasOwnProperty("sizeX")&&(s.sizeX=e.convertToType(r.sizeX,"Integer")),r.hasOwnProperty("sizeY")&&(s.sizeY=e.convertToType(r.sizeY,"Integer")),r.hasOwnProperty("tab")&&(s.tab=e.convertToType(r.tab,"String")),r.hasOwnProperty("type")&&(s.type=e.convertToType(r.type,"String")),r.hasOwnProperty("value")&&(s.value=e.convertToType(r.value,Object)),r.hasOwnProperty("visibilityCondition")&&(s.visibilityCondition=t.constructFromObject(r.visibilityCondition))),s},o.prototype.className=void 0,o.prototype.col=void 0,o.prototype.colspan=void 0,o.prototype.hasEmptyValue=void 0,o.prototype.id=void 0,o.prototype.layout=void 0,o.prototype.maxLength=void 0,o.prototype.maxValue=void 0,o.prototype.minLength=void 0,o.prototype.minValue=void 0,o.prototype.name=void 0,o.prototype.optionType=void 0,o.prototype.options=void 0,o.prototype.overrideId=void 0,o.prototype.params=void 0,o.prototype.placeholder=void 0,o.prototype.readOnly=void 0,o.prototype.regexPattern=void 0,o.prototype.required=void 0,o.prototype.restIdProperty=void 0,o.prototype.restLabelProperty=void 0,o.prototype.restResponsePath=void 0,o.prototype.restUrl=void 0,o.prototype.row=void 0,o.prototype.sizeX=void 0,o.prototype.sizeY=void 0,o.prototype.tab=void 0,o.prototype.type=void 0,o.prototype.value=void 0,o.prototype.visibilityCondition=void 0,o})},{"../../../alfrescoApiClient":295,"./ConditionRepresentation":89,"./LayoutRepresentation":111,"./OptionRepresentation":122}],101:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormJavascriptEventRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("event")&&(n.event=e.convertToType(i.event,"String")),i.hasOwnProperty("javascriptLogic")&&(n.javascriptLogic=e.convertToType(i.javascriptLogic,"String"))),n},t.prototype.event=void 0,t.prototype.javascriptLogic=void 0,t})},{"../../../alfrescoApiClient":295}],102:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormOutcomeRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"String")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String"))),n},t.prototype.id=void 0,t.prototype.name=void 0,t})},{"../../../alfrescoApiClient":295}],103:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/FormDefinitionRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./FormDefinitionRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.FormDefinitionRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("description")&&(o.description=e.convertToType(n.description,"String")),n.hasOwnProperty("formDefinition")&&(o.formDefinition=t.constructFromObject(n.formDefinition)),n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"Integer")),n.hasOwnProperty("lastUpdated")&&(o.lastUpdated=e.convertToType(n.lastUpdated,"Date")),n.hasOwnProperty("lastUpdatedBy")&&(o.lastUpdatedBy=e.convertToType(n.lastUpdatedBy,"Integer")),n.hasOwnProperty("lastUpdatedByFullName")&&(o.lastUpdatedByFullName=e.convertToType(n.lastUpdatedByFullName,"String")),n.hasOwnProperty("name")&&(o.name=e.convertToType(n.name,"String")),n.hasOwnProperty("referenceId")&&(o.referenceId=e.convertToType(n.referenceId,"Integer")),n.hasOwnProperty("stencilSetId")&&(o.stencilSetId=e.convertToType(n.stencilSetId,"Integer")),n.hasOwnProperty("version")&&(o.version=e.convertToType(n.version,"Integer"))),o},i.prototype.description=void 0,i.prototype.formDefinition=void 0,i.prototype.id=void 0,i.prototype.lastUpdated=void 0,i.prototype.lastUpdatedBy=void 0,i.prototype.lastUpdatedByFullName=void 0,i.prototype.name=void 0,i.prototype.referenceId=void 0,i.prototype.stencilSetId=void 0,i.prototype.version=void 0,i})},{"../../../alfrescoApiClient":295,"./FormDefinitionRepresentation":99}],104:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/FormRepresentation","../model/ProcessScopeIdentifierRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./FormRepresentation"),t("./ProcessScopeIdentifierRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormSaveRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.FormRepresentation,n.ActivitiPublicRestApi.ProcessScopeIdentifierRepresentation))}(void 0,function(e,t,i){var n=function(){};return n.constructFromObject=function(o,r){return o&&(r=o||new n,o.hasOwnProperty("comment")&&(r.comment=e.convertToType(o.comment,"String")),o.hasOwnProperty("formImageBase64")&&(r.formImageBase64=e.convertToType(o.formImageBase64,"String")),o.hasOwnProperty("formRepresentation")&&(r.formRepresentation=t.constructFromObject(o.formRepresentation)),o.hasOwnProperty("newVersion")&&(r.newVersion=e.convertToType(o.newVersion,"Boolean")),o.hasOwnProperty("processScopeIdentifiers")&&(r.processScopeIdentifiers=e.convertToType(o.processScopeIdentifiers,[i])),o.hasOwnProperty("reusable")&&(r.reusable=e.convertToType(o.reusable,"Boolean"))),r},n.prototype.comment=void 0,n.prototype.formImageBase64=void 0,n.prototype.formRepresentation=void 0,n.prototype.newVersion=void 0,n.prototype.processScopeIdentifiers=void 0,n.prototype.reusable=void 0,n})},{"../../../alfrescoApiClient":295,"./FormRepresentation":103,"./ProcessScopeIdentifierRepresentation":129}],105:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/FormFieldRepresentation","../model/FormOutcomeRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./FormFieldRepresentation"),t("./FormOutcomeRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormScopeRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.FormFieldRepresentation,n.ActivitiPublicRestApi.FormOutcomeRepresentation))}(void 0,function(e,t,i){var n=function(){};return n.constructFromObject=function(o,r){return o&&(r=o||new n,o.hasOwnProperty("description")&&(r.description=e.convertToType(o.description,"String")),o.hasOwnProperty("fieldVariables")&&(r.fieldVariables=e.convertToType(o.fieldVariables,[t])),o.hasOwnProperty("fields")&&(r.fields=e.convertToType(o.fields,[t])),o.hasOwnProperty("id")&&(r.id=e.convertToType(o.id,"Integer")),o.hasOwnProperty("name")&&(r.name=e.convertToType(o.name,"String")),o.hasOwnProperty("outcomes")&&(r.outcomes=e.convertToType(o.outcomes,[i]))),r},n.prototype.description=void 0,n.prototype.fieldVariables=void 0,n.prototype.fields=void 0,n.prototype.id=void 0,n.prototype.name=void 0,n.prototype.outcomes=void 0,n})},{"../../../alfrescoApiClient":295,"./FormFieldRepresentation":100,"./FormOutcomeRepresentation":102}],106:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ConditionRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./ConditionRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormTabRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ConditionRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"String")),n.hasOwnProperty("title")&&(o.title=e.convertToType(n.title,"String")),n.hasOwnProperty("visibilityCondition")&&(o.visibilityCondition=t.constructFromObject(n.visibilityCondition))),o},i.prototype.id=void 0,i.prototype.title=void 0,i.prototype.visibilityCondition=void 0,i})},{"../../../alfrescoApiClient":295,"./ConditionRepresentation":89}],107:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.FormValueRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"String")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String"))),n},t.prototype.id=void 0,t.prototype.name=void 0,t})},{"../../../alfrescoApiClient":295}],108:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.GroupCapabilityRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String"))),n},t.prototype.id=void 0,t.prototype.name=void 0,t})},{"../../../alfrescoApiClient":295}],109:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/GroupCapabilityRepresentation","../model/GroupRepresentation","../model/UserRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./GroupCapabilityRepresentation"),t("./GroupRepresentation"),t("./UserRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.GroupRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.GroupCapabilityRepresentation,n.ActivitiPublicRestApi.GroupRepresentation,n.ActivitiPublicRestApi.UserRepresentation)); }(void 0,function(e,t,i,n){var o=function(){};return o.constructFromObject=function(r,s){return r&&(s=r||new o,r.hasOwnProperty("capabilities")&&(s.capabilities=e.convertToType(r.capabilities,[t])),r.hasOwnProperty("externalId")&&(s.externalId=e.convertToType(r.externalId,"String")),r.hasOwnProperty("groups")&&(s.groups=e.convertToType(r.groups,[i])),r.hasOwnProperty("id")&&(s.id=e.convertToType(r.id,"Integer")),r.hasOwnProperty("lastSyncTimeStamp")&&(s.lastSyncTimeStamp=e.convertToType(r.lastSyncTimeStamp,"Date")),r.hasOwnProperty("name")&&(s.name=e.convertToType(r.name,"String")),r.hasOwnProperty("parentGroupId")&&(s.parentGroupId=e.convertToType(r.parentGroupId,"Integer")),r.hasOwnProperty("status")&&(s.status=e.convertToType(r.status,"String")),r.hasOwnProperty("tenantId")&&(s.tenantId=e.convertToType(r.tenantId,"Integer")),r.hasOwnProperty("type")&&(s.type=e.convertToType(r.type,"Integer")),r.hasOwnProperty("userCount")&&(s.userCount=e.convertToType(r.userCount,"Integer")),r.hasOwnProperty("users")&&(s.users=e.convertToType(r.users,[n]))),s},o.prototype.capabilities=void 0,o.prototype.externalId=void 0,o.prototype.groups=void 0,o.prototype.id=void 0,o.prototype.lastSyncTimeStamp=void 0,o.prototype.name=void 0,o.prototype.parentGroupId=void 0,o.prototype.status=void 0,o.prototype.tenantId=void 0,o.prototype.type=void 0,o.prototype.userCount=void 0,o.prototype.users=void 0,o})},{"../../../alfrescoApiClient":295,"./GroupCapabilityRepresentation":108,"./GroupRepresentation":109,"./UserRepresentation":154}],110:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ImageUploadRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("created")&&(n.created=e.convertToType(i.created,"Date")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("userId")&&(n.userId=e.convertToType(i.userId,"Integer"))),n},t.prototype.created=void 0,t.prototype.id=void 0,t.prototype.name=void 0,t.prototype.userId=void 0,t})},{"../../../alfrescoApiClient":295}],111:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.LayoutRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("colspan")&&(n.colspan=e.convertToType(i.colspan,"Integer")),i.hasOwnProperty("column")&&(n.column=e.convertToType(i.column,"Integer")),i.hasOwnProperty("row")&&(n.row=e.convertToType(i.row,"Integer"))),n},t.prototype.colspan=void 0,t.prototype.column=void 0,t.prototype.row=void 0,t})},{"../../../alfrescoApiClient":295}],112:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.LightAppRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("description")&&(n.description=e.convertToType(i.description,"String")),i.hasOwnProperty("icon")&&(n.icon=e.convertToType(i.icon,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("theme")&&(n.theme=e.convertToType(i.theme,"String"))),n},t.prototype.description=void 0,t.prototype.icon=void 0,t.prototype.id=void 0,t.prototype.name=void 0,t.prototype.theme=void 0,t})},{"../../../alfrescoApiClient":295}],113:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/LightGroupRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./LightGroupRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.LightGroupRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.LightGroupRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("externalId")&&(o.externalId=e.convertToType(n.externalId,"String")),n.hasOwnProperty("groups")&&(o.groups=e.convertToType(n.groups,[t])),n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"Integer")),n.hasOwnProperty("name")&&(o.name=e.convertToType(n.name,"String")),n.hasOwnProperty("status")&&(o.status=e.convertToType(n.status,"String"))),o},i.prototype.externalId=void 0,i.prototype.groups=void 0,i.prototype.id=void 0,i.prototype.name=void 0,i.prototype.status=void 0,i})},{"../../../alfrescoApiClient":295,"./LightGroupRepresentation":113}],114:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.LightTenantRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String"))),n},t.prototype.id=void 0,t.prototype.name=void 0,t})},{"../../../alfrescoApiClient":295}],115:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.LightUserRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("email")&&(n.email=e.convertToType(i.email,"String")),i.hasOwnProperty("externalId")&&(n.externalId=e.convertToType(i.externalId,"String")),i.hasOwnProperty("firstName")&&(n.firstName=e.convertToType(i.firstName,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("lastName")&&(n.lastName=e.convertToType(i.lastName,"String")),i.hasOwnProperty("pictureId")&&(n.pictureId=e.convertToType(i.pictureId,"Integer"))),n},t.prototype.email=void 0,t.prototype.externalId=void 0,t.prototype.firstName=void 0,t.prototype.id=void 0,t.prototype.lastName=void 0,t.prototype.pictureId=void 0,t})},{"../../../alfrescoApiClient":295}],116:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.MaplongListstring=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){var e=this;return e};return t.constructFromObject=function(i,n){return i&&(n=i||new t,e.constructFromObject(i,n,Array)),n},t})},{"../../../alfrescoApiClient":295}],117:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.MapstringListEntityVariableScopeRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){var e=this;return e};return t.constructFromObject=function(i,n){return i&&(n=i||new t,e.constructFromObject(i,n,Array)),n},t})},{"../../../alfrescoApiClient":295}],118:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.MapstringListVariableScopeRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){var e=this;return e};return t.constructFromObject=function(i,n){return i&&(n=i||new t,e.constructFromObject(i,n,Array)),n},t})},{"../../../alfrescoApiClient":295}],119:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.Mapstringstring=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){var e=this;return e};return t.constructFromObject=function(i,n){return i&&(n=i||new t,e.constructFromObject(i,n,String)),n},t})},{"../../../alfrescoApiClient":295}],120:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ModelRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("comment")&&(n.comment=e.convertToType(i.comment,"String")),i.hasOwnProperty("createdBy")&&(n.createdBy=e.convertToType(i.createdBy,"Integer")),i.hasOwnProperty("createdByFullName")&&(n.createdByFullName=e.convertToType(i.createdByFullName,"String")),i.hasOwnProperty("description")&&(n.description=e.convertToType(i.description,"String")),i.hasOwnProperty("favorite")&&(n.favorite=e.convertToType(i.favorite,"Boolean")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("lastUpdated")&&(n.lastUpdated=e.convertToType(i.lastUpdated,"Date")),i.hasOwnProperty("lastUpdatedBy")&&(n.lastUpdatedBy=e.convertToType(i.lastUpdatedBy,"Integer")),i.hasOwnProperty("lastUpdatedByFullName")&&(n.lastUpdatedByFullName=e.convertToType(i.lastUpdatedByFullName,"String")),i.hasOwnProperty("latestVersion")&&(n.latestVersion=e.convertToType(i.latestVersion,"Boolean")),i.hasOwnProperty("modelType")&&(n.modelType=e.convertToType(i.modelType,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("permission")&&(n.permission=e.convertToType(i.permission,"String")),i.hasOwnProperty("referenceId")&&(n.referenceId=e.convertToType(i.referenceId,"Integer")),i.hasOwnProperty("stencilSet")&&(n.stencilSet=e.convertToType(i.stencilSet,"Integer")),i.hasOwnProperty("version")&&(n.version=e.convertToType(i.version,"Integer"))),n},t.prototype.comment=void 0,t.prototype.createdBy=void 0,t.prototype.createdByFullName=void 0,t.prototype.description=void 0,t.prototype.favorite=void 0,t.prototype.id=void 0,t.prototype.lastUpdated=void 0,t.prototype.lastUpdatedBy=void 0,t.prototype.lastUpdatedByFullName=void 0,t.prototype.latestVersion=void 0,t.prototype.modelType=void 0,t.prototype.name=void 0,t.prototype.permission=void 0,t.prototype.referenceId=void 0,t.prototype.stencilSet=void 0,t.prototype.version=void 0,t})},{"../../../alfrescoApiClient":295}],121:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ObjectNode=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(e,i){return e&&(i=e||new t),i},t})},{"../../../alfrescoApiClient":295}],122:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.OptionRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"String")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String"))),n},t.prototype.id=void 0,t.prototype.name=void 0,t})},{"../../../alfrescoApiClient":295}],123:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ParameterValueRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"String")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("version")&&(n.version=e.convertToType(i.version,"String")),i.hasOwnProperty("value")&&(n.value=e.convertToType(i.value,"String"))),n},t.prototype.id=void 0,t.prototype.name=void 0,t.prototype.version=void 0,t.prototype.value=void 0,t})},{"../../../alfrescoApiClient":295}],124:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessFilterRequestRepresentation.js=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("processDefinitionId")&&(n.processDefinitionId=e.convertToType(i.processDefinitionId,"Integer")),i.hasOwnProperty("appDefinitionId")&&(n.appDefinitionId=e.convertToType(i.appDefinitionId,"Integer")),i.hasOwnProperty("sort")&&(n.sort=e.convertToType(i.sort,"String")),i.hasOwnProperty("state")&&(n.state=e.convertToType(i.state,"String")),i.hasOwnProperty("page")&&(n.page=e.convertToType(i.page,"Integer")),i.hasOwnProperty("size")&&(n.size=e.convertToType(i.size,"Integer"))),n},t.prototype.processDefinitionId=void 0,t.prototype.appDefinitionId=void 0,t.prototype.state=void 0,t.prototype.sort=void 0,t.prototype.page=void 0,t.prototype.size=void 0,t})},{"../../../alfrescoApiClient":295}],125:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstanceFilterRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("asc")&&(n.asc=e.convertToType(i.asc,"Boolean")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("processDefinitionId")&&(n.processDefinitionId=e.convertToType(i.processDefinitionId,"String")),i.hasOwnProperty("processDefinitionKey")&&(n.processDefinitionKey=e.convertToType(i.processDefinitionKey,"String")),i.hasOwnProperty("sort")&&(n.sort=e.convertToType(i.sort,"String")),i.hasOwnProperty("state")&&(n.state=e.convertToType(i.state,"String"))),n},t.prototype.asc=void 0,t.prototype.name=void 0,t.prototype.processDefinitionId=void 0,t.prototype.processDefinitionKey=void 0,t.prototype.sort=void 0,t.prototype.state=void 0,t})},{"../../../alfrescoApiClient":295}],126:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ProcessInstanceFilterRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./ProcessInstanceFilterRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstanceFilterRequestRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ProcessInstanceFilterRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("appDefinitionId")&&(o.appDefinitionId=e.convertToType(n.appDefinitionId,"Integer")),n.hasOwnProperty("filter")&&(o.filter=t.constructFromObject(n.filter)),n.hasOwnProperty("filterId")&&(o.filterId=e.convertToType(n.filterId,"Integer")),n.hasOwnProperty("page")&&(o.page=e.convertToType(n.page,"Integer")),n.hasOwnProperty("size")&&(o.size=e.convertToType(n.size,"Integer"))),o},i.prototype.appDefinitionId=void 0,i.prototype.filter=void 0,i.prototype.filterId=void 0,i.prototype.page=void 0,i.prototype.size=void 0,i})},{"../../../alfrescoApiClient":295,"./ProcessInstanceFilterRepresentation":125}],127:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/LightUserRepresentation","../model/RestVariable"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./LightUserRepresentation"),t("./RestVariable")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstanceRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.LightUserRepresentation,n.ActivitiPublicRestApi.RestVariable))}(void 0,function(e,t,i){var n=function(){};return n.constructFromObject=function(o,r){return o&&(r=o||new n,o.hasOwnProperty("businessKey")&&(r.businessKey=e.convertToType(o.businessKey,"String")),o.hasOwnProperty("ended")&&(r.ended=e.convertToType(o.ended,"Date")),o.hasOwnProperty("graphicalNotationDefined")&&(r.graphicalNotationDefined=e.convertToType(o.graphicalNotationDefined,"Boolean")),o.hasOwnProperty("id")&&(r.id=e.convertToType(o.id,"String")),o.hasOwnProperty("name")&&(r.name=e.convertToType(o.name,"String")),o.hasOwnProperty("processDefinitionCategory")&&(r.processDefinitionCategory=e.convertToType(o.processDefinitionCategory,"String")),o.hasOwnProperty("processDefinitionDeploymentId")&&(r.processDefinitionDeploymentId=e.convertToType(o.processDefinitionDeploymentId,"String")),o.hasOwnProperty("processDefinitionDescription")&&(r.processDefinitionDescription=e.convertToType(o.processDefinitionDescription,"String")),o.hasOwnProperty("processDefinitionId")&&(r.processDefinitionId=e.convertToType(o.processDefinitionId,"String")),o.hasOwnProperty("processDefinitionKey")&&(r.processDefinitionKey=e.convertToType(o.processDefinitionKey,"String")),o.hasOwnProperty("processDefinitionName")&&(r.processDefinitionName=e.convertToType(o.processDefinitionName,"String")),o.hasOwnProperty("processDefinitionVersion")&&(r.processDefinitionVersion=e.convertToType(o.processDefinitionVersion,"Integer")),o.hasOwnProperty("startFormDefined")&&(r.startFormDefined=e.convertToType(o.startFormDefined,"Boolean")),o.hasOwnProperty("started")&&(r.started=e.convertToType(o.started,"Date")),o.hasOwnProperty("startedBy")&&(r.startedBy=t.constructFromObject(o.startedBy)),o.hasOwnProperty("tenantId")&&(r.tenantId=e.convertToType(o.tenantId,"String")),o.hasOwnProperty("variables")&&(r.variables=e.convertToType(o.variables,[i]))),r},n.prototype.businessKey=void 0,n.prototype.ended=void 0,n.prototype.graphicalNotationDefined=void 0,n.prototype.id=void 0,n.prototype.name=void 0,n.prototype.processDefinitionCategory=void 0,n.prototype.processDefinitionDeploymentId=void 0,n.prototype.processDefinitionDescription=void 0,n.prototype.processDefinitionId=void 0,n.prototype.processDefinitionKey=void 0,n.prototype.processDefinitionName=void 0,n.prototype.processDefinitionVersion=void 0,n.prototype.startFormDefined=void 0,n.prototype.started=void 0,n.prototype.startedBy=void 0,n.prototype.tenantId=void 0,n.prototype.variables=void 0,n})},{"../../../alfrescoApiClient":295,"./LightUserRepresentation":115,"./RestVariable":137}],128:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessInstanceVariableRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"String")),i.hasOwnProperty("type")&&(n.type=e.convertToType(i.type,"String")),i.hasOwnProperty("name")&&(n.value=e.convertToType(i.value,Object))),n},t.prototype.id=void 0,t.prototype.type=void 0,t.prototype.value=void 0,t})},{"../../../alfrescoApiClient":295}],129:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessScopeIdentifierRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("processActivityId")&&(n.processActivityId=e.convertToType(i.processActivityId,"String")),i.hasOwnProperty("processModelId")&&(n.processModelId=e.convertToType(i.processModelId,"Integer"))),n},t.prototype.processActivityId=void 0,t.prototype.processModelId=void 0,t})},{"../../../alfrescoApiClient":295}],130:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/FormScopeRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./FormScopeRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessScopeRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.FormScopeRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("activityIds")&&(o.activityIds=e.convertToType(n.activityIds,["String"])),n.hasOwnProperty("activityIdsByCollapsedSubProcessIdMap")&&(o.activityIdsByCollapsedSubProcessIdMap=e.convertToType(n.activityIdsByCollapsedSubProcessIdMap,{String:Array})),n.hasOwnProperty("activityIdsByDecisionTableIdMap")&&(o.activityIdsByDecisionTableIdMap=e.convertToType(n.activityIdsByDecisionTableIdMap,{String:Array})),n.hasOwnProperty("activityIdsByFormIdMap")&&(o.activityIdsByFormIdMap=e.convertToType(n.activityIdsByFormIdMap,{String:Array})),n.hasOwnProperty("activityIdsWithExcludedSubProcess")&&(o.activityIdsWithExcludedSubProcess=e.convertToType(n.activityIdsWithExcludedSubProcess,["String"])),n.hasOwnProperty("customStencilVariables")&&(o.customStencilVariables=e.convertToType(n.customStencilVariables,{String:Array})),n.hasOwnProperty("entityVariables")&&(o.entityVariables=e.convertToType(n.entityVariables,{String:Array})),n.hasOwnProperty("executionVariables")&&(o.executionVariables=e.convertToType(n.executionVariables,{String:Array})),n.hasOwnProperty("fieldToVariableMappings")&&(o.fieldToVariableMappings=e.convertToType(n.fieldToVariableMappings,{String:Array})),n.hasOwnProperty("forms")&&(o.forms=e.convertToType(n.forms,[t])),n.hasOwnProperty("metadataVariables")&&(o.metadataVariables=e.convertToType(n.metadataVariables,{String:Array})),n.hasOwnProperty("modelId")&&(o.modelId=e.convertToType(n.modelId,"Integer")),n.hasOwnProperty("processModelType")&&(o.processModelType=e.convertToType(n.processModelType,"Integer")),n.hasOwnProperty("responseVariables")&&(o.responseVariables=e.convertToType(n.responseVariables,{String:Array}))),o},i.prototype.activityIds=void 0,i.prototype.activityIdsByCollapsedSubProcessIdMap=void 0,i.prototype.activityIdsByDecisionTableIdMap=void 0,i.prototype.activityIdsByFormIdMap=void 0,i.prototype.activityIdsWithExcludedSubProcess=void 0,i.prototype.customStencilVariables=void 0,i.prototype.entityVariables=void 0,i.prototype.executionVariables=void 0,i.prototype.fieldToVariableMappings=void 0,i.prototype.forms=void 0,i.prototype.metadataVariables=void 0,i.prototype.modelId=void 0,i.prototype.processModelType=void 0,i.prototype.responseVariables=void 0,i})},{"../../../alfrescoApiClient":295,"./FormScopeRepresentation":105}],131:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ProcessScopeIdentifierRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./ProcessScopeIdentifierRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ProcessScopesRequestRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ProcessScopeIdentifierRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("identifiers")&&(o.identifiers=e.convertToType(n.identifiers,[t])),n.hasOwnProperty("overriddenModel")&&(o.overriddenModel=e.convertToType(n.overriddenModel,"String"))),o},i.prototype.identifiers=void 0,i.prototype.overriddenModel=void 0,i})},{"../../../alfrescoApiClient":295,"./ProcessScopeIdentifierRepresentation":129}],132:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/LightGroupRepresentation","../model/LightUserRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./LightGroupRepresentation"),t("./LightUserRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.PublishIdentityInfoRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.LightGroupRepresentation,n.ActivitiPublicRestApi.LightUserRepresentation))}(void 0,function(e,t,i){var n=function(){};return n.constructFromObject=function(o,r){return o&&(r=o||new n,o.hasOwnProperty("group")&&(r.group=t.constructFromObject(o.group)),o.hasOwnProperty("person")&&(r.person=i.constructFromObject(o.person)),o.hasOwnProperty("type")&&(r.type=e.convertToType(o.type,"String"))),r},n.prototype.group=void 0,n.prototype.person=void 0,n.prototype.type=void 0,n})},{"../../../alfrescoApiClient":295,"./LightGroupRepresentation":113,"./LightUserRepresentation":115 }],133:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/LightUserRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./LightUserRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.RelatedContentRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.LightUserRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("contentAvailable")&&(o.contentAvailable=e.convertToType(n.contentAvailable,"Boolean")),n.hasOwnProperty("created")&&(o.created=e.convertToType(n.created,"Date")),n.hasOwnProperty("createdBy")&&(o.createdBy=t.constructFromObject(n.createdBy)),n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"Integer")),n.hasOwnProperty("link")&&(o.link=e.convertToType(n.link,"Boolean")),n.hasOwnProperty("linkUrl")&&(o.linkUrl=e.convertToType(n.linkUrl,"String")),n.hasOwnProperty("mimeType")&&(o.mimeType=e.convertToType(n.mimeType,"String")),n.hasOwnProperty("name")&&(o.name=e.convertToType(n.name,"String")),n.hasOwnProperty("previewStatus")&&(o.previewStatus=e.convertToType(n.previewStatus,"String")),n.hasOwnProperty("simpleType")&&(o.simpleType=e.convertToType(n.simpleType,"String")),n.hasOwnProperty("source")&&(o.source=e.convertToType(n.source,"String")),n.hasOwnProperty("sourceId")&&(o.sourceId=e.convertToType(n.sourceId,"String")),n.hasOwnProperty("thumbnailStatus")&&(o.thumbnailStatus=e.convertToType(n.thumbnailStatus,"String"))),o},i.prototype.contentAvailable=void 0,i.prototype.created=void 0,i.prototype.createdBy=void 0,i.prototype.id=void 0,i.prototype.link=void 0,i.prototype.linkUrl=void 0,i.prototype.mimeType=void 0,i.prototype.name=void 0,i.prototype.previewStatus=void 0,i.prototype.simpleType=void 0,i.prototype.source=void 0,i.prototype.sourceId=void 0,i.prototype.thumbnailStatus=void 0,i})},{"../../../alfrescoApiClient":295,"./LightUserRepresentation":115}],134:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","./Chart"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./Chart")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ReportCharts=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.Chart))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("elements")&&(o.elements=e.convertToType(n.elements,[t]))),o},i.prototype.elements=void 0,i})},{"../../../alfrescoApiClient":295,"./Chart":85}],135:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ReportParametersDefinition=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("definition")&&(n.definition=e.convertToType(i.definition,"String")),i.hasOwnProperty("created")&&(n.created=e.convertToType(i.created,"String"))),n},t.prototype.id=void 0,t.prototype.name=void 0,t.prototype.definition=void 0,t.prototype.created=void 0,t})},{"../../../alfrescoApiClient":295}],136:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ResetPasswordRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("email")&&(n.email=e.convertToType(i.email,"String"))),n},t.prototype.email=void 0,t})},{"../../../alfrescoApiClient":295}],137:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.RestVariable=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("scope")&&(n.scope=e.convertToType(i.scope,"String")),i.hasOwnProperty("type")&&(n.type=e.convertToType(i.type,"String")),i.hasOwnProperty("value")&&(n.value=e.convertToType(i.value,Object)),i.hasOwnProperty("valueUrl")&&(n.valueUrl=e.convertToType(i.valueUrl,"String"))),n},t.prototype.name=void 0,t.prototype.scope=void 0,t.prototype.type=void 0,t.prototype.value=void 0,t.prototype.valueUrl=void 0,t})},{"../../../alfrescoApiClient":295}],138:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/AbstractRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./AbstractRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ResultListDataRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.AbstractRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(t,n){return t&&(n=t||new i,t.hasOwnProperty("data")&&(n.data=e.convertToType(t.data,"object")),t.hasOwnProperty("size")&&(n.size=e.convertToType(t.size,"Integer")),t.hasOwnProperty("start")&&(n.start=e.convertToType(t.start,"Integer")),t.hasOwnProperty("total")&&(n.total=e.convertToType(t.total,"Integer"))),n},i.prototype.data=void 0,i.prototype.size=void 0,i.prototype.start=void 0,i.prototype.total=void 0,i})},{"../../../alfrescoApiClient":295,"./AbstractRepresentation":73}],139:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/AppDefinitionRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./AppDefinitionRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.RuntimeAppDefinitionSaveRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.AppDefinitionRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("appDefinitions")&&(o.appDefinitions=e.convertToType(n.appDefinitions,[t]))),o},i.prototype.appDefinitions=void 0,i})},{"../../../alfrescoApiClient":295,"./AppDefinitionRepresentation":78}],140:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.SaveFormRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("values")&&(n.values=e.convertToType(i.values,Object))),n},t.prototype.values=void 0,t})},{"../../../alfrescoApiClient":295}],141:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.SyncLogEntryRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("timeStamp")&&(n.timeStamp=e.convertToType(i.timeStamp,"Date")),i.hasOwnProperty("type")&&(n.type=e.convertToType(i.type,"String"))),n},t.prototype.id=void 0,t.prototype.timeStamp=void 0,t.prototype.type=void 0,t})},{"../../../alfrescoApiClient":295}],142:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.SystemPropertiesRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("allowInvolveByEmail")&&(n.allowInvolveByEmail=e.convertToType(i.allowInvolveByEmail,"Boolean"))),n},t.prototype.allowInvolveByEmail=void 0,t})},{"../../../alfrescoApiClient":295}],143:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskFilterRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("asc")&&(n.asc=e.convertToType(i.asc,"Boolean")),i.hasOwnProperty("assignment")&&(n.assignment=e.convertToType(i.assignment,"String")),i.hasOwnProperty("dueAfter")&&(n.dueAfter=e.convertToType(i.dueAfter,"Date")),i.hasOwnProperty("dueBefore")&&(n.dueBefore=e.convertToType(i.dueBefore,"Date")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("processDefinitionId")&&(n.processDefinitionId=e.convertToType(i.processDefinitionId,"String")),i.hasOwnProperty("processDefinitionKey")&&(n.processDefinitionKey=e.convertToType(i.processDefinitionKey,"String")),i.hasOwnProperty("sort")&&(n.sort=e.convertToType(i.sort,"String")),i.hasOwnProperty("state")&&(n.state=e.convertToType(i.state,"String"))),n},t.prototype.asc=void 0,t.prototype.assignment=void 0,t.prototype.dueAfter=void 0,t.prototype.dueBefore=void 0,t.prototype.name=void 0,t.prototype.processDefinitionId=void 0,t.prototype.processDefinitionKey=void 0,t.prototype.sort=void 0,t.prototype.state=void 0,t})},{"../../../alfrescoApiClient":295}],144:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/TaskFilterRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./TaskFilterRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskFilterRequestRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.TaskFilterRepresentation))}(void 0,function(e,t){var i=function(){this.hasOwnProperty("filter")||this.hasOwnProperty("filterId")||(this.filter=new t)};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("appDefinitionId")&&(o.appDefinitionId=e.convertToType(n.appDefinitionId,"Integer")),n.hasOwnProperty("filter")&&(o.filter=t.constructFromObject(n.filter)),n.hasOwnProperty("filterId")&&(o.filterId=e.convertToType(n.filterId,"Integer")),n.hasOwnProperty("page")&&(o.page=e.convertToType(n.page,"Integer")),n.hasOwnProperty("size")&&(o.size=e.convertToType(n.size,"Integer"))),o},i.prototype.appDefinitionId=void 0,i.prototype.filter=void 0,i.prototype.filterId=void 0,i.prototype.page=void 0,i.prototype.size=void 0,i})},{"../../../alfrescoApiClient":295,"./TaskFilterRepresentation":143}],145:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskQueryRequestRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("processInstanceId")&&(n.processInstanceId=e.convertToType(i.processInstanceId,"Integer")),i.hasOwnProperty("text")&&(n.text=TaskFilterRepresentation.constructFromObject(i.text,"String")),i.hasOwnProperty("assignment")&&(n.assignment=e.convertToType(i.assignment)),i.hasOwnProperty("state")&&(n.state=e.convertToType(i.state,"String")),i.hasOwnProperty("sort")&&(n.sort=e.convertToType(i.sort,"String")),i.hasOwnProperty("page")&&(n.page=e.convertToType(i.page,"Integer")),i.hasOwnProperty("size")&&(n.size=e.convertToType(i.size,"Integer"))),n},t.prototype.processInstanceId=void 0,t.prototype.text=void 0,t.prototype.assignment=void 0,t.prototype.state=void 0,t.prototype.sort=void 0,t.prototype.page=void 0,t.prototype.size=void 0,t})},{"../../../alfrescoApiClient":295}],146:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/LightUserRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./LightUserRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.LightUserRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("adhocTaskCanBeReassigned")&&(o.adhocTaskCanBeReassigned=e.convertToType(n.adhocTaskCanBeReassigned,"Boolean")),n.hasOwnProperty("assignee")&&(o.assignee=t.constructFromObject(n.assignee)),n.hasOwnProperty("category")&&(o.category=e.convertToType(n.category,"String")),n.hasOwnProperty("created")&&(o.created=e.convertToType(n.created,"Date")),n.hasOwnProperty("description")&&(o.description=e.convertToType(n.description,"String")),n.hasOwnProperty("dueDate")&&(o.dueDate=e.convertToType(n.dueDate,"Date")),n.hasOwnProperty("duration")&&(o.duration=e.convertToType(n.duration,"Integer")),n.hasOwnProperty("endDate")&&(o.endDate=e.convertToType(n.endDate,"Date")),n.hasOwnProperty("formKey")&&(o.formKey=e.convertToType(n.formKey,"String")),n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"String")),n.hasOwnProperty("initiatorCanCompleteTask")&&(o.initiatorCanCompleteTask=e.convertToType(n.initiatorCanCompleteTask,"Boolean")),n.hasOwnProperty("involvedPeople")&&(o.involvedPeople=e.convertToType(n.involvedPeople,[t])),n.hasOwnProperty("memberOfCandidateGroup")&&(o.memberOfCandidateGroup=e.convertToType(n.memberOfCandidateGroup,"Boolean")),n.hasOwnProperty("memberOfCandidateUsers")&&(o.memberOfCandidateUsers=e.convertToType(n.memberOfCandidateUsers,"Boolean")),n.hasOwnProperty("name")&&(o.name=e.convertToType(n.name,"String")),n.hasOwnProperty("parentTaskId")&&(o.parentTaskId=e.convertToType(n.parentTaskId,"String")),n.hasOwnProperty("parentTaskName")&&(o.parentTaskName=e.convertToType(n.parentTaskName,"String")),n.hasOwnProperty("priority")&&(o.priority=e.convertToType(n.priority,"Integer")),n.hasOwnProperty("processDefinitionCategory")&&(o.processDefinitionCategory=e.convertToType(n.processDefinitionCategory,"String")),n.hasOwnProperty("processDefinitionDeploymentId")&&(o.processDefinitionDeploymentId=e.convertToType(n.processDefinitionDeploymentId,"String")),n.hasOwnProperty("processDefinitionDescription")&&(o.processDefinitionDescription=e.convertToType(n.processDefinitionDescription,"String")),n.hasOwnProperty("processDefinitionId")&&(o.processDefinitionId=e.convertToType(n.processDefinitionId,"String")),n.hasOwnProperty("processDefinitionKey")&&(o.processDefinitionKey=e.convertToType(n.processDefinitionKey,"String")),n.hasOwnProperty("processDefinitionName")&&(o.processDefinitionName=e.convertToType(n.processDefinitionName,"String")),n.hasOwnProperty("processDefinitionVersion")&&(o.processDefinitionVersion=e.convertToType(n.processDefinitionVersion,"Integer")),n.hasOwnProperty("processInstanceId")&&(o.processInstanceId=e.convertToType(n.processInstanceId,"String")),n.hasOwnProperty("processInstanceName")&&(o.processInstanceName=e.convertToType(n.processInstanceName,"String")),n.hasOwnProperty("processInstanceStartUserId")&&(o.processInstanceStartUserId=e.convertToType(n.processInstanceStartUserId,"String"))),o},i.prototype.adhocTaskCanBeReassigned=void 0,i.prototype.assignee=void 0,i.prototype.category=void 0,i.prototype.created=void 0,i.prototype.description=void 0,i.prototype.dueDate=void 0,i.prototype.duration=void 0,i.prototype.endDate=void 0,i.prototype.formKey=void 0,i.prototype.id=void 0,i.prototype.initiatorCanCompleteTask=void 0,i.prototype.involvedPeople=void 0,i.prototype.memberOfCandidateGroup=void 0,i.prototype.memberOfCandidateUsers=void 0,i.prototype.name=void 0,i.prototype.parentTaskId=void 0,i.prototype.parentTaskName=void 0,i.prototype.priority=void 0,i.prototype.processDefinitionCategory=void 0,i.prototype.processDefinitionDeploymentId=void 0,i.prototype.processDefinitionDescription=void 0,i.prototype.processDefinitionId=void 0,i.prototype.processDefinitionKey=void 0,i.prototype.processDefinitionName=void 0,i.prototype.processDefinitionVersion=void 0,i.prototype.processInstanceId=void 0,i.prototype.processInstanceName=void 0,i.prototype.processInstanceStartUserId=void 0,i})},{"../../../alfrescoApiClient":295,"./LightUserRepresentation":115}],147:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TaskUpdateRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("description")&&(n.description=e.convertToType(i.description,"String")),i.hasOwnProperty("descriptionSet")&&(n.descriptionSet=e.convertToType(i.descriptionSet,"Boolean")),i.hasOwnProperty("dueDate")&&(n.dueDate=e.convertToType(i.dueDate,"Date")),i.hasOwnProperty("dueDateSet")&&(n.dueDateSet=e.convertToType(i.dueDateSet,"Boolean")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("nameSet")&&(n.nameSet=e.convertToType(i.nameSet,"Boolean"))),n},t.prototype.description=void 0,t.prototype.descriptionSet=void 0,t.prototype.dueDate=void 0,t.prototype.dueDateSet=void 0,t.prototype.name=void 0,t.prototype.nameSet=void 0,t})},{"../../../alfrescoApiClient":295}],148:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TenantEvent=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("eventTime")&&(n.eventTime=e.convertToType(i.eventTime,"Date")),i.hasOwnProperty("eventType")&&(n.eventType=e.convertToType(i.eventType,"String")),i.hasOwnProperty("extraInfo")&&(n.extraInfo=e.convertToType(i.extraInfo,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("tenantId")&&(n.tenantId=e.convertToType(i.tenantId,"Integer")),i.hasOwnProperty("userId")&&(n.userId=e.convertToType(i.userId,"Integer")),i.hasOwnProperty("userName")&&(n.userName=e.convertToType(i.userName,"String"))),n},t.prototype.eventTime=void 0,t.prototype.eventType=void 0,t.prototype.extraInfo=void 0,t.prototype.id=void 0,t.prototype.tenantId=void 0,t.prototype.userId=void 0,t.prototype.userName=void 0,t})},{"../../../alfrescoApiClient":295}],149:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.TenantRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("active")&&(n.active=e.convertToType(i.active,"Boolean")),i.hasOwnProperty("created")&&(n.created=e.convertToType(i.created,"Date")),i.hasOwnProperty("domain")&&(n.domain=e.convertToType(i.domain,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"Integer")),i.hasOwnProperty("lastUpdate")&&(n.lastUpdate=e.convertToType(i.lastUpdate,"Date")),i.hasOwnProperty("logoId")&&(n.logoId=e.convertToType(i.logoId,"Integer")),i.hasOwnProperty("maxUsers")&&(n.maxUsers=e.convertToType(i.maxUsers,"Integer")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String"))),n},t.prototype.active=void 0,t.prototype.created=void 0,t.prototype.domain=void 0,t.prototype.id=void 0,t.prototype.lastUpdate=void 0,t.prototype.logoId=void 0,t.prototype.maxUsers=void 0,t.prototype.name=void 0,t})},{"../../../alfrescoApiClient":295}],150:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UserAccountCredentialsRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("password")&&(n.password=e.convertToType(i.password,"String")),i.hasOwnProperty("username")&&(n.username=e.convertToType(i.username,"String"))),n},t.prototype.password=void 0,t.prototype.username=void 0,t})},{"../../../alfrescoApiClient":295}],151:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UserActionRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("action")&&(n.action=e.convertToType(i.action,"String")),i.hasOwnProperty("newPassword")&&(n.newPassword=e.convertToType(i.newPassword,"String")),i.hasOwnProperty("oldPassword")&&(n.oldPassword=e.convertToType(i.oldPassword,"String"))),n},t.prototype.action=void 0,t.prototype.newPassword=void 0,t.prototype.oldPassword=void 0,t})},{"../../../alfrescoApiClient":295}],152:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UserFilterOrderRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("appId")&&(n.appId=e.convertToType(i.appId,"Integer")),i.hasOwnProperty("order")&&(n.order=e.convertToType(i.order,["Integer"]))),n},t.prototype.appId=void 0,t.prototype.order=void 0,t})},{"../../../alfrescoApiClient":295}],153:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/ProcessInstanceFilterRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./ProcessInstanceFilterRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UserProcessInstanceFilterRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.ProcessInstanceFilterRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("appId")&&(o.appId=e.convertToType(n.appId,"Integer")),n.hasOwnProperty("filter")&&(o.filter=t.constructFromObject(n.filter)),n.hasOwnProperty("icon")&&(o.icon=e.convertToType(n.icon,"String")),n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"Integer")),n.hasOwnProperty("index")&&(o.index=e.convertToType(n.index,"Integer")),n.hasOwnProperty("name")&&(o.name=e.convertToType(n.name,"String")),n.hasOwnProperty("recent")&&(o.recent=e.convertToType(n.recent,"Boolean"))),o},i.prototype.appId=void 0,i.prototype.filter=void 0,i.prototype.icon=void 0,i.prototype.id=void 0,i.prototype.index=void 0,i.prototype.name=void 0,i.prototype.recent=void 0,i})},{"../../../alfrescoApiClient":295,"./ProcessInstanceFilterRepresentation":125}],154:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/GroupRepresentation","../model/LightAppRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./GroupRepresentation"),t("./LightAppRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UserRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.GroupRepresentation,n.ActivitiPublicRestApi.LightAppRepresentation))}(void 0,function(e,t,i){var n=function(){};return n.constructFromObject=function(o,r){return o&&(r=o||new n,o.hasOwnProperty("apps")&&(r.apps=e.convertToType(o.apps,[i])),o.hasOwnProperty("capabilities")&&(r.capabilities=e.convertToType(o.capabilities,["String"])),o.hasOwnProperty("company")&&(r.company=e.convertToType(o.company,"String")),o.hasOwnProperty("created")&&(r.created=e.convertToType(o.created,"Date")),o.hasOwnProperty("email")&&(r.email=e.convertToType(o.email,"String")),o.hasOwnProperty("externalId")&&(r.externalId=e.convertToType(o.externalId,"String")),o.hasOwnProperty("firstName")&&(r.firstName=e.convertToType(o.firstName,"String")),o.hasOwnProperty("fullname")&&(r.fullname=e.convertToType(o.fullname,"String")),o.hasOwnProperty("groups")&&(r.groups=e.convertToType(o.groups,[t])),o.hasOwnProperty("id")&&(r.id=e.convertToType(o.id,"Integer")),o.hasOwnProperty("lastName")&&(r.lastName=e.convertToType(o.lastName,"String")),o.hasOwnProperty("lastUpdate")&&(r.lastUpdate=e.convertToType(o.lastUpdate,"Date")),o.hasOwnProperty("latestSyncTimeStamp")&&(r.latestSyncTimeStamp=e.convertToType(o.latestSyncTimeStamp,"Date")),o.hasOwnProperty("password")&&(r.password=e.convertToType(o.password,"String")),o.hasOwnProperty("pictureId")&&(r.pictureId=e.convertToType(o.pictureId,"Integer")),o.hasOwnProperty("status")&&(r.status=e.convertToType(o.status,"String")),o.hasOwnProperty("tenantId")&&(r.tenantId=e.convertToType(o.tenantId,"Integer")),o.hasOwnProperty("tenantName")&&(r.tenantName=e.convertToType(o.tenantName,"String")),o.hasOwnProperty("tenantPictureId")&&(r.tenantPictureId=e.convertToType(o.tenantPictureId,"Integer")), o.hasOwnProperty("type")&&(r.type=e.convertToType(o.type,"String"))),r},n.prototype.apps=void 0,n.prototype.capabilities=void 0,n.prototype.company=void 0,n.prototype.created=void 0,n.prototype.email=void 0,n.prototype.externalId=void 0,n.prototype.firstName=void 0,n.prototype.fullname=void 0,n.prototype.groups=void 0,n.prototype.id=void 0,n.prototype.lastName=void 0,n.prototype.lastUpdate=void 0,n.prototype.latestSyncTimeStamp=void 0,n.prototype.password=void 0,n.prototype.pictureId=void 0,n.prototype.status=void 0,n.prototype.tenantId=void 0,n.prototype.tenantName=void 0,n.prototype.tenantPictureId=void 0,n.prototype.type=void 0,n})},{"../../../alfrescoApiClient":295,"./GroupRepresentation":109,"./LightAppRepresentation":112}],155:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/TaskFilterRepresentation"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./TaskFilterRepresentation")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.UserTaskFilterRepresentation=r(n.ActivitiPublicRestApi.ApiClient,n.ActivitiPublicRestApi.TaskFilterRepresentation))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(n,o){return n&&(o=n||new i,n.hasOwnProperty("appId")&&(o.appId=e.convertToType(n.appId,"Integer")),n.hasOwnProperty("filter")&&(o.filter=t.constructFromObject(n.filter)),n.hasOwnProperty("icon")&&(o.icon=e.convertToType(n.icon,"String")),n.hasOwnProperty("id")&&(o.id=e.convertToType(n.id,"Integer")),n.hasOwnProperty("index")&&(o.index=e.convertToType(n.index,"Integer")),n.hasOwnProperty("name")&&(o.name=e.convertToType(n.name,"String")),n.hasOwnProperty("recent")&&(o.recent=e.convertToType(n.recent,"Boolean"))),o},i.prototype.appId=void 0,i.prototype.filter=void 0,i.prototype.icon=void 0,i.prototype.id=void 0,i.prototype.index=void 0,i.prototype.name=void 0,i.prototype.recent=void 0,i})},{"../../../alfrescoApiClient":295,"./TaskFilterRepresentation":143}],156:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.ValidationErrorRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("defaultDescription")&&(n.defaultDescription=e.convertToType(i.defaultDescription,"String")),i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"String")),i.hasOwnProperty("name")&&(n.name=e.convertToType(i.name,"String")),i.hasOwnProperty("problem")&&(n.problem=e.convertToType(i.problem,"String")),i.hasOwnProperty("problemReference")&&(n.problemReference=e.convertToType(i.problemReference,"String")),i.hasOwnProperty("validatorSetName")&&(n.validatorSetName=e.convertToType(i.validatorSetName,"String")),i.hasOwnProperty("warning")&&(n.warning=e.convertToType(i.warning,"Boolean"))),n},t.prototype.defaultDescription=void 0,t.prototype.id=void 0,t.prototype.name=void 0,t.prototype.problem=void 0,t.prototype.problemReference=void 0,t.prototype.validatorSetName=void 0,t.prototype.warning=void 0,t})},{"../../../alfrescoApiClient":295}],157:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.ActivitiPublicRestApi||(n.ActivitiPublicRestApi={}),n.ActivitiPublicRestApi.VariableScopeRepresentation=r(n.ActivitiPublicRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=i||new t,i.hasOwnProperty("mapVariable")&&(n.mapVariable=e.convertToType(i.mapVariable,"String")),i.hasOwnProperty("mappedColumn")&&(n.mappedColumn=e.convertToType(i.mappedColumn,"String")),i.hasOwnProperty("mappedDataModel")&&(n.mappedDataModel=e.convertToType(i.mappedDataModel,"Integer")),i.hasOwnProperty("mappedEntity")&&(n.mappedEntity=e.convertToType(i.mappedEntity,"String")),i.hasOwnProperty("mappedVariableName")&&(n.mappedVariableName=e.convertToType(i.mappedVariableName,"String")),i.hasOwnProperty("processVariableName")&&(n.processVariableName=e.convertToType(i.processVariableName,"String")),i.hasOwnProperty("processVariableType")&&(n.processVariableType=e.convertToType(i.processVariableType,"String"))),n},t.prototype.mapVariable=void 0,t.prototype.mappedColumn=void 0,t.prototype.mappedDataModel=void 0,t.prototype.mappedEntity=void 0,t.prototype.mappedVariableName=void 0,t.prototype.processVariableName=void 0,t.prototype.processVariableType=void 0,t})},{"../../../alfrescoApiClient":295}],158:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","../model/Error","../model/LoginTicketEntry","../model/LoginRequest","../model/ValidateTicketEntry"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("../model/Error"),t("../model/LoginTicketEntry"),t("../model/LoginRequest"),t("../model/ValidateTicketEntry")):(n.AlfrescoAuthRestApi||(n.AlfrescoAuthRestApi={}),n.AlfrescoAuthRestApi.AuthenticationApi=r(n.AlfrescoAuthRestApi.ApiClient,n.AlfrescoAuthRestApi.Error,n.AlfrescoAuthRestApi.LoginTicketEntry,n.AlfrescoAuthRestApi.LoginRequest,n.AlfrescoAuthRestApi.ValidateTicketEntry))}(void 0,function(e,t,i,n,o){var r=function(t){this.apiClient=t||e.instance,this.createTicket=function(e){var t=e;if(void 0==e||null==e)throw"Missing the required parameter 'loginRequest' when calling createTicket";var n={},o={},r={},s={},a=["basicAuth"],p=["application/json"],l=["application/json"],c=i;return this.apiClient.callApi("/tickets","POST",n,o,r,s,t,a,p,l,c)},this.deleteTicket=function(){var e=null,t={},i={},n={},o={},r=["basicAuth"],s=["application/json"],a=["application/json"],p=null;return this.apiClient.callApi("/tickets/-me-","DELETE",t,i,n,o,e,r,s,a,p)},this.validateTicket=function(){var e=null,t={},i={},n={},r={},s=["basicAuth"],a=["application/json"],p=["application/json"],l=o;return this.apiClient.callApi("/tickets/-me-","GET",t,i,n,r,e,s,a,p,l)}};return r})},{"../../../alfrescoApiClient":295,"../model/Error":160,"../model/LoginRequest":162,"../model/LoginTicketEntry":163,"../model/ValidateTicketEntry":165}],159:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n){"function"==typeof e&&e.amd?e(["../../alfrescoApiClient","./model/Error","./model/ErrorError","./model/LoginRequest","./model/LoginTicketEntry","./model/LoginTicketEntryEntry","./model/ValidateTicketEntry","./model/ValidateTicketEntryEntry","./api/AuthenticationApi"],n):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports&&(i.exports=n(t("../../alfrescoApiClient"),t("./model/Error"),t("./model/ErrorError"),t("./model/LoginRequest"),t("./model/LoginTicketEntry"),t("./model/LoginTicketEntryEntry"),t("./model/ValidateTicketEntry"),t("./model/ValidateTicketEntryEntry"),t("./api/AuthenticationApi")))}(function(e,t,i,n,o,r,s,a,p){var l={ApiClient:e,Error:t,ErrorError:i,LoginRequest:n,LoginTicketEntry:o,LoginTicketEntryEntry:r,ValidateTicketEntry:s,ValidateTicketEntryEntry:a,AuthenticationApi:p};return l})},{"../../alfrescoApiClient":295,"./api/AuthenticationApi":158,"./model/Error":160,"./model/ErrorError":161,"./model/LoginRequest":162,"./model/LoginTicketEntry":163,"./model/LoginTicketEntryEntry":164,"./model/ValidateTicketEntry":165,"./model/ValidateTicketEntryEntry":166}],160:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","./ErrorError"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./ErrorError")):(n.AlfrescoAuthRestApi||(n.AlfrescoAuthRestApi={}),n.AlfrescoAuthRestApi.Error=r(n.AlfrescoAuthRestApi.ApiClient,n.AlfrescoAuthRestApi.ErrorError))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(e,n){return e&&(n=n||new i,e.hasOwnProperty("error")&&(n.error=t.constructFromObject(e.error))),n},i.prototype.error=void 0,i})},{"../../../alfrescoApiClient":295,"./ErrorError":161}],161:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.AlfrescoAuthRestApi||(n.AlfrescoAuthRestApi={}),n.AlfrescoAuthRestApi.ErrorError=r(n.AlfrescoAuthRestApi.ApiClient))}(void 0,function(e){var t=function(e,t,i,n){this.briefSummary=e,this.descriptionURL=t,this.stackTrace=i,this.statusCode=n};return t.constructFromObject=function(i,n){return i&&(n=n||new t,i.hasOwnProperty("errorKey")&&(n.errorKey=e.convertToType(i.errorKey,"String")),i.hasOwnProperty("briefSummary")&&(n.briefSummary=e.convertToType(i.briefSummary,"String")),i.hasOwnProperty("descriptionURL")&&(n.descriptionURL=e.convertToType(i.descriptionURL,"String")),i.hasOwnProperty("logId")&&(n.logId=e.convertToType(i.logId,"String")),i.hasOwnProperty("stackTrace")&&(n.stackTrace=e.convertToType(i.stackTrace,"String")),i.hasOwnProperty("statusCode")&&(n.statusCode=e.convertToType(i.statusCode,"Integer"))),n},t.prototype.errorKey=void 0,t.prototype.briefSummary=void 0,t.prototype.descriptionURL=void 0,t.prototype.logId=void 0,t.prototype.stackTrace=void 0,t.prototype.statusCode=void 0,t})},{"../../../alfrescoApiClient":295}],162:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.AlfrescoAuthRestApi||(n.AlfrescoAuthRestApi={}),n.AlfrescoAuthRestApi.LoginRequest=r(n.AlfrescoAuthRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=n||new t,i.hasOwnProperty("userId")&&(n.userId=e.convertToType(i.userId,"String")),i.hasOwnProperty("password")&&(n.password=e.convertToType(i.password,"String"))),n},t.prototype.userId=void 0,t.prototype.password=void 0,t})},{"../../../alfrescoApiClient":295}],163:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","./LoginTicketEntryEntry"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./LoginTicketEntryEntry")):(n.AlfrescoAuthRestApi||(n.AlfrescoAuthRestApi={}),n.AlfrescoAuthRestApi.LoginTicketEntry=r(n.AlfrescoAuthRestApi.ApiClient,n.AlfrescoAuthRestApi.LoginTicketEntryEntry))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(e,n){return e&&(n=n||new i,e.hasOwnProperty("entry")&&(n.entry=t.constructFromObject(e.entry))),n},i.prototype.entry=void 0,i})},{"../../../alfrescoApiClient":295,"./LoginTicketEntryEntry":164}],164:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.AlfrescoAuthRestApi||(n.AlfrescoAuthRestApi={}),n.AlfrescoAuthRestApi.LoginTicketEntryEntry=r(n.AlfrescoAuthRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=n||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"String")),i.hasOwnProperty("userId")&&(n.userId=e.convertToType(i.userId,"String"))),n},t.prototype.id=void 0,t.prototype.userId=void 0,t})},{"../../../alfrescoApiClient":295}],165:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient","./ValidateTicketEntryEntry"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient"),t("./ValidateTicketEntryEntry")):(n.AlfrescoAuthRestApi||(n.AlfrescoAuthRestApi={}),n.AlfrescoAuthRestApi.ValidateTicketEntry=r(n.AlfrescoAuthRestApi.ApiClient,n.AlfrescoAuthRestApi.ValidateTicketEntryEntry))}(void 0,function(e,t){var i=function(){};return i.constructFromObject=function(e,n){return e&&(n=n||new i,e.hasOwnProperty("entry")&&(n.entry=t.constructFromObject(e.entry))),n},i.prototype.entry=void 0,i})},{"../../../alfrescoApiClient":295,"./ValidateTicketEntryEntry":166}],166:[function(t,i,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["../../../alfrescoApiClient"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("../../../alfrescoApiClient")):(n.AlfrescoAuthRestApi||(n.AlfrescoAuthRestApi={}),n.AlfrescoAuthRestApi.ValidateTicketEntryEntry=r(n.AlfrescoAuthRestApi.ApiClient))}(void 0,function(e){var t=function(){};return t.constructFromObject=function(i,n){return i&&(n=n||new t,i.hasOwnProperty("id")&&(n.id=e.convertToType(i.id,"String"))),n},t.prototype.id=void 0,t})},{"../../../alfrescoApiClient":295}],167:[function(t,i,n){(function(n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,r){"function"==typeof e&&e.amd?e(["superagent"],r):"object"===("undefined"==typeof i?"undefined":o(i))&&i.exports?i.exports=r(t("superagent")):(n.AlfrescoCoreRestApi||(n.AlfrescoCoreRestApi={}),n.AlfrescoCoreRestApi.ApiClient=r(n.superagent))}(void 0,function(e){var i=function(){this.basePath="https://localhost/alfresco/api/-default-/public/alfresco/versions/1".replace(/\/+$/,""),this.authentications={basicAuth:{type:"basic"}},this.defaultHeaders={},this.timeout=6e4};return i.prototype.paramToString=function(e){return void 0==e||null==e?"":e instanceof Date?e.toJSON():e.toString()},i.prototype.buildUrl=function(e,t){e.match(/^\//)||(e="/"+e);var i=this.basePath+e,n=this;return i=i.replace(/\{([\w-]+)\}/g,function(e,i){var o;return o=t.hasOwnProperty(i)?n.paramToString(t[i]):e,encodeURIComponent(o)})},i.prototype.isJsonMime=function(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))},i.prototype.jsonPreferredMime=function(e){for(var t=0;t>e/4).toString(16):([1e16]+1e16).replace(/[01]/g,this.token)}},{key:"progress",value:function(e,t){if(e.lengthComputable&&this.promise){var i=Math.round(e.loaded/e.total*100);t.emit("progress",{total:e.total,loaded:e.loaded,percent:i})}}},{key:"buildUrlCustomBasePath",value:function(e,t,i){t.match(/^\//)||(t="/"+t);var n=e+t,o=this;return n=n.replace(/\{([\w-]+)\}/g,function(e,t){var n;return n=i.hasOwnProperty(t)?o.paramToString(i[t]):e,encodeURIComponent(n)})}}]),t}(p);a(u.prototype),t.exports=u},{"./alfresco-core-rest-api/src/ApiClient":167,"event-emitter":21,lodash:23,superagent:25}],296:[function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var i=0;i>e/4).toString(16):([1e16]+1e16).replace(/[01]/g,this.token)},t.prototype.progress=function(e,t){if(e.lengthComputable&&this.promise){var i=Math.round(e.loaded/e.total*100);t.emit("progress",{total:e.total,loaded:e.loaded,percent:i})}},t.prototype.buildUrlCustomBasePath=function(e,t,i){t.match(/^\//)||(t="/"+t);var n=e+t,o=this;return n=n.replace(/\{([\w-]+)\}/g,function(e,t){var n;return n=i.hasOwnProperty(t)?o.paramToString(i[t]):e,encodeURIComponent(n)})},t}(p);a(u.prototype),t.exports=u},{"./alfresco-core-rest-api/src/ApiClient":167,"event-emitter":21,lodash:23,superagent:25}],296:[function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(t,i){n(this,e),this.ecmAuth=t,this.ecmClient=i}return e.prototype.getDocumentThumbnailUrl=function(e){return this.ecmClient.basePath+"/nodes/"+e+"/renditions/doclib/content?attachment=false&alf_ticket="+this.ecmAuth.getTicket()},e.prototype.getDocumentPreviewUrl=function(e){return this.ecmClient.basePath+"/nodes/"+e+"/renditions/imgpreview/content?attachment=false&alf_ticket="+this.ecmAuth.getTicket()},e.prototype.getContentUrl=function(e){return this.ecmClient.basePath+"/nodes/"+e+"/content?attachment=false&alf_ticket="+this.ecmAuth.getTicket()},e}();t.exports=o},{}],297:[function(e,t,i){"use strict";function n(e,t){for(var i=Object.getOwnPropertyNames(t),n=0;n # **createDefaultReports** @@ -197,4 +198,39 @@ No authorization required - **Content-Type**: application/json - **Accept**: application/json + +# **updateReport** +> updateReport(reportId, name) + +Update the report details + +### Example +```javascript + +var reportId = "1"; // String | reportId +var name = "new Fake name"; // String | name + +this.alfrescoJsApi.activiti.reportApi.updateReport(reportId, name); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reportId** | **String**| reportId | + **name** | **String**| The report name | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/src/alfresco-activiti-rest-api/src/api/ReportApi.js b/src/alfresco-activiti-rest-api/src/api/ReportApi.js index fee83e0736..96ff5e233a 100755 --- a/src/alfresco-activiti-rest-api/src/api/ReportApi.js +++ b/src/alfresco-activiti-rest-api/src/api/ReportApi.js @@ -198,6 +198,37 @@ ); } + this.updateReport = function(reportId, name) { + var postBody = { + "name" : name + }; + + if (reportId == undefined || reportId == null) { + throw "Missing the required parameter 'reportId' when calling updateReport"; + } + + var pathParams = { + 'reportId': reportId + }; + var queryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = null; + + return this.apiClient.callApi( + '/app/rest/reporting/reports/{reportId}', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + }; return exports; diff --git a/test/activitiReportApi.spec.js b/test/activitiReportApi.spec.js index 2e12fa6aa6..aa362eb9e3 100644 --- a/test/activitiReportApi.spec.js +++ b/test/activitiReportApi.spec.js @@ -148,4 +148,15 @@ describe('Activiti Report Api', function () { }); }); + it('should update the report', function (done) { + + var reportId = '11015'; // String | reportId + var name = 'New Fake Name'; // String | reportId + this.reportsMock.get200ResponseUpdateReport(reportId); + + this.alfrescoJsApi.activiti.reportApi.updateReport(reportId, name).then(function () { + done(); + }); + }); + }); diff --git a/test/mockObjects/activiti/reportsMock.js b/test/mockObjects/activiti/reportsMock.js index 83ad93171e..cf9954d964 100644 --- a/test/mockObjects/activiti/reportsMock.js +++ b/test/mockObjects/activiti/reportsMock.js @@ -149,6 +149,12 @@ class ReportsMock extends BaseMock { .reply(200, fakeProcessDefinitionsNoApp); } + get200ResponseUpdateReport(reportId) { + nock(this.host, {'encodedQueryParams': true}) + .put('/activiti-app/app/rest/reporting/reports/' + reportId) + .reply(200); + } + } module.exports = ReportsMock; diff --git a/webpack-bundle-test.js b/webpack-bundle-test.js index a8885b82d7..2da6dc46e0 100644 --- a/webpack-bundle-test.js +++ b/webpack-bundle-test.js @@ -1838,7 +1838,7 @@ /* 6 */ /***/ function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(Buffer, global) {/*! + /* WEBPACK VAR INJECTION */(function(global) {/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh @@ -3628,7 +3628,7 @@ return val !== val // eslint-disable-line no-self-compare } - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(6).Buffer, (function() { return this; }()))) + /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, /* 7 */ @@ -21379,8 +21379,8 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(global, module) {/** * @license - * lodash - * Copyright jQuery Foundation and other contributors + * Lodash + * Copyright JS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors @@ -21391,13 +21391,13 @@ var undefined; /** Used as the semantic version number. */ - var VERSION = '4.16.4'; + var VERSION = '4.17.2'; /** Used as the size to enable large array optimizations. */ var LARGE_ARRAY_SIZE = 200; /** Error message constants. */ - var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://github.com/es-shims.', + var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.', FUNC_ERROR_TEXT = 'Expected a function'; /** Used to stand-in for `undefined` hash values. */ @@ -21409,28 +21409,33 @@ /** Used as the internal argument placeholder. */ var PLACEHOLDER = '__lodash_placeholder__'; + /** Used to compose bitmasks for cloning. */ + var CLONE_DEEP_FLAG = 1, + CLONE_FLAT_FLAG = 2, + CLONE_SYMBOLS_FLAG = 4; + + /** Used to compose bitmasks for value comparisons. */ + var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; + /** Used to compose bitmasks for function metadata. */ - var BIND_FLAG = 1, - BIND_KEY_FLAG = 2, - CURRY_BOUND_FLAG = 4, - CURRY_FLAG = 8, - CURRY_RIGHT_FLAG = 16, - PARTIAL_FLAG = 32, - PARTIAL_RIGHT_FLAG = 64, - ARY_FLAG = 128, - REARG_FLAG = 256, - FLIP_FLAG = 512; - - /** Used to compose bitmasks for comparison styles. */ - var UNORDERED_COMPARE_FLAG = 1, - PARTIAL_COMPARE_FLAG = 2; + var WRAP_BIND_FLAG = 1, + WRAP_BIND_KEY_FLAG = 2, + WRAP_CURRY_BOUND_FLAG = 4, + WRAP_CURRY_FLAG = 8, + WRAP_CURRY_RIGHT_FLAG = 16, + WRAP_PARTIAL_FLAG = 32, + WRAP_PARTIAL_RIGHT_FLAG = 64, + WRAP_ARY_FLAG = 128, + WRAP_REARG_FLAG = 256, + WRAP_FLIP_FLAG = 512; /** Used as default options for `_.truncate`. */ var DEFAULT_TRUNC_LENGTH = 30, DEFAULT_TRUNC_OMISSION = '...'; /** Used to detect hot functions by number of calls within a span of milliseconds. */ - var HOT_COUNT = 500, + var HOT_COUNT = 800, HOT_SPAN = 16; /** Used to indicate the type of lazy iteratees. */ @@ -21451,27 +21456,30 @@ /** Used to associate wrap methods with their bit flags. */ var wrapFlags = [ - ['ary', ARY_FLAG], - ['bind', BIND_FLAG], - ['bindKey', BIND_KEY_FLAG], - ['curry', CURRY_FLAG], - ['curryRight', CURRY_RIGHT_FLAG], - ['flip', FLIP_FLAG], - ['partial', PARTIAL_FLAG], - ['partialRight', PARTIAL_RIGHT_FLAG], - ['rearg', REARG_FLAG] + ['ary', WRAP_ARY_FLAG], + ['bind', WRAP_BIND_FLAG], + ['bindKey', WRAP_BIND_KEY_FLAG], + ['curry', WRAP_CURRY_FLAG], + ['curryRight', WRAP_CURRY_RIGHT_FLAG], + ['flip', WRAP_FLIP_FLAG], + ['partial', WRAP_PARTIAL_FLAG], + ['partialRight', WRAP_PARTIAL_RIGHT_FLAG], + ['rearg', WRAP_REARG_FLAG] ]; /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arrayTag = '[object Array]', + asyncTag = '[object AsyncFunction]', boolTag = '[object Boolean]', dateTag = '[object Date]', + domExcTag = '[object DOMException]', errorTag = '[object Error]', funcTag = '[object Function]', genTag = '[object GeneratorFunction]', mapTag = '[object Map]', numberTag = '[object Number]', + nullTag = '[object Null]', objectTag = '[object Object]', promiseTag = '[object Promise]', proxyTag = '[object Proxy]', @@ -21479,6 +21487,7 @@ setTag = '[object Set]', stringTag = '[object String]', symbolTag = '[object Symbol]', + undefinedTag = '[object Undefined]', weakMapTag = '[object WeakMap]', weakSetTag = '[object WeakSet]'; @@ -21574,8 +21583,10 @@ /** Used to compose unicode character classes. */ var rsAstralRange = '\\ud800-\\udfff', - rsComboMarksRange = '\\u0300-\\u036f\\ufe20-\\ufe23', - rsComboSymbolsRange = '\\u20d0-\\u20f0', + rsComboMarksRange = '\\u0300-\\u036f', + reComboHalfMarksRange = '\\ufe20-\\ufe2f', + rsComboSymbolsRange = '\\u20d0-\\u20ff', + rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, rsDingbatRange = '\\u2700-\\u27bf', rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff', rsMathOpRange = '\\xac\\xb1\\xd7\\xf7', @@ -21590,7 +21601,7 @@ var rsApos = "['\u2019]", rsAstral = '[' + rsAstralRange + ']', rsBreak = '[' + rsBreakRange + ']', - rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']', + rsCombo = '[' + rsComboRange + ']', rsDigits = '\\d+', rsDingbat = '[' + rsDingbatRange + ']', rsLower = '[' + rsLowerRange + ']', @@ -21604,13 +21615,15 @@ rsZWJ = '\\u200d'; /** Used to compose unicode regexes. */ - var rsLowerMisc = '(?:' + rsLower + '|' + rsMisc + ')', - rsUpperMisc = '(?:' + rsUpper + '|' + rsMisc + ')', - rsOptLowerContr = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?', - rsOptUpperContr = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?', + var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')', + rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')', + rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?', + rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?', reOptMod = rsModifier + '?', rsOptVar = '[' + rsVarRange + ']?', rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*', + rsOrdLower = '\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)', + rsOrdUpper = '\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)', rsSeq = rsOptVar + reOptMod + rsOptJoin, rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq, rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')'; @@ -21629,16 +21642,18 @@ /** Used to match complex or compound words. */ var reUnicodeWord = RegExp([ - rsUpper + '?' + rsLower + '+' + rsOptLowerContr + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')', - rsUpperMisc + '+' + rsOptUpperContr + '(?=' + [rsBreak, rsUpper + rsLowerMisc, '$'].join('|') + ')', - rsUpper + '?' + rsLowerMisc + '+' + rsOptLowerContr, - rsUpper + '+' + rsOptUpperContr, + rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')', + rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')', + rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower, + rsUpper + '+' + rsOptContrUpper, + rsOrdUpper, + rsOrdLower, rsDigits, rsEmoji ].join('|'), 'g'); /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */ - var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + ']'); + var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']'); /** Used to detect strings that need a more robust regexp to match words. */ var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/; @@ -21801,7 +21816,7 @@ /** Used to access faster Node.js helpers. */ var nodeUtil = (function() { try { - return freeProcess && freeProcess.binding('util'); + return freeProcess && freeProcess.binding && freeProcess.binding('util'); } catch (e) {} }()); @@ -21875,7 +21890,7 @@ */ function arrayAggregator(array, setter, iteratee, accumulator) { var index = -1, - length = array ? array.length : 0; + length = array == null ? 0 : array.length; while (++index < length) { var value = array[index]; @@ -21895,7 +21910,7 @@ */ function arrayEach(array, iteratee) { var index = -1, - length = array ? array.length : 0; + length = array == null ? 0 : array.length; while (++index < length) { if (iteratee(array[index], index, array) === false) { @@ -21915,7 +21930,7 @@ * @returns {Array} Returns `array`. */ function arrayEachRight(array, iteratee) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; while (length--) { if (iteratee(array[length], length, array) === false) { @@ -21937,7 +21952,7 @@ */ function arrayEvery(array, predicate) { var index = -1, - length = array ? array.length : 0; + length = array == null ? 0 : array.length; while (++index < length) { if (!predicate(array[index], index, array)) { @@ -21958,7 +21973,7 @@ */ function arrayFilter(array, predicate) { var index = -1, - length = array ? array.length : 0, + length = array == null ? 0 : array.length, resIndex = 0, result = []; @@ -21981,7 +21996,7 @@ * @returns {boolean} Returns `true` if `target` is found, else `false`. */ function arrayIncludes(array, value) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; return !!length && baseIndexOf(array, value, 0) > -1; } @@ -21996,7 +22011,7 @@ */ function arrayIncludesWith(array, value, comparator) { var index = -1, - length = array ? array.length : 0; + length = array == null ? 0 : array.length; while (++index < length) { if (comparator(value, array[index])) { @@ -22017,7 +22032,7 @@ */ function arrayMap(array, iteratee) { var index = -1, - length = array ? array.length : 0, + length = array == null ? 0 : array.length, result = Array(length); while (++index < length) { @@ -22059,7 +22074,7 @@ */ function arrayReduce(array, iteratee, accumulator, initAccum) { var index = -1, - length = array ? array.length : 0; + length = array == null ? 0 : array.length; if (initAccum && length) { accumulator = array[++index]; @@ -22083,7 +22098,7 @@ * @returns {*} Returns the accumulated value. */ function arrayReduceRight(array, iteratee, accumulator, initAccum) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (initAccum && length) { accumulator = array[--length]; } @@ -22105,7 +22120,7 @@ */ function arraySome(array, predicate) { var index = -1, - length = array ? array.length : 0; + length = array == null ? 0 : array.length; while (++index < length) { if (predicate(array[index], index, array)) { @@ -22249,7 +22264,7 @@ * @returns {number} Returns the mean. */ function baseMean(array, iteratee) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; return length ? (baseSum(array, iteratee) / length) : NAN; } @@ -22789,7 +22804,7 @@ * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer; */ var runInContext = (function runInContext(context) { - context = context ? _.defaults(root.Object(), context, _.pick(root, contextProps)) : root; + context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps)); /** Built-in constructor references. */ var Array = context.Array, @@ -22810,12 +22825,6 @@ /** Used to detect overreaching core-js shims. */ var coreJsData = context['__core-js_shared__']; - /** Used to detect methods masquerading as native. */ - var maskSrcKey = (function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); - return uid ? ('Symbol(src)_1.' + uid) : ''; - }()); - /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; @@ -22825,15 +22834,21 @@ /** Used to generate unique IDs. */ var idCounter = 0; - /** Used to infer the `Object` constructor. */ - var objectCtorString = funcToString.call(Object); + /** Used to detect methods masquerading as native. */ + var maskSrcKey = (function() { + var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); + return uid ? ('Symbol(src)_1.' + uid) : ''; + }()); /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ - var objectToString = objectProto.toString; + var nativeObjectToString = objectProto.toString; + + /** Used to infer the `Object` constructor. */ + var objectCtorString = funcToString.call(Object); /** Used to restore the original `_` reference in `_.noConflict`. */ var oldDash = root._; @@ -22850,11 +22865,12 @@ Uint8Array = context.Uint8Array, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined, getPrototype = overArg(Object.getPrototypeOf, Object), - iteratorSymbol = Symbol ? Symbol.iterator : undefined, objectCreate = Object.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, - spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined; + spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined, + symIterator = Symbol ? Symbol.iterator : undefined, + symToStringTag = Symbol ? Symbol.toStringTag : undefined; var defineProperty = (function() { try { @@ -23288,7 +23304,7 @@ */ function Hash(entries) { var index = -1, - length = entries ? entries.length : 0; + length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { @@ -23392,7 +23408,7 @@ */ function ListCache(entries) { var index = -1, - length = entries ? entries.length : 0; + length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { @@ -23509,7 +23525,7 @@ */ function MapCache(entries) { var index = -1, - length = entries ? entries.length : 0; + length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { @@ -23613,7 +23629,7 @@ */ function SetCache(values) { var index = -1, - length = values ? values.length : 0; + length = values == null ? 0 : values.length; this.__data__ = new MapCache; while (++index < length) { @@ -23928,6 +23944,19 @@ return object && copyObject(source, keys(source), object); } + /** + * The base implementation of `_.assignIn` without support for multiple sources + * or `customizer` functions. + * + * @private + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @returns {Object} Returns `object`. + */ + function baseAssignIn(object, source) { + return object && copyObject(source, keysIn(source), object); + } + /** * The base implementation of `assignValue` and `assignMergeValue` without * value checks. @@ -23955,17 +23984,17 @@ * * @private * @param {Object} object The object to iterate over. - * @param {string[]} paths The property paths of elements to pick. + * @param {string[]} paths The property paths to pick. * @returns {Array} Returns the picked elements. */ function baseAt(object, paths) { var index = -1, - isNil = object == null, length = paths.length, - result = Array(length); + result = Array(length), + skip = object == null; while (++index < length) { - result[index] = isNil ? undefined : get(object, paths[index]); + result[index] = skip ? undefined : get(object, paths[index]); } return result; } @@ -23997,16 +24026,22 @@ * * @private * @param {*} value The value to clone. - * @param {boolean} [isDeep] Specify a deep clone. - * @param {boolean} [isFull] Specify a clone including symbols. + * @param {boolean} bitmask The bitmask flags. + * 1 - Deep clone + * 2 - Flatten inherited properties + * 4 - Clone symbols * @param {Function} [customizer] The function to customize cloning. * @param {string} [key] The key of `value`. * @param {Object} [object] The parent object of `value`. * @param {Object} [stack] Tracks traversed objects and their clone counterparts. * @returns {*} Returns the cloned value. */ - function baseClone(value, isDeep, isFull, customizer, key, object, stack) { - var result; + function baseClone(value, bitmask, customizer, key, object, stack) { + var result, + isDeep = bitmask & CLONE_DEEP_FLAG, + isFlat = bitmask & CLONE_FLAT_FLAG, + isFull = bitmask & CLONE_SYMBOLS_FLAG; + if (customizer) { result = object ? customizer(value, key, object, stack) : customizer(value); } @@ -24030,9 +24065,11 @@ return cloneBuffer(value, isDeep); } if (tag == objectTag || tag == argsTag || (isFunc && !object)) { - result = initCloneObject(isFunc ? {} : value); + result = (isFlat || isFunc) ? {} : initCloneObject(value); if (!isDeep) { - return copySymbols(value, baseAssign(result, value)); + return isFlat + ? copySymbolsIn(value, baseAssignIn(result, value)) + : copySymbols(value, baseAssign(result, value)); } } else { if (!cloneableTags[tag]) { @@ -24049,14 +24086,18 @@ } stack.set(value, result); - var props = isArr ? undefined : (isFull ? getAllKeys : keys)(value); + var keysFunc = isFull + ? (isFlat ? getAllKeysIn : getAllKeys) + : (isFlat ? keysIn : keys); + + var props = isArr ? undefined : keysFunc(value); arrayEach(props || value, function(subValue, key) { if (props) { key = subValue; subValue = value[key]; } // Recursively populate clone (susceptible to call stack limits). - assignValue(result, key, baseClone(subValue, isDeep, isFull, customizer, key, value, stack)); + assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack)); }); return result; } @@ -24155,7 +24196,7 @@ outer: while (++index < length) { var value = array[index], - computed = iteratee ? iteratee(value) : value; + computed = iteratee == null ? value : iteratee(value); value = (comparator || value !== 0) ? value : 0; if (isCommon && computed === computed) { @@ -24394,7 +24435,7 @@ * @returns {*} Returns the resolved value. */ function baseGet(object, path) { - path = isKey(path, object) ? [path] : castPath(path); + path = castPath(path, object); var index = 0, length = path.length; @@ -24422,14 +24463,20 @@ } /** - * The base implementation of `getTag`. + * The base implementation of `getTag` without fallbacks for buggy environments. * * @private * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ function baseGetTag(value) { - return objectToString.call(value); + if (value == null) { + return value === undefined ? undefinedTag : nullTag; + } + value = Object(value); + return (symToStringTag && symToStringTag in value) + ? getRawTag(value) + : objectToString(value); } /** @@ -24574,12 +24621,9 @@ * @returns {*} Returns the result of the invoked method. */ function baseInvoke(object, path, args) { - if (!isKey(path, object)) { - path = castPath(path); - object = parent(object, path); - path = last(path); - } - var func = object == null ? object : object[toKey(path)]; + path = castPath(path, object); + object = parent(object, path); + var func = object == null ? object : object[toKey(last(path))]; return func == null ? undefined : apply(func, object, args); } @@ -24591,7 +24635,7 @@ * @returns {boolean} Returns `true` if `value` is an `arguments` object, */ function baseIsArguments(value) { - return isObjectLike(value) && objectToString.call(value) == argsTag; + return isObjectLike(value) && baseGetTag(value) == argsTag; } /** @@ -24602,7 +24646,7 @@ * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`. */ function baseIsArrayBuffer(value) { - return isObjectLike(value) && objectToString.call(value) == arrayBufferTag; + return isObjectLike(value) && baseGetTag(value) == arrayBufferTag; } /** @@ -24613,7 +24657,7 @@ * @returns {boolean} Returns `true` if `value` is a date object, else `false`. */ function baseIsDate(value) { - return isObjectLike(value) && objectToString.call(value) == dateTag; + return isObjectLike(value) && baseGetTag(value) == dateTag; } /** @@ -24623,22 +24667,21 @@ * @private * @param {*} value The value to compare. * @param {*} other The other value to compare. + * @param {boolean} bitmask The bitmask flags. + * 1 - Unordered comparison + * 2 - Partial comparison * @param {Function} [customizer] The function to customize comparisons. - * @param {boolean} [bitmask] The bitmask of comparison flags. - * The bitmask may be composed of the following flags: - * 1 - Unordered comparison - * 2 - Partial comparison * @param {Object} [stack] Tracks traversed `value` and `other` objects. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. */ - function baseIsEqual(value, other, customizer, bitmask, stack) { + function baseIsEqual(value, other, bitmask, customizer, stack) { if (value === other) { return true; } if (value == null || other == null || (!isObject(value) && !isObjectLike(other))) { return value !== value && other !== other; } - return baseIsEqualDeep(value, other, baseIsEqual, customizer, bitmask, stack); + return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); } /** @@ -24649,14 +24692,13 @@ * @private * @param {Object} object The object to compare. * @param {Object} other The other object to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. * @param {Function} equalFunc The function to determine equivalents of values. - * @param {Function} [customizer] The function to customize comparisons. - * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual` - * for more details. * @param {Object} [stack] Tracks traversed `object` and `other` objects. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. */ - function baseIsEqualDeep(object, other, equalFunc, customizer, bitmask, stack) { + function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { var objIsArr = isArray(object), othIsArr = isArray(other), objTag = arrayTag, @@ -24684,10 +24726,10 @@ if (isSameTag && !objIsObj) { stack || (stack = new Stack); return (objIsArr || isTypedArray(object)) - ? equalArrays(object, other, equalFunc, customizer, bitmask, stack) - : equalByTag(object, other, objTag, equalFunc, customizer, bitmask, stack); + ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) + : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); } - if (!(bitmask & PARTIAL_COMPARE_FLAG)) { + if (!(bitmask & COMPARE_PARTIAL_FLAG)) { var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); @@ -24696,14 +24738,14 @@ othUnwrapped = othIsWrapped ? other.value() : other; stack || (stack = new Stack); - return equalFunc(objUnwrapped, othUnwrapped, customizer, bitmask, stack); + return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); } } if (!isSameTag) { return false; } stack || (stack = new Stack); - return equalObjects(object, other, equalFunc, customizer, bitmask, stack); + return equalObjects(object, other, bitmask, customizer, equalFunc, stack); } /** @@ -24761,7 +24803,7 @@ var result = customizer(objValue, srcValue, key, object, source, stack); } if (!(result === undefined - ? baseIsEqual(srcValue, objValue, customizer, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG, stack) + ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result )) { return false; @@ -24795,7 +24837,7 @@ * @returns {boolean} Returns `true` if `value` is a regexp, else `false`. */ function baseIsRegExp(value) { - return isObject(value) && objectToString.call(value) == regexpTag; + return isObjectLike(value) && baseGetTag(value) == regexpTag; } /** @@ -24818,7 +24860,7 @@ */ function baseIsTypedArray(value) { return isObjectLike(value) && - isLength(value.length) && !!typedArrayTags[objectToString.call(value)]; + isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; } /** @@ -24951,7 +24993,7 @@ var objValue = get(object, path); return (objValue === undefined && objValue === srcValue) ? hasIn(object, path) - : baseIsEqual(srcValue, objValue, undefined, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG); + : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); }; } @@ -25113,13 +25155,13 @@ * * @private * @param {Object} object The source object. - * @param {string[]} props The property identifiers to pick. + * @param {string[]} paths The property paths to pick. * @returns {Object} Returns the new object. */ - function basePick(object, props) { + function basePick(object, paths) { object = Object(object); - return basePickBy(object, props, function(value, key) { - return key in object; + return basePickBy(object, paths, function(value, path) { + return hasIn(object, path); }); } @@ -25128,21 +25170,21 @@ * * @private * @param {Object} object The source object. - * @param {string[]} props The property identifiers to pick from. + * @param {string[]} paths The property paths to pick. * @param {Function} predicate The function invoked per property. * @returns {Object} Returns the new object. */ - function basePickBy(object, props, predicate) { + function basePickBy(object, paths, predicate) { var index = -1, - length = props.length, + length = paths.length, result = {}; while (++index < length) { - var key = props[index], - value = object[key]; + var path = paths[index], + value = baseGet(object, path); - if (predicate(value, key)) { - baseAssignValue(result, key, value); + if (predicate(value, path)) { + baseSet(result, castPath(path, object), value); } } return result; @@ -25218,17 +25260,8 @@ var previous = index; if (isIndex(index)) { splice.call(array, index, 1); - } - else if (!isKey(index, array)) { - var path = castPath(index), - object = parent(array, path); - - if (object != null) { - delete object[toKey(last(path))]; - } - } - else { - delete array[toKey(index)]; + } else { + baseUnset(array, index); } } } @@ -25349,7 +25382,7 @@ if (!isObject(object)) { return object; } - path = isKey(path, object) ? [path] : castPath(path); + path = castPath(path, object); var index = -1, length = path.length, @@ -25479,7 +25512,7 @@ */ function baseSortedIndex(array, value, retHighest) { var low = 0, - high = array ? array.length : low; + high = array == null ? low : array.length; if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) { while (low < high) { @@ -25515,7 +25548,7 @@ value = iteratee(value); var low = 0, - high = array ? array.length : 0, + high = array == null ? 0 : array.length, valIsNaN = value !== value, valIsNull = value === null, valIsSymbol = isSymbol(value), @@ -25686,15 +25719,13 @@ * * @private * @param {Object} object The object to modify. - * @param {Array|string} path The path of the property to unset. + * @param {Array|string} path The property path to unset. * @returns {boolean} Returns `true` if the property is deleted, else `false`. */ function baseUnset(object, path) { - path = isKey(path, object) ? [path] : castPath(path); + path = castPath(path, object); object = parent(object, path); - - var key = toKey(last(path)); - return !(object != null && hasOwnProperty.call(object, key)) || delete object[key]; + return object == null || delete object[toKey(last(path))]; } /** @@ -25765,18 +25796,24 @@ * @returns {Array} Returns the new array of values. */ function baseXor(arrays, iteratee, comparator) { + var length = arrays.length; + if (length < 2) { + return length ? baseUniq(arrays[0]) : []; + } var index = -1, - length = arrays.length; + result = Array(length); while (++index < length) { - var result = result - ? arrayPush( - baseDifference(result, arrays[index], iteratee, comparator), - baseDifference(arrays[index], result, iteratee, comparator) - ) - : arrays[index]; + var array = arrays[index], + othIndex = -1; + + while (++othIndex < length) { + if (othIndex != index) { + result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator); + } + } } - return (result && result.length) ? baseUniq(result, iteratee, comparator) : []; + return baseUniq(baseFlatten(result, 1), iteratee, comparator); } /** @@ -25828,10 +25865,14 @@ * * @private * @param {*} value The value to inspect. + * @param {Object} [object] The object to query keys on. * @returns {Array} Returns the cast property path array. */ - function castPath(value) { - return isArray(value) ? value : stringToPath(value); + function castPath(value, object) { + if (isArray(value)) { + return value; + } + return isKey(value, object) ? [value] : stringToPath(toString(value)); } /** @@ -25925,7 +25966,7 @@ * @returns {Object} Returns the cloned map. */ function cloneMap(map, isDeep, cloneFunc) { - var array = isDeep ? cloneFunc(mapToArray(map), true) : mapToArray(map); + var array = isDeep ? cloneFunc(mapToArray(map), CLONE_DEEP_FLAG) : mapToArray(map); return arrayReduce(array, addMapEntry, new map.constructor); } @@ -25952,7 +25993,7 @@ * @returns {Object} Returns the cloned set. */ function cloneSet(set, isDeep, cloneFunc) { - var array = isDeep ? cloneFunc(setToArray(set), true) : setToArray(set); + var array = isDeep ? cloneFunc(setToArray(set), CLONE_DEEP_FLAG) : setToArray(set); return arrayReduce(array, addSetEntry, new set.constructor); } @@ -26187,7 +26228,7 @@ } /** - * Copies own symbol properties of `source` to `object`. + * Copies own symbols of `source` to `object`. * * @private * @param {Object} source The object to copy symbols from. @@ -26198,6 +26239,18 @@ return copyObject(source, getSymbols(source), object); } + /** + * Copies own and inherited symbols of `source` to `object`. + * + * @private + * @param {Object} source The object to copy symbols from. + * @param {Object} [object={}] The object to copy symbols to. + * @returns {Object} Returns `object`. + */ + function copySymbolsIn(source, object) { + return copyObject(source, getSymbolsIn(source), object); + } + /** * Creates a function like `_.groupBy`. * @@ -26312,7 +26365,7 @@ * @returns {Function} Returns the new wrapped function. */ function createBind(func, bitmask, thisArg) { - var isBind = bitmask & BIND_FLAG, + var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func); function wrapper() { @@ -26485,7 +26538,7 @@ data = funcName == 'wrapper' ? getData(func) : undefined; if (data && isLaziable(data[0]) && - data[1] == (ARY_FLAG | CURRY_FLAG | PARTIAL_FLAG | REARG_FLAG) && + data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data[4].length && data[9] == 1 ) { wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]); @@ -26534,11 +26587,11 @@ * @returns {Function} Returns the new wrapped function. */ function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) { - var isAry = bitmask & ARY_FLAG, - isBind = bitmask & BIND_FLAG, - isBindKey = bitmask & BIND_KEY_FLAG, - isCurried = bitmask & (CURRY_FLAG | CURRY_RIGHT_FLAG), - isFlip = bitmask & FLIP_FLAG, + var isAry = bitmask & WRAP_ARY_FLAG, + isBind = bitmask & WRAP_BIND_FLAG, + isBindKey = bitmask & WRAP_BIND_KEY_FLAG, + isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG), + isFlip = bitmask & WRAP_FLIP_FLAG, Ctor = isBindKey ? undefined : createCtor(func); function wrapper() { @@ -26689,7 +26742,7 @@ * @returns {Function} Returns the new wrapped function. */ function createPartial(func, bitmask, thisArg, partials) { - var isBind = bitmask & BIND_FLAG, + var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func); function wrapper() { @@ -26771,17 +26824,17 @@ * @returns {Function} Returns the new wrapped function. */ function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) { - var isCurry = bitmask & CURRY_FLAG, + var isCurry = bitmask & WRAP_CURRY_FLAG, newHolders = isCurry ? holders : undefined, newHoldersRight = isCurry ? undefined : holders, newPartials = isCurry ? partials : undefined, newPartialsRight = isCurry ? undefined : partials; - bitmask |= (isCurry ? PARTIAL_FLAG : PARTIAL_RIGHT_FLAG); - bitmask &= ~(isCurry ? PARTIAL_RIGHT_FLAG : PARTIAL_FLAG); + bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG); + bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG); - if (!(bitmask & CURRY_BOUND_FLAG)) { - bitmask &= ~(BIND_FLAG | BIND_KEY_FLAG); + if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) { + bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG); } var newData = [ func, bitmask, thisArg, newPartials, newHolders, newPartialsRight, @@ -26859,17 +26912,16 @@ * @private * @param {Function|string} func The function or method name to wrap. * @param {number} bitmask The bitmask flags. - * The bitmask may be composed of the following flags: - * 1 - `_.bind` - * 2 - `_.bindKey` - * 4 - `_.curry` or `_.curryRight` of a bound function - * 8 - `_.curry` - * 16 - `_.curryRight` - * 32 - `_.partial` - * 64 - `_.partialRight` - * 128 - `_.rearg` - * 256 - `_.ary` - * 512 - `_.flip` + * 1 - `_.bind` + * 2 - `_.bindKey` + * 4 - `_.curry` or `_.curryRight` of a bound function + * 8 - `_.curry` + * 16 - `_.curryRight` + * 32 - `_.partial` + * 64 - `_.partialRight` + * 128 - `_.rearg` + * 256 - `_.ary` + * 512 - `_.flip` * @param {*} [thisArg] The `this` binding of `func`. * @param {Array} [partials] The arguments to be partially applied. * @param {Array} [holders] The `partials` placeholder indexes. @@ -26879,20 +26931,20 @@ * @returns {Function} Returns the new wrapped function. */ function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) { - var isBindKey = bitmask & BIND_KEY_FLAG; + var isBindKey = bitmask & WRAP_BIND_KEY_FLAG; if (!isBindKey && typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } var length = partials ? partials.length : 0; if (!length) { - bitmask &= ~(PARTIAL_FLAG | PARTIAL_RIGHT_FLAG); + bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG); partials = holders = undefined; } ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0); arity = arity === undefined ? arity : toInteger(arity); length -= holders ? holders.length : 0; - if (bitmask & PARTIAL_RIGHT_FLAG) { + if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) { var partialsRight = partials, holdersRight = holders; @@ -26917,14 +26969,14 @@ ? (isBindKey ? 0 : func.length) : nativeMax(newData[9] - length, 0); - if (!arity && bitmask & (CURRY_FLAG | CURRY_RIGHT_FLAG)) { - bitmask &= ~(CURRY_FLAG | CURRY_RIGHT_FLAG); + if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) { + bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG); } - if (!bitmask || bitmask == BIND_FLAG) { + if (!bitmask || bitmask == WRAP_BIND_FLAG) { var result = createBind(func, bitmask, thisArg); - } else if (bitmask == CURRY_FLAG || bitmask == CURRY_RIGHT_FLAG) { + } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) { result = createCurry(func, bitmask, arity); - } else if ((bitmask == PARTIAL_FLAG || bitmask == (BIND_FLAG | PARTIAL_FLAG)) && !holders.length) { + } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) { result = createPartial(func, bitmask, thisArg, partials); } else { result = createHybrid.apply(undefined, newData); @@ -26940,15 +26992,14 @@ * @private * @param {Array} array The array to compare. * @param {Array} other The other array to compare. - * @param {Function} equalFunc The function to determine equivalents of values. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. * @param {Function} customizer The function to customize comparisons. - * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual` - * for more details. + * @param {Function} equalFunc The function to determine equivalents of values. * @param {Object} stack Tracks traversed `array` and `other` objects. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`. */ - function equalArrays(array, other, equalFunc, customizer, bitmask, stack) { - var isPartial = bitmask & PARTIAL_COMPARE_FLAG, + function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { + var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length; @@ -26962,7 +27013,7 @@ } var index = -1, result = true, - seen = (bitmask & UNORDERED_COMPARE_FLAG) ? new SetCache : undefined; + seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined; stack.set(array, other); stack.set(other, array); @@ -26988,7 +27039,7 @@ if (seen) { if (!arraySome(other, function(othValue, othIndex) { if (!cacheHas(seen, othIndex) && - (arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack))) { + (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { return seen.push(othIndex); } })) { @@ -26997,7 +27048,7 @@ } } else if (!( arrValue === othValue || - equalFunc(arrValue, othValue, customizer, bitmask, stack) + equalFunc(arrValue, othValue, bitmask, customizer, stack) )) { result = false; break; @@ -27019,14 +27070,13 @@ * @param {Object} object The object to compare. * @param {Object} other The other object to compare. * @param {string} tag The `toStringTag` of the objects to compare. - * @param {Function} equalFunc The function to determine equivalents of values. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. * @param {Function} customizer The function to customize comparisons. - * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual` - * for more details. + * @param {Function} equalFunc The function to determine equivalents of values. * @param {Object} stack Tracks traversed `object` and `other` objects. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. */ - function equalByTag(object, other, tag, equalFunc, customizer, bitmask, stack) { + function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { switch (tag) { case dataViewTag: if ((object.byteLength != other.byteLength) || @@ -27064,7 +27114,7 @@ var convert = mapToArray; case setTag: - var isPartial = bitmask & PARTIAL_COMPARE_FLAG; + var isPartial = bitmask & COMPARE_PARTIAL_FLAG; convert || (convert = setToArray); if (object.size != other.size && !isPartial) { @@ -27075,11 +27125,11 @@ if (stacked) { return stacked == other; } - bitmask |= UNORDERED_COMPARE_FLAG; + bitmask |= COMPARE_UNORDERED_FLAG; // Recursively compare objects (susceptible to call stack limits). stack.set(object, other); - var result = equalArrays(convert(object), convert(other), equalFunc, customizer, bitmask, stack); + var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); stack['delete'](object); return result; @@ -27098,15 +27148,14 @@ * @private * @param {Object} object The object to compare. * @param {Object} other The other object to compare. - * @param {Function} equalFunc The function to determine equivalents of values. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. * @param {Function} customizer The function to customize comparisons. - * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual` - * for more details. + * @param {Function} equalFunc The function to determine equivalents of values. * @param {Object} stack Tracks traversed `object` and `other` objects. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. */ - function equalObjects(object, other, equalFunc, customizer, bitmask, stack) { - var isPartial = bitmask & PARTIAL_COMPARE_FLAG, + function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { + var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = keys(object), objLength = objProps.length, othProps = keys(other), @@ -27144,7 +27193,7 @@ } // Recursively compare objects (susceptible to call stack limits). if (!(compared === undefined - ? (objValue === othValue || equalFunc(objValue, othValue, customizer, bitmask, stack)) + ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack)) : compared )) { result = false; @@ -27314,7 +27363,34 @@ } /** - * Creates an array of the own enumerable symbol properties of `object`. + * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the raw `toStringTag`. + */ + function getRawTag(value) { + var isOwn = hasOwnProperty.call(value, symToStringTag), + tag = value[symToStringTag]; + + try { + value[symToStringTag] = undefined; + var unmasked = true; + } catch (e) {} + + var result = nativeObjectToString.call(value); + if (unmasked) { + if (isOwn) { + value[symToStringTag] = tag; + } else { + delete value[symToStringTag]; + } + } + return result; + } + + /** + * Creates an array of the own enumerable symbols of `object`. * * @private * @param {Object} object The object to query. @@ -27323,8 +27399,7 @@ var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray; /** - * Creates an array of the own and inherited enumerable symbol properties - * of `object`. + * Creates an array of the own and inherited enumerable symbols of `object`. * * @private * @param {Object} object The object to query. @@ -27355,9 +27430,9 @@ (Set && getTag(new Set) != setTag) || (WeakMap && getTag(new WeakMap) != weakMapTag)) { getTag = function(value) { - var result = objectToString.call(value), + var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : undefined, - ctorString = Ctor ? toSource(Ctor) : undefined; + ctorString = Ctor ? toSource(Ctor) : ''; if (ctorString) { switch (ctorString) { @@ -27422,7 +27497,7 @@ * @returns {boolean} Returns `true` if `path` exists, else `false`. */ function hasPath(object, path, hasFunc) { - path = isKey(path, object) ? [path] : castPath(path); + path = castPath(path, object); var index = -1, length = path.length, @@ -27438,7 +27513,7 @@ if (result || ++index != length) { return result; } - length = object ? object.length : 0; + length = object == null ? 0 : object.length; return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object)); } @@ -27756,22 +27831,22 @@ var bitmask = data[1], srcBitmask = source[1], newBitmask = bitmask | srcBitmask, - isCommon = newBitmask < (BIND_FLAG | BIND_KEY_FLAG | ARY_FLAG); + isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG); var isCombo = - ((srcBitmask == ARY_FLAG) && (bitmask == CURRY_FLAG)) || - ((srcBitmask == ARY_FLAG) && (bitmask == REARG_FLAG) && (data[7].length <= source[8])) || - ((srcBitmask == (ARY_FLAG | REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == CURRY_FLAG)); + ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) || + ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) || + ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG)); // Exit early if metadata can't be merged. if (!(isCommon || isCombo)) { return data; } // Use source `thisArg` if available. - if (srcBitmask & BIND_FLAG) { + if (srcBitmask & WRAP_BIND_FLAG) { data[2] = source[2]; // Set when currying a bound function. - newBitmask |= bitmask & BIND_FLAG ? 0 : CURRY_BOUND_FLAG; + newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG; } // Compose partial arguments. var value = source[3]; @@ -27793,7 +27868,7 @@ data[7] = value; } // Use source `ary` if it's smaller. - if (srcBitmask & ARY_FLAG) { + if (srcBitmask & WRAP_ARY_FLAG) { data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]); } // Use source `arity` if one is not provided. @@ -27849,6 +27924,17 @@ return result; } + /** + * Converts `value` to a string using `Object.prototype.toString`. + * + * @private + * @param {*} value The value to convert. + * @returns {string} Returns the converted string. + */ + function objectToString(value) { + return nativeObjectToString.call(value); + } + /** * A specialized version of `baseRest` which transforms the rest array. * @@ -27888,7 +27974,7 @@ * @returns {*} Returns the parent value. */ function parent(object, path) { - return path.length == 1 ? object : baseGet(object, baseSlice(path, 0, -1)); + return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1)); } /** @@ -28028,8 +28114,6 @@ * @returns {Array} Returns the property path array. */ var stringToPath = memoizeCapped(function(string) { - string = toString(string); - var result = []; if (reLeadingDot.test(string)) { result.push(''); @@ -28059,7 +28143,7 @@ * Converts `func` to its source code. * * @private - * @param {Function} func The function to process. + * @param {Function} func The function to convert. * @returns {string} Returns the source code. */ function toSource(func) { @@ -28139,7 +28223,7 @@ } else { size = nativeMax(toInteger(size), 0); } - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (!length || size < 1) { return []; } @@ -28170,7 +28254,7 @@ */ function compact(array) { var index = -1, - length = array ? array.length : 0, + length = array == null ? 0 : array.length, resIndex = 0, result = []; @@ -28342,7 +28426,7 @@ * // => [1, 2, 3] */ function drop(array, n, guard) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (!length) { return []; } @@ -28376,7 +28460,7 @@ * // => [1, 2, 3] */ function dropRight(array, n, guard) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (!length) { return []; } @@ -28436,8 +28520,7 @@ * @since 3.0.0 * @category Array * @param {Array} array The array to query. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {Array} Returns the slice of `array`. * @example * @@ -28498,7 +28581,7 @@ * // => [4, '*', '*', 10] */ function fill(array, value, start, end) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (!length) { return []; } @@ -28518,8 +28601,7 @@ * @since 1.1.0 * @category Array * @param {Array} array The array to inspect. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @param {number} [fromIndex=0] The index to search from. * @returns {number} Returns the index of the found element, else `-1`. * @example @@ -28546,7 +28628,7 @@ * // => 2 */ function findIndex(array, predicate, fromIndex) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (!length) { return -1; } @@ -28566,8 +28648,7 @@ * @since 2.0.0 * @category Array * @param {Array} array The array to inspect. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @param {number} [fromIndex=array.length-1] The index to search from. * @returns {number} Returns the index of the found element, else `-1`. * @example @@ -28594,7 +28675,7 @@ * // => 0 */ function findLastIndex(array, predicate, fromIndex) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (!length) { return -1; } @@ -28623,7 +28704,7 @@ * // => [1, 2, [3, [4]], 5] */ function flatten(array) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; return length ? baseFlatten(array, 1) : []; } @@ -28642,7 +28723,7 @@ * // => [1, 2, 3, 4, 5] */ function flattenDeep(array) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; return length ? baseFlatten(array, INFINITY) : []; } @@ -28667,7 +28748,7 @@ * // => [1, 2, 3, [4], 5] */ function flattenDepth(array, depth) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (!length) { return []; } @@ -28692,7 +28773,7 @@ */ function fromPairs(pairs) { var index = -1, - length = pairs ? pairs.length : 0, + length = pairs == null ? 0 : pairs.length, result = {}; while (++index < length) { @@ -28748,7 +28829,7 @@ * // => 3 */ function indexOf(array, value, fromIndex) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (!length) { return -1; } @@ -28774,7 +28855,7 @@ * // => [1, 2] */ function initial(array) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; return length ? baseSlice(array, 0, -1) : []; } @@ -28864,9 +28945,8 @@ var comparator = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject); - if (comparator === last(mapped)) { - comparator = undefined; - } else { + comparator = typeof comparator == 'function' ? comparator : undefined; + if (comparator) { mapped.pop(); } return (mapped.length && mapped[0] === arrays[0]) @@ -28890,7 +28970,7 @@ * // => 'a~b~c' */ function join(array, separator) { - return array ? nativeJoin.call(array, separator) : ''; + return array == null ? '' : nativeJoin.call(array, separator); } /** @@ -28908,7 +28988,7 @@ * // => 3 */ function last(array) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; return length ? array[length - 1] : undefined; } @@ -28934,7 +29014,7 @@ * // => 1 */ function lastIndexOf(array, value, fromIndex) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (!length) { return -1; } @@ -29037,8 +29117,7 @@ * @category Array * @param {Array} array The array to modify. * @param {Array} values The values to remove. - * @param {Function} [iteratee=_.identity] - * The iteratee invoked per element. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {Array} Returns `array`. * @example * @@ -29108,7 +29187,7 @@ * // => ['b', 'd'] */ var pullAt = flatRest(function(array, indexes) { - var length = array ? array.length : 0, + var length = array == null ? 0 : array.length, result = baseAt(array, indexes); basePullAt(array, arrayMap(indexes, function(index) { @@ -29131,8 +29210,7 @@ * @since 2.0.0 * @category Array * @param {Array} array The array to modify. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {Array} Returns the new array of removed elements. * @example * @@ -29192,7 +29270,7 @@ * // => [3, 2, 1] */ function reverse(array) { - return array ? nativeReverse.call(array) : array; + return array == null ? array : nativeReverse.call(array); } /** @@ -29212,7 +29290,7 @@ * @returns {Array} Returns the slice of `array`. */ function slice(array, start, end) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (!length) { return []; } @@ -29259,8 +29337,7 @@ * @category Array * @param {Array} array The sorted array to inspect. * @param {*} value The value to evaluate. - * @param {Function} [iteratee=_.identity] - * The iteratee invoked per element. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {number} Returns the index at which `value` should be inserted * into `array`. * @example @@ -29295,7 +29372,7 @@ * // => 1 */ function sortedIndexOf(array, value) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (length) { var index = baseSortedIndex(array, value); if (index < length && eq(array[index], value)) { @@ -29338,8 +29415,7 @@ * @category Array * @param {Array} array The sorted array to inspect. * @param {*} value The value to evaluate. - * @param {Function} [iteratee=_.identity] - * The iteratee invoked per element. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {number} Returns the index at which `value` should be inserted * into `array`. * @example @@ -29374,7 +29450,7 @@ * // => 3 */ function sortedLastIndexOf(array, value) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (length) { var index = baseSortedIndex(array, value, true) - 1; if (eq(array[index], value)) { @@ -29442,7 +29518,7 @@ * // => [2, 3] */ function tail(array) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; return length ? baseSlice(array, 1, length) : []; } @@ -29505,7 +29581,7 @@ * // => [] */ function takeRight(array, n, guard) { - var length = array ? array.length : 0; + var length = array == null ? 0 : array.length; if (!length) { return []; } @@ -29524,8 +29600,7 @@ * @since 3.0.0 * @category Array * @param {Array} array The array to query. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {Array} Returns the slice of `array`. * @example * @@ -29566,8 +29641,7 @@ * @since 3.0.0 * @category Array * @param {Array} array The array to query. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {Array} Returns the slice of `array`. * @example * @@ -29630,8 +29704,7 @@ * @since 4.0.0 * @category Array * @param {...Array} [arrays] The arrays to inspect. - * @param {Function} [iteratee=_.identity] - * The iteratee invoked per element. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {Array} Returns the new array of combined values. * @example * @@ -29673,9 +29746,7 @@ */ var unionWith = baseRest(function(arrays) { var comparator = last(arrays); - if (isArrayLikeObject(comparator)) { - comparator = undefined; - } + comparator = typeof comparator == 'function' ? comparator : undefined; return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator); }); @@ -29698,9 +29769,7 @@ * // => [2, 1] */ function uniq(array) { - return (array && array.length) - ? baseUniq(array) - : []; + return (array && array.length) ? baseUniq(array) : []; } /** @@ -29715,8 +29784,7 @@ * @since 4.0.0 * @category Array * @param {Array} array The array to inspect. - * @param {Function} [iteratee=_.identity] - * The iteratee invoked per element. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {Array} Returns the new duplicate free array. * @example * @@ -29728,9 +29796,7 @@ * // => [{ 'x': 1 }, { 'x': 2 }] */ function uniqBy(array, iteratee) { - return (array && array.length) - ? baseUniq(array, getIteratee(iteratee, 2)) - : []; + return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : []; } /** @@ -29754,9 +29820,8 @@ * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }] */ function uniqWith(array, comparator) { - return (array && array.length) - ? baseUniq(array, undefined, comparator) - : []; + comparator = typeof comparator == 'function' ? comparator : undefined; + return (array && array.length) ? baseUniq(array, undefined, comparator) : []; } /** @@ -29888,8 +29953,7 @@ * @since 4.0.0 * @category Array * @param {...Array} [arrays] The arrays to inspect. - * @param {Function} [iteratee=_.identity] - * The iteratee invoked per element. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {Array} Returns the new array of filtered values. * @example * @@ -29931,9 +29995,7 @@ */ var xorWith = baseRest(function(arrays) { var comparator = last(arrays); - if (isArrayLikeObject(comparator)) { - comparator = undefined; - } + comparator = typeof comparator == 'function' ? comparator : undefined; return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator); }); @@ -30004,7 +30066,8 @@ * @since 3.8.0 * @category Array * @param {...Array} [arrays] The arrays to process. - * @param {Function} [iteratee=_.identity] The function to combine grouped values. + * @param {Function} [iteratee=_.identity] The function to combine + * grouped values. * @returns {Array} Returns the new array of grouped elements. * @example * @@ -30120,7 +30183,7 @@ * @memberOf _ * @since 1.0.0 * @category Seq - * @param {...(string|string[])} [paths] The property paths of elements to pick. + * @param {...(string|string[])} [paths] The property paths to pick. * @returns {Object} Returns the new `lodash` wrapper instance. * @example * @@ -30381,8 +30444,7 @@ * @since 0.5.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [iteratee=_.identity] - * The iteratee to transform keys. + * @param {Function} [iteratee=_.identity] The iteratee to transform keys. * @returns {Object} Returns the composed aggregate object. * @example * @@ -30416,8 +30478,7 @@ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. * @returns {boolean} Returns `true` if all elements pass the predicate check, * else `false`. @@ -30463,8 +30524,7 @@ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {Array} Returns the new filtered array. * @see _.reject * @example @@ -30504,8 +30564,7 @@ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to inspect. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @param {number} [fromIndex=0] The index to search from. * @returns {*} Returns the matched element, else `undefined`. * @example @@ -30542,8 +30601,7 @@ * @since 2.0.0 * @category Collection * @param {Array|Object} collection The collection to inspect. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. + * @param {Function} [predicate=_.identity] The function invoked per iteration. * @param {number} [fromIndex=collection.length-1] The index to search from. * @returns {*} Returns the matched element, else `undefined`. * @example @@ -30565,8 +30623,7 @@ * @since 4.0.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [iteratee=_.identity] - * The function invoked per iteration. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @returns {Array} Returns the new flattened array. * @example * @@ -30590,8 +30647,7 @@ * @since 4.7.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [iteratee=_.identity] - * The function invoked per iteration. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @returns {Array} Returns the new flattened array. * @example * @@ -30615,8 +30671,7 @@ * @since 4.7.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [iteratee=_.identity] - * The function invoked per iteration. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @param {number} [depth=1] The maximum recursion depth. * @returns {Array} Returns the new flattened array. * @example @@ -30705,8 +30760,7 @@ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [iteratee=_.identity] - * The iteratee to transform keys. + * @param {Function} [iteratee=_.identity] The iteratee to transform keys. * @returns {Object} Returns the composed aggregate object. * @example * @@ -30794,12 +30848,10 @@ var invokeMap = baseRest(function(collection, path, args) { var index = -1, isFunc = typeof path == 'function', - isProp = isKey(path), result = isArrayLike(collection) ? Array(collection.length) : []; baseEach(collection, function(value) { - var func = isFunc ? path : ((isProp && value != null) ? value[path] : undefined); - result[++index] = func ? apply(func, value, args) : baseInvoke(value, path, args); + result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args); }); return result; }); @@ -30815,8 +30867,7 @@ * @since 4.0.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [iteratee=_.identity] - * The iteratee to transform keys. + * @param {Function} [iteratee=_.identity] The iteratee to transform keys. * @returns {Object} Returns the composed aggregate object. * @example * @@ -31349,7 +31400,7 @@ function ary(func, n, guard) { n = guard ? undefined : n; n = (func && n == null) ? func.length : n; - return createWrap(func, ARY_FLAG, undefined, undefined, undefined, undefined, n); + return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n); } /** @@ -31422,10 +31473,10 @@ * // => 'hi fred!' */ var bind = baseRest(function(func, thisArg, partials) { - var bitmask = BIND_FLAG; + var bitmask = WRAP_BIND_FLAG; if (partials.length) { var holders = replaceHolders(partials, getHolder(bind)); - bitmask |= PARTIAL_FLAG; + bitmask |= WRAP_PARTIAL_FLAG; } return createWrap(func, bitmask, thisArg, partials, holders); }); @@ -31476,10 +31527,10 @@ * // => 'hiya fred!' */ var bindKey = baseRest(function(object, key, partials) { - var bitmask = BIND_FLAG | BIND_KEY_FLAG; + var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG; if (partials.length) { var holders = replaceHolders(partials, getHolder(bindKey)); - bitmask |= PARTIAL_FLAG; + bitmask |= WRAP_PARTIAL_FLAG; } return createWrap(key, bitmask, object, partials, holders); }); @@ -31527,7 +31578,7 @@ */ function curry(func, arity, guard) { arity = guard ? undefined : arity; - var result = createWrap(func, CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity); + var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity); result.placeholder = curry.placeholder; return result; } @@ -31572,7 +31623,7 @@ */ function curryRight(func, arity, guard) { arity = guard ? undefined : arity; - var result = createWrap(func, CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity); + var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity); result.placeholder = curryRight.placeholder; return result; } @@ -31817,7 +31868,7 @@ * // => ['d', 'c', 'b', 'a'] */ function flip(func) { - return createWrap(func, FLIP_FLAG); + return createWrap(func, WRAP_FLIP_FLAG); } /** @@ -31831,7 +31882,7 @@ * function. Its creation may be customized by replacing the `_.memoize.Cache` * constructor with one whose instances implement the * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) - * method interface of `delete`, `get`, `has`, and `set`. + * method interface of `clear`, `delete`, `get`, `has`, and `set`. * * @static * @memberOf _ @@ -31865,7 +31916,7 @@ * _.memoize.Cache = WeakMap; */ function memoize(func, resolver) { - if (typeof func != 'function' || (resolver && typeof resolver != 'function')) { + if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) { throw new TypeError(FUNC_ERROR_TEXT); } var memoized = function() { @@ -32028,7 +32079,7 @@ */ var partial = baseRest(function(func, partials) { var holders = replaceHolders(partials, getHolder(partial)); - return createWrap(func, PARTIAL_FLAG, undefined, partials, holders); + return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders); }); /** @@ -32065,7 +32116,7 @@ */ var partialRight = baseRest(function(func, partials) { var holders = replaceHolders(partials, getHolder(partialRight)); - return createWrap(func, PARTIAL_RIGHT_FLAG, undefined, partials, holders); + return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders); }); /** @@ -32091,7 +32142,7 @@ * // => ['a', 'b', 'c'] */ var rearg = flatRest(function(func, indexes) { - return createWrap(func, REARG_FLAG, undefined, undefined, undefined, indexes); + return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes); }); /** @@ -32281,8 +32332,7 @@ * // => '

fred, barney, & pebbles

' */ function wrap(value, wrapper) { - wrapper = wrapper == null ? identity : wrapper; - return partial(wrapper, value); + return partial(castFunction(wrapper), value); } /*------------------------------------------------------------------------*/ @@ -32355,7 +32405,7 @@ * // => true */ function clone(value) { - return baseClone(value, false, true); + return baseClone(value, CLONE_SYMBOLS_FLAG); } /** @@ -32390,7 +32440,8 @@ * // => 0 */ function cloneWith(value, customizer) { - return baseClone(value, false, true, customizer); + customizer = typeof customizer == 'function' ? customizer : undefined; + return baseClone(value, CLONE_SYMBOLS_FLAG, customizer); } /** @@ -32412,7 +32463,7 @@ * // => false */ function cloneDeep(value) { - return baseClone(value, true, true); + return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG); } /** @@ -32444,7 +32495,8 @@ * // => 20 */ function cloneDeepWith(value, customizer) { - return baseClone(value, true, true, customizer); + customizer = typeof customizer == 'function' ? customizer : undefined; + return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer); } /** @@ -32707,7 +32759,7 @@ */ function isBoolean(value) { return value === true || value === false || - (isObjectLike(value) && objectToString.call(value) == boolTag); + (isObjectLike(value) && baseGetTag(value) == boolTag); } /** @@ -32766,7 +32818,7 @@ * // => false */ function isElement(value) { - return value != null && value.nodeType === 1 && isObjectLike(value) && !isPlainObject(value); + return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value); } /** @@ -32803,6 +32855,9 @@ * // => false */ function isEmpty(value) { + if (value == null) { + return true; + } if (isArrayLike(value) && (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' || isBuffer(value) || isTypedArray(value) || isArguments(value))) { @@ -32890,7 +32945,7 @@ function isEqualWith(value, other, customizer) { customizer = typeof customizer == 'function' ? customizer : undefined; var result = customizer ? customizer(value, other) : undefined; - return result === undefined ? baseIsEqual(value, other, customizer) : !!result; + return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result; } /** @@ -32915,8 +32970,9 @@ if (!isObjectLike(value)) { return false; } - return (objectToString.call(value) == errorTag) || - (typeof value.message == 'string' && typeof value.name == 'string'); + var tag = baseGetTag(value); + return tag == errorTag || tag == domExcTag || + (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value)); } /** @@ -32967,10 +33023,13 @@ * // => false */ function isFunction(value) { + if (!isObject(value)) { + return false; + } // The use of `Object#toString` avoids issues with the `typeof` operator - // in Safari 9 which returns 'object' for typed array and other constructors. - var tag = isObject(value) ? objectToString.call(value) : ''; - return tag == funcTag || tag == genTag || tag == proxyTag; + // in Safari 9 which returns 'object' for typed arrays and other constructors. + var tag = baseGetTag(value); + return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; } /** @@ -33321,7 +33380,7 @@ */ function isNumber(value) { return typeof value == 'number' || - (isObjectLike(value) && objectToString.call(value) == numberTag); + (isObjectLike(value) && baseGetTag(value) == numberTag); } /** @@ -33353,7 +33412,7 @@ * // => true */ function isPlainObject(value) { - if (!isObjectLike(value) || objectToString.call(value) != objectTag) { + if (!isObjectLike(value) || baseGetTag(value) != objectTag) { return false; } var proto = getPrototype(value); @@ -33361,8 +33420,8 @@ return true; } var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; - return (typeof Ctor == 'function' && - Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString); + return typeof Ctor == 'function' && Ctor instanceof Ctor && + funcToString.call(Ctor) == objectCtorString; } /** @@ -33453,7 +33512,7 @@ */ function isString(value) { return typeof value == 'string' || - (!isArray(value) && isObjectLike(value) && objectToString.call(value) == stringTag); + (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag); } /** @@ -33475,7 +33534,7 @@ */ function isSymbol(value) { return typeof value == 'symbol' || - (isObjectLike(value) && objectToString.call(value) == symbolTag); + (isObjectLike(value) && baseGetTag(value) == symbolTag); } /** @@ -33557,7 +33616,7 @@ * // => false */ function isWeakSet(value) { - return isObjectLike(value) && objectToString.call(value) == weakSetTag; + return isObjectLike(value) && baseGetTag(value) == weakSetTag; } /** @@ -33642,8 +33701,8 @@ if (isArrayLike(value)) { return isString(value) ? stringToArray(value) : copyArray(value); } - if (iteratorSymbol && value[iteratorSymbol]) { - return iteratorToArray(value[iteratorSymbol]()); + if (symIterator && value[symIterator]) { + return iteratorToArray(value[symIterator]()); } var tag = getTag(value), func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values); @@ -34029,7 +34088,7 @@ * @since 1.0.0 * @category Object * @param {Object} object The object to iterate over. - * @param {...(string|string[])} [paths] The property paths of elements to pick. + * @param {...(string|string[])} [paths] The property paths to pick. * @returns {Array} Returns the picked values. * @example * @@ -34076,7 +34135,7 @@ */ function create(prototype, properties) { var result = baseCreate(prototype); - return properties ? baseAssign(result, properties) : result; + return properties == null ? result : baseAssign(result, properties); } /** @@ -34756,15 +34815,16 @@ /** * The opposite of `_.pick`; this method creates an object composed of the - * own and inherited enumerable string keyed properties of `object` that are - * not omitted. + * own and inherited enumerable property paths of `object` that are not omitted. + * + * **Note:** This method is considerably slower than `_.pick`. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The source object. - * @param {...(string|string[])} [props] The property identifiers to omit. + * @param {...(string|string[])} [paths] The property paths to omit. * @returns {Object} Returns the new object. * @example * @@ -34773,12 +34833,26 @@ * _.omit(object, ['a', 'c']); * // => { 'b': '2' } */ - var omit = flatRest(function(object, props) { + var omit = flatRest(function(object, paths) { + var result = {}; if (object == null) { - return {}; + return result; } - props = arrayMap(props, toKey); - return basePick(object, baseDifference(getAllKeysIn(object), props)); + var isDeep = false; + paths = arrayMap(paths, function(path) { + path = castPath(path, object); + isDeep || (isDeep = path.length > 1); + return path; + }); + copyObject(object, getAllKeysIn(object), result); + if (isDeep) { + result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG); + } + var length = paths.length; + while (length--) { + baseUnset(result, paths[length]); + } + return result; }); /** @@ -34813,7 +34887,7 @@ * @memberOf _ * @category Object * @param {Object} object The source object. - * @param {...(string|string[])} [props] The property identifiers to pick. + * @param {...(string|string[])} [paths] The property paths to pick. * @returns {Object} Returns the new object. * @example * @@ -34822,8 +34896,8 @@ * _.pick(object, ['a', 'c']); * // => { 'a': 1, 'c': 3 } */ - var pick = flatRest(function(object, props) { - return object == null ? {} : basePick(object, arrayMap(props, toKey)); + var pick = flatRest(function(object, paths) { + return object == null ? {} : basePick(object, paths); }); /** @@ -34845,7 +34919,16 @@ * // => { 'a': 1, 'c': 3 } */ function pickBy(object, predicate) { - return object == null ? {} : basePickBy(object, getAllKeysIn(object), getIteratee(predicate)); + if (object == null) { + return {}; + } + var props = arrayMap(getAllKeysIn(object), function(prop) { + return [prop]; + }); + predicate = getIteratee(predicate); + return basePickBy(object, props, function(value, path) { + return predicate(value, path[0]); + }); } /** @@ -34878,15 +34961,15 @@ * // => 'default' */ function result(object, path, defaultValue) { - path = isKey(path, object) ? [path] : castPath(path); + path = castPath(path, object); var index = -1, length = path.length; // Ensure the loop is entered when path is empty. if (!length) { - object = undefined; length = 1; + object = undefined; } while (++index < length) { var value = object == null ? undefined : object[toKey(path[index])]; @@ -35183,7 +35266,7 @@ * // => ['h', 'i'] */ function values(object) { - return object ? baseValues(object, keys(object)) : []; + return object == null ? [] : baseValues(object, keys(object)); } /** @@ -36570,7 +36653,7 @@ * // => 'no match' */ function cond(pairs) { - var length = pairs ? pairs.length : 0, + var length = pairs == null ? 0 : pairs.length, toIteratee = getIteratee(); pairs = !length ? [] : arrayMap(pairs, function(pair) { @@ -36616,7 +36699,7 @@ * // => [{ 'a': 1, 'b': 2 }] */ function conforms(source) { - return baseConforms(baseClone(source, true)); + return baseConforms(baseClone(source, CLONE_DEEP_FLAG)); } /** @@ -36778,7 +36861,7 @@ * // => ['def'] */ function iteratee(func) { - return baseIteratee(typeof func == 'function' ? func : baseClone(func, true)); + return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG)); } /** @@ -36810,7 +36893,7 @@ * // => [{ 'a': 4, 'b': 5, 'c': 6 }] */ function matches(source) { - return baseMatches(baseClone(source, true)); + return baseMatches(baseClone(source, CLONE_DEEP_FLAG)); } /** @@ -36840,7 +36923,7 @@ * // => { 'a': 4, 'b': 5, 'c': 6 } */ function matchesProperty(path, srcValue) { - return baseMatchesProperty(path, baseClone(srcValue, true)); + return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG)); } /** @@ -37396,7 +37479,7 @@ if (isArray(value)) { return arrayMap(value, toKey); } - return isSymbol(value) ? [value] : copyArray(stringToPath(value)); + return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value))); } /** @@ -38300,7 +38383,7 @@ } }); - realNames[createHybrid(undefined, BIND_KEY_FLAG).name] = [{ + realNames[createHybrid(undefined, WRAP_BIND_KEY_FLAG).name] = [{ 'name': 'wrapper', 'func': undefined }]; @@ -38322,8 +38405,8 @@ // Add lazy aliases. lodash.prototype.first = lodash.prototype.head; - if (iteratorSymbol) { - lodash.prototype[iteratorSymbol] = wrapperToIterator; + if (symIterator) { + lodash.prototype[symIterator] = wrapperToIterator; } return lodash; }); @@ -38366,16 +38449,16 @@ /* 153 */ /***/ function(module, exports) { - module.exports = function(module) { - if(!module.webpackPolyfill) { - module.deprecate = function() {}; - module.paths = []; - // module.parent = undefined by default - module.children = []; - module.webpackPolyfill = 1; - } - return module; - } + module.exports = function(module) { + if(!module.webpackPolyfill) { + module.deprecate = function() {}; + module.paths = []; + // module.parent = undefined by default + module.children = []; + module.webpackPolyfill = 1; + } + return module; + } /***/ }, @@ -63144,7 +63227,7 @@ ); } - this.getProcessDefinitionsValuesNoApp = function() { + this.getProcessDefinitions = function() { var postBody = null; var pathParams = { @@ -63221,6 +63304,37 @@ ); } + this.updateReport = function(reportId, name) { + var postBody = { + "name" : name + }; + + if (reportId == undefined || reportId == null) { + throw "Missing the required parameter 'reportId' when calling updateReport"; + } + + var pathParams = { + 'reportId': reportId + }; + var queryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = null; + + return this.apiClient.callApi( + '/app/rest/reporting/reports/{reportId}', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + }; return exports; @@ -63291,8 +63405,6 @@ })); - - /***/ }, /* 293 */ /***/ function(module, exports, __webpack_require__) { @@ -63364,8 +63476,6 @@ })); - - /***/ }, /* 294 */ /***/ function(module, exports, __webpack_require__) { @@ -63454,8 +63564,6 @@ })); - - /***/ }, /* 295 */ /***/ function(module, exports, __webpack_require__) { @@ -63544,8 +63652,6 @@ })); - - /***/ }, /* 296 */ /***/ function(module, exports) { From dd826785505276956da325711c18263e81c66731 Mon Sep 17 00:00:00 2001 From: Eugenio Romano Date: Wed, 7 Dec 2016 18:31:45 +0000 Subject: [PATCH 05/13] improve npmignore and pointing for the pacakge --- .gitignore | 7 + .npmignore | 11 +- package.json | 3 +- scripts/bundle.js | 62288 -------------------------------------------- 4 files changed, 18 insertions(+), 62291 deletions(-) delete mode 100644 scripts/bundle.js diff --git a/.gitignore b/.gitignore index 505ebe8c69..386cbc9e10 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,10 @@ target /coverage /node_modules /alfresco-core-rest-api.iml +*. +*.iml +/.idea +*.tgz +*.DS_Store +/package/ +/scripts/ diff --git a/.npmignore b/.npmignore index 521d17dc9b..6b3836f51d 100644 --- a/.npmignore +++ b/.npmignore @@ -9,7 +9,14 @@ /build.sh /tslint.json /pom.xml -/alfresco-core-rest-api.iml +*.iml /.idea +/test/ +/assets/ +*.tgz +*.DS_Store +/package/ +/webpack-bundle-test.js +/webpack.config.js +/.github/ /.babelrc - diff --git a/package.json b/package.json index 2c8ee836f3..3abf39b03b 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,8 @@ "name": "alfresco-js-api", "version": "0.5.4", "description": "JavaScript client library for the Alfresco REST API", - "main": "main.js", + "main": "dist/alfresco-js-api.js", + "module": "index.js", "typings": "index.d.ts", "scripts": { "clean": "rimraf dist/bundle.js node_modules", diff --git a/scripts/bundle.js b/scripts/bundle.js deleted file mode 100644 index 1cd97821b4..0000000000 --- a/scripts/bundle.js +++ /dev/null @@ -1,62288 +0,0 @@ -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; - -/******/ // The require function -/******/ function __webpack_require__(moduleId) { - -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) -/******/ return installedModules[moduleId].exports; - -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ exports: {}, -/******/ id: moduleId, -/******/ loaded: false -/******/ }; - -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); - -/******/ // Flag the module as loaded -/******/ module.loaded = true; - -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } - - -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; - -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; - -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; - -/******/ // Load entry module and return exports -/******/ return __webpack_require__(0); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */ -/***/ function(module, exports, __webpack_require__) { - - (function webpackMissingModule() { throw new Error("Cannot find module \"index\""); }()); - __webpack_require__(1); - (function webpackMissingModule() { throw new Error("Cannot find module \"bundle.js\""); }()); - - -/***/ }, -/* 1 */ -/***/ function(module, exports, __webpack_require__) { - - 'use strict'; - var AlfrescoApi = __webpack_require__(2); - - module.exports = AlfrescoApi; - - -/***/ }, -/* 2 */ -/***/ function(module, exports, __webpack_require__) { - - /* WEBPACK VAR INJECTION */(function(console) {'use strict'; - - var AlfrescoCoreRestApi = __webpack_require__(4); - var AlfrescoAuthRestApi = __webpack_require__(136); - var AlfrescoActivitiApi = __webpack_require__(163); - var AlfrescoContent = __webpack_require__(288); - var AlfrescoNode = __webpack_require__(289); - var AlfrescoUpload = __webpack_require__(290); - var AlfrescoWebScriptApi = __webpack_require__(291); - var Emitter = __webpack_require__(139); - var EcmAuth = __webpack_require__(292); - var BpmAuth = __webpack_require__(293); - var _ = __webpack_require__(154); - - class AlfrescoApi { - /** - * @param {Object} config - * - * config = { - * hostEcm: // hostEcm Your share server IP or DNS name - * hostBpm: // hostBpm Your activiti server IP or DNS name - * contextRoot: // contextRoot default value alfresco - * provider: // ECM BPM ALL, default ECM - * ticketEcm: // Ticket if you already have a ECM ticket you can pass only the ticket and skip the login, in this case you don't need username and password - * ticketBpm: // Ticket if you already have a BPM ticket you can pass only the ticket and skip the login, in this case you don't need username and password - * disableCsrf: // To disable CSRF Token to be submitted. Only for Activiti call, by default is false. - * }; - */ - constructor(config) { - - if (!config) { - config = {}; - } - - this.config = { - hostEcm: config.hostEcm || 'http://127.0.0.1:8080', - hostBpm: config.hostBpm || 'http://127.0.0.1:9999', - contextRoot: config.contextRoot || 'alfresco', - provider: config.provider || 'ECM', - ticketEcm: config.ticketEcm, - ticketBpm: config.ticketBpm, - disableCsrf: config.disableCsrf || false - }; - - this.bpmAuth = new BpmAuth(this.config); - this.ecmAuth = new EcmAuth(this.config); - - this.initObjects(); - - Emitter.call(this); - } - - changeCsrfConfig(disableCsrf) { - this.config.disableCsrf = disableCsrf; - this.bpmAuth.changeCsrfConfig(disableCsrf); - } - - changeEcmHost(hostEcm) { - this.config.hostEcm = hostEcm; - this.ecmAuth.changeHost(hostEcm); - } - - changeBpmHost(hostBpm) { - this.config.hostBpm = hostBpm; - this.bpmAuth.changeHost(hostBpm); - } - - initObjects() { - //BPM - AlfrescoActivitiApi.ApiClient.instance = this.bpmAuth.getClient(); - this.activiti = {}; - this.activitiStore = AlfrescoActivitiApi; - this._instantiateObjects(this.activitiStore, this.activiti); - - //ECM - AlfrescoCoreRestApi.ApiClient.instance = this.ecmAuth.getClient(); - this.core = {}; - this.coreStore = AlfrescoCoreRestApi; - this._instantiateObjects(this.coreStore, this.core); - - this.nodes = this.node = new AlfrescoNode(); - this.content = new AlfrescoContent(this.ecmAuth); - this.upload = new AlfrescoUpload(); - this.webScript = new AlfrescoWebScriptApi(); - } - - _instantiateObjects(module, moduleCopy) { - var classArray = Object.keys(module); - - classArray.forEach((currentClass)=> { - moduleCopy[currentClass] = module[currentClass]; - var obj = this._stringToObject(currentClass, module); - var nameObj = _.lowerFirst(currentClass); - moduleCopy[nameObj] = obj; - }); - } - - _stringToObject(nameClass, module) { - try { - if (typeof module[nameClass] === 'function') { - return new module[nameClass](); - } - } catch (error) { - console.log(nameClass + ' ' + error); - } - } - - /** - * return an Alfresco API Client - * - * @returns {ApiClient} Alfresco API Client - * */ - getClient() { - return this.ecmAuth.getClient(); - } - - /** - * login Alfresco API - * @param {String} username: // Username to login - * @param {String} password: // Password to login - * - * @returns {Promise} A promise that returns {new authentication ticket} if resolved and {error} if rejected. - * */ - login(username, password) { - if (this._isBpmConfiguration()) { - var bpmPromise = this.bpmAuth.login(username, password); - - bpmPromise.then((ticketBpm)=> { - this.config.ticketBpm = ticketBpm; - }); - - return bpmPromise; - } else if (this._isEcmConfiguration()) { - var ecmPromise = this.ecmAuth.login(username, password); - - ecmPromise.then((ticketEcm)=> { - this.config.ticketEcm = ticketEcm; - }); - - return ecmPromise; - - } else if (this._isEcmBpmConfiguration()) { - var bpmEcmPromise = this._loginBPMECM(username, password); - - bpmEcmPromise.then((data)=> { - this.config.ticketEcm = data[0]; - this.config.ticketBpm = data[1]; - }); - - return bpmEcmPromise; - } - } - - /** - * login Tickets - * - * @param {String} ticketEcm // alfresco ticket - * @param {String} ticketBpm // alfresco ticket - * - * @returns {Promise} A promise that returns { authentication ticket} if resolved and {error} if rejected. - * */ - loginTicket(ticketEcm, ticketBpm) { - this.config.ticketEcm = ticketEcm; - this.config.ticketBpm = ticketBpm; - - return this.ecmAuth.validateTicket(); - } - - _loginBPMECM(username, password) { - var ecmPromise = this.ecmAuth.login(username, password); - var bpmPromise = this.bpmAuth.login(username, password); - - this.promise = new Promise((resolve, reject) => { - Promise.all([ecmPromise, bpmPromise]).then( - (data) => { - this.promise.emit('success'); - resolve(data); - }, - (error) => { - if (error.status === 401) { - this.promise.emit('unauthorized'); - } - this.promise.emit('error'); - reject(error); - }); - }); - - Emitter(this.promise); // jshint ignore:line - - return this.promise; - } - - /** - * logout Alfresco API - * - * @returns {Promise} A promise that returns {new authentication ticket} if resolved and {error} if rejected. - * */ - logout() { - if (this.config.provider && this.config.provider.toUpperCase() === 'BPM') { - return this.bpmAuth.logout(); - } else if (this.config.provider && this.config.provider.toUpperCase() === 'ECM') { - var ecmPromise = this.ecmAuth.logout(); - ecmPromise.then((data)=> { - this.config.ticket = undefined; - }); - - return ecmPromise; - } else if (this.config.provider && this.config.provider.toUpperCase() === 'ALL') { - return this._logoutBPMECM(); - } - } - - _logoutBPMECM() { - var ecmPromise = this.ecmAuth.logout(); - var bpmPromise = this.bpmAuth.logout(); - - this.promise = new Promise((resolve, reject) => { - Promise.all([ecmPromise, bpmPromise]).then( - (data) => { - this.config.ticket = undefined; - this.promise.emit('logout'); - resolve('logout'); - }, - (error) => { - if (error.status === 401) { - this.promise.emit('unauthorized'); - } - this.promise.emit('error'); - reject(error); - }); - }); - - Emitter(this.promise); // jshint ignore:line - - return this.promise; - } - - /** - * If the client is logged in retun true - * - * @returns {Boolean} is logged in - */ - isLoggedIn() { - if (this.config.provider && this.config.provider.toUpperCase() === 'BPM') { - return this.bpmAuth.isLoggedIn(); - } else if (this.config.provider && this.config.provider.toUpperCase() === 'ECM') { - return this.ecmAuth.isLoggedIn(); - } else if (this.config.provider && this.config.provider.toUpperCase() === 'ALL') { - return this.ecmAuth.isLoggedIn() && this.bpmAuth.isLoggedIn(); - } - } - - /** - * Set the current Ticket - * - * @param {String} ticketEcm - * @param {String} TicketBpm - * */ - setTicket(ticketEcm, TicketBpm) { - this.ecmAuth.setTicket(ticketEcm); - this.bpmAuth.setTicket(TicketBpm); - } - - /** - * Get the current Ticket for the Bpm - * - * @returns {String} Ticket - * */ - getTicketBpm() { - return this.bpmAuth.getTicket(); - } - - /** - * Get the current Ticket for the Ecm - * - * @returns {String} Ticket - * */ - getTicketEcm() { - return this.ecmAuth.getTicket(); - } - - /** - * Get the current Ticket for the Ecm and BPM - * - * @returns {Array} Ticket - * */ - getTicket() { - return [this.ecmAuth.getTicket(), this.bpmAuth.getTicket()]; - } - - _isBpmConfiguration() { - return this.config.provider && this.config.provider.toUpperCase() === 'BPM'; - } - - _isEcmConfiguration() { - return this.config.provider && this.config.provider.toUpperCase() === 'ECM'; - } - - _isEcmBpmConfiguration() { - return this.config.provider && this.config.provider.toUpperCase() === 'ALL'; - } - - } - - Emitter(AlfrescoApi.prototype); // jshint ignore:line - module.exports = AlfrescoApi; - - module.exports.Activiti = AlfrescoActivitiApi; - module.exports.Core = AlfrescoCoreRestApi; - module.exports.Auth = AlfrescoAuthRestApi; - - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) - -/***/ }, -/* 3 */ -/***/ function(module, exports) { - - - -/***/ }, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(5), __webpack_require__(14), __webpack_require__(15), __webpack_require__(16), __webpack_require__(17), __webpack_require__(19), __webpack_require__(20), __webpack_require__(21), __webpack_require__(22), __webpack_require__(23), __webpack_require__(26), __webpack_require__(27), __webpack_require__(28), __webpack_require__(29), __webpack_require__(30), __webpack_require__(25), __webpack_require__(31), __webpack_require__(32), __webpack_require__(33), __webpack_require__(36), __webpack_require__(37), __webpack_require__(40), __webpack_require__(41), __webpack_require__(42), __webpack_require__(43), __webpack_require__(44), __webpack_require__(45), __webpack_require__(46), __webpack_require__(47), __webpack_require__(48), __webpack_require__(49), __webpack_require__(50), __webpack_require__(51), __webpack_require__(52), __webpack_require__(53), __webpack_require__(54), __webpack_require__(55), __webpack_require__(56), __webpack_require__(57), __webpack_require__(58), __webpack_require__(59), __webpack_require__(60), __webpack_require__(61), __webpack_require__(63), __webpack_require__(64), __webpack_require__(65), __webpack_require__(66), __webpack_require__(67), __webpack_require__(34), __webpack_require__(38), __webpack_require__(68), __webpack_require__(69), __webpack_require__(70), __webpack_require__(71), __webpack_require__(72), __webpack_require__(73), __webpack_require__(74), __webpack_require__(62), __webpack_require__(18), __webpack_require__(39), __webpack_require__(75), __webpack_require__(24), __webpack_require__(76), __webpack_require__(77), __webpack_require__(78), __webpack_require__(79), __webpack_require__(80), __webpack_require__(81), __webpack_require__(82), __webpack_require__(83), __webpack_require__(84), __webpack_require__(85), __webpack_require__(86), __webpack_require__(87), __webpack_require__(88), __webpack_require__(89), __webpack_require__(90), __webpack_require__(91), __webpack_require__(92), __webpack_require__(93), __webpack_require__(94), __webpack_require__(95), __webpack_require__(96), __webpack_require__(97), __webpack_require__(98), __webpack_require__(99), __webpack_require__(100), __webpack_require__(101), __webpack_require__(103), __webpack_require__(104), __webpack_require__(105), __webpack_require__(106), __webpack_require__(107), __webpack_require__(108), __webpack_require__(109), __webpack_require__(110), __webpack_require__(111), __webpack_require__(112), __webpack_require__(113), __webpack_require__(114), __webpack_require__(115), __webpack_require__(102), __webpack_require__(116), __webpack_require__(117), __webpack_require__(118), __webpack_require__(119), __webpack_require__(120), __webpack_require__(121), __webpack_require__(35), __webpack_require__(122), __webpack_require__(123), __webpack_require__(124), __webpack_require__(125), __webpack_require__(126), __webpack_require__(127), __webpack_require__(128), __webpack_require__(129), __webpack_require__(130), __webpack_require__(131), __webpack_require__(132), __webpack_require__(133), __webpack_require__(134), __webpack_require__(135)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('./ApiClient'), require('./model/Activity'), require('./model/ActivityActivitySummary'), require('./model/ActivityEntry'), require('./model/ActivityPaging'), require('./model/ActivityPagingList'), require('./model/AssocChildBody'), require('./model/AssocInfo'), require('./model/AssocTargetBody'), require('./model/ChildAssocInfo'), require('./model/Comment'), require('./model/CommentBody'), require('./model/CommentBody1'), require('./model/CommentEntry'), require('./model/CommentPaging'), require('./model/CommentPagingList'), require('./model/Company'), require('./model/ContentInfo'), require('./model/CopyBody'), require('./model/DeletedNode'), require('./model/DeletedNodeEntry'), require('./model/DeletedNodeMinimal'), require('./model/DeletedNodeMinimalEntry'), require('./model/DeletedNodesPaging'), require('./model/DeletedNodesPagingList'), require('./model/EmailSharedLinkBody'), require('./model/Error'), require('./model/ErrorError'), require('./model/Favorite'), require('./model/FavoriteBody'), require('./model/FavoriteEntry'), require('./model/FavoritePaging'), require('./model/FavoritePagingList'), require('./model/FavoriteSiteBody'), require('./model/InlineResponse201'), require('./model/InlineResponse201Entry'), require('./model/MoveBody'), require('./model/NetworkQuota'), require('./model/NodeAssocMinimal'), require('./model/NodeAssocMinimalEntry'), require('./model/NodeAssocPaging'), require('./model/NodeAssocPagingList'), require('./model/NodeBody'), require('./model/NodeBody1'), require('./model/NodeChildAssocMinimal'), require('./model/NodeChildAssocMinimalEntry'), require('./model/NodeChildAssocPaging'), require('./model/NodeChildAssocPagingList'), require('./model/NodeEntry'), require('./model/NodeFull'), require('./model/NodeMinimal'), require('./model/NodeMinimalEntry'), require('./model/NodePaging'), require('./model/NodePagingList'), require('./model/NodeSharedLink'), require('./model/NodeSharedLinkEntry'), require('./model/NodeSharedLinkPaging'), require('./model/NodeSharedLinkPagingList'), require('./model/NodesnodeIdchildrenContent'), require('./model/Pagination'), require('./model/PathElement'), require('./model/PathInfo'), require('./model/Person'), require('./model/PersonEntry'), require('./model/PersonNetwork'), require('./model/PersonNetworkEntry'), require('./model/PersonNetworkPaging'), require('./model/PersonNetworkPagingList'), require('./model/Preference'), require('./model/PreferenceEntry'), require('./model/PreferencePaging'), require('./model/PreferencePagingList'), require('./model/Rating'), require('./model/RatingAggregate'), require('./model/RatingBody'), require('./model/RatingEntry'), require('./model/RatingPaging'), require('./model/RatingPagingList'), require('./model/Rendition'), require('./model/RenditionBody'), require('./model/RenditionEntry'), require('./model/RenditionPaging'), require('./model/RenditionPagingList'), require('./model/SharedLinkBody'), require('./model/Site'), require('./model/SiteBody'), require('./model/SiteContainer'), require('./model/SiteContainerEntry'), require('./model/SiteContainerPaging'), require('./model/SiteEntry'), require('./model/SiteMember'), require('./model/SiteMemberBody'), require('./model/SiteMemberEntry'), require('./model/SiteMemberPaging'), require('./model/SiteMemberRoleBody'), require('./model/SiteMembershipBody'), require('./model/SiteMembershipBody1'), require('./model/SiteMembershipRequest'), require('./model/SiteMembershipRequestEntry'), require('./model/SiteMembershipRequestPaging'), require('./model/SiteMembershipRequestPagingList'), require('./model/SitePaging'), require('./model/SitePagingList'), require('./model/Tag'), require('./model/TagBody'), require('./model/TagBody1'), require('./model/TagEntry'), require('./model/TagPaging'), require('./model/TagPagingList'), require('./model/UserInfo'), require('./api/AssociationsApi'), require('./api/ChangesApi'), require('./api/ChildAssociationsApi'), require('./api/CommentsApi'), require('./api/FavoritesApi'), require('./api/NetworksApi'), require('./api/NodesApi'), require('./api/PeopleApi'), require('./api/RatingsApi'), require('./api/RenditionsApi'), require('./api/SearchApi'), require('./api/SharedlinksApi'), require('./api/SitesApi'), require('./api/TagsApi')); - } - }(function(ApiClient, Activity, ActivityActivitySummary, ActivityEntry, ActivityPaging, ActivityPagingList, AssocChildBody, AssocInfo, AssocTargetBody, ChildAssocInfo, Comment, CommentBody, CommentBody1, CommentEntry, CommentPaging, CommentPagingList, Company, ContentInfo, CopyBody, DeletedNode, DeletedNodeEntry, DeletedNodeMinimal, DeletedNodeMinimalEntry, DeletedNodesPaging, DeletedNodesPagingList, EmailSharedLinkBody, Error, ErrorError, Favorite, FavoriteBody, FavoriteEntry, FavoritePaging, FavoritePagingList, FavoriteSiteBody, InlineResponse201, InlineResponse201Entry, MoveBody, NetworkQuota, NodeAssocMinimal, NodeAssocMinimalEntry, NodeAssocPaging, NodeAssocPagingList, NodeBody, NodeBody1, NodeChildAssocMinimal, NodeChildAssocMinimalEntry, NodeChildAssocPaging, NodeChildAssocPagingList, NodeEntry, NodeFull, NodeMinimal, NodeMinimalEntry, NodePaging, NodePagingList, NodeSharedLink, NodeSharedLinkEntry, NodeSharedLinkPaging, NodeSharedLinkPagingList, NodesnodeIdchildrenContent, Pagination, PathElement, PathInfo, Person, PersonEntry, PersonNetwork, PersonNetworkEntry, PersonNetworkPaging, PersonNetworkPagingList, Preference, PreferenceEntry, PreferencePaging, PreferencePagingList, Rating, RatingAggregate, RatingBody, RatingEntry, RatingPaging, RatingPagingList, Rendition, RenditionBody, RenditionEntry, RenditionPaging, RenditionPagingList, SharedLinkBody, Site, SiteBody, SiteContainer, SiteContainerEntry, SiteContainerPaging, SiteEntry, SiteMember, SiteMemberBody, SiteMemberEntry, SiteMemberPaging, SiteMemberRoleBody, SiteMembershipBody, SiteMembershipBody1, SiteMembershipRequest, SiteMembershipRequestEntry, SiteMembershipRequestPaging, SiteMembershipRequestPagingList, SitePaging, SitePagingList, Tag, TagBody, TagBody1, TagEntry, TagPaging, TagPagingList, UserInfo, AssociationsApi, ChangesApi, ChildAssociationsApi, CommentsApi, FavoritesApi, NetworksApi, NodesApi, PeopleApi, RatingsApi, RenditionsApi, SearchApi, SharedlinksApi, SitesApi, TagsApi) { - 'use strict'; - - /** - * Provides access to the core features of Alfresco.\n\nThis API uses the term **entity** to refer to an object in an Alfresco repository.\nAn **entity** is of a specific **type**, and has a unique **id**.\n\n* The **id** of an entity of type **node** is the **NodeRef** with the `workspace://SpacesStore` prefix removed.\n* The **id** of an entity of type **site** is the site's short name.\n* The **id** for an entity of type **person** is the person's username.\n.
- * The index module provides access to constructors for all the classes which comprise the public API. - *

- * An AMD (recommended!) or CommonJS application will generally do something equivalent to the following: - *

-	   * var AlfrescoCoreRestApi = require('./index'); // See note below*.
-	   * var xxxSvc = new AlfrescoCoreRestApi.XxxApi(); // Allocate the API class we're going to use.
-	   * var yyyModel = new AlfrescoCoreRestApi.Yyy(); // Construct a model instance.
-	   * yyyModel.someProperty = 'someValue';
-	   * ...
-	   * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
-	   * ...
-	   * 
- * *NOTE: For a top-level AMD script, use require(['./index'], function(){...}) and put the application logic within the - * callback function. - *

- *

- * A non-AMD browser application (discouraged) might do something like this: - *

-	   * var xxxSvc = new AlfrescoCoreRestApi.XxxApi(); // Allocate the API class we're going to use.
-	   * var yyy = new AlfrescoCoreRestApi.Yyy(); // Construct a model instance.
-	   * yyyModel.someProperty = 'someValue';
-	   * ...
-	   * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
-	   * ...
-	   * 
- *

- * @module index - * @version 0.1.0 - */ - var exports = { - /** - * The ApiClient constructor. - * @property {module:ApiClient} - */ - ApiClient: ApiClient, - /** - * The Activity model constructor. - * @property {module:model/Activity} - */ - Activity: Activity, - /** - * The ActivityActivitySummary model constructor. - * @property {module:model/ActivityActivitySummary} - */ - ActivityActivitySummary: ActivityActivitySummary, - /** - * The ActivityEntry model constructor. - * @property {module:model/ActivityEntry} - */ - ActivityEntry: ActivityEntry, - /** - * The ActivityPaging model constructor. - * @property {module:model/ActivityPaging} - */ - ActivityPaging: ActivityPaging, - /** - * The ActivityPagingList model constructor. - * @property {module:model/ActivityPagingList} - */ - ActivityPagingList: ActivityPagingList, - /** - * The AssocChildBody model constructor. - * @property {module:model/AssocChildBody} - */ - AssocChildBody: AssocChildBody, - /** - * The AssocInfo model constructor. - * @property {module:model/AssocInfo} - */ - AssocInfo: AssocInfo, - /** - * The AssocTargetBody model constructor. - * @property {module:model/AssocTargetBody} - */ - AssocTargetBody: AssocTargetBody, - /** - * The ChildAssocInfo model constructor. - * @property {module:model/ChildAssocInfo} - */ - ChildAssocInfo: ChildAssocInfo, - /** - * The Comment model constructor. - * @property {module:model/Comment} - */ - Comment: Comment, - /** - * The CommentBody model constructor. - * @property {module:model/CommentBody} - */ - CommentBody: CommentBody, - /** - * The CommentBody1 model constructor. - * @property {module:model/CommentBody1} - */ - CommentBody1: CommentBody1, - /** - * The CommentEntry model constructor. - * @property {module:model/CommentEntry} - */ - CommentEntry: CommentEntry, - /** - * The CommentPaging model constructor. - * @property {module:model/CommentPaging} - */ - CommentPaging: CommentPaging, - /** - * The CommentPagingList model constructor. - * @property {module:model/CommentPagingList} - */ - CommentPagingList: CommentPagingList, - /** - * The Company model constructor. - * @property {module:model/Company} - */ - Company: Company, - /** - * The ContentInfo model constructor. - * @property {module:model/ContentInfo} - */ - ContentInfo: ContentInfo, - /** - * The CopyBody model constructor. - * @property {module:model/CopyBody} - */ - CopyBody: CopyBody, - /** - * The DeletedNode model constructor. - * @property {module:model/DeletedNode} - */ - DeletedNode: DeletedNode, - /** - * The DeletedNodeEntry model constructor. - * @property {module:model/DeletedNodeEntry} - */ - DeletedNodeEntry: DeletedNodeEntry, - /** - * The DeletedNodeMinimal model constructor. - * @property {module:model/DeletedNodeMinimal} - */ - DeletedNodeMinimal: DeletedNodeMinimal, - /** - * The DeletedNodeMinimalEntry model constructor. - * @property {module:model/DeletedNodeMinimalEntry} - */ - DeletedNodeMinimalEntry: DeletedNodeMinimalEntry, - /** - * The DeletedNodesPaging model constructor. - * @property {module:model/DeletedNodesPaging} - */ - DeletedNodesPaging: DeletedNodesPaging, - /** - * The DeletedNodesPagingList model constructor. - * @property {module:model/DeletedNodesPagingList} - */ - DeletedNodesPagingList: DeletedNodesPagingList, - /** - * The EmailSharedLinkBody model constructor. - * @property {module:model/EmailSharedLinkBody} - */ - EmailSharedLinkBody: EmailSharedLinkBody, - /** - * The Error model constructor. - * @property {module:model/Error} - */ - Error: Error, - /** - * The ErrorError model constructor. - * @property {module:model/ErrorError} - */ - ErrorError: ErrorError, - /** - * The Favorite model constructor. - * @property {module:model/Favorite} - */ - Favorite: Favorite, - /** - * The FavoriteBody model constructor. - * @property {module:model/FavoriteBody} - */ - FavoriteBody: FavoriteBody, - /** - * The FavoriteEntry model constructor. - * @property {module:model/FavoriteEntry} - */ - FavoriteEntry: FavoriteEntry, - /** - * The FavoritePaging model constructor. - * @property {module:model/FavoritePaging} - */ - FavoritePaging: FavoritePaging, - /** - * The FavoritePagingList model constructor. - * @property {module:model/FavoritePagingList} - */ - FavoritePagingList: FavoritePagingList, - /** - * The FavoriteSiteBody model constructor. - * @property {module:model/FavoriteSiteBody} - */ - FavoriteSiteBody: FavoriteSiteBody, - /** - * The InlineResponse201 model constructor. - * @property {module:model/InlineResponse201} - */ - InlineResponse201: InlineResponse201, - /** - * The InlineResponse201Entry model constructor. - * @property {module:model/InlineResponse201Entry} - */ - InlineResponse201Entry: InlineResponse201Entry, - /** - * The MoveBody model constructor. - * @property {module:model/MoveBody} - */ - MoveBody: MoveBody, - /** - * The NetworkQuota model constructor. - * @property {module:model/NetworkQuota} - */ - NetworkQuota: NetworkQuota, - /** - * The NodeAssocMinimal model constructor. - * @property {module:model/NodeAssocMinimal} - */ - NodeAssocMinimal: NodeAssocMinimal, - /** - * The NodeAssocMinimalEntry model constructor. - * @property {module:model/NodeAssocMinimalEntry} - */ - NodeAssocMinimalEntry: NodeAssocMinimalEntry, - /** - * The NodeAssocPaging model constructor. - * @property {module:model/NodeAssocPaging} - */ - NodeAssocPaging: NodeAssocPaging, - /** - * The NodeAssocPagingList model constructor. - * @property {module:model/NodeAssocPagingList} - */ - NodeAssocPagingList: NodeAssocPagingList, - /** - * The NodeBody model constructor. - * @property {module:model/NodeBody} - */ - NodeBody: NodeBody, - /** - * The NodeBody1 model constructor. - * @property {module:model/NodeBody1} - */ - NodeBody1: NodeBody1, - /** - * The NodeChildAssocMinimal model constructor. - * @property {module:model/NodeChildAssocMinimal} - */ - NodeChildAssocMinimal: NodeChildAssocMinimal, - /** - * The NodeChildAssocMinimalEntry model constructor. - * @property {module:model/NodeChildAssocMinimalEntry} - */ - NodeChildAssocMinimalEntry: NodeChildAssocMinimalEntry, - /** - * The NodeChildAssocPaging model constructor. - * @property {module:model/NodeChildAssocPaging} - */ - NodeChildAssocPaging: NodeChildAssocPaging, - /** - * The NodeChildAssocPagingList model constructor. - * @property {module:model/NodeChildAssocPagingList} - */ - NodeChildAssocPagingList: NodeChildAssocPagingList, - /** - * The NodeEntry model constructor. - * @property {module:model/NodeEntry} - */ - NodeEntry: NodeEntry, - /** - * The NodeFull model constructor. - * @property {module:model/NodeFull} - */ - NodeFull: NodeFull, - /** - * The NodeMinimal model constructor. - * @property {module:model/NodeMinimal} - */ - NodeMinimal: NodeMinimal, - /** - * The NodeMinimalEntry model constructor. - * @property {module:model/NodeMinimalEntry} - */ - NodeMinimalEntry: NodeMinimalEntry, - /** - * The NodePaging model constructor. - * @property {module:model/NodePaging} - */ - NodePaging: NodePaging, - /** - * The NodePagingList model constructor. - * @property {module:model/NodePagingList} - */ - NodePagingList: NodePagingList, - /** - * The NodeSharedLink model constructor. - * @property {module:model/NodeSharedLink} - */ - NodeSharedLink: NodeSharedLink, - /** - * The NodeSharedLinkEntry model constructor. - * @property {module:model/NodeSharedLinkEntry} - */ - NodeSharedLinkEntry: NodeSharedLinkEntry, - /** - * The NodeSharedLinkPaging model constructor. - * @property {module:model/NodeSharedLinkPaging} - */ - NodeSharedLinkPaging: NodeSharedLinkPaging, - /** - * The NodeSharedLinkPagingList model constructor. - * @property {module:model/NodeSharedLinkPagingList} - */ - NodeSharedLinkPagingList: NodeSharedLinkPagingList, - /** - * The NodesnodeIdchildrenContent model constructor. - * @property {module:model/NodesnodeIdchildrenContent} - */ - NodesnodeIdchildrenContent: NodesnodeIdchildrenContent, - /** - * The Pagination model constructor. - * @property {module:model/Pagination} - */ - Pagination: Pagination, - /** - * The PathElement model constructor. - * @property {module:model/PathElement} - */ - PathElement: PathElement, - /** - * The PathInfo model constructor. - * @property {module:model/PathInfo} - */ - PathInfo: PathInfo, - /** - * The Person model constructor. - * @property {module:model/Person} - */ - Person: Person, - /** - * The PersonEntry model constructor. - * @property {module:model/PersonEntry} - */ - PersonEntry: PersonEntry, - /** - * The PersonNetwork model constructor. - * @property {module:model/PersonNetwork} - */ - PersonNetwork: PersonNetwork, - /** - * The PersonNetworkEntry model constructor. - * @property {module:model/PersonNetworkEntry} - */ - PersonNetworkEntry: PersonNetworkEntry, - /** - * The PersonNetworkPaging model constructor. - * @property {module:model/PersonNetworkPaging} - */ - PersonNetworkPaging: PersonNetworkPaging, - /** - * The PersonNetworkPagingList model constructor. - * @property {module:model/PersonNetworkPagingList} - */ - PersonNetworkPagingList: PersonNetworkPagingList, - /** - * The Preference model constructor. - * @property {module:model/Preference} - */ - Preference: Preference, - /** - * The PreferenceEntry model constructor. - * @property {module:model/PreferenceEntry} - */ - PreferenceEntry: PreferenceEntry, - /** - * The PreferencePaging model constructor. - * @property {module:model/PreferencePaging} - */ - PreferencePaging: PreferencePaging, - /** - * The PreferencePagingList model constructor. - * @property {module:model/PreferencePagingList} - */ - PreferencePagingList: PreferencePagingList, - /** - * The Rating model constructor. - * @property {module:model/Rating} - */ - Rating: Rating, - /** - * The RatingAggregate model constructor. - * @property {module:model/RatingAggregate} - */ - RatingAggregate: RatingAggregate, - /** - * The RatingBody model constructor. - * @property {module:model/RatingBody} - */ - RatingBody: RatingBody, - /** - * The RatingEntry model constructor. - * @property {module:model/RatingEntry} - */ - RatingEntry: RatingEntry, - /** - * The RatingPaging model constructor. - * @property {module:model/RatingPaging} - */ - RatingPaging: RatingPaging, - /** - * The RatingPagingList model constructor. - * @property {module:model/RatingPagingList} - */ - RatingPagingList: RatingPagingList, - /** - * The Rendition model constructor. - * @property {module:model/Rendition} - */ - Rendition: Rendition, - /** - * The RenditionBody model constructor. - * @property {module:model/RenditionBody} - */ - RenditionBody: RenditionBody, - /** - * The RenditionEntry model constructor. - * @property {module:model/RenditionEntry} - */ - RenditionEntry: RenditionEntry, - /** - * The RenditionPaging model constructor. - * @property {module:model/RenditionPaging} - */ - RenditionPaging: RenditionPaging, - /** - * The RenditionPagingList model constructor. - * @property {module:model/RenditionPagingList} - */ - RenditionPagingList: RenditionPagingList, - /** - * The SharedLinkBody model constructor. - * @property {module:model/SharedLinkBody} - */ - SharedLinkBody: SharedLinkBody, - /** - * The Site model constructor. - * @property {module:model/Site} - */ - Site: Site, - /** - * The SiteBody model constructor. - * @property {module:model/SiteBody} - */ - SiteBody: SiteBody, - /** - * The SiteContainer model constructor. - * @property {module:model/SiteContainer} - */ - SiteContainer: SiteContainer, - /** - * The SiteContainerEntry model constructor. - * @property {module:model/SiteContainerEntry} - */ - SiteContainerEntry: SiteContainerEntry, - /** - * The SiteContainerPaging model constructor. - * @property {module:model/SiteContainerPaging} - */ - SiteContainerPaging: SiteContainerPaging, - /** - * The SiteEntry model constructor. - * @property {module:model/SiteEntry} - */ - SiteEntry: SiteEntry, - /** - * The SiteMember model constructor. - * @property {module:model/SiteMember} - */ - SiteMember: SiteMember, - /** - * The SiteMemberBody model constructor. - * @property {module:model/SiteMemberBody} - */ - SiteMemberBody: SiteMemberBody, - /** - * The SiteMemberEntry model constructor. - * @property {module:model/SiteMemberEntry} - */ - SiteMemberEntry: SiteMemberEntry, - /** - * The SiteMemberPaging model constructor. - * @property {module:model/SiteMemberPaging} - */ - SiteMemberPaging: SiteMemberPaging, - /** - * The SiteMemberRoleBody model constructor. - * @property {module:model/SiteMemberRoleBody} - */ - SiteMemberRoleBody: SiteMemberRoleBody, - /** - * The SiteMembershipBody model constructor. - * @property {module:model/SiteMembershipBody} - */ - SiteMembershipBody: SiteMembershipBody, - /** - * The SiteMembershipBody1 model constructor. - * @property {module:model/SiteMembershipBody1} - */ - SiteMembershipBody1: SiteMembershipBody1, - /** - * The SiteMembershipRequest model constructor. - * @property {module:model/SiteMembershipRequest} - */ - SiteMembershipRequest: SiteMembershipRequest, - /** - * The SiteMembershipRequestEntry model constructor. - * @property {module:model/SiteMembershipRequestEntry} - */ - SiteMembershipRequestEntry: SiteMembershipRequestEntry, - /** - * The SiteMembershipRequestPaging model constructor. - * @property {module:model/SiteMembershipRequestPaging} - */ - SiteMembershipRequestPaging: SiteMembershipRequestPaging, - /** - * The SiteMembershipRequestPagingList model constructor. - * @property {module:model/SiteMembershipRequestPagingList} - */ - SiteMembershipRequestPagingList: SiteMembershipRequestPagingList, - /** - * The SitePaging model constructor. - * @property {module:model/SitePaging} - */ - SitePaging: SitePaging, - /** - * The SitePagingList model constructor. - * @property {module:model/SitePagingList} - */ - SitePagingList: SitePagingList, - /** - * The Tag model constructor. - * @property {module:model/Tag} - */ - Tag: Tag, - /** - * The TagBody model constructor. - * @property {module:model/TagBody} - */ - TagBody: TagBody, - /** - * The TagBody1 model constructor. - * @property {module:model/TagBody1} - */ - TagBody1: TagBody1, - /** - * The TagEntry model constructor. - * @property {module:model/TagEntry} - */ - TagEntry: TagEntry, - /** - * The TagPaging model constructor. - * @property {module:model/TagPaging} - */ - TagPaging: TagPaging, - /** - * The TagPagingList model constructor. - * @property {module:model/TagPagingList} - */ - TagPagingList: TagPagingList, - /** - * The UserInfo model constructor. - * @property {module:model/UserInfo} - */ - UserInfo: UserInfo, - /** - * The AssociationsApi service constructor. - * @property {module:api/AssociationsApi} - */ - AssociationsApi: AssociationsApi, - /** - * The ChangesApi service constructor. - * @property {module:api/ChangesApi} - */ - ChangesApi: ChangesApi, - /** - * The ChildAssociationsApi service constructor. - * @property {module:api/ChildAssociationsApi} - */ - ChildAssociationsApi: ChildAssociationsApi, - /** - * The CommentsApi service constructor. - * @property {module:api/CommentsApi} - */ - CommentsApi: CommentsApi, - /** - * The FavoritesApi service constructor. - * @property {module:api/FavoritesApi} - */ - FavoritesApi: FavoritesApi, - /** - * The NetworksApi service constructor. - * @property {module:api/NetworksApi} - */ - NetworksApi: NetworksApi, - /** - * The NodesApi service constructor. - * @property {module:api/NodesApi} - */ - NodesApi: NodesApi, - /** - * The PeopleApi service constructor. - * @property {module:api/PeopleApi} - */ - PeopleApi: PeopleApi, - /** - * The RatingsApi service constructor. - * @property {module:api/RatingsApi} - */ - RatingsApi: RatingsApi, - /** - * The RenditionsApi service constructor. - * @property {module:api/RenditionsApi} - */ - RenditionsApi: RenditionsApi, - /** - * The SearchApi service constructor. - * @property {module:api/SearchApi} - */ - SearchApi: SearchApi, - /** - * The SharedlinksApi service constructor. - * @property {module:api/SharedlinksApi} - */ - SharedlinksApi: SharedlinksApi, - /** - * The SitesApi service constructor. - * @property {module:api/SitesApi} - */ - SitesApi: SitesApi, - /** - * The TagsApi service constructor. - * @property {module:api/TagsApi} - */ - TagsApi: TagsApi - }; - - return exports; - })); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(14)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./ActivityActivitySummary')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.Activity = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.ActivityActivitySummary); - } - }(this, function(ApiClient, ActivityActivitySummary) { - 'use strict'; - - /** - * The Activity model module. - * @module model/Activity - * @version 0.1.0 - */ - - /** - * Constructs a new Activity. - * Activities describe any past activity in a site,\nfor example creating an item of content, commenting on a node,\nliking an item of content.\n - * @alias module:model/Activity - * @class - * @param postPersonId - * @param id - * @param feedPersonId - * @param activityType - */ - var exports = function(postPersonId, id, feedPersonId, activityType) { - - this['postPersonId'] = postPersonId; - this['id'] = id; - - - this['feedPersonId'] = feedPersonId; - - this['activityType'] = activityType; - }; - - /** - * Constructs a Activity from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Activity} obj Optional instance to populate. - * @return {module:model/Activity} The populated Activity instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('postPersonId')) { - obj['postPersonId'] = ApiClient.convertToType(data['postPersonId'], 'String'); - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Integer'); - } - if (data.hasOwnProperty('siteId')) { - obj['siteId'] = ApiClient.convertToType(data['siteId'], 'String'); - } - if (data.hasOwnProperty('postedAt')) { - obj['postedAt'] = ApiClient.convertToType(data['postedAt'], 'Date'); - } - if (data.hasOwnProperty('feedPersonId')) { - obj['feedPersonId'] = ApiClient.convertToType(data['feedPersonId'], 'String'); - } - if (data.hasOwnProperty('activitySummary')) { - obj['activitySummary'] = ActivityActivitySummary.constructFromObject(data['activitySummary']); - } - if (data.hasOwnProperty('activityType')) { - obj['activityType'] = ApiClient.convertToType(data['activityType'], 'String'); - } - } - return obj; - } - - - /** - * The id of the person who performed the activity - * @member {String} postPersonId - */ - exports.prototype['postPersonId'] = undefined; - - /** - * The unique id of the activity - * @member {Integer} id - */ - exports.prototype['id'] = undefined; - - /** - * The unique id of the site on which the activity was performed - * @member {String} siteId - */ - exports.prototype['siteId'] = undefined; - - /** - * The date time at which the activity was performed - * @member {Date} postedAt - */ - exports.prototype['postedAt'] = undefined; - - /** - * The feed on which this activity was posted - * @member {String} feedPersonId - */ - exports.prototype['feedPersonId'] = undefined; - - /** - * @member {module:model/ActivityActivitySummary} activitySummary - */ - exports.prototype['activitySummary'] = undefined; - - /** - * The feed on which this activity was posted - * @member {module:model/Activity.ActivityTypeEnum} activityType - */ - exports.prototype['activityType'] = undefined; - - - /** - * Allowed values for the activityType property. - * @enum {String} - * @readonly - */ - exports.ActivityTypeEnum = { - /** - * value: org.alfresco.comments.comment-created - * @const - */ - COMMENTS_COMMENT_CREATED: "org.alfresco.comments.comment-created", - - /** - * value: org.alfresco.comments.comment-updated - * @const - */ - COMMENTS_COMMENT_UPDATED: "org.alfresco.comments.comment-updated", - - /** - * value: org.alfresco.comments.comment-deleted - * @const - */ - COMMENTS_COMMENT_DELETED: "org.alfresco.comments.comment-deleted", - - /** - * value: org.alfresco.documentlibrary.files-added - * @const - */ - DOCUMENTLIBRARY_FILES_ADDED: "org.alfresco.documentlibrary.files-added", - - /** - * value: org.alfresco.documentlibrary.files-updated - * @const - */ - DOCUMENTLIBRARY_FILES_UPDATED: "org.alfresco.documentlibrary.files-updated", - - /** - * value: org.alfresco.documentlibrary.files-deleted - * @const - */ - DOCUMENTLIBRARY_FILES_DELETED: "org.alfresco.documentlibrary.files-deleted", - - /** - * value: org.alfresco.documentlibrary.file-added - * @const - */ - DOCUMENTLIBRARY_FILE_ADDED: "org.alfresco.documentlibrary.file-added", - - /** - * value: org.alfresco.documentlibrary.file-created - * @const - */ - DOCUMENTLIBRARY_FILE_CREATED: "org.alfresco.documentlibrary.file-created", - - /** - * value: org.alfresco.documentlibrary.file-deleted - * @const - */ - DOCUMENTLIBRARY_FILE_DELETED: "org.alfresco.documentlibrary.file-deleted", - - /** - * value: org.alfresco.documentlibrary.file-downloaded - * @const - */ - DOCUMENTLIBRARY_FILE_DOWNLOADED: "org.alfresco.documentlibrary.file-downloaded", - - /** - * value: org.alfresco.documentlibrary.file-liked - * @const - */ - DOCUMENTLIBRARY_FILE_LIKED: "org.alfresco.documentlibrary.file-liked", - - /** - * value: org.alfresco.documentlibrary.file-previewed - * @const - */ - DOCUMENTLIBRARY_FILE_PREVIEWED: "org.alfresco.documentlibrary.file-previewed", - - /** - * value: org.alfresco.documentlibrary.inline-edit - * @const - */ - DOCUMENTLIBRARY_INLINE_EDIT: "org.alfresco.documentlibrary.inline-edit", - - /** - * value: org.alfresco.documentlibrary.folder-liked - * @const - */ - DOCUMENTLIBRARY_FOLDER_LIKED: "org.alfresco.documentlibrary.folder-liked", - - /** - * value: org.alfresco.site.user-joined - * @const - */ - SITE_USER_JOINED: "org.alfresco.site.user-joined", - - /** - * value: org.alfresco.site.user-left - * @const - */ - SITE_USER_LEFT: "org.alfresco.site.user-left", - - /** - * value: org.alfresco.site.user-role-changed - * @const - */ - SITE_USER_ROLE_CHANGED: "org.alfresco.site.user-role-changed", - - /** - * value: org.alfresco.site.group-added - * @const - */ - SITE_GROUP_ADDED: "org.alfresco.site.group-added", - - /** - * value: org.alfresco.site.group-removed - * @const - */ - SITE_GROUP_REMOVED: "org.alfresco.site.group-removed", - - /** - * value: org.alfresco.site.group-role-changed - * @const - */ - SITE_GROUP_ROLE_CHANGED: "org.alfresco.site.group-role-changed", - - /** - * value: org.alfresco.discussions.reply-created - * @const - */ - DISCUSSIONS_REPLY_CREATED: "org.alfresco.discussions.reply-created", - - /** - * value: org.alfresco.subscriptions.followed - * @const - */ - SUBSCRIPTIONS_FOLLOWED: "org.alfresco.subscriptions.followed", - - /** - * value: org.alfresco.subscriptions.subscribed - * @const - */ - SUBSCRIPTIONS_SUBSCRIBED: "org.alfresco.subscriptions.subscribed" - }; - - return exports; - })); - - -/***/ }, -/* 6 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(Buffer) {(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(11)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('superagent')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.ApiClient = factory(root.superagent); - } - }(this, function(superagent) { - 'use strict'; - - /** - * @module ApiClient - * @version 0.1.0 - */ - - /** - * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an - * application to use this class directly - the *Api and model classes provide the public API for the service. The - * contents of this file should be regarded as internal but are documented for completeness. - * @alias module:ApiClient - * @class - */ - var exports = function() { - /** - * The base URL against which to resolve every API call's (relative) path. - * @type {String} - * @default https://localhost/alfresco/api/-default-/public/alfresco/versions/1 - */ - this.basePath = 'https://localhost/alfresco/api/-default-/public/alfresco/versions/1'.replace(/\/+$/, ''); - - /** - * The authentication methods to be included for all API calls. - * @type {Array.} - */ - this.authentications = { - 'basicAuth': {type: 'basic'} - }; - /** - * The default HTTP headers to be included for all API calls. - * @type {Array.} - * @default {} - */ - this.defaultHeaders = {}; - - /** - * The default HTTP timeout for all API calls. - * @type {Number} - * @default 60000 - */ - this.timeout = 60000; - }; - - /** - * Returns a string representation for an actual parameter. - * @param param The actual parameter. - * @returns {String} The string representation of param. - */ - exports.prototype.paramToString = function(param) { - if (param == undefined || param == null) { - return ''; - } - if (param instanceof Date) { - return param.toJSON(); - } - return param.toString(); - }; - - /** - * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values. - * NOTE: query parameters are not handled here. - * @param {String} path The path to append to the base URL. - * @param {Object} pathParams The parameter values to append. - * @returns {String} The encoded path with parameter values substituted. - */ - exports.prototype.buildUrl = function(path, pathParams) { - if (!path.match(/^\//)) { - path = '/' + path; - } - var url = this.basePath + path; - var _this = this; - url = url.replace(/\{([\w-]+)\}/g, function(fullMatch, key) { - var value; - if (pathParams.hasOwnProperty(key)) { - value = _this.paramToString(pathParams[key]); - } else { - value = fullMatch; - } - return encodeURIComponent(value); - }); - return url; - }; - - /** - * Checks whether the given content type represents JSON.
- * JSON content type examples:
- *
    - *
  • application/json
  • - *
  • application/json; charset=UTF8
  • - *
  • APPLICATION/JSON
  • - *
- * @param {String} contentType The MIME content type to check. - * @returns {Boolean} true if contentType represents JSON, otherwise false. - */ - exports.prototype.isJsonMime = function(contentType) { - return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i)); - }; - - /** - * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first. - * @param {Array.} contentTypes - * @returns {String} The chosen content type, preferring JSON. - */ - exports.prototype.jsonPreferredMime = function(contentTypes) { - for (var i = 0; i < contentTypes.length; i++) { - if (this.isJsonMime(contentTypes[i])) { - return contentTypes[i]; - } - } - return contentTypes[0]; - }; - - /** - * Checks whether the given parameter value represents file-like content. - * @param param The parameter to check. - * @returns {Boolean} true if param represents a file. - */ - exports.prototype.isFileParam = function(param) { - // fs.ReadStream in Node.js (but not in runtime like browserify) - if (typeof window === 'undefined' && - "function" === 'function' && - __webpack_require__(3) && - param instanceof __webpack_require__(3).ReadStream) { - return true; - } - // Buffer in Node.js - if (typeof Buffer === 'function' && param instanceof Buffer) { - return true; - } - // Blob in browser - if (typeof Blob === 'function' && param instanceof Blob) { - return true; - } - // File in browser (it seems File object is also instance of Blob, but keep this for safe) - if (typeof File === 'function' && param instanceof File) { - return true; - } - // Safari fix - if (typeof File === 'object' && param instanceof File) { - return true; - } - return false; - }; - - /** - * Normalizes parameter values: - *
    - *
  • remove nils
  • - *
  • keep files and arrays
  • - *
  • format to string with `paramToString` for other cases
  • - *
- * @param {Object.} params The parameters as object properties. - * @returns {Object.} normalized parameters. - */ - exports.prototype.normalizeParams = function(params) { - var newParams = {}; - for (var key in params) { - if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) { - var value = params[key]; - if (this.isFileParam(value) || Array.isArray(value)) { - newParams[key] = value; - } else { - newParams[key] = this.paramToString(value); - } - } - } - return newParams; - }; - - /** - * Enumeration of collection format separator strategies. - * @enum {String} - * @readonly - */ - exports.CollectionFormatEnum = { - /** - * Comma-separated values. Value: csv - * @const - */ - CSV: ',', - /** - * Space-separated values. Value: ssv - * @const - */ - SSV: ' ', - /** - * Tab-separated values. Value: tsv - * @const - */ - TSV: '\t', - /** - * Pipe(|)-separated values. Value: pipes - * @const - */ - PIPES: '|', - /** - * Native array. Value: multi - * @const - */ - MULTI: 'multi' - }; - - /** - * Builds a string representation of an array-type actual parameter, according to the given collection format. - * @param {Array} param An array parameter. - * @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy. - * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns - * param as is if collectionFormat is multi. - */ - exports.prototype.buildCollectionParam = function buildCollectionParam(param, collectionFormat) { - if (param == null) { - return null; - } - switch (collectionFormat) { - case 'csv': - return param.map(this.paramToString).join(','); - case 'ssv': - return param.map(this.paramToString).join(' '); - case 'tsv': - return param.map(this.paramToString).join('\t'); - case 'pipes': - return param.map(this.paramToString).join('|'); - case 'multi': - // return the array directly as SuperAgent will handle it as expected - return param.map(this.paramToString); - default: - throw new Error('Unknown collection format: ' + collectionFormat); - } - }; - - /** - * Applies authentication headers to the request. - * @param {Object} request The request object created by a superagent() call. - * @param {Array.} authNames An array of authentication method names. - */ - exports.prototype.applyAuthToRequest = function(request, authNames) { - var _this = this; - authNames.forEach(function(authName) { - var auth = _this.authentications[authName]; - switch (auth.type) { - case 'basic': - if (auth.username || auth.password) { - request.auth(auth.username || '', auth.password || ''); - } - break; - case 'apiKey': - if (auth.apiKey) { - var data = {}; - if (auth.apiKeyPrefix) { - data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey; - } else { - data[auth.name] = auth.apiKey; - } - if (auth['in'] === 'header') { - request.set(data); - } else { - request.query(data); - } - } - break; - case 'oauth2': - if (auth.accessToken) { - request.set({'Authorization': 'Bearer ' + auth.accessToken}); - } - break; - default: - throw new Error('Unknown authentication type: ' + auth.type); - } - }); - }; - - /** - * Deserializes an HTTP response body into a value of the specified type. - * @param {Object} response A SuperAgent response object. - * @param {(String|Array.|Object.|Function)} returnType The type to return. Pass a string for simple types - * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To - * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: - * all properties on data will be converted to this type. - * @returns A value of the specified type. - */ - exports.prototype.deserialize = function deserialize(response, returnType) { - if (response == null || returnType == null) { - return null; - } - // Rely on SuperAgent for parsing response body. - // See http://visionmedia.github.io/superagent/#parsing-response-bodies - var data = response.body; - if (data == null) { - // SuperAgent does not always produce a body; use the unparsed response as a fallback - data = response.text; - } - return exports.convertToType(data, returnType); - }; - - /** - * Invokes the REST service using the supplied settings and parameters. - * @param {String} path The base URL to invoke. - * @param {String} httpMethod The HTTP method to use. - * @param {Object.} pathParams A map of path parameters and their values. - * @param {Object.} queryParams A map of query parameters and their values. - * @param {Object.} headerParams A map of header parameters and their values. - * @param {Object.} formParams A map of form parameters and their values. - * @param {Object} bodyParam The value to pass as the request body. - * @param {Array.} authNames An array of authentication type names. - * @param {Array.} contentTypes An array of request MIME types. - * @param {Array.} accepts An array of acceptable response MIME types. - * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the - * constructor for a complex type. * @returns {Promise} A Promise object. - */ - exports.prototype.callApi = function callApi(path, httpMethod, pathParams, - queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, - returnType) { - - var _this = this; - var url = this.buildUrl(path, pathParams); - var request = superagent(httpMethod, url); - - // apply authentications - this.applyAuthToRequest(request, authNames); - - // set query parameters - request.query(this.normalizeParams(queryParams)); - - // set header parameters - request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)); - - // set request timeout - request.timeout(this.timeout); - - var contentType = this.jsonPreferredMime(contentTypes); - if (contentType) { - request.type(contentType); - } else if (!request.header['Content-Type']) { - request.type('application/json'); - } - - if (contentType === 'application/x-www-form-urlencoded') { - request.send(this.normalizeParams(formParams)); - } else if (contentType == 'multipart/form-data') { - var _formParams = this.normalizeParams(formParams); - for (var key in _formParams) { - if (_formParams.hasOwnProperty(key)) { - if (this.isFileParam(_formParams[key])) { - // file field - request.attach(key, _formParams[key]); - } else { - request.field(key, _formParams[key]); - } - } - } - } else if (bodyParam) { - request.send(bodyParam); - } - - var accept = this.jsonPreferredMime(accepts); - if (accept) { - request.accept(accept); - } - - return new Promise(function(resolve, reject) { - request.end(function(error, response) { - if (error) { - if(response && response.text){ - reject({error: error, message :response.text }); - } else { - reject({error: error }); - } - } else { - var data = _this.deserialize(response, returnType); - resolve(data); - } - }); - }); - }; - - /** - * Parses an ISO-8601 string representation of a date value. - * @param {String} str The date value as a string. - * @returns {Date} The parsed date object. - */ - exports.parseDate = function(str) { - // TODO: review when Safari 10 is released - // return new Date(str.replace(/T/i, ' ')); - - // Compatible with Safari 9.1.2 - var a = str.split(/[^0-9]/).map(function(s) { return parseInt(s, 10) }); - return new Date(a[0], a[1]-1 || 0, a[2] || 1, a[3] || 0, a[4] || 0, a[5] || 0, a[6] || 0); - }; - - /** - * Converts a value to the specified type. - * @param {(String|Object)} data The data to convert, as a string or object. - * @param {(String|Array.|Object.|Function)} type The type to return. Pass a string for simple types - * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To - * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: - * all properties on data will be converted to this type. - * @returns An instance of the specified type. - */ - exports.convertToType = function(data, type) { - switch (type) { - case 'Boolean': - return Boolean(data); - case 'Integer': - return parseInt(data, 10); - case 'Number': - return parseFloat(data); - case 'String': - return String(data); - case 'Date': - return data ? this.parseDate(String(data)) : null; - default: - if (type === Object) { - // generic object, return directly - return data; - } else if (typeof type === 'function') { - // for model type like: User - return type.constructFromObject(data); - } else if (Array.isArray(type)) { - // for array type like: ['String'] - var itemType = type[0]; - if(data){ - return data.map(function(item) { - return exports.convertToType(item, itemType); - }); - }else{ - return null; - } - - } else if (typeof type === 'object') { - // for plain object type like: {'String': 'Integer'} - var keyType, valueType; - for (var k in type) { - if (type.hasOwnProperty(k)) { - keyType = k; - valueType = type[k]; - break; - } - } - var result = {}; - for (var k in data) { - if (data.hasOwnProperty(k)) { - var key = exports.convertToType(k, keyType); - var value = exports.convertToType(data[k], valueType); - result[key] = value; - } - } - return result; - } else { - // for unknown type, return the data directly - return data; - } - } - }; - - /** - * The default API client implementation. - * @type {module:ApiClient} - */ - exports.instance = new exports(); - - return exports; - })); - - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7).Buffer)) - -/***/ }, -/* 7 */ -/***/ function(module, exports, __webpack_require__) { - - /* WEBPACK VAR INJECTION */(function(Buffer, global) {/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ - /* eslint-disable no-proto */ - - 'use strict' - - var base64 = __webpack_require__(8) - var ieee754 = __webpack_require__(9) - var isArray = __webpack_require__(10) - - exports.Buffer = Buffer - exports.SlowBuffer = SlowBuffer - exports.INSPECT_MAX_BYTES = 50 - - /** - * If `Buffer.TYPED_ARRAY_SUPPORT`: - * === true Use Uint8Array implementation (fastest) - * === false Use Object implementation (most compatible, even IE6) - * - * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+, - * Opera 11.6+, iOS 4.2+. - * - * Due to various browser bugs, sometimes the Object implementation will be used even - * when the browser supports typed arrays. - * - * Note: - * - * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances, - * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438. - * - * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function. - * - * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of - * incorrect length in some situations. - - * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they - * get the Object implementation, which is slower but behaves correctly. - */ - Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined - ? global.TYPED_ARRAY_SUPPORT - : typedArraySupport() - - /* - * Export kMaxLength after typed array support is determined. - */ - exports.kMaxLength = kMaxLength() - - function typedArraySupport () { - try { - var arr = new Uint8Array(1) - arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }} - return arr.foo() === 42 && // typed array instances can be augmented - typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray` - arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray` - } catch (e) { - return false - } - } - - function kMaxLength () { - return Buffer.TYPED_ARRAY_SUPPORT - ? 0x7fffffff - : 0x3fffffff - } - - function createBuffer (that, length) { - if (kMaxLength() < length) { - throw new RangeError('Invalid typed array length') - } - if (Buffer.TYPED_ARRAY_SUPPORT) { - // Return an augmented `Uint8Array` instance, for best performance - that = new Uint8Array(length) - that.__proto__ = Buffer.prototype - } else { - // Fallback: Return an object instance of the Buffer class - if (that === null) { - that = new Buffer(length) - } - that.length = length - } - - return that - } - - /** - * The Buffer constructor returns instances of `Uint8Array` that have their - * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of - * `Uint8Array`, so the returned instances will have all the node `Buffer` methods - * and the `Uint8Array` methods. Square bracket notation works as expected -- it - * returns a single octet. - * - * The `Uint8Array` prototype remains unmodified. - */ - - function Buffer (arg, encodingOrOffset, length) { - if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) { - return new Buffer(arg, encodingOrOffset, length) - } - - // Common case. - if (typeof arg === 'number') { - if (typeof encodingOrOffset === 'string') { - throw new Error( - 'If encoding is specified then the first argument must be a string' - ) - } - return allocUnsafe(this, arg) - } - return from(this, arg, encodingOrOffset, length) - } - - Buffer.poolSize = 8192 // not used by this implementation - - // TODO: Legacy, not needed anymore. Remove in next major version. - Buffer._augment = function (arr) { - arr.__proto__ = Buffer.prototype - return arr - } - - function from (that, value, encodingOrOffset, length) { - if (typeof value === 'number') { - throw new TypeError('"value" argument must not be a number') - } - - if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) { - return fromArrayBuffer(that, value, encodingOrOffset, length) - } - - if (typeof value === 'string') { - return fromString(that, value, encodingOrOffset) - } - - return fromObject(that, value) - } - - /** - * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError - * if value is a number. - * Buffer.from(str[, encoding]) - * Buffer.from(array) - * Buffer.from(buffer) - * Buffer.from(arrayBuffer[, byteOffset[, length]]) - **/ - Buffer.from = function (value, encodingOrOffset, length) { - return from(null, value, encodingOrOffset, length) - } - - if (Buffer.TYPED_ARRAY_SUPPORT) { - Buffer.prototype.__proto__ = Uint8Array.prototype - Buffer.__proto__ = Uint8Array - if (typeof Symbol !== 'undefined' && Symbol.species && - Buffer[Symbol.species] === Buffer) { - // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97 - Object.defineProperty(Buffer, Symbol.species, { - value: null, - configurable: true - }) - } - } - - function assertSize (size) { - if (typeof size !== 'number') { - throw new TypeError('"size" argument must be a number') - } else if (size < 0) { - throw new RangeError('"size" argument must not be negative') - } - } - - function alloc (that, size, fill, encoding) { - assertSize(size) - if (size <= 0) { - return createBuffer(that, size) - } - if (fill !== undefined) { - // Only pay attention to encoding if it's a string. This - // prevents accidentally sending in a number that would - // be interpretted as a start offset. - return typeof encoding === 'string' - ? createBuffer(that, size).fill(fill, encoding) - : createBuffer(that, size).fill(fill) - } - return createBuffer(that, size) - } - - /** - * Creates a new filled Buffer instance. - * alloc(size[, fill[, encoding]]) - **/ - Buffer.alloc = function (size, fill, encoding) { - return alloc(null, size, fill, encoding) - } - - function allocUnsafe (that, size) { - assertSize(size) - that = createBuffer(that, size < 0 ? 0 : checked(size) | 0) - if (!Buffer.TYPED_ARRAY_SUPPORT) { - for (var i = 0; i < size; ++i) { - that[i] = 0 - } - } - return that - } - - /** - * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance. - * */ - Buffer.allocUnsafe = function (size) { - return allocUnsafe(null, size) - } - /** - * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance. - */ - Buffer.allocUnsafeSlow = function (size) { - return allocUnsafe(null, size) - } - - function fromString (that, string, encoding) { - if (typeof encoding !== 'string' || encoding === '') { - encoding = 'utf8' - } - - if (!Buffer.isEncoding(encoding)) { - throw new TypeError('"encoding" must be a valid string encoding') - } - - var length = byteLength(string, encoding) | 0 - that = createBuffer(that, length) - - var actual = that.write(string, encoding) - - if (actual !== length) { - // Writing a hex string, for example, that contains invalid characters will - // cause everything after the first invalid character to be ignored. (e.g. - // 'abxxcd' will be treated as 'ab') - that = that.slice(0, actual) - } - - return that - } - - function fromArrayLike (that, array) { - var length = array.length < 0 ? 0 : checked(array.length) | 0 - that = createBuffer(that, length) - for (var i = 0; i < length; i += 1) { - that[i] = array[i] & 255 - } - return that - } - - function fromArrayBuffer (that, array, byteOffset, length) { - array.byteLength // this throws if `array` is not a valid ArrayBuffer - - if (byteOffset < 0 || array.byteLength < byteOffset) { - throw new RangeError('\'offset\' is out of bounds') - } - - if (array.byteLength < byteOffset + (length || 0)) { - throw new RangeError('\'length\' is out of bounds') - } - - if (byteOffset === undefined && length === undefined) { - array = new Uint8Array(array) - } else if (length === undefined) { - array = new Uint8Array(array, byteOffset) - } else { - array = new Uint8Array(array, byteOffset, length) - } - - if (Buffer.TYPED_ARRAY_SUPPORT) { - // Return an augmented `Uint8Array` instance, for best performance - that = array - that.__proto__ = Buffer.prototype - } else { - // Fallback: Return an object instance of the Buffer class - that = fromArrayLike(that, array) - } - return that - } - - function fromObject (that, obj) { - if (Buffer.isBuffer(obj)) { - var len = checked(obj.length) | 0 - that = createBuffer(that, len) - - if (that.length === 0) { - return that - } - - obj.copy(that, 0, 0, len) - return that - } - - if (obj) { - if ((typeof ArrayBuffer !== 'undefined' && - obj.buffer instanceof ArrayBuffer) || 'length' in obj) { - if (typeof obj.length !== 'number' || isnan(obj.length)) { - return createBuffer(that, 0) - } - return fromArrayLike(that, obj) - } - - if (obj.type === 'Buffer' && isArray(obj.data)) { - return fromArrayLike(that, obj.data) - } - } - - throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.') - } - - function checked (length) { - // Note: cannot use `length < kMaxLength()` here because that fails when - // length is NaN (which is otherwise coerced to zero.) - if (length >= kMaxLength()) { - throw new RangeError('Attempt to allocate Buffer larger than maximum ' + - 'size: 0x' + kMaxLength().toString(16) + ' bytes') - } - return length | 0 - } - - function SlowBuffer (length) { - if (+length != length) { // eslint-disable-line eqeqeq - length = 0 - } - return Buffer.alloc(+length) - } - - Buffer.isBuffer = function isBuffer (b) { - return !!(b != null && b._isBuffer) - } - - Buffer.compare = function compare (a, b) { - if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) { - throw new TypeError('Arguments must be Buffers') - } - - if (a === b) return 0 - - var x = a.length - var y = b.length - - for (var i = 0, len = Math.min(x, y); i < len; ++i) { - if (a[i] !== b[i]) { - x = a[i] - y = b[i] - break - } - } - - if (x < y) return -1 - if (y < x) return 1 - return 0 - } - - Buffer.isEncoding = function isEncoding (encoding) { - switch (String(encoding).toLowerCase()) { - case 'hex': - case 'utf8': - case 'utf-8': - case 'ascii': - case 'latin1': - case 'binary': - case 'base64': - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return true - default: - return false - } - } - - Buffer.concat = function concat (list, length) { - if (!isArray(list)) { - throw new TypeError('"list" argument must be an Array of Buffers') - } - - if (list.length === 0) { - return Buffer.alloc(0) - } - - var i - if (length === undefined) { - length = 0 - for (i = 0; i < list.length; ++i) { - length += list[i].length - } - } - - var buffer = Buffer.allocUnsafe(length) - var pos = 0 - for (i = 0; i < list.length; ++i) { - var buf = list[i] - if (!Buffer.isBuffer(buf)) { - throw new TypeError('"list" argument must be an Array of Buffers') - } - buf.copy(buffer, pos) - pos += buf.length - } - return buffer - } - - function byteLength (string, encoding) { - if (Buffer.isBuffer(string)) { - return string.length - } - if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' && - (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) { - return string.byteLength - } - if (typeof string !== 'string') { - string = '' + string - } - - var len = string.length - if (len === 0) return 0 - - // Use a for loop to avoid recursion - var loweredCase = false - for (;;) { - switch (encoding) { - case 'ascii': - case 'latin1': - case 'binary': - return len - case 'utf8': - case 'utf-8': - case undefined: - return utf8ToBytes(string).length - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return len * 2 - case 'hex': - return len >>> 1 - case 'base64': - return base64ToBytes(string).length - default: - if (loweredCase) return utf8ToBytes(string).length // assume utf8 - encoding = ('' + encoding).toLowerCase() - loweredCase = true - } - } - } - Buffer.byteLength = byteLength - - function slowToString (encoding, start, end) { - var loweredCase = false - - // No need to verify that "this.length <= MAX_UINT32" since it's a read-only - // property of a typed array. - - // This behaves neither like String nor Uint8Array in that we set start/end - // to their upper/lower bounds if the value passed is out of range. - // undefined is handled specially as per ECMA-262 6th Edition, - // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization. - if (start === undefined || start < 0) { - start = 0 - } - // Return early if start > this.length. Done here to prevent potential uint32 - // coercion fail below. - if (start > this.length) { - return '' - } - - if (end === undefined || end > this.length) { - end = this.length - } - - if (end <= 0) { - return '' - } - - // Force coersion to uint32. This will also coerce falsey/NaN values to 0. - end >>>= 0 - start >>>= 0 - - if (end <= start) { - return '' - } - - if (!encoding) encoding = 'utf8' - - while (true) { - switch (encoding) { - case 'hex': - return hexSlice(this, start, end) - - case 'utf8': - case 'utf-8': - return utf8Slice(this, start, end) - - case 'ascii': - return asciiSlice(this, start, end) - - case 'latin1': - case 'binary': - return latin1Slice(this, start, end) - - case 'base64': - return base64Slice(this, start, end) - - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return utf16leSlice(this, start, end) - - default: - if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding) - encoding = (encoding + '').toLowerCase() - loweredCase = true - } - } - } - - // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect - // Buffer instances. - Buffer.prototype._isBuffer = true - - function swap (b, n, m) { - var i = b[n] - b[n] = b[m] - b[m] = i - } - - Buffer.prototype.swap16 = function swap16 () { - var len = this.length - if (len % 2 !== 0) { - throw new RangeError('Buffer size must be a multiple of 16-bits') - } - for (var i = 0; i < len; i += 2) { - swap(this, i, i + 1) - } - return this - } - - Buffer.prototype.swap32 = function swap32 () { - var len = this.length - if (len % 4 !== 0) { - throw new RangeError('Buffer size must be a multiple of 32-bits') - } - for (var i = 0; i < len; i += 4) { - swap(this, i, i + 3) - swap(this, i + 1, i + 2) - } - return this - } - - Buffer.prototype.swap64 = function swap64 () { - var len = this.length - if (len % 8 !== 0) { - throw new RangeError('Buffer size must be a multiple of 64-bits') - } - for (var i = 0; i < len; i += 8) { - swap(this, i, i + 7) - swap(this, i + 1, i + 6) - swap(this, i + 2, i + 5) - swap(this, i + 3, i + 4) - } - return this - } - - Buffer.prototype.toString = function toString () { - var length = this.length | 0 - if (length === 0) return '' - if (arguments.length === 0) return utf8Slice(this, 0, length) - return slowToString.apply(this, arguments) - } - - Buffer.prototype.equals = function equals (b) { - if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer') - if (this === b) return true - return Buffer.compare(this, b) === 0 - } - - Buffer.prototype.inspect = function inspect () { - var str = '' - var max = exports.INSPECT_MAX_BYTES - if (this.length > 0) { - str = this.toString('hex', 0, max).match(/.{2}/g).join(' ') - if (this.length > max) str += ' ... ' - } - return '' - } - - Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) { - if (!Buffer.isBuffer(target)) { - throw new TypeError('Argument must be a Buffer') - } - - if (start === undefined) { - start = 0 - } - if (end === undefined) { - end = target ? target.length : 0 - } - if (thisStart === undefined) { - thisStart = 0 - } - if (thisEnd === undefined) { - thisEnd = this.length - } - - if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) { - throw new RangeError('out of range index') - } - - if (thisStart >= thisEnd && start >= end) { - return 0 - } - if (thisStart >= thisEnd) { - return -1 - } - if (start >= end) { - return 1 - } - - start >>>= 0 - end >>>= 0 - thisStart >>>= 0 - thisEnd >>>= 0 - - if (this === target) return 0 - - var x = thisEnd - thisStart - var y = end - start - var len = Math.min(x, y) - - var thisCopy = this.slice(thisStart, thisEnd) - var targetCopy = target.slice(start, end) - - for (var i = 0; i < len; ++i) { - if (thisCopy[i] !== targetCopy[i]) { - x = thisCopy[i] - y = targetCopy[i] - break - } - } - - if (x < y) return -1 - if (y < x) return 1 - return 0 - } - - // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`, - // OR the last index of `val` in `buffer` at offset <= `byteOffset`. - // - // Arguments: - // - buffer - a Buffer to search - // - val - a string, Buffer, or number - // - byteOffset - an index into `buffer`; will be clamped to an int32 - // - encoding - an optional encoding, relevant is val is a string - // - dir - true for indexOf, false for lastIndexOf - function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) { - // Empty buffer means no match - if (buffer.length === 0) return -1 - - // Normalize byteOffset - if (typeof byteOffset === 'string') { - encoding = byteOffset - byteOffset = 0 - } else if (byteOffset > 0x7fffffff) { - byteOffset = 0x7fffffff - } else if (byteOffset < -0x80000000) { - byteOffset = -0x80000000 - } - byteOffset = +byteOffset // Coerce to Number. - if (isNaN(byteOffset)) { - // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer - byteOffset = dir ? 0 : (buffer.length - 1) - } - - // Normalize byteOffset: negative offsets start from the end of the buffer - if (byteOffset < 0) byteOffset = buffer.length + byteOffset - if (byteOffset >= buffer.length) { - if (dir) return -1 - else byteOffset = buffer.length - 1 - } else if (byteOffset < 0) { - if (dir) byteOffset = 0 - else return -1 - } - - // Normalize val - if (typeof val === 'string') { - val = Buffer.from(val, encoding) - } - - // Finally, search either indexOf (if dir is true) or lastIndexOf - if (Buffer.isBuffer(val)) { - // Special case: looking for empty string/buffer always fails - if (val.length === 0) { - return -1 - } - return arrayIndexOf(buffer, val, byteOffset, encoding, dir) - } else if (typeof val === 'number') { - val = val & 0xFF // Search for a byte value [0-255] - if (Buffer.TYPED_ARRAY_SUPPORT && - typeof Uint8Array.prototype.indexOf === 'function') { - if (dir) { - return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset) - } else { - return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset) - } - } - return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir) - } - - throw new TypeError('val must be string, number or Buffer') - } - - function arrayIndexOf (arr, val, byteOffset, encoding, dir) { - var indexSize = 1 - var arrLength = arr.length - var valLength = val.length - - if (encoding !== undefined) { - encoding = String(encoding).toLowerCase() - if (encoding === 'ucs2' || encoding === 'ucs-2' || - encoding === 'utf16le' || encoding === 'utf-16le') { - if (arr.length < 2 || val.length < 2) { - return -1 - } - indexSize = 2 - arrLength /= 2 - valLength /= 2 - byteOffset /= 2 - } - } - - function read (buf, i) { - if (indexSize === 1) { - return buf[i] - } else { - return buf.readUInt16BE(i * indexSize) - } - } - - var i - if (dir) { - var foundIndex = -1 - for (i = byteOffset; i < arrLength; i++) { - if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) { - if (foundIndex === -1) foundIndex = i - if (i - foundIndex + 1 === valLength) return foundIndex * indexSize - } else { - if (foundIndex !== -1) i -= i - foundIndex - foundIndex = -1 - } - } - } else { - if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength - for (i = byteOffset; i >= 0; i--) { - var found = true - for (var j = 0; j < valLength; j++) { - if (read(arr, i + j) !== read(val, j)) { - found = false - break - } - } - if (found) return i - } - } - - return -1 - } - - Buffer.prototype.includes = function includes (val, byteOffset, encoding) { - return this.indexOf(val, byteOffset, encoding) !== -1 - } - - Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) { - return bidirectionalIndexOf(this, val, byteOffset, encoding, true) - } - - Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) { - return bidirectionalIndexOf(this, val, byteOffset, encoding, false) - } - - function hexWrite (buf, string, offset, length) { - offset = Number(offset) || 0 - var remaining = buf.length - offset - if (!length) { - length = remaining - } else { - length = Number(length) - if (length > remaining) { - length = remaining - } - } - - // must be an even number of digits - var strLen = string.length - if (strLen % 2 !== 0) throw new TypeError('Invalid hex string') - - if (length > strLen / 2) { - length = strLen / 2 - } - for (var i = 0; i < length; ++i) { - var parsed = parseInt(string.substr(i * 2, 2), 16) - if (isNaN(parsed)) return i - buf[offset + i] = parsed - } - return i - } - - function utf8Write (buf, string, offset, length) { - return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length) - } - - function asciiWrite (buf, string, offset, length) { - return blitBuffer(asciiToBytes(string), buf, offset, length) - } - - function latin1Write (buf, string, offset, length) { - return asciiWrite(buf, string, offset, length) - } - - function base64Write (buf, string, offset, length) { - return blitBuffer(base64ToBytes(string), buf, offset, length) - } - - function ucs2Write (buf, string, offset, length) { - return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length) - } - - Buffer.prototype.write = function write (string, offset, length, encoding) { - // Buffer#write(string) - if (offset === undefined) { - encoding = 'utf8' - length = this.length - offset = 0 - // Buffer#write(string, encoding) - } else if (length === undefined && typeof offset === 'string') { - encoding = offset - length = this.length - offset = 0 - // Buffer#write(string, offset[, length][, encoding]) - } else if (isFinite(offset)) { - offset = offset | 0 - if (isFinite(length)) { - length = length | 0 - if (encoding === undefined) encoding = 'utf8' - } else { - encoding = length - length = undefined - } - // legacy write(string, encoding, offset, length) - remove in v0.13 - } else { - throw new Error( - 'Buffer.write(string, encoding, offset[, length]) is no longer supported' - ) - } - - var remaining = this.length - offset - if (length === undefined || length > remaining) length = remaining - - if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) { - throw new RangeError('Attempt to write outside buffer bounds') - } - - if (!encoding) encoding = 'utf8' - - var loweredCase = false - for (;;) { - switch (encoding) { - case 'hex': - return hexWrite(this, string, offset, length) - - case 'utf8': - case 'utf-8': - return utf8Write(this, string, offset, length) - - case 'ascii': - return asciiWrite(this, string, offset, length) - - case 'latin1': - case 'binary': - return latin1Write(this, string, offset, length) - - case 'base64': - // Warning: maxLength not taken into account in base64Write - return base64Write(this, string, offset, length) - - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return ucs2Write(this, string, offset, length) - - default: - if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding) - encoding = ('' + encoding).toLowerCase() - loweredCase = true - } - } - } - - Buffer.prototype.toJSON = function toJSON () { - return { - type: 'Buffer', - data: Array.prototype.slice.call(this._arr || this, 0) - } - } - - function base64Slice (buf, start, end) { - if (start === 0 && end === buf.length) { - return base64.fromByteArray(buf) - } else { - return base64.fromByteArray(buf.slice(start, end)) - } - } - - function utf8Slice (buf, start, end) { - end = Math.min(buf.length, end) - var res = [] - - var i = start - while (i < end) { - var firstByte = buf[i] - var codePoint = null - var bytesPerSequence = (firstByte > 0xEF) ? 4 - : (firstByte > 0xDF) ? 3 - : (firstByte > 0xBF) ? 2 - : 1 - - if (i + bytesPerSequence <= end) { - var secondByte, thirdByte, fourthByte, tempCodePoint - - switch (bytesPerSequence) { - case 1: - if (firstByte < 0x80) { - codePoint = firstByte - } - break - case 2: - secondByte = buf[i + 1] - if ((secondByte & 0xC0) === 0x80) { - tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F) - if (tempCodePoint > 0x7F) { - codePoint = tempCodePoint - } - } - break - case 3: - secondByte = buf[i + 1] - thirdByte = buf[i + 2] - if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) { - tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F) - if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) { - codePoint = tempCodePoint - } - } - break - case 4: - secondByte = buf[i + 1] - thirdByte = buf[i + 2] - fourthByte = buf[i + 3] - if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) { - tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F) - if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) { - codePoint = tempCodePoint - } - } - } - } - - if (codePoint === null) { - // we did not generate a valid codePoint so insert a - // replacement char (U+FFFD) and advance only 1 byte - codePoint = 0xFFFD - bytesPerSequence = 1 - } else if (codePoint > 0xFFFF) { - // encode to utf16 (surrogate pair dance) - codePoint -= 0x10000 - res.push(codePoint >>> 10 & 0x3FF | 0xD800) - codePoint = 0xDC00 | codePoint & 0x3FF - } - - res.push(codePoint) - i += bytesPerSequence - } - - return decodeCodePointsArray(res) - } - - // Based on http://stackoverflow.com/a/22747272/680742, the browser with - // the lowest limit is Chrome, with 0x10000 args. - // We go 1 magnitude less, for safety - var MAX_ARGUMENTS_LENGTH = 0x1000 - - function decodeCodePointsArray (codePoints) { - var len = codePoints.length - if (len <= MAX_ARGUMENTS_LENGTH) { - return String.fromCharCode.apply(String, codePoints) // avoid extra slice() - } - - // Decode in chunks to avoid "call stack size exceeded". - var res = '' - var i = 0 - while (i < len) { - res += String.fromCharCode.apply( - String, - codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH) - ) - } - return res - } - - function asciiSlice (buf, start, end) { - var ret = '' - end = Math.min(buf.length, end) - - for (var i = start; i < end; ++i) { - ret += String.fromCharCode(buf[i] & 0x7F) - } - return ret - } - - function latin1Slice (buf, start, end) { - var ret = '' - end = Math.min(buf.length, end) - - for (var i = start; i < end; ++i) { - ret += String.fromCharCode(buf[i]) - } - return ret - } - - function hexSlice (buf, start, end) { - var len = buf.length - - if (!start || start < 0) start = 0 - if (!end || end < 0 || end > len) end = len - - var out = '' - for (var i = start; i < end; ++i) { - out += toHex(buf[i]) - } - return out - } - - function utf16leSlice (buf, start, end) { - var bytes = buf.slice(start, end) - var res = '' - for (var i = 0; i < bytes.length; i += 2) { - res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256) - } - return res - } - - Buffer.prototype.slice = function slice (start, end) { - var len = this.length - start = ~~start - end = end === undefined ? len : ~~end - - if (start < 0) { - start += len - if (start < 0) start = 0 - } else if (start > len) { - start = len - } - - if (end < 0) { - end += len - if (end < 0) end = 0 - } else if (end > len) { - end = len - } - - if (end < start) end = start - - var newBuf - if (Buffer.TYPED_ARRAY_SUPPORT) { - newBuf = this.subarray(start, end) - newBuf.__proto__ = Buffer.prototype - } else { - var sliceLen = end - start - newBuf = new Buffer(sliceLen, undefined) - for (var i = 0; i < sliceLen; ++i) { - newBuf[i] = this[i + start] - } - } - - return newBuf - } - - /* - * Need to make sure that buffer isn't trying to write out of bounds. - */ - function checkOffset (offset, ext, length) { - if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint') - if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length') - } - - Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) { - offset = offset | 0 - byteLength = byteLength | 0 - if (!noAssert) checkOffset(offset, byteLength, this.length) - - var val = this[offset] - var mul = 1 - var i = 0 - while (++i < byteLength && (mul *= 0x100)) { - val += this[offset + i] * mul - } - - return val - } - - Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) { - offset = offset | 0 - byteLength = byteLength | 0 - if (!noAssert) { - checkOffset(offset, byteLength, this.length) - } - - var val = this[offset + --byteLength] - var mul = 1 - while (byteLength > 0 && (mul *= 0x100)) { - val += this[offset + --byteLength] * mul - } - - return val - } - - Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) { - if (!noAssert) checkOffset(offset, 1, this.length) - return this[offset] - } - - Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 2, this.length) - return this[offset] | (this[offset + 1] << 8) - } - - Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 2, this.length) - return (this[offset] << 8) | this[offset + 1] - } - - Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 4, this.length) - - return ((this[offset]) | - (this[offset + 1] << 8) | - (this[offset + 2] << 16)) + - (this[offset + 3] * 0x1000000) - } - - Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 4, this.length) - - return (this[offset] * 0x1000000) + - ((this[offset + 1] << 16) | - (this[offset + 2] << 8) | - this[offset + 3]) - } - - Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) { - offset = offset | 0 - byteLength = byteLength | 0 - if (!noAssert) checkOffset(offset, byteLength, this.length) - - var val = this[offset] - var mul = 1 - var i = 0 - while (++i < byteLength && (mul *= 0x100)) { - val += this[offset + i] * mul - } - mul *= 0x80 - - if (val >= mul) val -= Math.pow(2, 8 * byteLength) - - return val - } - - Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) { - offset = offset | 0 - byteLength = byteLength | 0 - if (!noAssert) checkOffset(offset, byteLength, this.length) - - var i = byteLength - var mul = 1 - var val = this[offset + --i] - while (i > 0 && (mul *= 0x100)) { - val += this[offset + --i] * mul - } - mul *= 0x80 - - if (val >= mul) val -= Math.pow(2, 8 * byteLength) - - return val - } - - Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) { - if (!noAssert) checkOffset(offset, 1, this.length) - if (!(this[offset] & 0x80)) return (this[offset]) - return ((0xff - this[offset] + 1) * -1) - } - - Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 2, this.length) - var val = this[offset] | (this[offset + 1] << 8) - return (val & 0x8000) ? val | 0xFFFF0000 : val - } - - Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 2, this.length) - var val = this[offset + 1] | (this[offset] << 8) - return (val & 0x8000) ? val | 0xFFFF0000 : val - } - - Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 4, this.length) - - return (this[offset]) | - (this[offset + 1] << 8) | - (this[offset + 2] << 16) | - (this[offset + 3] << 24) - } - - Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 4, this.length) - - return (this[offset] << 24) | - (this[offset + 1] << 16) | - (this[offset + 2] << 8) | - (this[offset + 3]) - } - - Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 4, this.length) - return ieee754.read(this, offset, true, 23, 4) - } - - Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 4, this.length) - return ieee754.read(this, offset, false, 23, 4) - } - - Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 8, this.length) - return ieee754.read(this, offset, true, 52, 8) - } - - Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 8, this.length) - return ieee754.read(this, offset, false, 52, 8) - } - - function checkInt (buf, value, offset, ext, max, min) { - if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance') - if (value > max || value < min) throw new RangeError('"value" argument is out of bounds') - if (offset + ext > buf.length) throw new RangeError('Index out of range') - } - - Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) { - value = +value - offset = offset | 0 - byteLength = byteLength | 0 - if (!noAssert) { - var maxBytes = Math.pow(2, 8 * byteLength) - 1 - checkInt(this, value, offset, byteLength, maxBytes, 0) - } - - var mul = 1 - var i = 0 - this[offset] = value & 0xFF - while (++i < byteLength && (mul *= 0x100)) { - this[offset + i] = (value / mul) & 0xFF - } - - return offset + byteLength - } - - Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) { - value = +value - offset = offset | 0 - byteLength = byteLength | 0 - if (!noAssert) { - var maxBytes = Math.pow(2, 8 * byteLength) - 1 - checkInt(this, value, offset, byteLength, maxBytes, 0) - } - - var i = byteLength - 1 - var mul = 1 - this[offset + i] = value & 0xFF - while (--i >= 0 && (mul *= 0x100)) { - this[offset + i] = (value / mul) & 0xFF - } - - return offset + byteLength - } - - Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) { - value = +value - offset = offset | 0 - if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0) - if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value) - this[offset] = (value & 0xff) - return offset + 1 - } - - function objectWriteUInt16 (buf, value, offset, littleEndian) { - if (value < 0) value = 0xffff + value + 1 - for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) { - buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>> - (littleEndian ? i : 1 - i) * 8 - } - } - - Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) { - value = +value - offset = offset | 0 - if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0) - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value & 0xff) - this[offset + 1] = (value >>> 8) - } else { - objectWriteUInt16(this, value, offset, true) - } - return offset + 2 - } - - Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) { - value = +value - offset = offset | 0 - if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0) - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value >>> 8) - this[offset + 1] = (value & 0xff) - } else { - objectWriteUInt16(this, value, offset, false) - } - return offset + 2 - } - - function objectWriteUInt32 (buf, value, offset, littleEndian) { - if (value < 0) value = 0xffffffff + value + 1 - for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) { - buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff - } - } - - Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) { - value = +value - offset = offset | 0 - if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0) - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset + 3] = (value >>> 24) - this[offset + 2] = (value >>> 16) - this[offset + 1] = (value >>> 8) - this[offset] = (value & 0xff) - } else { - objectWriteUInt32(this, value, offset, true) - } - return offset + 4 - } - - Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) { - value = +value - offset = offset | 0 - if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0) - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value >>> 24) - this[offset + 1] = (value >>> 16) - this[offset + 2] = (value >>> 8) - this[offset + 3] = (value & 0xff) - } else { - objectWriteUInt32(this, value, offset, false) - } - return offset + 4 - } - - Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) { - value = +value - offset = offset | 0 - if (!noAssert) { - var limit = Math.pow(2, 8 * byteLength - 1) - - checkInt(this, value, offset, byteLength, limit - 1, -limit) - } - - var i = 0 - var mul = 1 - var sub = 0 - this[offset] = value & 0xFF - while (++i < byteLength && (mul *= 0x100)) { - if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) { - sub = 1 - } - this[offset + i] = ((value / mul) >> 0) - sub & 0xFF - } - - return offset + byteLength - } - - Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) { - value = +value - offset = offset | 0 - if (!noAssert) { - var limit = Math.pow(2, 8 * byteLength - 1) - - checkInt(this, value, offset, byteLength, limit - 1, -limit) - } - - var i = byteLength - 1 - var mul = 1 - var sub = 0 - this[offset + i] = value & 0xFF - while (--i >= 0 && (mul *= 0x100)) { - if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) { - sub = 1 - } - this[offset + i] = ((value / mul) >> 0) - sub & 0xFF - } - - return offset + byteLength - } - - Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) { - value = +value - offset = offset | 0 - if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80) - if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value) - if (value < 0) value = 0xff + value + 1 - this[offset] = (value & 0xff) - return offset + 1 - } - - Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) { - value = +value - offset = offset | 0 - if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000) - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value & 0xff) - this[offset + 1] = (value >>> 8) - } else { - objectWriteUInt16(this, value, offset, true) - } - return offset + 2 - } - - Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) { - value = +value - offset = offset | 0 - if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000) - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value >>> 8) - this[offset + 1] = (value & 0xff) - } else { - objectWriteUInt16(this, value, offset, false) - } - return offset + 2 - } - - Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) { - value = +value - offset = offset | 0 - if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000) - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value & 0xff) - this[offset + 1] = (value >>> 8) - this[offset + 2] = (value >>> 16) - this[offset + 3] = (value >>> 24) - } else { - objectWriteUInt32(this, value, offset, true) - } - return offset + 4 - } - - Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) { - value = +value - offset = offset | 0 - if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000) - if (value < 0) value = 0xffffffff + value + 1 - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value >>> 24) - this[offset + 1] = (value >>> 16) - this[offset + 2] = (value >>> 8) - this[offset + 3] = (value & 0xff) - } else { - objectWriteUInt32(this, value, offset, false) - } - return offset + 4 - } - - function checkIEEE754 (buf, value, offset, ext, max, min) { - if (offset + ext > buf.length) throw new RangeError('Index out of range') - if (offset < 0) throw new RangeError('Index out of range') - } - - function writeFloat (buf, value, offset, littleEndian, noAssert) { - if (!noAssert) { - checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38) - } - ieee754.write(buf, value, offset, littleEndian, 23, 4) - return offset + 4 - } - - Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) { - return writeFloat(this, value, offset, true, noAssert) - } - - Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) { - return writeFloat(this, value, offset, false, noAssert) - } - - function writeDouble (buf, value, offset, littleEndian, noAssert) { - if (!noAssert) { - checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308) - } - ieee754.write(buf, value, offset, littleEndian, 52, 8) - return offset + 8 - } - - Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) { - return writeDouble(this, value, offset, true, noAssert) - } - - Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) { - return writeDouble(this, value, offset, false, noAssert) - } - - // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length) - Buffer.prototype.copy = function copy (target, targetStart, start, end) { - if (!start) start = 0 - if (!end && end !== 0) end = this.length - if (targetStart >= target.length) targetStart = target.length - if (!targetStart) targetStart = 0 - if (end > 0 && end < start) end = start - - // Copy 0 bytes; we're done - if (end === start) return 0 - if (target.length === 0 || this.length === 0) return 0 - - // Fatal error conditions - if (targetStart < 0) { - throw new RangeError('targetStart out of bounds') - } - if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds') - if (end < 0) throw new RangeError('sourceEnd out of bounds') - - // Are we oob? - if (end > this.length) end = this.length - if (target.length - targetStart < end - start) { - end = target.length - targetStart + start - } - - var len = end - start - var i - - if (this === target && start < targetStart && targetStart < end) { - // descending copy from end - for (i = len - 1; i >= 0; --i) { - target[i + targetStart] = this[i + start] - } - } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) { - // ascending copy from start - for (i = 0; i < len; ++i) { - target[i + targetStart] = this[i + start] - } - } else { - Uint8Array.prototype.set.call( - target, - this.subarray(start, start + len), - targetStart - ) - } - - return len - } - - // Usage: - // buffer.fill(number[, offset[, end]]) - // buffer.fill(buffer[, offset[, end]]) - // buffer.fill(string[, offset[, end]][, encoding]) - Buffer.prototype.fill = function fill (val, start, end, encoding) { - // Handle string cases: - if (typeof val === 'string') { - if (typeof start === 'string') { - encoding = start - start = 0 - end = this.length - } else if (typeof end === 'string') { - encoding = end - end = this.length - } - if (val.length === 1) { - var code = val.charCodeAt(0) - if (code < 256) { - val = code - } - } - if (encoding !== undefined && typeof encoding !== 'string') { - throw new TypeError('encoding must be a string') - } - if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) { - throw new TypeError('Unknown encoding: ' + encoding) - } - } else if (typeof val === 'number') { - val = val & 255 - } - - // Invalid ranges are not set to a default, so can range check early. - if (start < 0 || this.length < start || this.length < end) { - throw new RangeError('Out of range index') - } - - if (end <= start) { - return this - } - - start = start >>> 0 - end = end === undefined ? this.length : end >>> 0 - - if (!val) val = 0 - - var i - if (typeof val === 'number') { - for (i = start; i < end; ++i) { - this[i] = val - } - } else { - var bytes = Buffer.isBuffer(val) - ? val - : utf8ToBytes(new Buffer(val, encoding).toString()) - var len = bytes.length - for (i = 0; i < end - start; ++i) { - this[i + start] = bytes[i % len] - } - } - - return this - } - - // HELPER FUNCTIONS - // ================ - - var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g - - function base64clean (str) { - // Node strips out invalid characters like \n and \t from the string, base64-js does not - str = stringtrim(str).replace(INVALID_BASE64_RE, '') - // Node converts strings with length < 2 to '' - if (str.length < 2) return '' - // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not - while (str.length % 4 !== 0) { - str = str + '=' - } - return str - } - - function stringtrim (str) { - if (str.trim) return str.trim() - return str.replace(/^\s+|\s+$/g, '') - } - - function toHex (n) { - if (n < 16) return '0' + n.toString(16) - return n.toString(16) - } - - function utf8ToBytes (string, units) { - units = units || Infinity - var codePoint - var length = string.length - var leadSurrogate = null - var bytes = [] - - for (var i = 0; i < length; ++i) { - codePoint = string.charCodeAt(i) - - // is surrogate component - if (codePoint > 0xD7FF && codePoint < 0xE000) { - // last char was a lead - if (!leadSurrogate) { - // no lead yet - if (codePoint > 0xDBFF) { - // unexpected trail - if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) - continue - } else if (i + 1 === length) { - // unpaired lead - if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) - continue - } - - // valid lead - leadSurrogate = codePoint - - continue - } - - // 2 leads in a row - if (codePoint < 0xDC00) { - if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) - leadSurrogate = codePoint - continue - } - - // valid surrogate pair - codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000 - } else if (leadSurrogate) { - // valid bmp char, but last char was a lead - if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) - } - - leadSurrogate = null - - // encode utf8 - if (codePoint < 0x80) { - if ((units -= 1) < 0) break - bytes.push(codePoint) - } else if (codePoint < 0x800) { - if ((units -= 2) < 0) break - bytes.push( - codePoint >> 0x6 | 0xC0, - codePoint & 0x3F | 0x80 - ) - } else if (codePoint < 0x10000) { - if ((units -= 3) < 0) break - bytes.push( - codePoint >> 0xC | 0xE0, - codePoint >> 0x6 & 0x3F | 0x80, - codePoint & 0x3F | 0x80 - ) - } else if (codePoint < 0x110000) { - if ((units -= 4) < 0) break - bytes.push( - codePoint >> 0x12 | 0xF0, - codePoint >> 0xC & 0x3F | 0x80, - codePoint >> 0x6 & 0x3F | 0x80, - codePoint & 0x3F | 0x80 - ) - } else { - throw new Error('Invalid code point') - } - } - - return bytes - } - - function asciiToBytes (str) { - var byteArray = [] - for (var i = 0; i < str.length; ++i) { - // Node's code seems to be doing this and not & 0x7F.. - byteArray.push(str.charCodeAt(i) & 0xFF) - } - return byteArray - } - - function utf16leToBytes (str, units) { - var c, hi, lo - var byteArray = [] - for (var i = 0; i < str.length; ++i) { - if ((units -= 2) < 0) break - - c = str.charCodeAt(i) - hi = c >> 8 - lo = c % 256 - byteArray.push(lo) - byteArray.push(hi) - } - - return byteArray - } - - function base64ToBytes (str) { - return base64.toByteArray(base64clean(str)) - } - - function blitBuffer (src, dst, offset, length) { - for (var i = 0; i < length; ++i) { - if ((i + offset >= dst.length) || (i >= src.length)) break - dst[i + offset] = src[i] - } - return i - } - - function isnan (val) { - return val !== val // eslint-disable-line no-self-compare - } - - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7).Buffer, (function() { return this; }()))) - -/***/ }, -/* 8 */ -/***/ function(module, exports) { - - 'use strict' - - exports.byteLength = byteLength - exports.toByteArray = toByteArray - exports.fromByteArray = fromByteArray - - var lookup = [] - var revLookup = [] - var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array - - var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' - for (var i = 0, len = code.length; i < len; ++i) { - lookup[i] = code[i] - revLookup[code.charCodeAt(i)] = i - } - - revLookup['-'.charCodeAt(0)] = 62 - revLookup['_'.charCodeAt(0)] = 63 - - function placeHoldersCount (b64) { - var len = b64.length - if (len % 4 > 0) { - throw new Error('Invalid string. Length must be a multiple of 4') - } - - // the number of equal signs (place holders) - // if there are two placeholders, than the two characters before it - // represent one byte - // if there is only one, then the three characters before it represent 2 bytes - // this is just a cheap hack to not do indexOf twice - return b64[len - 2] === '=' ? 2 : b64[len - 1] === '=' ? 1 : 0 - } - - function byteLength (b64) { - // base64 is 4/3 + up to two characters of the original data - return b64.length * 3 / 4 - placeHoldersCount(b64) - } - - function toByteArray (b64) { - var i, j, l, tmp, placeHolders, arr - var len = b64.length - placeHolders = placeHoldersCount(b64) - - arr = new Arr(len * 3 / 4 - placeHolders) - - // if there are placeholders, only get up to the last complete 4 chars - l = placeHolders > 0 ? len - 4 : len - - var L = 0 - - for (i = 0, j = 0; i < l; i += 4, j += 3) { - tmp = (revLookup[b64.charCodeAt(i)] << 18) | (revLookup[b64.charCodeAt(i + 1)] << 12) | (revLookup[b64.charCodeAt(i + 2)] << 6) | revLookup[b64.charCodeAt(i + 3)] - arr[L++] = (tmp >> 16) & 0xFF - arr[L++] = (tmp >> 8) & 0xFF - arr[L++] = tmp & 0xFF - } - - if (placeHolders === 2) { - tmp = (revLookup[b64.charCodeAt(i)] << 2) | (revLookup[b64.charCodeAt(i + 1)] >> 4) - arr[L++] = tmp & 0xFF - } else if (placeHolders === 1) { - tmp = (revLookup[b64.charCodeAt(i)] << 10) | (revLookup[b64.charCodeAt(i + 1)] << 4) | (revLookup[b64.charCodeAt(i + 2)] >> 2) - arr[L++] = (tmp >> 8) & 0xFF - arr[L++] = tmp & 0xFF - } - - return arr - } - - function tripletToBase64 (num) { - return lookup[num >> 18 & 0x3F] + lookup[num >> 12 & 0x3F] + lookup[num >> 6 & 0x3F] + lookup[num & 0x3F] - } - - function encodeChunk (uint8, start, end) { - var tmp - var output = [] - for (var i = start; i < end; i += 3) { - tmp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2]) - output.push(tripletToBase64(tmp)) - } - return output.join('') - } - - function fromByteArray (uint8) { - var tmp - var len = uint8.length - var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes - var output = '' - var parts = [] - var maxChunkLength = 16383 // must be multiple of 3 - - // go through the array every three bytes, we'll deal with trailing stuff later - for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) { - parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength))) - } - - // pad the end with zeros, but make sure to not forget the extra bytes - if (extraBytes === 1) { - tmp = uint8[len - 1] - output += lookup[tmp >> 2] - output += lookup[(tmp << 4) & 0x3F] - output += '==' - } else if (extraBytes === 2) { - tmp = (uint8[len - 2] << 8) + (uint8[len - 1]) - output += lookup[tmp >> 10] - output += lookup[(tmp >> 4) & 0x3F] - output += lookup[(tmp << 2) & 0x3F] - output += '=' - } - - parts.push(output) - - return parts.join('') - } - - -/***/ }, -/* 9 */ -/***/ function(module, exports) { - - exports.read = function (buffer, offset, isLE, mLen, nBytes) { - var e, m - var eLen = nBytes * 8 - mLen - 1 - var eMax = (1 << eLen) - 1 - var eBias = eMax >> 1 - var nBits = -7 - var i = isLE ? (nBytes - 1) : 0 - var d = isLE ? -1 : 1 - var s = buffer[offset + i] - - i += d - - e = s & ((1 << (-nBits)) - 1) - s >>= (-nBits) - nBits += eLen - for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {} - - m = e & ((1 << (-nBits)) - 1) - e >>= (-nBits) - nBits += mLen - for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {} - - if (e === 0) { - e = 1 - eBias - } else if (e === eMax) { - return m ? NaN : ((s ? -1 : 1) * Infinity) - } else { - m = m + Math.pow(2, mLen) - e = e - eBias - } - return (s ? -1 : 1) * m * Math.pow(2, e - mLen) - } - - exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { - var e, m, c - var eLen = nBytes * 8 - mLen - 1 - var eMax = (1 << eLen) - 1 - var eBias = eMax >> 1 - var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0) - var i = isLE ? 0 : (nBytes - 1) - var d = isLE ? 1 : -1 - var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0 - - value = Math.abs(value) - - if (isNaN(value) || value === Infinity) { - m = isNaN(value) ? 1 : 0 - e = eMax - } else { - e = Math.floor(Math.log(value) / Math.LN2) - if (value * (c = Math.pow(2, -e)) < 1) { - e-- - c *= 2 - } - if (e + eBias >= 1) { - value += rt / c - } else { - value += rt * Math.pow(2, 1 - eBias) - } - if (value * c >= 2) { - e++ - c /= 2 - } - - if (e + eBias >= eMax) { - m = 0 - e = eMax - } else if (e + eBias >= 1) { - m = (value * c - 1) * Math.pow(2, mLen) - e = e + eBias - } else { - m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen) - e = 0 - } - } - - for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {} - - e = (e << mLen) | m - eLen += mLen - for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {} - - buffer[offset + i - d] |= s * 128 - } - - -/***/ }, -/* 10 */ -/***/ function(module, exports) { - - var toString = {}.toString; - - module.exports = Array.isArray || function (arr) { - return toString.call(arr) == '[object Array]'; - }; - - -/***/ }, -/* 11 */ -/***/ function(module, exports, __webpack_require__) { - - /** - * Module dependencies. - */ - - var Emitter = __webpack_require__(12); - var reduce = __webpack_require__(13); - - /** - * Root reference for iframes. - */ - - var root; - if (typeof window !== 'undefined') { // Browser window - root = window; - } else if (typeof self !== 'undefined') { // Web Worker - root = self; - } else { // Other environments - root = this; - } - - /** - * Noop. - */ - - function noop(){}; - - /** - * Check if `obj` is a host object, - * we don't want to serialize these :) - * - * TODO: future proof, move to compoent land - * - * @param {Object} obj - * @return {Boolean} - * @api private - */ - - function isHost(obj) { - var str = {}.toString.call(obj); - - switch (str) { - case '[object File]': - case '[object Blob]': - case '[object FormData]': - return true; - default: - return false; - } - } - - /** - * Determine XHR. - */ - - request.getXHR = function () { - if (root.XMLHttpRequest - && (!root.location || 'file:' != root.location.protocol - || !root.ActiveXObject)) { - return new XMLHttpRequest; - } else { - try { return new ActiveXObject('Microsoft.XMLHTTP'); } catch(e) {} - try { return new ActiveXObject('Msxml2.XMLHTTP.6.0'); } catch(e) {} - try { return new ActiveXObject('Msxml2.XMLHTTP.3.0'); } catch(e) {} - try { return new ActiveXObject('Msxml2.XMLHTTP'); } catch(e) {} - } - return false; - }; - - /** - * Removes leading and trailing whitespace, added to support IE. - * - * @param {String} s - * @return {String} - * @api private - */ - - var trim = ''.trim - ? function(s) { return s.trim(); } - : function(s) { return s.replace(/(^\s*|\s*$)/g, ''); }; - - /** - * Check if `obj` is an object. - * - * @param {Object} obj - * @return {Boolean} - * @api private - */ - - function isObject(obj) { - return obj === Object(obj); - } - - /** - * Serialize the given `obj`. - * - * @param {Object} obj - * @return {String} - * @api private - */ - - function serialize(obj) { - if (!isObject(obj)) return obj; - var pairs = []; - for (var key in obj) { - if (null != obj[key]) { - pushEncodedKeyValuePair(pairs, key, obj[key]); - } - } - return pairs.join('&'); - } - - /** - * Helps 'serialize' with serializing arrays. - * Mutates the pairs array. - * - * @param {Array} pairs - * @param {String} key - * @param {Mixed} val - */ - - function pushEncodedKeyValuePair(pairs, key, val) { - if (Array.isArray(val)) { - return val.forEach(function(v) { - pushEncodedKeyValuePair(pairs, key, v); - }); - } - pairs.push(encodeURIComponent(key) - + '=' + encodeURIComponent(val)); - } - - /** - * Expose serialization method. - */ - - request.serializeObject = serialize; - - /** - * Parse the given x-www-form-urlencoded `str`. - * - * @param {String} str - * @return {Object} - * @api private - */ - - function parseString(str) { - var obj = {}; - var pairs = str.split('&'); - var parts; - var pair; - - for (var i = 0, len = pairs.length; i < len; ++i) { - pair = pairs[i]; - parts = pair.split('='); - obj[decodeURIComponent(parts[0])] = decodeURIComponent(parts[1]); - } - - return obj; - } - - /** - * Expose parser. - */ - - request.parseString = parseString; - - /** - * Default MIME type map. - * - * superagent.types.xml = 'application/xml'; - * - */ - - request.types = { - html: 'text/html', - json: 'application/json', - xml: 'application/xml', - urlencoded: 'application/x-www-form-urlencoded', - 'form': 'application/x-www-form-urlencoded', - 'form-data': 'application/x-www-form-urlencoded' - }; - - /** - * Default serialization map. - * - * superagent.serialize['application/xml'] = function(obj){ - * return 'generated xml here'; - * }; - * - */ - - request.serialize = { - 'application/x-www-form-urlencoded': serialize, - 'application/json': JSON.stringify - }; - - /** - * Default parsers. - * - * superagent.parse['application/xml'] = function(str){ - * return { object parsed from str }; - * }; - * - */ - - request.parse = { - 'application/x-www-form-urlencoded': parseString, - 'application/json': JSON.parse - }; - - /** - * Parse the given header `str` into - * an object containing the mapped fields. - * - * @param {String} str - * @return {Object} - * @api private - */ - - function parseHeader(str) { - var lines = str.split(/\r?\n/); - var fields = {}; - var index; - var line; - var field; - var val; - - lines.pop(); // trailing CRLF - - for (var i = 0, len = lines.length; i < len; ++i) { - line = lines[i]; - index = line.indexOf(':'); - field = line.slice(0, index).toLowerCase(); - val = trim(line.slice(index + 1)); - fields[field] = val; - } - - return fields; - } - - /** - * Check if `mime` is json or has +json structured syntax suffix. - * - * @param {String} mime - * @return {Boolean} - * @api private - */ - - function isJSON(mime) { - return /[\/+]json\b/.test(mime); - } - - /** - * Return the mime type for the given `str`. - * - * @param {String} str - * @return {String} - * @api private - */ - - function type(str){ - return str.split(/ *; */).shift(); - }; - - /** - * Return header field parameters. - * - * @param {String} str - * @return {Object} - * @api private - */ - - function params(str){ - return reduce(str.split(/ *; */), function(obj, str){ - var parts = str.split(/ *= */) - , key = parts.shift() - , val = parts.shift(); - - if (key && val) obj[key] = val; - return obj; - }, {}); - }; - - /** - * Initialize a new `Response` with the given `xhr`. - * - * - set flags (.ok, .error, etc) - * - parse header - * - * Examples: - * - * Aliasing `superagent` as `request` is nice: - * - * request = superagent; - * - * We can use the promise-like API, or pass callbacks: - * - * request.get('/').end(function(res){}); - * request.get('/', function(res){}); - * - * Sending data can be chained: - * - * request - * .post('/user') - * .send({ name: 'tj' }) - * .end(function(res){}); - * - * Or passed to `.send()`: - * - * request - * .post('/user') - * .send({ name: 'tj' }, function(res){}); - * - * Or passed to `.post()`: - * - * request - * .post('/user', { name: 'tj' }) - * .end(function(res){}); - * - * Or further reduced to a single call for simple cases: - * - * request - * .post('/user', { name: 'tj' }, function(res){}); - * - * @param {XMLHTTPRequest} xhr - * @param {Object} options - * @api private - */ - - function Response(req, options) { - options = options || {}; - this.req = req; - this.xhr = this.req.xhr; - // responseText is accessible only if responseType is '' or 'text' and on older browsers - this.text = ((this.req.method !='HEAD' && (this.xhr.responseType === '' || this.xhr.responseType === 'text')) || typeof this.xhr.responseType === 'undefined') - ? this.xhr.responseText - : null; - this.statusText = this.req.xhr.statusText; - this.setStatusProperties(this.xhr.status); - this.header = this.headers = parseHeader(this.xhr.getAllResponseHeaders()); - // getAllResponseHeaders sometimes falsely returns "" for CORS requests, but - // getResponseHeader still works. so we get content-type even if getting - // other headers fails. - this.header['content-type'] = this.xhr.getResponseHeader('content-type'); - this.setHeaderProperties(this.header); - this.body = this.req.method != 'HEAD' - ? this.parseBody(this.text ? this.text : this.xhr.response) - : null; - } - - /** - * Get case-insensitive `field` value. - * - * @param {String} field - * @return {String} - * @api public - */ - - Response.prototype.get = function(field){ - return this.header[field.toLowerCase()]; - }; - - /** - * Set header related properties: - * - * - `.type` the content type without params - * - * A response of "Content-Type: text/plain; charset=utf-8" - * will provide you with a `.type` of "text/plain". - * - * @param {Object} header - * @api private - */ - - Response.prototype.setHeaderProperties = function(header){ - // content-type - var ct = this.header['content-type'] || ''; - this.type = type(ct); - - // params - var obj = params(ct); - for (var key in obj) this[key] = obj[key]; - }; - - /** - * Parse the given body `str`. - * - * Used for auto-parsing of bodies. Parsers - * are defined on the `superagent.parse` object. - * - * @param {String} str - * @return {Mixed} - * @api private - */ - - Response.prototype.parseBody = function(str){ - var parse = request.parse[this.type]; - return parse && str && (str.length || str instanceof Object) - ? parse(str) - : null; - }; - - /** - * Set flags such as `.ok` based on `status`. - * - * For example a 2xx response will give you a `.ok` of __true__ - * whereas 5xx will be __false__ and `.error` will be __true__. The - * `.clientError` and `.serverError` are also available to be more - * specific, and `.statusType` is the class of error ranging from 1..5 - * sometimes useful for mapping respond colors etc. - * - * "sugar" properties are also defined for common cases. Currently providing: - * - * - .noContent - * - .badRequest - * - .unauthorized - * - .notAcceptable - * - .notFound - * - * @param {Number} status - * @api private - */ - - Response.prototype.setStatusProperties = function(status){ - // handle IE9 bug: http://stackoverflow.com/questions/10046972/msie-returns-status-code-of-1223-for-ajax-request - if (status === 1223) { - status = 204; - } - - var type = status / 100 | 0; - - // status / class - this.status = this.statusCode = status; - this.statusType = type; - - // basics - this.info = 1 == type; - this.ok = 2 == type; - this.clientError = 4 == type; - this.serverError = 5 == type; - this.error = (4 == type || 5 == type) - ? this.toError() - : false; - - // sugar - this.accepted = 202 == status; - this.noContent = 204 == status; - this.badRequest = 400 == status; - this.unauthorized = 401 == status; - this.notAcceptable = 406 == status; - this.notFound = 404 == status; - this.forbidden = 403 == status; - }; - - /** - * Return an `Error` representative of this response. - * - * @return {Error} - * @api public - */ - - Response.prototype.toError = function(){ - var req = this.req; - var method = req.method; - var url = req.url; - - var msg = 'cannot ' + method + ' ' + url + ' (' + this.status + ')'; - var err = new Error(msg); - err.status = this.status; - err.method = method; - err.url = url; - - return err; - }; - - /** - * Expose `Response`. - */ - - request.Response = Response; - - /** - * Initialize a new `Request` with the given `method` and `url`. - * - * @param {String} method - * @param {String} url - * @api public - */ - - function Request(method, url) { - var self = this; - Emitter.call(this); - this._query = this._query || []; - this.method = method; - this.url = url; - this.header = {}; - this._header = {}; - this.on('end', function(){ - var err = null; - var res = null; - - try { - res = new Response(self); - } catch(e) { - err = new Error('Parser is unable to parse the response'); - err.parse = true; - err.original = e; - // issue #675: return the raw response if the response parsing fails - err.rawResponse = self.xhr && self.xhr.responseText ? self.xhr.responseText : null; - return self.callback(err); - } - - self.emit('response', res); - - if (err) { - return self.callback(err, res); - } - - if (res.status >= 200 && res.status < 300) { - return self.callback(err, res); - } - - var new_err = new Error(res.statusText || 'Unsuccessful HTTP response'); - new_err.original = err; - new_err.response = res; - new_err.status = res.status; - - self.callback(new_err, res); - }); - } - - /** - * Mixin `Emitter`. - */ - - Emitter(Request.prototype); - - /** - * Allow for extension - */ - - Request.prototype.use = function(fn) { - fn(this); - return this; - } - - /** - * Set timeout to `ms`. - * - * @param {Number} ms - * @return {Request} for chaining - * @api public - */ - - Request.prototype.timeout = function(ms){ - this._timeout = ms; - return this; - }; - - /** - * Clear previous timeout. - * - * @return {Request} for chaining - * @api public - */ - - Request.prototype.clearTimeout = function(){ - this._timeout = 0; - clearTimeout(this._timer); - return this; - }; - - /** - * Abort the request, and clear potential timeout. - * - * @return {Request} - * @api public - */ - - Request.prototype.abort = function(){ - if (this.aborted) return; - this.aborted = true; - this.xhr.abort(); - this.clearTimeout(); - this.emit('abort'); - return this; - }; - - /** - * Set header `field` to `val`, or multiple fields with one object. - * - * Examples: - * - * req.get('/') - * .set('Accept', 'application/json') - * .set('X-API-Key', 'foobar') - * .end(callback); - * - * req.get('/') - * .set({ Accept: 'application/json', 'X-API-Key': 'foobar' }) - * .end(callback); - * - * @param {String|Object} field - * @param {String} val - * @return {Request} for chaining - * @api public - */ - - Request.prototype.set = function(field, val){ - if (isObject(field)) { - for (var key in field) { - this.set(key, field[key]); - } - return this; - } - this._header[field.toLowerCase()] = val; - this.header[field] = val; - return this; - }; - - /** - * Remove header `field`. - * - * Example: - * - * req.get('/') - * .unset('User-Agent') - * .end(callback); - * - * @param {String} field - * @return {Request} for chaining - * @api public - */ - - Request.prototype.unset = function(field){ - delete this._header[field.toLowerCase()]; - delete this.header[field]; - return this; - }; - - /** - * Get case-insensitive header `field` value. - * - * @param {String} field - * @return {String} - * @api private - */ - - Request.prototype.getHeader = function(field){ - return this._header[field.toLowerCase()]; - }; - - /** - * Set Content-Type to `type`, mapping values from `request.types`. - * - * Examples: - * - * superagent.types.xml = 'application/xml'; - * - * request.post('/') - * .type('xml') - * .send(xmlstring) - * .end(callback); - * - * request.post('/') - * .type('application/xml') - * .send(xmlstring) - * .end(callback); - * - * @param {String} type - * @return {Request} for chaining - * @api public - */ - - Request.prototype.type = function(type){ - this.set('Content-Type', request.types[type] || type); - return this; - }; - - /** - * Force given parser - * - * Sets the body parser no matter type. - * - * @param {Function} - * @api public - */ - - Request.prototype.parse = function(fn){ - this._parser = fn; - return this; - }; - - /** - * Set Accept to `type`, mapping values from `request.types`. - * - * Examples: - * - * superagent.types.json = 'application/json'; - * - * request.get('/agent') - * .accept('json') - * .end(callback); - * - * request.get('/agent') - * .accept('application/json') - * .end(callback); - * - * @param {String} accept - * @return {Request} for chaining - * @api public - */ - - Request.prototype.accept = function(type){ - this.set('Accept', request.types[type] || type); - return this; - }; - - /** - * Set Authorization field value with `user` and `pass`. - * - * @param {String} user - * @param {String} pass - * @return {Request} for chaining - * @api public - */ - - Request.prototype.auth = function(user, pass){ - var str = btoa(user + ':' + pass); - this.set('Authorization', 'Basic ' + str); - return this; - }; - - /** - * Add query-string `val`. - * - * Examples: - * - * request.get('/shoes') - * .query('size=10') - * .query({ color: 'blue' }) - * - * @param {Object|String} val - * @return {Request} for chaining - * @api public - */ - - Request.prototype.query = function(val){ - if ('string' != typeof val) val = serialize(val); - if (val) this._query.push(val); - return this; - }; - - /** - * Write the field `name` and `val` for "multipart/form-data" - * request bodies. - * - * ``` js - * request.post('/upload') - * .field('foo', 'bar') - * .end(callback); - * ``` - * - * @param {String} name - * @param {String|Blob|File} val - * @return {Request} for chaining - * @api public - */ - - Request.prototype.field = function(name, val){ - if (!this._formData) this._formData = new root.FormData(); - this._formData.append(name, val); - return this; - }; - - /** - * Queue the given `file` as an attachment to the specified `field`, - * with optional `filename`. - * - * ``` js - * request.post('/upload') - * .attach(new Blob(['hey!'], { type: "text/html"})) - * .end(callback); - * ``` - * - * @param {String} field - * @param {Blob|File} file - * @param {String} filename - * @return {Request} for chaining - * @api public - */ - - Request.prototype.attach = function(field, file, filename){ - if (!this._formData) this._formData = new root.FormData(); - this._formData.append(field, file, filename || file.name); - return this; - }; - - /** - * Send `data` as the request body, defaulting the `.type()` to "json" when - * an object is given. - * - * Examples: - * - * // manual json - * request.post('/user') - * .type('json') - * .send('{"name":"tj"}') - * .end(callback) - * - * // auto json - * request.post('/user') - * .send({ name: 'tj' }) - * .end(callback) - * - * // manual x-www-form-urlencoded - * request.post('/user') - * .type('form') - * .send('name=tj') - * .end(callback) - * - * // auto x-www-form-urlencoded - * request.post('/user') - * .type('form') - * .send({ name: 'tj' }) - * .end(callback) - * - * // defaults to x-www-form-urlencoded - * request.post('/user') - * .send('name=tobi') - * .send('species=ferret') - * .end(callback) - * - * @param {String|Object} data - * @return {Request} for chaining - * @api public - */ - - Request.prototype.send = function(data){ - var obj = isObject(data); - var type = this.getHeader('Content-Type'); - - // merge - if (obj && isObject(this._data)) { - for (var key in data) { - this._data[key] = data[key]; - } - } else if ('string' == typeof data) { - if (!type) this.type('form'); - type = this.getHeader('Content-Type'); - if ('application/x-www-form-urlencoded' == type) { - this._data = this._data - ? this._data + '&' + data - : data; - } else { - this._data = (this._data || '') + data; - } - } else { - this._data = data; - } - - if (!obj || isHost(data)) return this; - if (!type) this.type('json'); - return this; - }; - - /** - * Invoke the callback with `err` and `res` - * and handle arity check. - * - * @param {Error} err - * @param {Response} res - * @api private - */ - - Request.prototype.callback = function(err, res){ - var fn = this._callback; - this.clearTimeout(); - fn(err, res); - }; - - /** - * Invoke callback with x-domain error. - * - * @api private - */ - - Request.prototype.crossDomainError = function(){ - var err = new Error('Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.'); - err.crossDomain = true; - - err.status = this.status; - err.method = this.method; - err.url = this.url; - - this.callback(err); - }; - - /** - * Invoke callback with timeout error. - * - * @api private - */ - - Request.prototype.timeoutError = function(){ - var timeout = this._timeout; - var err = new Error('timeout of ' + timeout + 'ms exceeded'); - err.timeout = timeout; - this.callback(err); - }; - - /** - * Enable transmission of cookies with x-domain requests. - * - * Note that for this to work the origin must not be - * using "Access-Control-Allow-Origin" with a wildcard, - * and also must set "Access-Control-Allow-Credentials" - * to "true". - * - * @api public - */ - - Request.prototype.withCredentials = function(){ - this._withCredentials = true; - return this; - }; - - /** - * Initiate request, invoking callback `fn(res)` - * with an instanceof `Response`. - * - * @param {Function} fn - * @return {Request} for chaining - * @api public - */ - - Request.prototype.end = function(fn){ - var self = this; - var xhr = this.xhr = request.getXHR(); - var query = this._query.join('&'); - var timeout = this._timeout; - var data = this._formData || this._data; - - // store callback - this._callback = fn || noop; - - // state change - xhr.onreadystatechange = function(){ - if (4 != xhr.readyState) return; - - // In IE9, reads to any property (e.g. status) off of an aborted XHR will - // result in the error "Could not complete the operation due to error c00c023f" - var status; - try { status = xhr.status } catch(e) { status = 0; } - - if (0 == status) { - if (self.timedout) return self.timeoutError(); - if (self.aborted) return; - return self.crossDomainError(); - } - self.emit('end'); - }; - - // progress - var handleProgress = function(e){ - if (e.total > 0) { - e.percent = e.loaded / e.total * 100; - } - e.direction = 'download'; - self.emit('progress', e); - }; - if (this.hasListeners('progress')) { - xhr.onprogress = handleProgress; - } - try { - if (xhr.upload && this.hasListeners('progress')) { - xhr.upload.onprogress = handleProgress; - } - } catch(e) { - // Accessing xhr.upload fails in IE from a web worker, so just pretend it doesn't exist. - // Reported here: - // https://connect.microsoft.com/IE/feedback/details/837245/xmlhttprequest-upload-throws-invalid-argument-when-used-from-web-worker-context - } - - // timeout - if (timeout && !this._timer) { - this._timer = setTimeout(function(){ - self.timedout = true; - self.abort(); - }, timeout); - } - - // querystring - if (query) { - query = request.serializeObject(query); - this.url += ~this.url.indexOf('?') - ? '&' + query - : '?' + query; - } - - // initiate request - xhr.open(this.method, this.url, true); - - // CORS - if (this._withCredentials) xhr.withCredentials = true; - - // body - if ('GET' != this.method && 'HEAD' != this.method && 'string' != typeof data && !isHost(data)) { - // serialize stuff - var contentType = this.getHeader('Content-Type'); - var serialize = this._parser || request.serialize[contentType ? contentType.split(';')[0] : '']; - if (!serialize && isJSON(contentType)) serialize = request.serialize['application/json']; - if (serialize) data = serialize(data); - } - - // set header fields - for (var field in this.header) { - if (null == this.header[field]) continue; - xhr.setRequestHeader(field, this.header[field]); - } - - // send stuff - this.emit('request', this); - - // IE11 xhr.send(undefined) sends 'undefined' string as POST payload (instead of nothing) - // We need null here if data is undefined - xhr.send(typeof data !== 'undefined' ? data : null); - return this; - }; - - /** - * Faux promise support - * - * @param {Function} fulfill - * @param {Function} reject - * @return {Request} - */ - - Request.prototype.then = function (fulfill, reject) { - return this.end(function(err, res) { - err ? reject(err) : fulfill(res); - }); - } - - /** - * Expose `Request`. - */ - - request.Request = Request; - - /** - * Issue a request: - * - * Examples: - * - * request('GET', '/users').end(callback) - * request('/users').end(callback) - * request('/users', callback) - * - * @param {String} method - * @param {String|Function} url or callback - * @return {Request} - * @api public - */ - - function request(method, url) { - // callback - if ('function' == typeof url) { - return new Request('GET', method).end(url); - } - - // url first - if (1 == arguments.length) { - return new Request('GET', method); - } - - return new Request(method, url); - } - - /** - * GET `url` with optional callback `fn(res)`. - * - * @param {String} url - * @param {Mixed|Function} data or fn - * @param {Function} fn - * @return {Request} - * @api public - */ - - request.get = function(url, data, fn){ - var req = request('GET', url); - if ('function' == typeof data) fn = data, data = null; - if (data) req.query(data); - if (fn) req.end(fn); - return req; - }; - - /** - * HEAD `url` with optional callback `fn(res)`. - * - * @param {String} url - * @param {Mixed|Function} data or fn - * @param {Function} fn - * @return {Request} - * @api public - */ - - request.head = function(url, data, fn){ - var req = request('HEAD', url); - if ('function' == typeof data) fn = data, data = null; - if (data) req.send(data); - if (fn) req.end(fn); - return req; - }; - - /** - * DELETE `url` with optional callback `fn(res)`. - * - * @param {String} url - * @param {Function} fn - * @return {Request} - * @api public - */ - - function del(url, fn){ - var req = request('DELETE', url); - if (fn) req.end(fn); - return req; - }; - - request['del'] = del; - request['delete'] = del; - - /** - * PATCH `url` with optional `data` and callback `fn(res)`. - * - * @param {String} url - * @param {Mixed} data - * @param {Function} fn - * @return {Request} - * @api public - */ - - request.patch = function(url, data, fn){ - var req = request('PATCH', url); - if ('function' == typeof data) fn = data, data = null; - if (data) req.send(data); - if (fn) req.end(fn); - return req; - }; - - /** - * POST `url` with optional `data` and callback `fn(res)`. - * - * @param {String} url - * @param {Mixed} data - * @param {Function} fn - * @return {Request} - * @api public - */ - - request.post = function(url, data, fn){ - var req = request('POST', url); - if ('function' == typeof data) fn = data, data = null; - if (data) req.send(data); - if (fn) req.end(fn); - return req; - }; - - /** - * PUT `url` with optional `data` and callback `fn(res)`. - * - * @param {String} url - * @param {Mixed|Function} data or fn - * @param {Function} fn - * @return {Request} - * @api public - */ - - request.put = function(url, data, fn){ - var req = request('PUT', url); - if ('function' == typeof data) fn = data, data = null; - if (data) req.send(data); - if (fn) req.end(fn); - return req; - }; - - /** - * Expose `request`. - */ - - module.exports = request; - - -/***/ }, -/* 12 */ -/***/ function(module, exports, __webpack_require__) { - - - /** - * Expose `Emitter`. - */ - - if (true) { - module.exports = Emitter; - } - - /** - * Initialize a new `Emitter`. - * - * @api public - */ - - function Emitter(obj) { - if (obj) return mixin(obj); - }; - - /** - * Mixin the emitter properties. - * - * @param {Object} obj - * @return {Object} - * @api private - */ - - function mixin(obj) { - for (var key in Emitter.prototype) { - obj[key] = Emitter.prototype[key]; - } - return obj; - } - - /** - * Listen on the given `event` with `fn`. - * - * @param {String} event - * @param {Function} fn - * @return {Emitter} - * @api public - */ - - Emitter.prototype.on = - Emitter.prototype.addEventListener = function(event, fn){ - this._callbacks = this._callbacks || {}; - (this._callbacks['$' + event] = this._callbacks['$' + event] || []) - .push(fn); - return this; - }; - - /** - * Adds an `event` listener that will be invoked a single - * time then automatically removed. - * - * @param {String} event - * @param {Function} fn - * @return {Emitter} - * @api public - */ - - Emitter.prototype.once = function(event, fn){ - function on() { - this.off(event, on); - fn.apply(this, arguments); - } - - on.fn = fn; - this.on(event, on); - return this; - }; - - /** - * Remove the given callback for `event` or all - * registered callbacks. - * - * @param {String} event - * @param {Function} fn - * @return {Emitter} - * @api public - */ - - Emitter.prototype.off = - Emitter.prototype.removeListener = - Emitter.prototype.removeAllListeners = - Emitter.prototype.removeEventListener = function(event, fn){ - this._callbacks = this._callbacks || {}; - - // all - if (0 == arguments.length) { - this._callbacks = {}; - return this; - } - - // specific event - var callbacks = this._callbacks['$' + event]; - if (!callbacks) return this; - - // remove all handlers - if (1 == arguments.length) { - delete this._callbacks['$' + event]; - return this; - } - - // remove specific handler - var cb; - for (var i = 0; i < callbacks.length; i++) { - cb = callbacks[i]; - if (cb === fn || cb.fn === fn) { - callbacks.splice(i, 1); - break; - } - } - return this; - }; - - /** - * Emit `event` with the given args. - * - * @param {String} event - * @param {Mixed} ... - * @return {Emitter} - */ - - Emitter.prototype.emit = function(event){ - this._callbacks = this._callbacks || {}; - var args = [].slice.call(arguments, 1) - , callbacks = this._callbacks['$' + event]; - - if (callbacks) { - callbacks = callbacks.slice(0); - for (var i = 0, len = callbacks.length; i < len; ++i) { - callbacks[i].apply(this, args); - } - } - - return this; - }; - - /** - * Return array of callbacks for `event`. - * - * @param {String} event - * @return {Array} - * @api public - */ - - Emitter.prototype.listeners = function(event){ - this._callbacks = this._callbacks || {}; - return this._callbacks['$' + event] || []; - }; - - /** - * Check if this emitter has `event` handlers. - * - * @param {String} event - * @return {Boolean} - * @api public - */ - - Emitter.prototype.hasListeners = function(event){ - return !! this.listeners(event).length; - }; - - -/***/ }, -/* 13 */ -/***/ function(module, exports) { - - - /** - * Reduce `arr` with `fn`. - * - * @param {Array} arr - * @param {Function} fn - * @param {Mixed} initial - * - * TODO: combatible error handling? - */ - - module.exports = function(arr, fn, initial){ - var idx = 0; - var len = arr.length; - var curr = arguments.length == 3 - ? initial - : arr[idx++]; - - while (idx < len) { - curr = fn.call(null, curr, arr[idx], ++idx, arr); - } - - return curr; - }; - -/***/ }, -/* 14 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.ActivityActivitySummary = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The ActivityActivitySummary model module. - * @module model/ActivityActivitySummary - * @version 0.1.0 - */ - - /** - * Constructs a new ActivityActivitySummary. - * An object summarizing the activity - * @alias module:model/ActivityActivitySummary - * @class - */ - var exports = function() { - - - - - - - }; - - /** - * Constructs a ActivityActivitySummary from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityActivitySummary} obj Optional instance to populate. - * @return {module:model/ActivityActivitySummary} The populated ActivityActivitySummary instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('firstName')) { - obj['firstName'] = ApiClient.convertToType(data['firstName'], 'String'); - } - if (data.hasOwnProperty('lastName')) { - obj['lastName'] = ApiClient.convertToType(data['lastName'], 'String'); - } - if (data.hasOwnProperty('parentObjectId')) { - obj['parentObjectId'] = ApiClient.convertToType(data['parentObjectId'], 'String'); - } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - } - if (data.hasOwnProperty('objectId')) { - obj['objectId'] = ApiClient.convertToType(data['objectId'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} firstName - */ - exports.prototype['firstName'] = undefined; - - /** - * @member {String} lastName - */ - exports.prototype['lastName'] = undefined; - - /** - * @member {String} parentObjectId - */ - exports.prototype['parentObjectId'] = undefined; - - /** - * @member {String} title - */ - exports.prototype['title'] = undefined; - - /** - * @member {String} objectId - */ - exports.prototype['objectId'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 15 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(5)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Activity')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.ActivityEntry = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.Activity); - } - }(this, function(ApiClient, Activity) { - 'use strict'; - - /** - * The ActivityEntry model module. - * @module model/ActivityEntry - * @version 0.1.0 - */ - - /** - * Constructs a new ActivityEntry. - * @alias module:model/ActivityEntry - * @class - * @param entry - */ - var exports = function(entry) { - - this['entry'] = entry; - }; - - /** - * Constructs a ActivityEntry from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityEntry} obj Optional instance to populate. - * @return {module:model/ActivityEntry} The populated ActivityEntry instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entry')) { - obj['entry'] = Activity.constructFromObject(data['entry']); - } - } - return obj; - } - - - /** - * @member {module:model/Activity} entry - */ - exports.prototype['entry'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 16 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(17)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./ActivityPagingList')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.ActivityPaging = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.ActivityPagingList); - } - }(this, function(ApiClient, ActivityPagingList) { - 'use strict'; - - /** - * The ActivityPaging model module. - * @module model/ActivityPaging - * @version 0.1.0 - */ - - /** - * Constructs a new ActivityPaging. - * @alias module:model/ActivityPaging - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a ActivityPaging from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityPaging} obj Optional instance to populate. - * @return {module:model/ActivityPaging} The populated ActivityPaging instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('list')) { - obj['list'] = ActivityPagingList.constructFromObject(data['list']); - } - } - return obj; - } - - - /** - * @member {module:model/ActivityPagingList} list - */ - exports.prototype['list'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 17 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(15), __webpack_require__(18)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./ActivityEntry'), require('./Pagination')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.ActivityPagingList = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.ActivityEntry, root.AlfrescoCoreRestApi.Pagination); - } - }(this, function(ApiClient, ActivityEntry, Pagination) { - 'use strict'; - - /** - * The ActivityPagingList model module. - * @module model/ActivityPagingList - * @version 0.1.0 - */ - - /** - * Constructs a new ActivityPagingList. - * @alias module:model/ActivityPagingList - * @class - * @param entries - * @param pagination - */ - var exports = function(entries, pagination) { - - this['entries'] = entries; - this['pagination'] = pagination; - }; - - /** - * Constructs a ActivityPagingList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityPagingList} obj Optional instance to populate. - * @return {module:model/ActivityPagingList} The populated ActivityPagingList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entries')) { - obj['entries'] = ApiClient.convertToType(data['entries'], [ActivityEntry]); - } - if (data.hasOwnProperty('pagination')) { - obj['pagination'] = Pagination.constructFromObject(data['pagination']); - } - } - return obj; - } - - - /** - * @member {Array.} entries - */ - exports.prototype['entries'] = undefined; - - /** - * @member {module:model/Pagination} pagination - */ - exports.prototype['pagination'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 18 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.Pagination = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The Pagination model module. - * @module model/Pagination - * @version 0.1.0 - */ - - /** - * Constructs a new Pagination. - * @alias module:model/Pagination - * @class - * @param count - * @param hasMoreItems - * @param skipCount - * @param maxItems - */ - var exports = function(count, hasMoreItems, skipCount, maxItems) { - - this['count'] = count; - this['hasMoreItems'] = hasMoreItems; - - this['skipCount'] = skipCount; - this['maxItems'] = maxItems; - }; - - /** - * Constructs a Pagination from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Pagination} obj Optional instance to populate. - * @return {module:model/Pagination} The populated Pagination instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Integer'); - } - if (data.hasOwnProperty('hasMoreItems')) { - obj['hasMoreItems'] = ApiClient.convertToType(data['hasMoreItems'], 'Boolean'); - } - if (data.hasOwnProperty('totalItems')) { - obj['totalItems'] = ApiClient.convertToType(data['totalItems'], 'Integer'); - } - if (data.hasOwnProperty('skipCount')) { - obj['skipCount'] = ApiClient.convertToType(data['skipCount'], 'Integer'); - } - if (data.hasOwnProperty('maxItems')) { - obj['maxItems'] = ApiClient.convertToType(data['maxItems'], 'Integer'); - } - } - return obj; - } - - - /** - * The number of objects in the entries array.\n - * @member {Integer} count - */ - exports.prototype['count'] = undefined; - - /** - * A boolean value which is **true** if there are more entities in the collection\nbeyond those in this response. A true value means a request with a larger value\nfor the **skipCount** or the **maxItems** parameter will return more entities.\n - * @member {Boolean} hasMoreItems - */ - exports.prototype['hasMoreItems'] = undefined; - - /** - * An integer describing the total number of entities in the collection.\nThe API might not be able to determine this value,\nin which case this property will not be present.\n - * @member {Integer} totalItems - */ - exports.prototype['totalItems'] = undefined; - - /** - * An integer describing how many entities exist in the collection before\nthose included in this list.\n - * @member {Integer} skipCount - */ - exports.prototype['skipCount'] = undefined; - - /** - * The value of the **maxItems** parameter used to generate this list,\nor if there was no **maxItems** parameter the default value, 10\n - * @member {Integer} maxItems - */ - exports.prototype['maxItems'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 19 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.AssocChildBody = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The AssocChildBody model module. - * @module model/AssocChildBody - * @version 0.1.0 - */ - - /** - * Constructs a new AssocChildBody. - * @alias module:model/AssocChildBody - * @class - */ - var exports = function() { - - - - }; - - /** - * Constructs a AssocChildBody from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AssocChildBody} obj Optional instance to populate. - * @return {module:model/AssocChildBody} The populated AssocChildBody instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('childId')) { - obj['childId'] = ApiClient.convertToType(data['childId'], 'String'); - } - if (data.hasOwnProperty('assocType')) { - obj['assocType'] = ApiClient.convertToType(data['assocType'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} childId - */ - exports.prototype['childId'] = undefined; - - /** - * @member {String} assocType - */ - exports.prototype['assocType'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 20 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.AssocInfo = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The AssocInfo model module. - * @module model/AssocInfo - * @version 0.1.0 - */ - - /** - * Constructs a new AssocInfo. - * @alias module:model/AssocInfo - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a AssocInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AssocInfo} obj Optional instance to populate. - * @return {module:model/AssocInfo} The populated AssocInfo instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('assocType')) { - obj['assocType'] = ApiClient.convertToType(data['assocType'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} assocType - */ - exports.prototype['assocType'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 21 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.AssocTargetBody = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The AssocTargetBody model module. - * @module model/AssocTargetBody - * @version 0.1.0 - */ - - /** - * Constructs a new AssocTargetBody. - * @alias module:model/AssocTargetBody - * @class - */ - var exports = function() { - - - - }; - - /** - * Constructs a AssocTargetBody from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AssocTargetBody} obj Optional instance to populate. - * @return {module:model/AssocTargetBody} The populated AssocTargetBody instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('targetId')) { - obj['targetId'] = ApiClient.convertToType(data['targetId'], 'String'); - } - if (data.hasOwnProperty('assocType')) { - obj['assocType'] = ApiClient.convertToType(data['assocType'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} targetId - */ - exports.prototype['targetId'] = undefined; - - /** - * @member {String} assocType - */ - exports.prototype['assocType'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 22 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.ChildAssocInfo = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The ChildAssocInfo model module. - * @module model/ChildAssocInfo - * @version 0.1.0 - */ - - /** - * Constructs a new ChildAssocInfo. - * @alias module:model/ChildAssocInfo - * @class - */ - var exports = function() { - - - - }; - - /** - * Constructs a ChildAssocInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ChildAssocInfo} obj Optional instance to populate. - * @return {module:model/ChildAssocInfo} The populated ChildAssocInfo instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('assocType')) { - obj['assocType'] = ApiClient.convertToType(data['assocType'], 'String'); - } - if (data.hasOwnProperty('isPrimary')) { - obj['isPrimary'] = ApiClient.convertToType(data['isPrimary'], 'Boolean'); - } - } - return obj; - } - - - /** - * @member {String} assocType - */ - exports.prototype['assocType'] = undefined; - - /** - * @member {Boolean} isPrimary - */ - exports.prototype['isPrimary'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 23 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(24)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Person')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.Comment = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.Person); - } - }(this, function(ApiClient, Person) { - 'use strict'; - - /** - * The Comment model module. - * @module model/Comment - * @version 0.1.0 - */ - - /** - * Constructs a new Comment. - * @alias module:model/Comment - * @class - * @param id - * @param content - * @param createdBy - * @param createdAt - * @param edited - * @param modifiedBy - * @param modifiedAt - * @param canEdit - * @param canDelete - */ - var exports = function(id, content, createdBy, createdAt, edited, modifiedBy, modifiedAt, canEdit, canDelete) { - - this['id'] = id; - this['content'] = content; - this['createdBy'] = createdBy; - this['createdAt'] = createdAt; - this['edited'] = edited; - this['modifiedBy'] = modifiedBy; - this['modifiedAt'] = modifiedAt; - this['canEdit'] = canEdit; - this['canDelete'] = canDelete; - }; - - /** - * Constructs a Comment from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Comment} obj Optional instance to populate. - * @return {module:model/Comment} The populated Comment instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('content')) { - obj['content'] = ApiClient.convertToType(data['content'], 'String'); - } - if (data.hasOwnProperty('createdBy')) { - obj['createdBy'] = Person.constructFromObject(data['createdBy']); - } - if (data.hasOwnProperty('createdAt')) { - obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'Date'); - } - if (data.hasOwnProperty('edited')) { - obj['edited'] = ApiClient.convertToType(data['edited'], 'Boolean'); - } - if (data.hasOwnProperty('modifiedBy')) { - obj['modifiedBy'] = Person.constructFromObject(data['modifiedBy']); - } - if (data.hasOwnProperty('modifiedAt')) { - obj['modifiedAt'] = ApiClient.convertToType(data['modifiedAt'], 'Date'); - } - if (data.hasOwnProperty('canEdit')) { - obj['canEdit'] = ApiClient.convertToType(data['canEdit'], 'Boolean'); - } - if (data.hasOwnProperty('canDelete')) { - obj['canDelete'] = ApiClient.convertToType(data['canDelete'], 'Boolean'); - } - } - return obj; - } - - - /** - * @member {String} id - */ - exports.prototype['id'] = undefined; - - /** - * @member {String} content - */ - exports.prototype['content'] = undefined; - - /** - * @member {module:model/Person} createdBy - */ - exports.prototype['createdBy'] = undefined; - - /** - * @member {Date} createdAt - */ - exports.prototype['createdAt'] = undefined; - - /** - * @member {Boolean} edited - */ - exports.prototype['edited'] = undefined; - - /** - * @member {module:model/Person} modifiedBy - */ - exports.prototype['modifiedBy'] = undefined; - - /** - * @member {Date} modifiedAt - */ - exports.prototype['modifiedAt'] = undefined; - - /** - * @member {Boolean} canEdit - */ - exports.prototype['canEdit'] = undefined; - - /** - * @member {Boolean} canDelete - */ - exports.prototype['canDelete'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 24 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(25)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Company')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.Person = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.Company); - } - }(this, function(ApiClient, Company) { - 'use strict'; - - /** - * The Person model module. - * @module model/Person - * @version 0.1.0 - */ - - /** - * Constructs a new Person. - * @alias module:model/Person - * @class - * @param id - * @param firstName - * @param lastName - * @param email - * @param enabled - */ - var exports = function(id, firstName, lastName, email, enabled) { - - this['id'] = id; - this['firstName'] = firstName; - this['lastName'] = lastName; - - - this['email'] = email; - - - - - - - - - - - this['enabled'] = enabled; - - }; - - /** - * Constructs a Person from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Person} obj Optional instance to populate. - * @return {module:model/Person} The populated Person instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('firstName')) { - obj['firstName'] = ApiClient.convertToType(data['firstName'], 'String'); - } - if (data.hasOwnProperty('lastName')) { - obj['lastName'] = ApiClient.convertToType(data['lastName'], 'String'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('avatarId')) { - obj['avatarId'] = ApiClient.convertToType(data['avatarId'], 'String'); - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String'); - } - if (data.hasOwnProperty('skypeId')) { - obj['skypeId'] = ApiClient.convertToType(data['skypeId'], 'String'); - } - if (data.hasOwnProperty('googleId')) { - obj['googleId'] = ApiClient.convertToType(data['googleId'], 'String'); - } - if (data.hasOwnProperty('instantMessageId')) { - obj['instantMessageId'] = ApiClient.convertToType(data['instantMessageId'], 'String'); - } - if (data.hasOwnProperty('jobTitle')) { - obj['jobTitle'] = ApiClient.convertToType(data['jobTitle'], 'String'); - } - if (data.hasOwnProperty('location')) { - obj['location'] = ApiClient.convertToType(data['location'], 'String'); - } - if (data.hasOwnProperty('company')) { - obj['company'] = Company.constructFromObject(data['company']); - } - if (data.hasOwnProperty('mobile')) { - obj['mobile'] = ApiClient.convertToType(data['mobile'], 'String'); - } - if (data.hasOwnProperty('telephone')) { - obj['telephone'] = ApiClient.convertToType(data['telephone'], 'String'); - } - if (data.hasOwnProperty('statusUpdatedAt')) { - obj['statusUpdatedAt'] = ApiClient.convertToType(data['statusUpdatedAt'], 'Date'); - } - if (data.hasOwnProperty('userStatus')) { - obj['userStatus'] = ApiClient.convertToType(data['userStatus'], 'String'); - } - if (data.hasOwnProperty('enabled')) { - obj['enabled'] = ApiClient.convertToType(data['enabled'], 'Boolean'); - } - if (data.hasOwnProperty('emailNotificationsEnabled')) { - obj['emailNotificationsEnabled'] = ApiClient.convertToType(data['emailNotificationsEnabled'], 'Boolean'); - } - } - return obj; - } - - - /** - * @member {String} id - */ - exports.prototype['id'] = undefined; - - /** - * @member {String} firstName - */ - exports.prototype['firstName'] = undefined; - - /** - * @member {String} lastName - */ - exports.prototype['lastName'] = undefined; - - /** - * @member {String} description - */ - exports.prototype['description'] = undefined; - - /** - * @member {String} avatarId - */ - exports.prototype['avatarId'] = undefined; - - /** - * @member {String} email - */ - exports.prototype['email'] = undefined; - - /** - * @member {String} skypeId - */ - exports.prototype['skypeId'] = undefined; - - /** - * @member {String} googleId - */ - exports.prototype['googleId'] = undefined; - - /** - * @member {String} instantMessageId - */ - exports.prototype['instantMessageId'] = undefined; - - /** - * @member {String} jobTitle - */ - exports.prototype['jobTitle'] = undefined; - - /** - * @member {String} location - */ - exports.prototype['location'] = undefined; - - /** - * @member {module:model/Company} company - */ - exports.prototype['company'] = undefined; - - /** - * @member {String} mobile - */ - exports.prototype['mobile'] = undefined; - - /** - * @member {String} telephone - */ - exports.prototype['telephone'] = undefined; - - /** - * @member {Date} statusUpdatedAt - */ - exports.prototype['statusUpdatedAt'] = undefined; - - /** - * @member {String} userStatus - */ - exports.prototype['userStatus'] = undefined; - - /** - * @member {Boolean} enabled - * @default true - */ - exports.prototype['enabled'] = true; - - /** - * @member {Boolean} emailNotificationsEnabled - */ - exports.prototype['emailNotificationsEnabled'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 25 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.Company = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The Company model module. - * @module model/Company - * @version 0.1.0 - */ - - /** - * Constructs a new Company. - * @alias module:model/Company - * @class - */ - var exports = function() { - - - - - - - - - - }; - - /** - * Constructs a Company from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Company} obj Optional instance to populate. - * @return {module:model/Company} The populated Company instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('organization')) { - obj['organization'] = ApiClient.convertToType(data['organization'], 'String'); - } - if (data.hasOwnProperty('address1')) { - obj['address1'] = ApiClient.convertToType(data['address1'], 'String'); - } - if (data.hasOwnProperty('address2')) { - obj['address2'] = ApiClient.convertToType(data['address2'], 'String'); - } - if (data.hasOwnProperty('address3')) { - obj['address3'] = ApiClient.convertToType(data['address3'], 'String'); - } - if (data.hasOwnProperty('postcode')) { - obj['postcode'] = ApiClient.convertToType(data['postcode'], 'String'); - } - if (data.hasOwnProperty('telephone')) { - obj['telephone'] = ApiClient.convertToType(data['telephone'], 'String'); - } - if (data.hasOwnProperty('fax')) { - obj['fax'] = ApiClient.convertToType(data['fax'], 'String'); - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} organization - */ - exports.prototype['organization'] = undefined; - - /** - * @member {String} address1 - */ - exports.prototype['address1'] = undefined; - - /** - * @member {String} address2 - */ - exports.prototype['address2'] = undefined; - - /** - * @member {String} address3 - */ - exports.prototype['address3'] = undefined; - - /** - * @member {String} postcode - */ - exports.prototype['postcode'] = undefined; - - /** - * @member {String} telephone - */ - exports.prototype['telephone'] = undefined; - - /** - * @member {String} fax - */ - exports.prototype['fax'] = undefined; - - /** - * @member {String} email - */ - exports.prototype['email'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 26 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.CommentBody = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The CommentBody model module. - * @module model/CommentBody - * @version 0.1.0 - */ - - /** - * Constructs a new CommentBody. - * @alias module:model/CommentBody - * @class - * @param content - */ - var exports = function(content) { - - this['content'] = content; - }; - - /** - * Constructs a CommentBody from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CommentBody} obj Optional instance to populate. - * @return {module:model/CommentBody} The populated CommentBody instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('content')) { - obj['content'] = ApiClient.convertToType(data['content'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} content - */ - exports.prototype['content'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 27 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.CommentBody1 = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The CommentBody1 model module. - * @module model/CommentBody1 - * @version 0.1.0 - */ - - /** - * Constructs a new CommentBody1. - * @alias module:model/CommentBody1 - * @class - * @param content - */ - var exports = function(content) { - - this['content'] = content; - }; - - /** - * Constructs a CommentBody1 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CommentBody1} obj Optional instance to populate. - * @return {module:model/CommentBody1} The populated CommentBody1 instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('content')) { - obj['content'] = ApiClient.convertToType(data['content'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} content - */ - exports.prototype['content'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 28 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(23)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Comment')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.CommentEntry = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.Comment); - } - }(this, function(ApiClient, Comment) { - 'use strict'; - - /** - * The CommentEntry model module. - * @module model/CommentEntry - * @version 0.1.0 - */ - - /** - * Constructs a new CommentEntry. - * @alias module:model/CommentEntry - * @class - * @param entry - */ - var exports = function(entry) { - - this['entry'] = entry; - }; - - /** - * Constructs a CommentEntry from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CommentEntry} obj Optional instance to populate. - * @return {module:model/CommentEntry} The populated CommentEntry instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entry')) { - obj['entry'] = Comment.constructFromObject(data['entry']); - } - } - return obj; - } - - - /** - * @member {module:model/Comment} entry - */ - exports.prototype['entry'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 29 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(30)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./CommentPagingList')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.CommentPaging = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.CommentPagingList); - } - }(this, function(ApiClient, CommentPagingList) { - 'use strict'; - - /** - * The CommentPaging model module. - * @module model/CommentPaging - * @version 0.1.0 - */ - - /** - * Constructs a new CommentPaging. - * @alias module:model/CommentPaging - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a CommentPaging from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CommentPaging} obj Optional instance to populate. - * @return {module:model/CommentPaging} The populated CommentPaging instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('list')) { - obj['list'] = CommentPagingList.constructFromObject(data['list']); - } - } - return obj; - } - - - /** - * @member {module:model/CommentPagingList} list - */ - exports.prototype['list'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 30 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(28), __webpack_require__(18)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./CommentEntry'), require('./Pagination')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.CommentPagingList = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.CommentEntry, root.AlfrescoCoreRestApi.Pagination); - } - }(this, function(ApiClient, CommentEntry, Pagination) { - 'use strict'; - - /** - * The CommentPagingList model module. - * @module model/CommentPagingList - * @version 0.1.0 - */ - - /** - * Constructs a new CommentPagingList. - * @alias module:model/CommentPagingList - * @class - * @param entries - * @param pagination - */ - var exports = function(entries, pagination) { - - this['entries'] = entries; - this['pagination'] = pagination; - }; - - /** - * Constructs a CommentPagingList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CommentPagingList} obj Optional instance to populate. - * @return {module:model/CommentPagingList} The populated CommentPagingList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entries')) { - obj['entries'] = ApiClient.convertToType(data['entries'], [CommentEntry]); - } - if (data.hasOwnProperty('pagination')) { - obj['pagination'] = Pagination.constructFromObject(data['pagination']); - } - } - return obj; - } - - - /** - * @member {Array.} entries - */ - exports.prototype['entries'] = undefined; - - /** - * @member {module:model/Pagination} pagination - */ - exports.prototype['pagination'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 31 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.ContentInfo = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The ContentInfo model module. - * @module model/ContentInfo - * @version 0.1.0 - */ - - /** - * Constructs a new ContentInfo. - * @alias module:model/ContentInfo - * @class - */ - var exports = function() { - - - - - - }; - - /** - * Constructs a ContentInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ContentInfo} obj Optional instance to populate. - * @return {module:model/ContentInfo} The populated ContentInfo instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('mimeType')) { - obj['mimeType'] = ApiClient.convertToType(data['mimeType'], 'String'); - } - if (data.hasOwnProperty('mimeTypeName')) { - obj['mimeTypeName'] = ApiClient.convertToType(data['mimeTypeName'], 'String'); - } - if (data.hasOwnProperty('sizeInBytes')) { - obj['sizeInBytes'] = ApiClient.convertToType(data['sizeInBytes'], 'Integer'); - } - if (data.hasOwnProperty('encoding')) { - obj['encoding'] = ApiClient.convertToType(data['encoding'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} mimeType - */ - exports.prototype['mimeType'] = undefined; - - /** - * @member {String} mimeTypeName - */ - exports.prototype['mimeTypeName'] = undefined; - - /** - * @member {Integer} sizeInBytes - */ - exports.prototype['sizeInBytes'] = undefined; - - /** - * @member {String} encoding - */ - exports.prototype['encoding'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 32 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.CopyBody = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The CopyBody model module. - * @module model/CopyBody - * @version 0.1.0 - */ - - /** - * Constructs a new CopyBody. - * @alias module:model/CopyBody - * @class - */ - var exports = function() { - - - - }; - - /** - * Constructs a CopyBody from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CopyBody} obj Optional instance to populate. - * @return {module:model/CopyBody} The populated CopyBody instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('targetParentId')) { - obj['targetParentId'] = ApiClient.convertToType(data['targetParentId'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} targetParentId - */ - exports.prototype['targetParentId'] = undefined; - - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 33 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(31), __webpack_require__(34), __webpack_require__(35)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./ContentInfo'), require('./NodeFull'), require('./UserInfo')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.DeletedNode = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.ContentInfo, root.AlfrescoCoreRestApi.NodeFull, root.AlfrescoCoreRestApi.UserInfo); - } - }(this, function(ApiClient, ContentInfo, NodeFull, UserInfo) { - 'use strict'; - - /** - * The DeletedNode model module. - * @module model/DeletedNode - * @version 0.1.0 - */ - - /** - * Constructs a new DeletedNode. - * @alias module:model/DeletedNode - * @class - * @extends module:model/NodeFull - * @param archivedByUser - * @param archivedAt - */ - var exports = function(archivedByUser, archivedAt) { - NodeFull.call(this); - this['archivedByUser'] = archivedByUser; - this['archivedAt'] = archivedAt; - }; - - /** - * Constructs a DeletedNode from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeletedNode} obj Optional instance to populate. - * @return {module:model/DeletedNode} The populated DeletedNode instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - NodeFull.constructFromObject(data, obj); - if (data.hasOwnProperty('archivedByUser')) { - obj['archivedByUser'] = UserInfo.constructFromObject(data['archivedByUser']); - } - if (data.hasOwnProperty('archivedAt')) { - obj['archivedAt'] = ApiClient.convertToType(data['archivedAt'], 'Date'); - } - } - return obj; - } - - exports.prototype = Object.create(NodeFull.prototype); - exports.prototype.constructor = exports; - - - /** - * @member {module:model/UserInfo} archivedByUser - */ - exports.prototype['archivedByUser'] = undefined; - - /** - * @member {Date} archivedAt - */ - exports.prototype['archivedAt'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 34 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(31), __webpack_require__(35)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./ContentInfo'), require('./UserInfo')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.NodeFull = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.ContentInfo, root.AlfrescoCoreRestApi.UserInfo); - } - }(this, function(ApiClient, ContentInfo, UserInfo) { - 'use strict'; - - /** - * The NodeFull model module. - * @module model/NodeFull - * @version 0.1.0 - */ - - /** - * Constructs a new NodeFull. - * @alias module:model/NodeFull - * @class - */ - var exports = function() { - - - - - - - - - - - - - - - - }; - - /** - * Constructs a NodeFull from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NodeFull} obj Optional instance to populate. - * @return {module:model/NodeFull} The populated NodeFull instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('parentId')) { - obj['parentId'] = ApiClient.convertToType(data['parentId'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('nodeType')) { - obj['nodeType'] = ApiClient.convertToType(data['nodeType'], 'String'); - } - if (data.hasOwnProperty('isFolder')) { - obj['isFolder'] = ApiClient.convertToType(data['isFolder'], 'Boolean'); - } - if (data.hasOwnProperty('isFile')) { - obj['isFile'] = ApiClient.convertToType(data['isFile'], 'Boolean'); - } - if (data.hasOwnProperty('modifiedAt')) { - obj['modifiedAt'] = ApiClient.convertToType(data['modifiedAt'], 'Date'); - } - if (data.hasOwnProperty('modifiedByUser')) { - obj['modifiedByUser'] = UserInfo.constructFromObject(data['modifiedByUser']); - } - if (data.hasOwnProperty('createdAt')) { - obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'Date'); - } - if (data.hasOwnProperty('createdByUser')) { - obj['createdByUser'] = UserInfo.constructFromObject(data['createdByUser']); - } - if (data.hasOwnProperty('content')) { - obj['content'] = ContentInfo.constructFromObject(data['content']); - } - if (data.hasOwnProperty('aspectNames')) { - obj['aspectNames'] = ApiClient.convertToType(data['aspectNames'], ['String']); - } - if (data.hasOwnProperty('properties')) { - obj['properties'] = ApiClient.convertToType(data['properties'], {'String': 'String'}); - } - if (data.hasOwnProperty('allowableOperations')) { - obj['allowableOperations'] = ApiClient.convertToType(data['allowableOperations'], ['String']); - } - } - return obj; - } - - - /** - * @member {String} id - */ - exports.prototype['id'] = undefined; - - /** - * @member {String} parentId - */ - exports.prototype['parentId'] = undefined; - - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - /** - * @member {String} nodeType - */ - exports.prototype['nodeType'] = undefined; - - /** - * @member {Boolean} isFolder - */ - exports.prototype['isFolder'] = undefined; - - /** - * @member {Boolean} isFile - */ - exports.prototype['isFile'] = undefined; - - /** - * @member {Date} modifiedAt - */ - exports.prototype['modifiedAt'] = undefined; - - /** - * @member {module:model/UserInfo} modifiedByUser - */ - exports.prototype['modifiedByUser'] = undefined; - - /** - * @member {Date} createdAt - */ - exports.prototype['createdAt'] = undefined; - - /** - * @member {module:model/UserInfo} createdByUser - */ - exports.prototype['createdByUser'] = undefined; - - /** - * @member {module:model/ContentInfo} content - */ - exports.prototype['content'] = undefined; - - /** - * @member {Array.} aspectNames - */ - exports.prototype['aspectNames'] = undefined; - - /** - * @member {Object.} properties - */ - exports.prototype['properties'] = undefined; - - /** - * @member {Array.} allowableOperations - */ - exports.prototype['allowableOperations'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 35 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.UserInfo = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The UserInfo model module. - * @module model/UserInfo - * @version 0.1.0 - */ - - /** - * Constructs a new UserInfo. - * @alias module:model/UserInfo - * @class - */ - var exports = function() { - - - - }; - - /** - * Constructs a UserInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UserInfo} obj Optional instance to populate. - * @return {module:model/UserInfo} The populated UserInfo instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('displayName')) { - obj['displayName'] = ApiClient.convertToType(data['displayName'], 'String'); - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} displayName - */ - exports.prototype['displayName'] = undefined; - - /** - * @member {String} id - */ - exports.prototype['id'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 36 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(33)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./DeletedNode')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.DeletedNodeEntry = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.DeletedNode); - } - }(this, function(ApiClient, DeletedNode) { - 'use strict'; - - /** - * The DeletedNodeEntry model module. - * @module model/DeletedNodeEntry - * @version 0.1.0 - */ - - /** - * Constructs a new DeletedNodeEntry. - * @alias module:model/DeletedNodeEntry - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a DeletedNodeEntry from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeletedNodeEntry} obj Optional instance to populate. - * @return {module:model/DeletedNodeEntry} The populated DeletedNodeEntry instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entry')) { - obj['entry'] = DeletedNode.constructFromObject(data['entry']); - } - } - return obj; - } - - - /** - * @member {module:model/DeletedNode} entry - */ - exports.prototype['entry'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 37 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(31), __webpack_require__(38), __webpack_require__(39), __webpack_require__(35)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./ContentInfo'), require('./NodeMinimal'), require('./PathElement'), require('./UserInfo')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.DeletedNodeMinimal = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.ContentInfo, root.AlfrescoCoreRestApi.NodeMinimal, root.AlfrescoCoreRestApi.PathElement, root.AlfrescoCoreRestApi.UserInfo); - } - }(this, function(ApiClient, ContentInfo, NodeMinimal, PathElement, UserInfo) { - 'use strict'; - - /** - * The DeletedNodeMinimal model module. - * @module model/DeletedNodeMinimal - * @version 0.1.0 - */ - - /** - * Constructs a new DeletedNodeMinimal. - * @alias module:model/DeletedNodeMinimal - * @class - * @extends module:model/NodeMinimal - * @param archivedByUser - * @param archivedAt - */ - var exports = function(archivedByUser, archivedAt) { - NodeMinimal.call(this); - this['archivedByUser'] = archivedByUser; - this['archivedAt'] = archivedAt; - }; - - /** - * Constructs a DeletedNodeMinimal from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeletedNodeMinimal} obj Optional instance to populate. - * @return {module:model/DeletedNodeMinimal} The populated DeletedNodeMinimal instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - NodeMinimal.constructFromObject(data, obj); - if (data.hasOwnProperty('archivedByUser')) { - obj['archivedByUser'] = UserInfo.constructFromObject(data['archivedByUser']); - } - if (data.hasOwnProperty('archivedAt')) { - obj['archivedAt'] = ApiClient.convertToType(data['archivedAt'], 'Date'); - } - } - return obj; - } - - exports.prototype = Object.create(NodeMinimal.prototype); - exports.prototype.constructor = exports; - - - /** - * @member {module:model/UserInfo} archivedByUser - */ - exports.prototype['archivedByUser'] = undefined; - - /** - * @member {Date} archivedAt - */ - exports.prototype['archivedAt'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 38 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(31), __webpack_require__(39), __webpack_require__(35)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./ContentInfo'), require('./PathElement'), require('./UserInfo')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.NodeMinimal = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.ContentInfo, root.AlfrescoCoreRestApi.PathElement, root.AlfrescoCoreRestApi.UserInfo); - } - }(this, function(ApiClient, ContentInfo, PathElement, UserInfo) { - 'use strict'; - - /** - * The NodeMinimal model module. - * @module model/NodeMinimal - * @version 0.1.0 - */ - - /** - * Constructs a new NodeMinimal. - * @alias module:model/NodeMinimal - * @class - */ - var exports = function() { - - - - - - - - - - - - - - }; - - /** - * Constructs a NodeMinimal from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NodeMinimal} obj Optional instance to populate. - * @return {module:model/NodeMinimal} The populated NodeMinimal instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('parentId')) { - obj['parentId'] = ApiClient.convertToType(data['parentId'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('nodeType')) { - obj['nodeType'] = ApiClient.convertToType(data['nodeType'], 'String'); - } - if (data.hasOwnProperty('isFolder')) { - obj['isFolder'] = ApiClient.convertToType(data['isFolder'], 'Boolean'); - } - if (data.hasOwnProperty('isFile')) { - obj['isFile'] = ApiClient.convertToType(data['isFile'], 'Boolean'); - } - if (data.hasOwnProperty('modifiedAt')) { - obj['modifiedAt'] = ApiClient.convertToType(data['modifiedAt'], 'Date'); - } - if (data.hasOwnProperty('modifiedByUser')) { - obj['modifiedByUser'] = UserInfo.constructFromObject(data['modifiedByUser']); - } - if (data.hasOwnProperty('createdAt')) { - obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'Date'); - } - if (data.hasOwnProperty('createdByUser')) { - obj['createdByUser'] = UserInfo.constructFromObject(data['createdByUser']); - } - if (data.hasOwnProperty('content')) { - obj['content'] = ContentInfo.constructFromObject(data['content']); - } - if (data.hasOwnProperty('path')) { - obj['path'] = PathElement.constructFromObject(data['path']); - } - if (data.hasOwnProperty('properties')) { - obj['properties'] = data['properties']; - } - } - return obj; - } - - - /** - * @member {String} id - */ - exports.prototype['id'] = undefined; - - /** - * @member {String} parentId - */ - exports.prototype['parentId'] = undefined; - - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - /** - * @member {String} nodeType - */ - exports.prototype['nodeType'] = undefined; - - /** - * @member {Boolean} isFolder - */ - exports.prototype['isFolder'] = undefined; - - /** - * @member {Boolean} isFile - */ - exports.prototype['isFile'] = undefined; - - /** - * @member {Date} modifiedAt - */ - exports.prototype['modifiedAt'] = undefined; - - /** - * @member {module:model/UserInfo} modifiedByUser - */ - exports.prototype['modifiedByUser'] = undefined; - - /** - * @member {Date} createdAt - */ - exports.prototype['createdAt'] = undefined; - - /** - * @member {module:model/UserInfo} createdByUser - */ - exports.prototype['createdByUser'] = undefined; - - /** - * @member {module:model/ContentInfo} content - */ - exports.prototype['content'] = undefined; - - /** - * @member {module:model/PathElement} path - */ - exports.prototype['path'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 39 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.PathElement = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The PathElement model module. - * @module model/PathElement - * @version 0.1.0 - */ - - /** - * Constructs a new PathElement. - * @alias module:model/PathElement - * @class - */ - var exports = function() { - - - - }; - - /** - * Constructs a PathElement from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PathElement} obj Optional instance to populate. - * @return {module:model/PathElement} The populated PathElement instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} id - */ - exports.prototype['id'] = undefined; - - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 40 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(37)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./DeletedNodeMinimal')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.DeletedNodeMinimalEntry = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.DeletedNodeMinimal); - } - }(this, function(ApiClient, DeletedNodeMinimal) { - 'use strict'; - - /** - * The DeletedNodeMinimalEntry model module. - * @module model/DeletedNodeMinimalEntry - * @version 0.1.0 - */ - - /** - * Constructs a new DeletedNodeMinimalEntry. - * @alias module:model/DeletedNodeMinimalEntry - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a DeletedNodeMinimalEntry from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeletedNodeMinimalEntry} obj Optional instance to populate. - * @return {module:model/DeletedNodeMinimalEntry} The populated DeletedNodeMinimalEntry instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entry')) { - obj['entry'] = DeletedNodeMinimal.constructFromObject(data['entry']); - } - } - return obj; - } - - - /** - * @member {module:model/DeletedNodeMinimal} entry - */ - exports.prototype['entry'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 41 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(42)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./DeletedNodesPagingList')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.DeletedNodesPaging = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.DeletedNodesPagingList); - } - }(this, function(ApiClient, DeletedNodesPagingList) { - 'use strict'; - - /** - * The DeletedNodesPaging model module. - * @module model/DeletedNodesPaging - * @version 0.1.0 - */ - - /** - * Constructs a new DeletedNodesPaging. - * @alias module:model/DeletedNodesPaging - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a DeletedNodesPaging from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeletedNodesPaging} obj Optional instance to populate. - * @return {module:model/DeletedNodesPaging} The populated DeletedNodesPaging instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('list')) { - obj['list'] = DeletedNodesPagingList.constructFromObject(data['list']); - } - } - return obj; - } - - - /** - * @member {module:model/DeletedNodesPagingList} list - */ - exports.prototype['list'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 42 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(40), __webpack_require__(18)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./DeletedNodeMinimalEntry'), require('./Pagination')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.DeletedNodesPagingList = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.DeletedNodeMinimalEntry, root.AlfrescoCoreRestApi.Pagination); - } - }(this, function(ApiClient, DeletedNodeMinimalEntry, Pagination) { - 'use strict'; - - /** - * The DeletedNodesPagingList model module. - * @module model/DeletedNodesPagingList - * @version 0.1.0 - */ - - /** - * Constructs a new DeletedNodesPagingList. - * @alias module:model/DeletedNodesPagingList - * @class - */ - var exports = function() { - - - - }; - - /** - * Constructs a DeletedNodesPagingList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeletedNodesPagingList} obj Optional instance to populate. - * @return {module:model/DeletedNodesPagingList} The populated DeletedNodesPagingList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entries')) { - obj['entries'] = ApiClient.convertToType(data['entries'], [DeletedNodeMinimalEntry]); - } - if (data.hasOwnProperty('pagination')) { - obj['pagination'] = Pagination.constructFromObject(data['pagination']); - } - } - return obj; - } - - - /** - * @member {Array.} entries - */ - exports.prototype['entries'] = undefined; - - /** - * @member {module:model/Pagination} pagination - */ - exports.prototype['pagination'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 43 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.EmailSharedLinkBody = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The EmailSharedLinkBody model module. - * @module model/EmailSharedLinkBody - * @version 0.1.0 - */ - - /** - * Constructs a new EmailSharedLinkBody. - * @alias module:model/EmailSharedLinkBody - * @class - */ - var exports = function() { - - - - - - }; - - /** - * Constructs a EmailSharedLinkBody from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EmailSharedLinkBody} obj Optional instance to populate. - * @return {module:model/EmailSharedLinkBody} The populated EmailSharedLinkBody instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('client')) { - obj['client'] = ApiClient.convertToType(data['client'], 'String'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('locale')) { - obj['locale'] = ApiClient.convertToType(data['locale'], 'String'); - } - if (data.hasOwnProperty('recipientEmails')) { - obj['recipientEmails'] = ApiClient.convertToType(data['recipientEmails'], ['String']); - } - } - return obj; - } - - - /** - * @member {String} client - */ - exports.prototype['client'] = undefined; - - /** - * @member {String} message - */ - exports.prototype['message'] = undefined; - - /** - * @member {String} locale - */ - exports.prototype['locale'] = undefined; - - /** - * @member {Array.} recipientEmails - */ - exports.prototype['recipientEmails'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 44 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(45)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./ErrorError')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.Error = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.ErrorError); - } - }(this, function(ApiClient, ErrorError) { - 'use strict'; - - /** - * The Error model module. - * @module model/Error - * @version 0.1.0 - */ - - /** - * Constructs a new Error. - * @alias module:model/Error - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a Error from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Error} obj Optional instance to populate. - * @return {module:model/Error} The populated Error instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('error')) { - obj['error'] = ErrorError.constructFromObject(data['error']); - } - } - return obj; - } - - - /** - * @member {module:model/ErrorError} error - */ - exports.prototype['error'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 45 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.ErrorError = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The ErrorError model module. - * @module model/ErrorError - * @version 0.1.0 - */ - - /** - * Constructs a new ErrorError. - * @alias module:model/ErrorError - * @class - * @param briefSummary - * @param descriptionURL - * @param stackTrace - * @param statusCode - */ - var exports = function(briefSummary, descriptionURL, stackTrace, statusCode) { - - - this['briefSummary'] = briefSummary; - this['descriptionURL'] = descriptionURL; - - this['stackTrace'] = stackTrace; - this['statusCode'] = statusCode; - }; - - /** - * Constructs a ErrorError from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ErrorError} obj Optional instance to populate. - * @return {module:model/ErrorError} The populated ErrorError instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('errorKey')) { - obj['errorKey'] = ApiClient.convertToType(data['errorKey'], 'String'); - } - if (data.hasOwnProperty('briefSummary')) { - obj['briefSummary'] = ApiClient.convertToType(data['briefSummary'], 'String'); - } - if (data.hasOwnProperty('descriptionURL')) { - obj['descriptionURL'] = ApiClient.convertToType(data['descriptionURL'], 'String'); - } - if (data.hasOwnProperty('logId')) { - obj['logId'] = ApiClient.convertToType(data['logId'], 'String'); - } - if (data.hasOwnProperty('stackTrace')) { - obj['stackTrace'] = ApiClient.convertToType(data['stackTrace'], 'String'); - } - if (data.hasOwnProperty('statusCode')) { - obj['statusCode'] = ApiClient.convertToType(data['statusCode'], 'Integer'); - } - } - return obj; - } - - - /** - * @member {String} errorKey - */ - exports.prototype['errorKey'] = undefined; - - /** - * @member {String} briefSummary - */ - exports.prototype['briefSummary'] = undefined; - - /** - * @member {String} descriptionURL - */ - exports.prototype['descriptionURL'] = undefined; - - /** - * @member {String} logId - */ - exports.prototype['logId'] = undefined; - - /** - * @member {String} stackTrace - */ - exports.prototype['stackTrace'] = undefined; - - /** - * @member {Integer} statusCode - */ - exports.prototype['statusCode'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 46 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.Favorite = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The Favorite model module. - * @module model/Favorite - * @version 0.1.0 - */ - - /** - * Constructs a new Favorite. - * A favorite describes an Alfresco entity that a person has marked as a favorite.\nThe target can be a site, file or folder.\n - * @alias module:model/Favorite - * @class - * @param targetGuid - * @param target - */ - var exports = function(targetGuid, target) { - - this['targetGuid'] = targetGuid; - - this['target'] = target; - }; - - /** - * Constructs a Favorite from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Favorite} obj Optional instance to populate. - * @return {module:model/Favorite} The populated Favorite instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('targetGuid')) { - obj['targetGuid'] = ApiClient.convertToType(data['targetGuid'], 'String'); - } - if (data.hasOwnProperty('createdAt')) { - obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'Date'); - } - if (data.hasOwnProperty('target')) { - obj['target'] = ApiClient.convertToType(data['target'], Object); - } - } - return obj; - } - - - /** - * The guid of the object that is a favorite. - * @member {String} targetGuid - */ - exports.prototype['targetGuid'] = undefined; - - /** - * The time the object was made a favorite. - * @member {Date} createdAt - */ - exports.prototype['createdAt'] = undefined; - - /** - * @member {Object} target - */ - exports.prototype['target'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 47 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.FavoriteBody = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The FavoriteBody model module. - * @module model/FavoriteBody - * @version 0.1.0 - */ - - /** - * Constructs a new FavoriteBody. - * @alias module:model/FavoriteBody - * @class - * @param target - */ - var exports = function(target) { - - this['target'] = target; - }; - - /** - * Constructs a FavoriteBody from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FavoriteBody} obj Optional instance to populate. - * @return {module:model/FavoriteBody} The populated FavoriteBody instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('target')) { - obj['target'] = ApiClient.convertToType(data['target'], Object); - } - } - return obj; - } - - - /** - * @member {Object} target - */ - exports.prototype['target'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 48 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(46)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Favorite')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.FavoriteEntry = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.Favorite); - } - }(this, function(ApiClient, Favorite) { - 'use strict'; - - /** - * The FavoriteEntry model module. - * @module model/FavoriteEntry - * @version 0.1.0 - */ - - /** - * Constructs a new FavoriteEntry. - * @alias module:model/FavoriteEntry - * @class - * @param entry - */ - var exports = function(entry) { - - this['entry'] = entry; - }; - - /** - * Constructs a FavoriteEntry from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FavoriteEntry} obj Optional instance to populate. - * @return {module:model/FavoriteEntry} The populated FavoriteEntry instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entry')) { - obj['entry'] = Favorite.constructFromObject(data['entry']); - } - } - return obj; - } - - - /** - * @member {module:model/Favorite} entry - */ - exports.prototype['entry'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 49 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(50)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./FavoritePagingList')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.FavoritePaging = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.FavoritePagingList); - } - }(this, function(ApiClient, FavoritePagingList) { - 'use strict'; - - /** - * The FavoritePaging model module. - * @module model/FavoritePaging - * @version 0.1.0 - */ - - /** - * Constructs a new FavoritePaging. - * @alias module:model/FavoritePaging - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a FavoritePaging from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FavoritePaging} obj Optional instance to populate. - * @return {module:model/FavoritePaging} The populated FavoritePaging instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('list')) { - obj['list'] = FavoritePagingList.constructFromObject(data['list']); - } - } - return obj; - } - - - /** - * @member {module:model/FavoritePagingList} list - */ - exports.prototype['list'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 50 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(48), __webpack_require__(18)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./FavoriteEntry'), require('./Pagination')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.FavoritePagingList = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.FavoriteEntry, root.AlfrescoCoreRestApi.Pagination); - } - }(this, function(ApiClient, FavoriteEntry, Pagination) { - 'use strict'; - - /** - * The FavoritePagingList model module. - * @module model/FavoritePagingList - * @version 0.1.0 - */ - - /** - * Constructs a new FavoritePagingList. - * @alias module:model/FavoritePagingList - * @class - * @param entries - * @param pagination - */ - var exports = function(entries, pagination) { - - this['entries'] = entries; - this['pagination'] = pagination; - }; - - /** - * Constructs a FavoritePagingList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FavoritePagingList} obj Optional instance to populate. - * @return {module:model/FavoritePagingList} The populated FavoritePagingList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entries')) { - obj['entries'] = ApiClient.convertToType(data['entries'], [FavoriteEntry]); - } - if (data.hasOwnProperty('pagination')) { - obj['pagination'] = Pagination.constructFromObject(data['pagination']); - } - } - return obj; - } - - - /** - * @member {Array.} entries - */ - exports.prototype['entries'] = undefined; - - /** - * @member {module:model/Pagination} pagination - */ - exports.prototype['pagination'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 51 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.FavoriteSiteBody = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The FavoriteSiteBody model module. - * @module model/FavoriteSiteBody - * @version 0.1.0 - */ - - /** - * Constructs a new FavoriteSiteBody. - * @alias module:model/FavoriteSiteBody - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a FavoriteSiteBody from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FavoriteSiteBody} obj Optional instance to populate. - * @return {module:model/FavoriteSiteBody} The populated FavoriteSiteBody instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} id - */ - exports.prototype['id'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 52 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(53)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./InlineResponse201Entry')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.InlineResponse201 = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.InlineResponse201Entry); - } - }(this, function(ApiClient, InlineResponse201Entry) { - 'use strict'; - - /** - * The InlineResponse201 model module. - * @module model/InlineResponse201 - * @version 0.1.0 - */ - - /** - * Constructs a new InlineResponse201. - * @alias module:model/InlineResponse201 - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a InlineResponse201 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/InlineResponse201} obj Optional instance to populate. - * @return {module:model/InlineResponse201} The populated InlineResponse201 instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entry')) { - obj['entry'] = InlineResponse201Entry.constructFromObject(data['entry']); - } - } - return obj; - } - - - /** - * @member {module:model/InlineResponse201Entry} entry - */ - exports.prototype['entry'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 53 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.InlineResponse201Entry = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The InlineResponse201Entry model module. - * @module model/InlineResponse201Entry - * @version 0.1.0 - */ - - /** - * Constructs a new InlineResponse201Entry. - * @alias module:model/InlineResponse201Entry - * @class - * @param id - */ - var exports = function(id) { - - this['id'] = id; - }; - - /** - * Constructs a InlineResponse201Entry from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/InlineResponse201Entry} obj Optional instance to populate. - * @return {module:model/InlineResponse201Entry} The populated InlineResponse201Entry instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} id - */ - exports.prototype['id'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 54 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.MoveBody = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The MoveBody model module. - * @module model/MoveBody - * @version 0.1.0 - */ - - /** - * Constructs a new MoveBody. - * @alias module:model/MoveBody - * @class - */ - var exports = function() { - - - - }; - - /** - * Constructs a MoveBody from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MoveBody} obj Optional instance to populate. - * @return {module:model/MoveBody} The populated MoveBody instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('targetParentId')) { - obj['targetParentId'] = ApiClient.convertToType(data['targetParentId'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} targetParentId - */ - exports.prototype['targetParentId'] = undefined; - - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 55 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.NetworkQuota = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The NetworkQuota model module. - * @module model/NetworkQuota - * @version 0.1.0 - */ - - /** - * Constructs a new NetworkQuota. - * Limits and usage of each quota. A network will have quotas for File space,\nthe number of sites in the network, the number of people in the network,\nand the number of network administrators\n - * @alias module:model/NetworkQuota - * @class - * @param id - * @param limit - * @param usage - */ - var exports = function(id, limit, usage) { - - this['id'] = id; - this['limit'] = limit; - this['usage'] = usage; - }; - - /** - * Constructs a NetworkQuota from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NetworkQuota} obj Optional instance to populate. - * @return {module:model/NetworkQuota} The populated NetworkQuota instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('limit')) { - obj['limit'] = ApiClient.convertToType(data['limit'], 'Integer'); - } - if (data.hasOwnProperty('usage')) { - obj['usage'] = ApiClient.convertToType(data['usage'], 'Integer'); - } - } - return obj; - } - - - /** - * @member {String} id - */ - exports.prototype['id'] = undefined; - - /** - * @member {Integer} limit - */ - exports.prototype['limit'] = undefined; - - /** - * @member {Integer} usage - */ - exports.prototype['usage'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 56 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(20), __webpack_require__(31), __webpack_require__(35)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./AssocInfo'), require('./ContentInfo'), require('./UserInfo')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.NodeAssocMinimal = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.AssocInfo, root.AlfrescoCoreRestApi.ContentInfo, root.AlfrescoCoreRestApi.UserInfo); - } - }(this, function(ApiClient, AssocInfo, ContentInfo, UserInfo) { - 'use strict'; - - /** - * The NodeAssocMinimal model module. - * @module model/NodeAssocMinimal - * @version 0.1.0 - */ - - /** - * Constructs a new NodeAssocMinimal. - * @alias module:model/NodeAssocMinimal - * @class - */ - var exports = function() { - - - - - - - - - - - - - - }; - - /** - * Constructs a NodeAssocMinimal from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NodeAssocMinimal} obj Optional instance to populate. - * @return {module:model/NodeAssocMinimal} The populated NodeAssocMinimal instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('parentId')) { - obj['parentId'] = ApiClient.convertToType(data['parentId'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('nodeType')) { - obj['nodeType'] = ApiClient.convertToType(data['nodeType'], 'String'); - } - if (data.hasOwnProperty('isFolder')) { - obj['isFolder'] = ApiClient.convertToType(data['isFolder'], 'Boolean'); - } - if (data.hasOwnProperty('isFile')) { - obj['isFile'] = ApiClient.convertToType(data['isFile'], 'Boolean'); - } - if (data.hasOwnProperty('modifiedAt')) { - obj['modifiedAt'] = ApiClient.convertToType(data['modifiedAt'], 'Date'); - } - if (data.hasOwnProperty('modifiedByUser')) { - obj['modifiedByUser'] = UserInfo.constructFromObject(data['modifiedByUser']); - } - if (data.hasOwnProperty('createdAt')) { - obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'Date'); - } - if (data.hasOwnProperty('createdByUser')) { - obj['createdByUser'] = UserInfo.constructFromObject(data['createdByUser']); - } - if (data.hasOwnProperty('content')) { - obj['content'] = ContentInfo.constructFromObject(data['content']); - } - if (data.hasOwnProperty('association')) { - obj['association'] = AssocInfo.constructFromObject(data['association']); - } - } - return obj; - } - - - /** - * @member {String} id - */ - exports.prototype['id'] = undefined; - - /** - * @member {String} parentId - */ - exports.prototype['parentId'] = undefined; - - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - /** - * @member {String} nodeType - */ - exports.prototype['nodeType'] = undefined; - - /** - * @member {Boolean} isFolder - */ - exports.prototype['isFolder'] = undefined; - - /** - * @member {Boolean} isFile - */ - exports.prototype['isFile'] = undefined; - - /** - * @member {Date} modifiedAt - */ - exports.prototype['modifiedAt'] = undefined; - - /** - * @member {module:model/UserInfo} modifiedByUser - */ - exports.prototype['modifiedByUser'] = undefined; - - /** - * @member {Date} createdAt - */ - exports.prototype['createdAt'] = undefined; - - /** - * @member {module:model/UserInfo} createdByUser - */ - exports.prototype['createdByUser'] = undefined; - - /** - * @member {module:model/ContentInfo} content - */ - exports.prototype['content'] = undefined; - - /** - * @member {module:model/AssocInfo} association - */ - exports.prototype['association'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 57 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(56)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./NodeAssocMinimal')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.NodeAssocMinimalEntry = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.NodeAssocMinimal); - } - }(this, function(ApiClient, NodeAssocMinimal) { - 'use strict'; - - /** - * The NodeAssocMinimalEntry model module. - * @module model/NodeAssocMinimalEntry - * @version 0.1.0 - */ - - /** - * Constructs a new NodeAssocMinimalEntry. - * @alias module:model/NodeAssocMinimalEntry - * @class - * @param entry - */ - var exports = function(entry) { - - this['entry'] = entry; - }; - - /** - * Constructs a NodeAssocMinimalEntry from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NodeAssocMinimalEntry} obj Optional instance to populate. - * @return {module:model/NodeAssocMinimalEntry} The populated NodeAssocMinimalEntry instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entry')) { - obj['entry'] = NodeAssocMinimal.constructFromObject(data['entry']); - } - } - return obj; - } - - - /** - * @member {module:model/NodeAssocMinimal} entry - */ - exports.prototype['entry'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 58 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(59)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./NodeAssocPagingList')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.NodeAssocPaging = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.NodeAssocPagingList); - } - }(this, function(ApiClient, NodeAssocPagingList) { - 'use strict'; - - /** - * The NodeAssocPaging model module. - * @module model/NodeAssocPaging - * @version 0.1.0 - */ - - /** - * Constructs a new NodeAssocPaging. - * @alias module:model/NodeAssocPaging - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a NodeAssocPaging from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NodeAssocPaging} obj Optional instance to populate. - * @return {module:model/NodeAssocPaging} The populated NodeAssocPaging instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('list')) { - obj['list'] = NodeAssocPagingList.constructFromObject(data['list']); - } - } - return obj; - } - - - /** - * @member {module:model/NodeAssocPagingList} list - */ - exports.prototype['list'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 59 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(57), __webpack_require__(18)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./NodeAssocMinimalEntry'), require('./Pagination')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.NodeAssocPagingList = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.NodeAssocMinimalEntry, root.AlfrescoCoreRestApi.Pagination); - } - }(this, function(ApiClient, NodeAssocMinimalEntry, Pagination) { - 'use strict'; - - /** - * The NodeAssocPagingList model module. - * @module model/NodeAssocPagingList - * @version 0.1.0 - */ - - /** - * Constructs a new NodeAssocPagingList. - * @alias module:model/NodeAssocPagingList - * @class - */ - var exports = function() { - - - - }; - - /** - * Constructs a NodeAssocPagingList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NodeAssocPagingList} obj Optional instance to populate. - * @return {module:model/NodeAssocPagingList} The populated NodeAssocPagingList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entries')) { - obj['entries'] = ApiClient.convertToType(data['entries'], [NodeAssocMinimalEntry]); - } - if (data.hasOwnProperty('pagination')) { - obj['pagination'] = Pagination.constructFromObject(data['pagination']); - } - } - return obj; - } - - - /** - * @member {Array.} entries - */ - exports.prototype['entries'] = undefined; - - /** - * @member {module:model/Pagination} pagination - */ - exports.prototype['pagination'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 60 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.NodeBody = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The NodeBody model module. - * @module model/NodeBody - * @version 0.1.0 - */ - - /** - * Constructs a new NodeBody. - * @alias module:model/NodeBody - * @class - */ - var exports = function() { - - - - - - }; - - /** - * Constructs a NodeBody from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NodeBody} obj Optional instance to populate. - * @return {module:model/NodeBody} The populated NodeBody instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('nodeType')) { - obj['nodeType'] = ApiClient.convertToType(data['nodeType'], 'String'); - } - if (data.hasOwnProperty('aspectNames')) { - obj['aspectNames'] = ApiClient.convertToType(data['aspectNames'], ['String']); - } - if (data.hasOwnProperty('properties')) { - obj['properties'] = ApiClient.convertToType(data['properties'], {'String': 'String'}); - } - } - return obj; - } - - - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - /** - * @member {String} nodeType - */ - exports.prototype['nodeType'] = undefined; - - /** - * @member {Array.} aspectNames - */ - exports.prototype['aspectNames'] = undefined; - - /** - * @member {Object.} properties - */ - exports.prototype['properties'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 61 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(62)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./NodesnodeIdchildrenContent')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.NodeBody1 = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.NodesnodeIdchildrenContent); - } - }(this, function(ApiClient, NodesnodeIdchildrenContent) { - 'use strict'; - - /** - * The NodeBody1 model module. - * @module model/NodeBody1 - * @version 0.1.0 - */ - - /** - * Constructs a new NodeBody1. - * @alias module:model/NodeBody1 - * @class - */ - var exports = function() { - - - - - - - - }; - - /** - * Constructs a NodeBody1 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NodeBody1} obj Optional instance to populate. - * @return {module:model/NodeBody1} The populated NodeBody1 instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('nodeType')) { - obj['nodeType'] = ApiClient.convertToType(data['nodeType'], 'String'); - } - if (data.hasOwnProperty('relativePath')) { - obj['relativePath'] = ApiClient.convertToType(data['relativePath'], 'String'); - } - if (data.hasOwnProperty('content')) { - obj['content'] = NodesnodeIdchildrenContent.constructFromObject(data['content']); - } - if (data.hasOwnProperty('aspectNames')) { - obj['aspectNames'] = ApiClient.convertToType(data['aspectNames'], ['String']); - } - if (data.hasOwnProperty('properties')) { - obj['properties'] = ApiClient.convertToType(data['properties'], {'String': 'String'}); - } - } - return obj; - } - - - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - /** - * @member {String} nodeType - */ - exports.prototype['nodeType'] = undefined; - - /** - * @member {String} relativePath - */ - exports.prototype['relativePath'] = undefined; - - /** - * @member {module:model/NodesnodeIdchildrenContent} content - */ - exports.prototype['content'] = undefined; - - /** - * @member {Array.} aspectNames - */ - exports.prototype['aspectNames'] = undefined; - - /** - * @member {Object.} properties - */ - exports.prototype['properties'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 62 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.NodesnodeIdchildrenContent = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The NodesnodeIdchildrenContent model module. - * @module model/NodesnodeIdchildrenContent - * @version 0.1.0 - */ - - /** - * Constructs a new NodesnodeIdchildrenContent. - * @alias module:model/NodesnodeIdchildrenContent - * @class - */ - var exports = function() { - - - - }; - - /** - * Constructs a NodesnodeIdchildrenContent from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NodesnodeIdchildrenContent} obj Optional instance to populate. - * @return {module:model/NodesnodeIdchildrenContent} The populated NodesnodeIdchildrenContent instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('mimeType')) { - obj['mimeType'] = ApiClient.convertToType(data['mimeType'], 'String'); - } - if (data.hasOwnProperty('encoding')) { - obj['encoding'] = ApiClient.convertToType(data['encoding'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} mimeType - */ - exports.prototype['mimeType'] = undefined; - - /** - * @member {String} encoding - */ - exports.prototype['encoding'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 63 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(22), __webpack_require__(31), __webpack_require__(35)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./ChildAssocInfo'), require('./ContentInfo'), require('./UserInfo')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.NodeChildAssocMinimal = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.ChildAssocInfo, root.AlfrescoCoreRestApi.ContentInfo, root.AlfrescoCoreRestApi.UserInfo); - } - }(this, function(ApiClient, ChildAssocInfo, ContentInfo, UserInfo) { - 'use strict'; - - /** - * The NodeChildAssocMinimal model module. - * @module model/NodeChildAssocMinimal - * @version 0.1.0 - */ - - /** - * Constructs a new NodeChildAssocMinimal. - * @alias module:model/NodeChildAssocMinimal - * @class - */ - var exports = function() { - - - - - - - - - - - - - - }; - - /** - * Constructs a NodeChildAssocMinimal from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NodeChildAssocMinimal} obj Optional instance to populate. - * @return {module:model/NodeChildAssocMinimal} The populated NodeChildAssocMinimal instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('parentId')) { - obj['parentId'] = ApiClient.convertToType(data['parentId'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('nodeType')) { - obj['nodeType'] = ApiClient.convertToType(data['nodeType'], 'String'); - } - if (data.hasOwnProperty('isFolder')) { - obj['isFolder'] = ApiClient.convertToType(data['isFolder'], 'Boolean'); - } - if (data.hasOwnProperty('isFile')) { - obj['isFile'] = ApiClient.convertToType(data['isFile'], 'Boolean'); - } - if (data.hasOwnProperty('modifiedAt')) { - obj['modifiedAt'] = ApiClient.convertToType(data['modifiedAt'], 'Date'); - } - if (data.hasOwnProperty('modifiedByUser')) { - obj['modifiedByUser'] = UserInfo.constructFromObject(data['modifiedByUser']); - } - if (data.hasOwnProperty('createdAt')) { - obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'Date'); - } - if (data.hasOwnProperty('createdByUser')) { - obj['createdByUser'] = UserInfo.constructFromObject(data['createdByUser']); - } - if (data.hasOwnProperty('content')) { - obj['content'] = ContentInfo.constructFromObject(data['content']); - } - if (data.hasOwnProperty('association')) { - obj['association'] = ChildAssocInfo.constructFromObject(data['association']); - } - } - return obj; - } - - - /** - * @member {String} id - */ - exports.prototype['id'] = undefined; - - /** - * @member {String} parentId - */ - exports.prototype['parentId'] = undefined; - - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - /** - * @member {String} nodeType - */ - exports.prototype['nodeType'] = undefined; - - /** - * @member {Boolean} isFolder - */ - exports.prototype['isFolder'] = undefined; - - /** - * @member {Boolean} isFile - */ - exports.prototype['isFile'] = undefined; - - /** - * @member {Date} modifiedAt - */ - exports.prototype['modifiedAt'] = undefined; - - /** - * @member {module:model/UserInfo} modifiedByUser - */ - exports.prototype['modifiedByUser'] = undefined; - - /** - * @member {Date} createdAt - */ - exports.prototype['createdAt'] = undefined; - - /** - * @member {module:model/UserInfo} createdByUser - */ - exports.prototype['createdByUser'] = undefined; - - /** - * @member {module:model/ContentInfo} content - */ - exports.prototype['content'] = undefined; - - /** - * @member {module:model/ChildAssocInfo} association - */ - exports.prototype['association'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 64 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(63)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./NodeChildAssocMinimal')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.NodeChildAssocMinimalEntry = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.NodeChildAssocMinimal); - } - }(this, function(ApiClient, NodeChildAssocMinimal) { - 'use strict'; - - /** - * The NodeChildAssocMinimalEntry model module. - * @module model/NodeChildAssocMinimalEntry - * @version 0.1.0 - */ - - /** - * Constructs a new NodeChildAssocMinimalEntry. - * @alias module:model/NodeChildAssocMinimalEntry - * @class - * @param entry - */ - var exports = function(entry) { - - this['entry'] = entry; - }; - - /** - * Constructs a NodeChildAssocMinimalEntry from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NodeChildAssocMinimalEntry} obj Optional instance to populate. - * @return {module:model/NodeChildAssocMinimalEntry} The populated NodeChildAssocMinimalEntry instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entry')) { - obj['entry'] = NodeChildAssocMinimal.constructFromObject(data['entry']); - } - } - return obj; - } - - - /** - * @member {module:model/NodeChildAssocMinimal} entry - */ - exports.prototype['entry'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 65 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(66)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./NodeChildAssocPagingList')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.NodeChildAssocPaging = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.NodeChildAssocPagingList); - } - }(this, function(ApiClient, NodeChildAssocPagingList) { - 'use strict'; - - /** - * The NodeChildAssocPaging model module. - * @module model/NodeChildAssocPaging - * @version 0.1.0 - */ - - /** - * Constructs a new NodeChildAssocPaging. - * @alias module:model/NodeChildAssocPaging - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a NodeChildAssocPaging from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NodeChildAssocPaging} obj Optional instance to populate. - * @return {module:model/NodeChildAssocPaging} The populated NodeChildAssocPaging instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('list')) { - obj['list'] = NodeChildAssocPagingList.constructFromObject(data['list']); - } - } - return obj; - } - - - /** - * @member {module:model/NodeChildAssocPagingList} list - */ - exports.prototype['list'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 66 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(64), __webpack_require__(18)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./NodeChildAssocMinimalEntry'), require('./Pagination')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.NodeChildAssocPagingList = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.NodeChildAssocMinimalEntry, root.AlfrescoCoreRestApi.Pagination); - } - }(this, function(ApiClient, NodeChildAssocMinimalEntry, Pagination) { - 'use strict'; - - /** - * The NodeChildAssocPagingList model module. - * @module model/NodeChildAssocPagingList - * @version 0.1.0 - */ - - /** - * Constructs a new NodeChildAssocPagingList. - * @alias module:model/NodeChildAssocPagingList - * @class - */ - var exports = function() { - - - - }; - - /** - * Constructs a NodeChildAssocPagingList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NodeChildAssocPagingList} obj Optional instance to populate. - * @return {module:model/NodeChildAssocPagingList} The populated NodeChildAssocPagingList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entries')) { - obj['entries'] = ApiClient.convertToType(data['entries'], [NodeChildAssocMinimalEntry]); - } - if (data.hasOwnProperty('pagination')) { - obj['pagination'] = Pagination.constructFromObject(data['pagination']); - } - } - return obj; - } - - - /** - * @member {Array.} entries - */ - exports.prototype['entries'] = undefined; - - /** - * @member {module:model/Pagination} pagination - */ - exports.prototype['pagination'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 67 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(34)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./NodeFull')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.NodeEntry = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.NodeFull); - } - }(this, function(ApiClient, NodeFull) { - 'use strict'; - - /** - * The NodeEntry model module. - * @module model/NodeEntry - * @version 0.1.0 - */ - - /** - * Constructs a new NodeEntry. - * @alias module:model/NodeEntry - * @class - * @param entry - */ - var exports = function(entry) { - - this['entry'] = entry; - }; - - /** - * Constructs a NodeEntry from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NodeEntry} obj Optional instance to populate. - * @return {module:model/NodeEntry} The populated NodeEntry instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entry')) { - obj['entry'] = NodeFull.constructFromObject(data['entry']); - } - } - return obj; - } - - - /** - * @member {module:model/NodeFull} entry - */ - exports.prototype['entry'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 68 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(38)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./NodeMinimal')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.NodeMinimalEntry = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.NodeMinimal); - } - }(this, function(ApiClient, NodeMinimal) { - 'use strict'; - - /** - * The NodeMinimalEntry model module. - * @module model/NodeMinimalEntry - * @version 0.1.0 - */ - - /** - * Constructs a new NodeMinimalEntry. - * @alias module:model/NodeMinimalEntry - * @class - * @param entry - */ - var exports = function(entry) { - - this['entry'] = entry; - }; - - /** - * Constructs a NodeMinimalEntry from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NodeMinimalEntry} obj Optional instance to populate. - * @return {module:model/NodeMinimalEntry} The populated NodeMinimalEntry instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entry')) { - obj['entry'] = NodeMinimal.constructFromObject(data['entry']); - } - } - return obj; - } - - - /** - * @member {module:model/NodeMinimal} entry - */ - exports.prototype['entry'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 69 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(70)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./NodePagingList')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.NodePaging = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.NodePagingList); - } - }(this, function(ApiClient, NodePagingList) { - 'use strict'; - - /** - * The NodePaging model module. - * @module model/NodePaging - * @version 0.1.0 - */ - - /** - * Constructs a new NodePaging. - * @alias module:model/NodePaging - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a NodePaging from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NodePaging} obj Optional instance to populate. - * @return {module:model/NodePaging} The populated NodePaging instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('list')) { - obj['list'] = NodePagingList.constructFromObject(data['list']); - } - } - return obj; - } - - - /** - * @member {module:model/NodePagingList} list - */ - exports.prototype['list'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 70 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(68), __webpack_require__(18)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./NodeMinimalEntry'), require('./Pagination')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.NodePagingList = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.NodeMinimalEntry, root.AlfrescoCoreRestApi.Pagination); - } - }(this, function(ApiClient, NodeMinimalEntry, Pagination) { - 'use strict'; - - /** - * The NodePagingList model module. - * @module model/NodePagingList - * @version 0.1.0 - */ - - /** - * Constructs a new NodePagingList. - * @alias module:model/NodePagingList - * @class - */ - var exports = function() { - - - - }; - - /** - * Constructs a NodePagingList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NodePagingList} obj Optional instance to populate. - * @return {module:model/NodePagingList} The populated NodePagingList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entries')) { - obj['entries'] = ApiClient.convertToType(data['entries'], [NodeMinimalEntry]); - } - if (data.hasOwnProperty('pagination')) { - obj['pagination'] = Pagination.constructFromObject(data['pagination']); - } - } - return obj; - } - - - /** - * @member {Array.} entries - */ - exports.prototype['entries'] = undefined; - - /** - * @member {module:model/Pagination} pagination - */ - exports.prototype['pagination'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 71 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(31), __webpack_require__(35)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./ContentInfo'), require('./UserInfo')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.NodeSharedLink = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.ContentInfo, root.AlfrescoCoreRestApi.UserInfo); - } - }(this, function(ApiClient, ContentInfo, UserInfo) { - 'use strict'; - - /** - * The NodeSharedLink model module. - * @module model/NodeSharedLink - * @version 0.1.0 - */ - - /** - * Constructs a new NodeSharedLink. - * @alias module:model/NodeSharedLink - * @class - */ - var exports = function() { - - - - - - - - - - }; - - /** - * Constructs a NodeSharedLink from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NodeSharedLink} obj Optional instance to populate. - * @return {module:model/NodeSharedLink} The populated NodeSharedLink instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('nodeId')) { - obj['nodeId'] = ApiClient.convertToType(data['nodeId'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('modifiedAt')) { - obj['modifiedAt'] = ApiClient.convertToType(data['modifiedAt'], 'Date'); - } - if (data.hasOwnProperty('modifiedByUser')) { - obj['modifiedByUser'] = UserInfo.constructFromObject(data['modifiedByUser']); - } - if (data.hasOwnProperty('sharedByUser')) { - obj['sharedByUser'] = UserInfo.constructFromObject(data['sharedByUser']); - } - if (data.hasOwnProperty('content')) { - obj['content'] = ContentInfo.constructFromObject(data['content']); - } - if (data.hasOwnProperty('allowableOperations')) { - obj['allowableOperations'] = ApiClient.convertToType(data['allowableOperations'], ['String']); - } - } - return obj; - } - - - /** - * @member {String} id - */ - exports.prototype['id'] = undefined; - - /** - * @member {String} nodeId - */ - exports.prototype['nodeId'] = undefined; - - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - /** - * @member {Date} modifiedAt - */ - exports.prototype['modifiedAt'] = undefined; - - /** - * @member {module:model/UserInfo} modifiedByUser - */ - exports.prototype['modifiedByUser'] = undefined; - - /** - * @member {module:model/UserInfo} sharedByUser - */ - exports.prototype['sharedByUser'] = undefined; - - /** - * @member {module:model/ContentInfo} content - */ - exports.prototype['content'] = undefined; - - /** - * @member {Array.} allowableOperations - */ - exports.prototype['allowableOperations'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 72 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(71)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./NodeSharedLink')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.NodeSharedLinkEntry = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.NodeSharedLink); - } - }(this, function(ApiClient, NodeSharedLink) { - 'use strict'; - - /** - * The NodeSharedLinkEntry model module. - * @module model/NodeSharedLinkEntry - * @version 0.1.0 - */ - - /** - * Constructs a new NodeSharedLinkEntry. - * @alias module:model/NodeSharedLinkEntry - * @class - * @param entry - */ - var exports = function(entry) { - - this['entry'] = entry; - }; - - /** - * Constructs a NodeSharedLinkEntry from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NodeSharedLinkEntry} obj Optional instance to populate. - * @return {module:model/NodeSharedLinkEntry} The populated NodeSharedLinkEntry instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entry')) { - obj['entry'] = NodeSharedLink.constructFromObject(data['entry']); - } - } - return obj; - } - - - /** - * @member {module:model/NodeSharedLink} entry - */ - exports.prototype['entry'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 73 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(74)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./NodeSharedLinkPagingList')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.NodeSharedLinkPaging = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.NodeSharedLinkPagingList); - } - }(this, function(ApiClient, NodeSharedLinkPagingList) { - 'use strict'; - - /** - * The NodeSharedLinkPaging model module. - * @module model/NodeSharedLinkPaging - * @version 0.1.0 - */ - - /** - * Constructs a new NodeSharedLinkPaging. - * @alias module:model/NodeSharedLinkPaging - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a NodeSharedLinkPaging from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NodeSharedLinkPaging} obj Optional instance to populate. - * @return {module:model/NodeSharedLinkPaging} The populated NodeSharedLinkPaging instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('list')) { - obj['list'] = NodeSharedLinkPagingList.constructFromObject(data['list']); - } - } - return obj; - } - - - /** - * @member {module:model/NodeSharedLinkPagingList} list - */ - exports.prototype['list'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 74 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(72), __webpack_require__(18)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./NodeSharedLinkEntry'), require('./Pagination')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.NodeSharedLinkPagingList = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.NodeSharedLinkEntry, root.AlfrescoCoreRestApi.Pagination); - } - }(this, function(ApiClient, NodeSharedLinkEntry, Pagination) { - 'use strict'; - - /** - * The NodeSharedLinkPagingList model module. - * @module model/NodeSharedLinkPagingList - * @version 0.1.0 - */ - - /** - * Constructs a new NodeSharedLinkPagingList. - * @alias module:model/NodeSharedLinkPagingList - * @class - * @param entries - * @param pagination - */ - var exports = function(entries, pagination) { - - this['entries'] = entries; - this['pagination'] = pagination; - }; - - /** - * Constructs a NodeSharedLinkPagingList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NodeSharedLinkPagingList} obj Optional instance to populate. - * @return {module:model/NodeSharedLinkPagingList} The populated NodeSharedLinkPagingList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entries')) { - obj['entries'] = ApiClient.convertToType(data['entries'], [NodeSharedLinkEntry]); - } - if (data.hasOwnProperty('pagination')) { - obj['pagination'] = Pagination.constructFromObject(data['pagination']); - } - } - return obj; - } - - - /** - * @member {Array.} entries - */ - exports.prototype['entries'] = undefined; - - /** - * @member {module:model/Pagination} pagination - */ - exports.prototype['pagination'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 75 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./PathElement')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.PathInfo = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.PathElement); - } - }(this, function(ApiClient, PathElement) { - 'use strict'; - - /** - * The PathInfo model module. - * @module model/PathInfo - * @version 0.1.0 - */ - - /** - * Constructs a new PathInfo. - * @alias module:model/PathInfo - * @class - */ - var exports = function() { - - - - - }; - - /** - * Constructs a PathInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PathInfo} obj Optional instance to populate. - * @return {module:model/PathInfo} The populated PathInfo instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('elements')) { - obj['elements'] = ApiClient.convertToType(data['elements'], [PathElement]); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('isComplete')) { - obj['isComplete'] = ApiClient.convertToType(data['isComplete'], 'Boolean'); - } - } - return obj; - } - - - /** - * @member {Array.} elements - */ - exports.prototype['elements'] = undefined; - - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - /** - * @member {Boolean} isComplete - */ - exports.prototype['isComplete'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 76 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(24)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Person')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.PersonEntry = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.Person); - } - }(this, function(ApiClient, Person) { - 'use strict'; - - /** - * The PersonEntry model module. - * @module model/PersonEntry - * @version 0.1.0 - */ - - /** - * Constructs a new PersonEntry. - * @alias module:model/PersonEntry - * @class - * @param entry - */ - var exports = function(entry) { - - this['entry'] = entry; - }; - - /** - * Constructs a PersonEntry from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonEntry} obj Optional instance to populate. - * @return {module:model/PersonEntry} The populated PersonEntry instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entry')) { - obj['entry'] = Person.constructFromObject(data['entry']); - } - } - return obj; - } - - - /** - * @member {module:model/Person} entry - */ - exports.prototype['entry'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 77 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(55)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./NetworkQuota')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.PersonNetwork = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.NetworkQuota); - } - }(this, function(ApiClient, NetworkQuota) { - 'use strict'; - - /** - * The PersonNetwork model module. - * @module model/PersonNetwork - * @version 0.1.0 - */ - - /** - * Constructs a new PersonNetwork. - * A network is the group of users and sites that belong to an organization.\nNetworks are organized by email domain. When a user signs up for an\nAlfresco account , their email domain becomes their Home Network.\n - * @alias module:model/PersonNetwork - * @class - * @param id - * @param isEnabled - */ - var exports = function(id, isEnabled) { - - this['id'] = id; - - this['isEnabled'] = isEnabled; - - - - - }; - - /** - * Constructs a PersonNetwork from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonNetwork} obj Optional instance to populate. - * @return {module:model/PersonNetwork} The populated PersonNetwork instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('homeNetwork')) { - obj['homeNetwork'] = ApiClient.convertToType(data['homeNetwork'], 'Boolean'); - } - if (data.hasOwnProperty('isEnabled')) { - obj['isEnabled'] = ApiClient.convertToType(data['isEnabled'], 'Boolean'); - } - if (data.hasOwnProperty('createdAt')) { - obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'Date'); - } - if (data.hasOwnProperty('paidNetwork')) { - obj['paidNetwork'] = ApiClient.convertToType(data['paidNetwork'], 'Boolean'); - } - if (data.hasOwnProperty('subscriptionLevel')) { - obj['subscriptionLevel'] = ApiClient.convertToType(data['subscriptionLevel'], 'String'); - } - if (data.hasOwnProperty('quotas')) { - obj['quotas'] = ApiClient.convertToType(data['quotas'], [NetworkQuota]); - } - } - return obj; - } - - - /** - * This network's unique id - * @member {String} id - */ - exports.prototype['id'] = undefined; - - /** - * Is this the home network? - * @member {Boolean} homeNetwork - */ - exports.prototype['homeNetwork'] = undefined; - - /** - * @member {Boolean} isEnabled - */ - exports.prototype['isEnabled'] = undefined; - - /** - * @member {Date} createdAt - */ - exports.prototype['createdAt'] = undefined; - - /** - * @member {Boolean} paidNetwork - */ - exports.prototype['paidNetwork'] = undefined; - - /** - * @member {module:model/PersonNetwork.SubscriptionLevelEnum} subscriptionLevel - */ - exports.prototype['subscriptionLevel'] = undefined; - - /** - * @member {Array.} quotas - */ - exports.prototype['quotas'] = undefined; - - - /** - * Allowed values for the subscriptionLevel property. - * @enum {String} - * @readonly - */ - exports.SubscriptionLevelEnum = { - /** - * value: Free - * @const - */ - FREE: "Free", - - /** - * value: Standard - * @const - */ - STANDARD: "Standard", - - /** - * value: Enterprise - * @const - */ - ENTERPRISE: "Enterprise" - }; - - return exports; - })); - - -/***/ }, -/* 78 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(77)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./PersonNetwork')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.PersonNetworkEntry = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.PersonNetwork); - } - }(this, function(ApiClient, PersonNetwork) { - 'use strict'; - - /** - * The PersonNetworkEntry model module. - * @module model/PersonNetworkEntry - * @version 0.1.0 - */ - - /** - * Constructs a new PersonNetworkEntry. - * @alias module:model/PersonNetworkEntry - * @class - * @param entry - */ - var exports = function(entry) { - - this['entry'] = entry; - }; - - /** - * Constructs a PersonNetworkEntry from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonNetworkEntry} obj Optional instance to populate. - * @return {module:model/PersonNetworkEntry} The populated PersonNetworkEntry instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entry')) { - obj['entry'] = PersonNetwork.constructFromObject(data['entry']); - } - } - return obj; - } - - - /** - * @member {module:model/PersonNetwork} entry - */ - exports.prototype['entry'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 79 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(80)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./PersonNetworkPagingList')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.PersonNetworkPaging = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.PersonNetworkPagingList); - } - }(this, function(ApiClient, PersonNetworkPagingList) { - 'use strict'; - - /** - * The PersonNetworkPaging model module. - * @module model/PersonNetworkPaging - * @version 0.1.0 - */ - - /** - * Constructs a new PersonNetworkPaging. - * @alias module:model/PersonNetworkPaging - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a PersonNetworkPaging from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonNetworkPaging} obj Optional instance to populate. - * @return {module:model/PersonNetworkPaging} The populated PersonNetworkPaging instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('list')) { - obj['list'] = PersonNetworkPagingList.constructFromObject(data['list']); - } - } - return obj; - } - - - /** - * @member {module:model/PersonNetworkPagingList} list - */ - exports.prototype['list'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 80 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(18), __webpack_require__(78)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Pagination'), require('./PersonNetworkEntry')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.PersonNetworkPagingList = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.Pagination, root.AlfrescoCoreRestApi.PersonNetworkEntry); - } - }(this, function(ApiClient, Pagination, PersonNetworkEntry) { - 'use strict'; - - /** - * The PersonNetworkPagingList model module. - * @module model/PersonNetworkPagingList - * @version 0.1.0 - */ - - /** - * Constructs a new PersonNetworkPagingList. - * @alias module:model/PersonNetworkPagingList - * @class - * @param entries - * @param pagination - */ - var exports = function(entries, pagination) { - - this['entries'] = entries; - this['pagination'] = pagination; - }; - - /** - * Constructs a PersonNetworkPagingList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonNetworkPagingList} obj Optional instance to populate. - * @return {module:model/PersonNetworkPagingList} The populated PersonNetworkPagingList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entries')) { - obj['entries'] = ApiClient.convertToType(data['entries'], [PersonNetworkEntry]); - } - if (data.hasOwnProperty('pagination')) { - obj['pagination'] = Pagination.constructFromObject(data['pagination']); - } - } - return obj; - } - - - /** - * @member {Array.} entries - */ - exports.prototype['entries'] = undefined; - - /** - * @member {module:model/Pagination} pagination - */ - exports.prototype['pagination'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 81 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.Preference = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The Preference model module. - * @module model/Preference - * @version 0.1.0 - */ - - /** - * Constructs a new Preference. - * A specific preference.\n - * @alias module:model/Preference - * @class - * @param id - * @param value - */ - var exports = function(id, value) { - - this['id'] = id; - this['value'] = value; - }; - - /** - * Constructs a Preference from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Preference} obj Optional instance to populate. - * @return {module:model/Preference} The populated Preference instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'String'); - } - } - return obj; - } - - - /** - * The unique id of the preference - * @member {String} id - */ - exports.prototype['id'] = undefined; - - /** - * The value of the preference. Note that this can be of any JSON type. - * @member {String} value - */ - exports.prototype['value'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 82 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(81)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Preference')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.PreferenceEntry = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.Preference); - } - }(this, function(ApiClient, Preference) { - 'use strict'; - - /** - * The PreferenceEntry model module. - * @module model/PreferenceEntry - * @version 0.1.0 - */ - - /** - * Constructs a new PreferenceEntry. - * @alias module:model/PreferenceEntry - * @class - * @param entry - */ - var exports = function(entry) { - - this['entry'] = entry; - }; - - /** - * Constructs a PreferenceEntry from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PreferenceEntry} obj Optional instance to populate. - * @return {module:model/PreferenceEntry} The populated PreferenceEntry instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entry')) { - obj['entry'] = Preference.constructFromObject(data['entry']); - } - } - return obj; - } - - - /** - * @member {module:model/Preference} entry - */ - exports.prototype['entry'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 83 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(84)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./PreferencePagingList')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.PreferencePaging = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.PreferencePagingList); - } - }(this, function(ApiClient, PreferencePagingList) { - 'use strict'; - - /** - * The PreferencePaging model module. - * @module model/PreferencePaging - * @version 0.1.0 - */ - - /** - * Constructs a new PreferencePaging. - * @alias module:model/PreferencePaging - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a PreferencePaging from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PreferencePaging} obj Optional instance to populate. - * @return {module:model/PreferencePaging} The populated PreferencePaging instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('list')) { - obj['list'] = PreferencePagingList.constructFromObject(data['list']); - } - } - return obj; - } - - - /** - * @member {module:model/PreferencePagingList} list - */ - exports.prototype['list'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 84 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(18), __webpack_require__(82)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Pagination'), require('./PreferenceEntry')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.PreferencePagingList = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.Pagination, root.AlfrescoCoreRestApi.PreferenceEntry); - } - }(this, function(ApiClient, Pagination, PreferenceEntry) { - 'use strict'; - - /** - * The PreferencePagingList model module. - * @module model/PreferencePagingList - * @version 0.1.0 - */ - - /** - * Constructs a new PreferencePagingList. - * @alias module:model/PreferencePagingList - * @class - * @param entries - * @param pagination - */ - var exports = function(entries, pagination) { - - this['entries'] = entries; - this['pagination'] = pagination; - }; - - /** - * Constructs a PreferencePagingList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PreferencePagingList} obj Optional instance to populate. - * @return {module:model/PreferencePagingList} The populated PreferencePagingList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entries')) { - obj['entries'] = ApiClient.convertToType(data['entries'], [PreferenceEntry]); - } - if (data.hasOwnProperty('pagination')) { - obj['pagination'] = Pagination.constructFromObject(data['pagination']); - } - } - return obj; - } - - - /** - * @member {Array.} entries - */ - exports.prototype['entries'] = undefined; - - /** - * @member {module:model/Pagination} pagination - */ - exports.prototype['pagination'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 85 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(86)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./RatingAggregate')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.Rating = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.RatingAggregate); - } - }(this, function(ApiClient, RatingAggregate) { - 'use strict'; - - /** - * The Rating model module. - * @module model/Rating - * @version 0.1.0 - */ - - /** - * Constructs a new Rating. - * A person can rate an item of content by liking it. They can also remove\ntheir like of an item of content. API methods exist to get a list of\nratings and to add a new rating.\n - * @alias module:model/Rating - * @class - * @param id - */ - var exports = function(id) { - - this['id'] = id; - - - - }; - - /** - * Constructs a Rating from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Rating} obj Optional instance to populate. - * @return {module:model/Rating} The populated Rating instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('aggregate')) { - obj['aggregate'] = RatingAggregate.constructFromObject(data['aggregate']); - } - if (data.hasOwnProperty('ratedAt')) { - obj['ratedAt'] = ApiClient.convertToType(data['ratedAt'], 'Date'); - } - if (data.hasOwnProperty('myRating')) { - obj['myRating'] = ApiClient.convertToType(data['myRating'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} id - */ - exports.prototype['id'] = undefined; - - /** - * @member {module:model/RatingAggregate} aggregate - */ - exports.prototype['aggregate'] = undefined; - - /** - * @member {Date} ratedAt - */ - exports.prototype['ratedAt'] = undefined; - - /** - * The rating. The type is specific to the rating scheme, boolean for the likes and an integer for the fiveStar. - * @member {String} myRating - */ - exports.prototype['myRating'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 86 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.RatingAggregate = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The RatingAggregate model module. - * @module model/RatingAggregate - * @version 0.1.0 - */ - - /** - * Constructs a new RatingAggregate. - * @alias module:model/RatingAggregate - * @class - * @param numberOfRatings - */ - var exports = function(numberOfRatings) { - - - this['numberOfRatings'] = numberOfRatings; - }; - - /** - * Constructs a RatingAggregate from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RatingAggregate} obj Optional instance to populate. - * @return {module:model/RatingAggregate} The populated RatingAggregate instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('average')) { - obj['average'] = ApiClient.convertToType(data['average'], 'Integer'); - } - if (data.hasOwnProperty('numberOfRatings')) { - obj['numberOfRatings'] = ApiClient.convertToType(data['numberOfRatings'], 'Integer'); - } - } - return obj; - } - - - /** - * @member {Integer} average - */ - exports.prototype['average'] = undefined; - - /** - * @member {Integer} numberOfRatings - */ - exports.prototype['numberOfRatings'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 87 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.RatingBody = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The RatingBody model module. - * @module model/RatingBody - * @version 0.1.0 - */ - - /** - * Constructs a new RatingBody. - * @alias module:model/RatingBody - * @class - * @param id - * @param myRating - */ - var exports = function(id, myRating) { - - this['id'] = id; - this['myRating'] = myRating; - }; - - /** - * Constructs a RatingBody from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RatingBody} obj Optional instance to populate. - * @return {module:model/RatingBody} The populated RatingBody instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('myRating')) { - obj['myRating'] = ApiClient.convertToType(data['myRating'], 'String'); - } - } - return obj; - } - - - /** - * The rating scheme type. Possible values are likes and fiveStar. - * @member {module:model/RatingBody.IdEnum} id - * @default 'likes' - */ - exports.prototype['id'] = 'likes'; - - /** - * The rating. The type is specific to the rating scheme, boolean for the likes and an integer for the fiveStar - * @member {String} myRating - */ - exports.prototype['myRating'] = undefined; - - - /** - * Allowed values for the id property. - * @enum {String} - * @readonly - */ - exports.IdEnum = { - /** - * value: likes - * @const - */ - LIKES: "likes", - - /** - * value: fiveStar - * @const - */ - FIVESTAR: "fiveStar" - }; - - return exports; - })); - - -/***/ }, -/* 88 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(85)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Rating')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.RatingEntry = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.Rating); - } - }(this, function(ApiClient, Rating) { - 'use strict'; - - /** - * The RatingEntry model module. - * @module model/RatingEntry - * @version 0.1.0 - */ - - /** - * Constructs a new RatingEntry. - * @alias module:model/RatingEntry - * @class - * @param entry - */ - var exports = function(entry) { - - this['entry'] = entry; - }; - - /** - * Constructs a RatingEntry from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RatingEntry} obj Optional instance to populate. - * @return {module:model/RatingEntry} The populated RatingEntry instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entry')) { - obj['entry'] = Rating.constructFromObject(data['entry']); - } - } - return obj; - } - - - /** - * @member {module:model/Rating} entry - */ - exports.prototype['entry'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 89 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(90)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./RatingPagingList')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.RatingPaging = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.RatingPagingList); - } - }(this, function(ApiClient, RatingPagingList) { - 'use strict'; - - /** - * The RatingPaging model module. - * @module model/RatingPaging - * @version 0.1.0 - */ - - /** - * Constructs a new RatingPaging. - * @alias module:model/RatingPaging - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a RatingPaging from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RatingPaging} obj Optional instance to populate. - * @return {module:model/RatingPaging} The populated RatingPaging instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('list')) { - obj['list'] = RatingPagingList.constructFromObject(data['list']); - } - } - return obj; - } - - - /** - * @member {module:model/RatingPagingList} list - */ - exports.prototype['list'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 90 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(18), __webpack_require__(88)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Pagination'), require('./RatingEntry')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.RatingPagingList = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.Pagination, root.AlfrescoCoreRestApi.RatingEntry); - } - }(this, function(ApiClient, Pagination, RatingEntry) { - 'use strict'; - - /** - * The RatingPagingList model module. - * @module model/RatingPagingList - * @version 0.1.0 - */ - - /** - * Constructs a new RatingPagingList. - * @alias module:model/RatingPagingList - * @class - * @param entries - * @param pagination - */ - var exports = function(entries, pagination) { - - this['entries'] = entries; - this['pagination'] = pagination; - }; - - /** - * Constructs a RatingPagingList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RatingPagingList} obj Optional instance to populate. - * @return {module:model/RatingPagingList} The populated RatingPagingList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entries')) { - obj['entries'] = ApiClient.convertToType(data['entries'], [RatingEntry]); - } - if (data.hasOwnProperty('pagination')) { - obj['pagination'] = Pagination.constructFromObject(data['pagination']); - } - } - return obj; - } - - - /** - * @member {Array.} entries - */ - exports.prototype['entries'] = undefined; - - /** - * @member {module:model/Pagination} pagination - */ - exports.prototype['pagination'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 91 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(31)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./ContentInfo')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.Rendition = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.ContentInfo); - } - }(this, function(ApiClient, ContentInfo) { - 'use strict'; - - /** - * The Rendition model module. - * @module model/Rendition - * @version 0.1.0 - */ - - /** - * Constructs a new Rendition. - * @alias module:model/Rendition - * @class - */ - var exports = function() { - - - - - }; - - /** - * Constructs a Rendition from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Rendition} obj Optional instance to populate. - * @return {module:model/Rendition} The populated Rendition instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('content')) { - obj['content'] = ContentInfo.constructFromObject(data['content']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} id - */ - exports.prototype['id'] = undefined; - - /** - * @member {module:model/ContentInfo} content - */ - exports.prototype['content'] = undefined; - - /** - * @member {String} status - */ - exports.prototype['status'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 92 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.RenditionBody = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The RenditionBody model module. - * @module model/RenditionBody - * @version 0.1.0 - */ - - /** - * Constructs a new RenditionBody. - * @alias module:model/RenditionBody - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a RenditionBody from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RenditionBody} obj Optional instance to populate. - * @return {module:model/RenditionBody} The populated RenditionBody instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} id - */ - exports.prototype['id'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 93 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(91)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Rendition')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.RenditionEntry = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.Rendition); - } - }(this, function(ApiClient, Rendition) { - 'use strict'; - - /** - * The RenditionEntry model module. - * @module model/RenditionEntry - * @version 0.1.0 - */ - - /** - * Constructs a new RenditionEntry. - * @alias module:model/RenditionEntry - * @class - * @param entry - */ - var exports = function(entry) { - - this['entry'] = entry; - }; - - /** - * Constructs a RenditionEntry from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RenditionEntry} obj Optional instance to populate. - * @return {module:model/RenditionEntry} The populated RenditionEntry instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entry')) { - obj['entry'] = Rendition.constructFromObject(data['entry']); - } - } - return obj; - } - - - /** - * @member {module:model/Rendition} entry - */ - exports.prototype['entry'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 94 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(95)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./RenditionPagingList')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.RenditionPaging = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.RenditionPagingList); - } - }(this, function(ApiClient, RenditionPagingList) { - 'use strict'; - - /** - * The RenditionPaging model module. - * @module model/RenditionPaging - * @version 0.1.0 - */ - - /** - * Constructs a new RenditionPaging. - * @alias module:model/RenditionPaging - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a RenditionPaging from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RenditionPaging} obj Optional instance to populate. - * @return {module:model/RenditionPaging} The populated RenditionPaging instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('list')) { - obj['list'] = RenditionPagingList.constructFromObject(data['list']); - } - } - return obj; - } - - - /** - * @member {module:model/RenditionPagingList} list - */ - exports.prototype['list'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 95 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(18), __webpack_require__(93)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Pagination'), require('./RenditionEntry')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.RenditionPagingList = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.Pagination, root.AlfrescoCoreRestApi.RenditionEntry); - } - }(this, function(ApiClient, Pagination, RenditionEntry) { - 'use strict'; - - /** - * The RenditionPagingList model module. - * @module model/RenditionPagingList - * @version 0.1.0 - */ - - /** - * Constructs a new RenditionPagingList. - * @alias module:model/RenditionPagingList - * @class - */ - var exports = function() { - - - - }; - - /** - * Constructs a RenditionPagingList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RenditionPagingList} obj Optional instance to populate. - * @return {module:model/RenditionPagingList} The populated RenditionPagingList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entries')) { - obj['entries'] = ApiClient.convertToType(data['entries'], [RenditionEntry]); - } - if (data.hasOwnProperty('pagination')) { - obj['pagination'] = Pagination.constructFromObject(data['pagination']); - } - } - return obj; - } - - - /** - * @member {Array.} entries - */ - exports.prototype['entries'] = undefined; - - /** - * @member {module:model/Pagination} pagination - */ - exports.prototype['pagination'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 96 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.SharedLinkBody = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The SharedLinkBody model module. - * @module model/SharedLinkBody - * @version 0.1.0 - */ - - /** - * Constructs a new SharedLinkBody. - * @alias module:model/SharedLinkBody - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a SharedLinkBody from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SharedLinkBody} obj Optional instance to populate. - * @return {module:model/SharedLinkBody} The populated SharedLinkBody instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('nodeId')) { - obj['nodeId'] = ApiClient.convertToType(data['nodeId'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} nodeId - */ - exports.prototype['nodeId'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 97 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.Site = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The Site model module. - * @module model/Site - * @version 0.1.0 - */ - - /** - * Constructs a new Site. - * @alias module:model/Site - * @class - * @param id - * @param guid - * @param title - * @param visibility - */ - var exports = function(id, guid, title, visibility) { - - this['id'] = id; - this['guid'] = guid; - this['title'] = title; - - this['visibility'] = visibility; - - }; - - /** - * Constructs a Site from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Site} obj Optional instance to populate. - * @return {module:model/Site} The populated Site instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('guid')) { - obj['guid'] = ApiClient.convertToType(data['guid'], 'String'); - } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('visibility')) { - obj['visibility'] = ApiClient.convertToType(data['visibility'], 'String'); - } - if (data.hasOwnProperty('role')) { - obj['role'] = ApiClient.convertToType(data['role'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} id - */ - exports.prototype['id'] = undefined; - - /** - * @member {String} guid - */ - exports.prototype['guid'] = undefined; - - /** - * @member {String} title - */ - exports.prototype['title'] = undefined; - - /** - * @member {String} description - */ - exports.prototype['description'] = undefined; - - /** - * @member {module:model/Site.VisibilityEnum} visibility - */ - exports.prototype['visibility'] = undefined; - - /** - * @member {String} role - */ - exports.prototype['role'] = undefined; - - - /** - * Allowed values for the visibility property. - * @enum {String} - * @readonly - */ - exports.VisibilityEnum = { - /** - * value: PRIVATE - * @const - */ - PRIVATE: "PRIVATE", - - /** - * value: MODERATED - * @const - */ - MODERATED: "MODERATED", - - /** - * value: PUBLIC - * @const - */ - PUBLIC: "PUBLIC" - }; - - return exports; - })); - - -/***/ }, -/* 98 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.SiteBody = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The SiteBody model module. - * @module model/SiteBody - * @version 0.1.0 - */ - - /** - * Constructs a new SiteBody. - * @alias module:model/SiteBody - * @class - * @param title - * @param visibility - */ - var exports = function(title, visibility) { - - - this['title'] = title; - - this['visibility'] = visibility; - }; - - /** - * Constructs a SiteBody from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SiteBody} obj Optional instance to populate. - * @return {module:model/SiteBody} The populated SiteBody instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('visibility')) { - obj['visibility'] = ApiClient.convertToType(data['visibility'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} id - */ - exports.prototype['id'] = undefined; - - /** - * @member {String} title - */ - exports.prototype['title'] = undefined; - - /** - * @member {String} description - */ - exports.prototype['description'] = undefined; - - /** - * @member {module:model/SiteBody.VisibilityEnum} visibility - * @default 'PUBLIC' - */ - exports.prototype['visibility'] = 'PUBLIC'; - - - /** - * Allowed values for the visibility property. - * @enum {String} - * @readonly - */ - exports.VisibilityEnum = { - /** - * value: PUBLIC - * @const - */ - PUBLIC: "PUBLIC", - - /** - * value: PRIVATE - * @const - */ - PRIVATE: "PRIVATE", - - /** - * value: MODERATED - * @const - */ - MODERATED: "MODERATED" - }; - - return exports; - })); - - -/***/ }, -/* 99 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.SiteContainer = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The SiteContainer model module. - * @module model/SiteContainer - * @version 0.1.0 - */ - - /** - * Constructs a new SiteContainer. - * @alias module:model/SiteContainer - * @class - * @param id - * @param folderId - */ - var exports = function(id, folderId) { - - this['id'] = id; - this['folderId'] = folderId; - }; - - /** - * Constructs a SiteContainer from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SiteContainer} obj Optional instance to populate. - * @return {module:model/SiteContainer} The populated SiteContainer instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('folderId')) { - obj['folderId'] = ApiClient.convertToType(data['folderId'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} id - */ - exports.prototype['id'] = undefined; - - /** - * @member {String} folderId - */ - exports.prototype['folderId'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 100 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(99)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./SiteContainer')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.SiteContainerEntry = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.SiteContainer); - } - }(this, function(ApiClient, SiteContainer) { - 'use strict'; - - /** - * The SiteContainerEntry model module. - * @module model/SiteContainerEntry - * @version 0.1.0 - */ - - /** - * Constructs a new SiteContainerEntry. - * @alias module:model/SiteContainerEntry - * @class - * @param entry - */ - var exports = function(entry) { - - this['entry'] = entry; - }; - - /** - * Constructs a SiteContainerEntry from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SiteContainerEntry} obj Optional instance to populate. - * @return {module:model/SiteContainerEntry} The populated SiteContainerEntry instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entry')) { - obj['entry'] = SiteContainer.constructFromObject(data['entry']); - } - } - return obj; - } - - - /** - * @member {module:model/SiteContainer} entry - */ - exports.prototype['entry'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 101 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(102)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./SitePagingList')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.SiteContainerPaging = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.SitePagingList); - } - }(this, function(ApiClient, SitePagingList) { - 'use strict'; - - /** - * The SiteContainerPaging model module. - * @module model/SiteContainerPaging - * @version 0.1.0 - */ - - /** - * Constructs a new SiteContainerPaging. - * @alias module:model/SiteContainerPaging - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a SiteContainerPaging from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SiteContainerPaging} obj Optional instance to populate. - * @return {module:model/SiteContainerPaging} The populated SiteContainerPaging instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('list')) { - obj['list'] = SitePagingList.constructFromObject(data['list']); - } - } - return obj; - } - - - /** - * @member {module:model/SitePagingList} list - */ - exports.prototype['list'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 102 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(18)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Pagination')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.SitePagingList = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.Pagination); - } - }(this, function(ApiClient, Pagination) { - 'use strict'; - - /** - * The SitePagingList model module. - * @module model/SitePagingList - * @version 0.1.0 - */ - - /** - * Constructs a new SitePagingList. - * @alias module:model/SitePagingList - * @class - * @param pagination - */ - var exports = function(pagination) { - - this['pagination'] = pagination; - }; - - /** - * Constructs a SitePagingList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SitePagingList} obj Optional instance to populate. - * @return {module:model/SitePagingList} The populated SitePagingList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('pagination')) { - obj['pagination'] = Pagination.constructFromObject(data['pagination']); - } - } - return obj; - } - - - /** - * @member {module:model/Pagination} pagination - */ - exports.prototype['pagination'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 103 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(97)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Site')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.SiteEntry = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.Site); - } - }(this, function(ApiClient, Site) { - 'use strict'; - - /** - * The SiteEntry model module. - * @module model/SiteEntry - * @version 0.1.0 - */ - - /** - * Constructs a new SiteEntry. - * @alias module:model/SiteEntry - * @class - * @param entry - */ - var exports = function(entry) { - - this['entry'] = entry; - }; - - /** - * Constructs a SiteEntry from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SiteEntry} obj Optional instance to populate. - * @return {module:model/SiteEntry} The populated SiteEntry instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entry')) { - obj['entry'] = Site.constructFromObject(data['entry']); - } - } - return obj; - } - - - /** - * @member {module:model/Site} entry - */ - exports.prototype['entry'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 104 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(24)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Person')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.SiteMember = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.Person); - } - }(this, function(ApiClient, Person) { - 'use strict'; - - /** - * The SiteMember model module. - * @module model/SiteMember - * @version 0.1.0 - */ - - /** - * Constructs a new SiteMember. - * @alias module:model/SiteMember - * @class - * @param id - * @param person - * @param role - */ - var exports = function(id, person, role) { - - this['id'] = id; - this['person'] = person; - this['role'] = role; - }; - - /** - * Constructs a SiteMember from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SiteMember} obj Optional instance to populate. - * @return {module:model/SiteMember} The populated SiteMember instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('person')) { - obj['person'] = Person.constructFromObject(data['person']); - } - if (data.hasOwnProperty('role')) { - obj['role'] = ApiClient.convertToType(data['role'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} id - */ - exports.prototype['id'] = undefined; - - /** - * @member {module:model/Person} person - */ - exports.prototype['person'] = undefined; - - /** - * @member {module:model/SiteMember.RoleEnum} role - */ - exports.prototype['role'] = undefined; - - - /** - * Allowed values for the role property. - * @enum {String} - * @readonly - */ - exports.RoleEnum = { - /** - * value: SiteConsumer - * @const - */ - SITECONSUMER: "SiteConsumer", - - /** - * value: SiteCollaborator - * @const - */ - SITECOLLABORATOR: "SiteCollaborator", - - /** - * value: SiteContributor - * @const - */ - SITECONTRIBUTOR: "SiteContributor", - - /** - * value: SiteManager - * @const - */ - SITEMANAGER: "SiteManager" - }; - - return exports; - })); - - -/***/ }, -/* 105 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.SiteMemberBody = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The SiteMemberBody model module. - * @module model/SiteMemberBody - * @version 0.1.0 - */ - - /** - * Constructs a new SiteMemberBody. - * @alias module:model/SiteMemberBody - * @class - */ - var exports = function() { - - - - }; - - /** - * Constructs a SiteMemberBody from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SiteMemberBody} obj Optional instance to populate. - * @return {module:model/SiteMemberBody} The populated SiteMemberBody instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('role')) { - obj['role'] = ApiClient.convertToType(data['role'], 'String'); - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - } - return obj; - } - - - /** - * @member {module:model/SiteMemberBody.RoleEnum} role - */ - exports.prototype['role'] = undefined; - - /** - * @member {String} id - */ - exports.prototype['id'] = undefined; - - - /** - * Allowed values for the role property. - * @enum {String} - * @readonly - */ - exports.RoleEnum = { - /** - * value: SiteConsumer - * @const - */ - SITECONSUMER: "SiteConsumer", - - /** - * value: SiteCollaborator - * @const - */ - SITECOLLABORATOR: "SiteCollaborator", - - /** - * value: SiteContributor - * @const - */ - SITECONTRIBUTOR: "SiteContributor", - - /** - * value: SiteManager - * @const - */ - SITEMANAGER: "SiteManager" - }; - - return exports; - })); - - -/***/ }, -/* 106 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(104)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./SiteMember')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.SiteMemberEntry = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.SiteMember); - } - }(this, function(ApiClient, SiteMember) { - 'use strict'; - - /** - * The SiteMemberEntry model module. - * @module model/SiteMemberEntry - * @version 0.1.0 - */ - - /** - * Constructs a new SiteMemberEntry. - * @alias module:model/SiteMemberEntry - * @class - * @param entry - */ - var exports = function(entry) { - - this['entry'] = entry; - }; - - /** - * Constructs a SiteMemberEntry from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SiteMemberEntry} obj Optional instance to populate. - * @return {module:model/SiteMemberEntry} The populated SiteMemberEntry instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entry')) { - obj['entry'] = SiteMember.constructFromObject(data['entry']); - } - } - return obj; - } - - - /** - * @member {module:model/SiteMember} entry - */ - exports.prototype['entry'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 107 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(102)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./SitePagingList')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.SiteMemberPaging = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.SitePagingList); - } - }(this, function(ApiClient, SitePagingList) { - 'use strict'; - - /** - * The SiteMemberPaging model module. - * @module model/SiteMemberPaging - * @version 0.1.0 - */ - - /** - * Constructs a new SiteMemberPaging. - * @alias module:model/SiteMemberPaging - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a SiteMemberPaging from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SiteMemberPaging} obj Optional instance to populate. - * @return {module:model/SiteMemberPaging} The populated SiteMemberPaging instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('list')) { - obj['list'] = SitePagingList.constructFromObject(data['list']); - } - } - return obj; - } - - - /** - * @member {module:model/SitePagingList} list - */ - exports.prototype['list'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 108 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.SiteMemberRoleBody = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The SiteMemberRoleBody model module. - * @module model/SiteMemberRoleBody - * @version 0.1.0 - */ - - /** - * Constructs a new SiteMemberRoleBody. - * @alias module:model/SiteMemberRoleBody - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a SiteMemberRoleBody from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SiteMemberRoleBody} obj Optional instance to populate. - * @return {module:model/SiteMemberRoleBody} The populated SiteMemberRoleBody instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('role')) { - obj['role'] = ApiClient.convertToType(data['role'], 'String'); - } - } - return obj; - } - - - /** - * @member {module:model/SiteMemberRoleBody.RoleEnum} role - */ - exports.prototype['role'] = undefined; - - - /** - * Allowed values for the role property. - * @enum {String} - * @readonly - */ - exports.RoleEnum = { - /** - * value: SiteConsumer - * @const - */ - SITECONSUMER: "SiteConsumer", - - /** - * value: SiteCollaborator - * @const - */ - SITECOLLABORATOR: "SiteCollaborator", - - /** - * value: SiteContributor - * @const - */ - SITECONTRIBUTOR: "SiteContributor", - - /** - * value: SiteManager - * @const - */ - SITEMANAGER: "SiteManager" - }; - - return exports; - })); - - -/***/ }, -/* 109 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.SiteMembershipBody = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The SiteMembershipBody model module. - * @module model/SiteMembershipBody - * @version 0.1.0 - */ - - /** - * Constructs a new SiteMembershipBody. - * @alias module:model/SiteMembershipBody - * @class - */ - var exports = function() { - - - - - }; - - /** - * Constructs a SiteMembershipBody from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SiteMembershipBody} obj Optional instance to populate. - * @return {module:model/SiteMembershipBody} The populated SiteMembershipBody instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} message - */ - exports.prototype['message'] = undefined; - - /** - * @member {String} id - */ - exports.prototype['id'] = undefined; - - /** - * @member {String} title - */ - exports.prototype['title'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 110 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.SiteMembershipBody1 = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The SiteMembershipBody1 model module. - * @module model/SiteMembershipBody1 - * @version 0.1.0 - */ - - /** - * Constructs a new SiteMembershipBody1. - * @alias module:model/SiteMembershipBody1 - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a SiteMembershipBody1 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SiteMembershipBody1} obj Optional instance to populate. - * @return {module:model/SiteMembershipBody1} The populated SiteMembershipBody1 instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} message - */ - exports.prototype['message'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 111 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(97)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Site')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.SiteMembershipRequest = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.Site); - } - }(this, function(ApiClient, Site) { - 'use strict'; - - /** - * The SiteMembershipRequest model module. - * @module model/SiteMembershipRequest - * @version 0.1.0 - */ - - /** - * Constructs a new SiteMembershipRequest. - * @alias module:model/SiteMembershipRequest - * @class - * @param id - * @param createdAt - * @param entry - */ - var exports = function(id, createdAt, entry) { - - this['id'] = id; - this['createdAt'] = createdAt; - this['entry'] = entry; - }; - - /** - * Constructs a SiteMembershipRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SiteMembershipRequest} obj Optional instance to populate. - * @return {module:model/SiteMembershipRequest} The populated SiteMembershipRequest instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('createdAt')) { - obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'Date'); - } - if (data.hasOwnProperty('entry')) { - obj['entry'] = Site.constructFromObject(data['entry']); - } - } - return obj; - } - - - /** - * @member {String} id - */ - exports.prototype['id'] = undefined; - - /** - * @member {Date} createdAt - */ - exports.prototype['createdAt'] = undefined; - - /** - * @member {module:model/Site} entry - */ - exports.prototype['entry'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 112 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./SiteMembershipRequest')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.SiteMembershipRequestEntry = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.SiteMembershipRequest); - } - }(this, function(ApiClient, SiteMembershipRequest) { - 'use strict'; - - /** - * The SiteMembershipRequestEntry model module. - * @module model/SiteMembershipRequestEntry - * @version 0.1.0 - */ - - /** - * Constructs a new SiteMembershipRequestEntry. - * @alias module:model/SiteMembershipRequestEntry - * @class - * @param entry - */ - var exports = function(entry) { - - this['entry'] = entry; - }; - - /** - * Constructs a SiteMembershipRequestEntry from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SiteMembershipRequestEntry} obj Optional instance to populate. - * @return {module:model/SiteMembershipRequestEntry} The populated SiteMembershipRequestEntry instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entry')) { - obj['entry'] = SiteMembershipRequest.constructFromObject(data['entry']); - } - } - return obj; - } - - - /** - * @member {module:model/SiteMembershipRequest} entry - */ - exports.prototype['entry'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 113 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(114)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./SiteMembershipRequestPagingList')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.SiteMembershipRequestPaging = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.SiteMembershipRequestPagingList); - } - }(this, function(ApiClient, SiteMembershipRequestPagingList) { - 'use strict'; - - /** - * The SiteMembershipRequestPaging model module. - * @module model/SiteMembershipRequestPaging - * @version 0.1.0 - */ - - /** - * Constructs a new SiteMembershipRequestPaging. - * @alias module:model/SiteMembershipRequestPaging - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a SiteMembershipRequestPaging from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SiteMembershipRequestPaging} obj Optional instance to populate. - * @return {module:model/SiteMembershipRequestPaging} The populated SiteMembershipRequestPaging instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('list')) { - obj['list'] = SiteMembershipRequestPagingList.constructFromObject(data['list']); - } - } - return obj; - } - - - /** - * @member {module:model/SiteMembershipRequestPagingList} list - */ - exports.prototype['list'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 114 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(18), __webpack_require__(112)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Pagination'), require('./SiteMembershipRequestEntry')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.SiteMembershipRequestPagingList = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.Pagination, root.AlfrescoCoreRestApi.SiteMembershipRequestEntry); - } - }(this, function(ApiClient, Pagination, SiteMembershipRequestEntry) { - 'use strict'; - - /** - * The SiteMembershipRequestPagingList model module. - * @module model/SiteMembershipRequestPagingList - * @version 0.1.0 - */ - - /** - * Constructs a new SiteMembershipRequestPagingList. - * @alias module:model/SiteMembershipRequestPagingList - * @class - * @param entries - * @param pagination - */ - var exports = function(entries, pagination) { - - this['entries'] = entries; - this['pagination'] = pagination; - }; - - /** - * Constructs a SiteMembershipRequestPagingList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SiteMembershipRequestPagingList} obj Optional instance to populate. - * @return {module:model/SiteMembershipRequestPagingList} The populated SiteMembershipRequestPagingList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entries')) { - obj['entries'] = ApiClient.convertToType(data['entries'], [SiteMembershipRequestEntry]); - } - if (data.hasOwnProperty('pagination')) { - obj['pagination'] = Pagination.constructFromObject(data['pagination']); - } - } - return obj; - } - - - /** - * @member {Array.} entries - */ - exports.prototype['entries'] = undefined; - - /** - * @member {module:model/Pagination} pagination - */ - exports.prototype['pagination'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 115 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(102)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./SitePagingList')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.SitePaging = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.SitePagingList); - } - }(this, function(ApiClient, SitePagingList) { - 'use strict'; - - /** - * The SitePaging model module. - * @module model/SitePaging - * @version 0.1.0 - */ - - /** - * Constructs a new SitePaging. - * @alias module:model/SitePaging - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a SitePaging from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SitePaging} obj Optional instance to populate. - * @return {module:model/SitePaging} The populated SitePaging instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('list')) { - obj['list'] = SitePagingList.constructFromObject(data['list']); - } - } - return obj; - } - - - /** - * @member {module:model/SitePagingList} list - */ - exports.prototype['list'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 116 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.Tag = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The Tag model module. - * @module model/Tag - * @version 0.1.0 - */ - - /** - * Constructs a new Tag. - * @alias module:model/Tag - * @class - * @param id - * @param tag - */ - var exports = function(id, tag) { - - this['id'] = id; - this['tag'] = tag; - }; - - /** - * Constructs a Tag from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Tag} obj Optional instance to populate. - * @return {module:model/Tag} The populated Tag instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('tag')) { - obj['tag'] = ApiClient.convertToType(data['tag'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} id - */ - exports.prototype['id'] = undefined; - - /** - * @member {String} tag - */ - exports.prototype['tag'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 117 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.TagBody = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The TagBody model module. - * @module model/TagBody - * @version 0.1.0 - */ - - /** - * Constructs a new TagBody. - * @alias module:model/TagBody - * @class - * @param tag - */ - var exports = function(tag) { - - this['tag'] = tag; - }; - - /** - * Constructs a TagBody from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TagBody} obj Optional instance to populate. - * @return {module:model/TagBody} The populated TagBody instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('tag')) { - obj['tag'] = ApiClient.convertToType(data['tag'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} tag - */ - exports.prototype['tag'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 118 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.TagBody1 = factory(root.AlfrescoCoreRestApi.ApiClient); - } - }(this, function(ApiClient) { - 'use strict'; - - /** - * The TagBody1 model module. - * @module model/TagBody1 - * @version 0.1.0 - */ - - /** - * Constructs a new TagBody1. - * @alias module:model/TagBody1 - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a TagBody1 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TagBody1} obj Optional instance to populate. - * @return {module:model/TagBody1} The populated TagBody1 instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('tag')) { - obj['tag'] = ApiClient.convertToType(data['tag'], 'String'); - } - } - return obj; - } - - - /** - * @member {String} tag - */ - exports.prototype['tag'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 119 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(116)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Tag')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.TagEntry = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.Tag); - } - }(this, function(ApiClient, Tag) { - 'use strict'; - - /** - * The TagEntry model module. - * @module model/TagEntry - * @version 0.1.0 - */ - - /** - * Constructs a new TagEntry. - * @alias module:model/TagEntry - * @class - * @param entry - */ - var exports = function(entry) { - - this['entry'] = entry; - }; - - /** - * Constructs a TagEntry from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TagEntry} obj Optional instance to populate. - * @return {module:model/TagEntry} The populated TagEntry instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entry')) { - obj['entry'] = Tag.constructFromObject(data['entry']); - } - } - return obj; - } - - - /** - * @member {module:model/Tag} entry - */ - exports.prototype['entry'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 120 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(121)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./TagPagingList')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.TagPaging = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.TagPagingList); - } - }(this, function(ApiClient, TagPagingList) { - 'use strict'; - - /** - * The TagPaging model module. - * @module model/TagPaging - * @version 0.1.0 - */ - - /** - * Constructs a new TagPaging. - * @alias module:model/TagPaging - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a TagPaging from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TagPaging} obj Optional instance to populate. - * @return {module:model/TagPaging} The populated TagPaging instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('list')) { - obj['list'] = TagPagingList.constructFromObject(data['list']); - } - } - return obj; - } - - - /** - * @member {module:model/TagPagingList} list - */ - exports.prototype['list'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 121 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(18), __webpack_require__(119)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Pagination'), require('./TagEntry')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.TagPagingList = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.Pagination, root.AlfrescoCoreRestApi.TagEntry); - } - }(this, function(ApiClient, Pagination, TagEntry) { - 'use strict'; - - /** - * The TagPagingList model module. - * @module model/TagPagingList - * @version 0.1.0 - */ - - /** - * Constructs a new TagPagingList. - * @alias module:model/TagPagingList - * @class - * @param entries - * @param pagination - */ - var exports = function(entries, pagination) { - - this['entries'] = entries; - this['pagination'] = pagination; - }; - - /** - * Constructs a TagPagingList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TagPagingList} obj Optional instance to populate. - * @return {module:model/TagPagingList} The populated TagPagingList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = data || new exports(); - - if (data.hasOwnProperty('entries')) { - obj['entries'] = ApiClient.convertToType(data['entries'], [TagEntry]); - } - if (data.hasOwnProperty('pagination')) { - obj['pagination'] = Pagination.constructFromObject(data['pagination']); - } - } - return obj; - } - - - /** - * @member {Array.} entries - */ - exports.prototype['entries'] = undefined; - - /** - * @member {module:model/Pagination} pagination - */ - exports.prototype['pagination'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 122 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(44), __webpack_require__(21), __webpack_require__(58)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/Error'), require('../model/AssocTargetBody'), require('../model/NodeAssocPaging')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.AssociationsApi = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.Error, root.AlfrescoCoreRestApi.AssocTargetBody, root.AlfrescoCoreRestApi.NodeAssocPaging); - } - }(this, function(ApiClient, Error, AssocTargetBody, NodeAssocPaging) { - 'use strict'; - - /** - * Associations service. - * @module api/AssociationsApi - * @version 0.1.0 - */ - - /** - * Constructs a new AssociationsApi. - * @alias module:api/AssociationsApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, default to {@link module:ApiClient#instance} - * if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - - /** - * Add node association - * Add association, with given association type, between source and target node.\n - * @param {String} sourceId The identifier of a node. - * @param {module:model/AssocTargetBody} assocTargetBody The target node id and assoc type. - */ - this.addAssoc = function(sourceId, assocTargetBody) { - var postBody = assocTargetBody; - - // verify the required parameter 'sourceId' is set - if (sourceId == undefined || sourceId == null) { - throw "Missing the required parameter 'sourceId' when calling addAssoc"; - } - - // verify the required parameter 'assocTargetBody' is set - if (assocTargetBody == undefined || assocTargetBody == null) { - throw "Missing the required parameter 'assocTargetBody' when calling addAssoc"; - } - - - var pathParams = { - 'sourceId': sourceId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/nodes/{sourceId}/targets', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * List node associations - * Returns a list of source nodes that point to (ie. are associated with) the current target node.\n - * @param {String} targetId The identifier of a node. - * @param {Object} opts Optional parameters - * @param {String} opts.where Optionally filter the list by assocType. Here's an example:\n\n* where=(assocType='my:assoctype')\n - * @param {String} opts.include Return additional info, eg. aspect, properties, path, isLink - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeAssocPaging} - */ - this.listSourceNodeAssociations = function(targetId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'targetId' is set - if (targetId == undefined || targetId == null) { - throw "Missing the required parameter 'targetId' when calling listSourceNodeAssociations"; - } - - - var pathParams = { - 'targetId': targetId - }; - var queryParams = { - 'where': opts['where'], - 'include': opts['include'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodeAssocPaging; - - return this.apiClient.callApi( - '/nodes/{targetId}/sources', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * List node associations - * Returns a list of target nodes that are pointed to (ie. are associated with) the current source node.\n - * @param {String} sourceId The identifier of a node. - * @param {Object} opts Optional parameters - * @param {String} opts.where Optionally filter the list by assocType. Here's an example:\n\n* where=(assocType='my:assoctype')\n - * @param {String} opts.include Return additional info, eg. aspect, properties, path, isLink - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeAssocPaging} - */ - this.listTargetAssociations = function(sourceId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'sourceId' is set - if (sourceId == undefined || sourceId == null) { - throw "Missing the required parameter 'sourceId' when calling listTargetAssociations"; - } - - - var pathParams = { - 'sourceId': sourceId - }; - var queryParams = { - 'where': opts['where'], - 'include': opts['include'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodeAssocPaging; - - return this.apiClient.callApi( - '/nodes/{sourceId}/targets', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Remove node association(s) - * Remove association(s) between source and target node for given association type. \n\nIf association type is not specified then all associations between source and target are removed.\n - * @param {String} sourceId The identifier of a node. - * @param {String} targetId The identifier of a node. - * @param {Object} opts Optional parameters - * @param {String} opts.assocType Restrict the delete to only those of the given association type - */ - this.removeAssoc = function(sourceId, targetId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'sourceId' is set - if (sourceId == undefined || sourceId == null) { - throw "Missing the required parameter 'sourceId' when calling removeAssoc"; - } - - // verify the required parameter 'targetId' is set - if (targetId == undefined || targetId == null) { - throw "Missing the required parameter 'targetId' when calling removeAssoc"; - } - - - var pathParams = { - 'sourceId': sourceId, - 'targetId': targetId - }; - var queryParams = { - 'assocType': opts['assocType'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/nodes/{sourceId}/targets/{targetId}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - }; - - return exports; - })); - - -/***/ }, -/* 123 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(44), __webpack_require__(21), __webpack_require__(67), __webpack_require__(61), __webpack_require__(19), __webpack_require__(72), __webpack_require__(96), __webpack_require__(32), __webpack_require__(92), __webpack_require__(98), __webpack_require__(103), __webpack_require__(43), __webpack_require__(73), __webpack_require__(36), __webpack_require__(41), __webpack_require__(69), __webpack_require__(93), __webpack_require__(94), __webpack_require__(58), __webpack_require__(65), __webpack_require__(54), __webpack_require__(60)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/Error'), require('../model/AssocTargetBody'), require('../model/NodeEntry'), require('../model/NodeBody1'), require('../model/AssocChildBody'), require('../model/NodeSharedLinkEntry'), require('../model/SharedLinkBody'), require('../model/CopyBody'), require('../model/RenditionBody'), require('../model/SiteBody'), require('../model/SiteEntry'), require('../model/EmailSharedLinkBody'), require('../model/NodeSharedLinkPaging'), require('../model/DeletedNodeEntry'), require('../model/DeletedNodesPaging'), require('../model/NodePaging'), require('../model/RenditionEntry'), require('../model/RenditionPaging'), require('../model/NodeAssocPaging'), require('../model/NodeChildAssocPaging'), require('../model/MoveBody'), require('../model/NodeBody')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.ChangesApi = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.Error, root.AlfrescoCoreRestApi.AssocTargetBody, root.AlfrescoCoreRestApi.NodeEntry, root.AlfrescoCoreRestApi.NodeBody1, root.AlfrescoCoreRestApi.AssocChildBody, root.AlfrescoCoreRestApi.NodeSharedLinkEntry, root.AlfrescoCoreRestApi.SharedLinkBody, root.AlfrescoCoreRestApi.CopyBody, root.AlfrescoCoreRestApi.RenditionBody, root.AlfrescoCoreRestApi.SiteBody, root.AlfrescoCoreRestApi.SiteEntry, root.AlfrescoCoreRestApi.EmailSharedLinkBody, root.AlfrescoCoreRestApi.NodeSharedLinkPaging, root.AlfrescoCoreRestApi.DeletedNodeEntry, root.AlfrescoCoreRestApi.DeletedNodesPaging, root.AlfrescoCoreRestApi.NodePaging, root.AlfrescoCoreRestApi.RenditionEntry, root.AlfrescoCoreRestApi.RenditionPaging, root.AlfrescoCoreRestApi.NodeAssocPaging, root.AlfrescoCoreRestApi.NodeChildAssocPaging, root.AlfrescoCoreRestApi.MoveBody, root.AlfrescoCoreRestApi.NodeBody); - } - }(this, function(ApiClient, Error, AssocTargetBody, NodeEntry, NodeBody1, AssocChildBody, NodeSharedLinkEntry, SharedLinkBody, CopyBody, RenditionBody, SiteBody, SiteEntry, EmailSharedLinkBody, NodeSharedLinkPaging, DeletedNodeEntry, DeletedNodesPaging, NodePaging, RenditionEntry, RenditionPaging, NodeAssocPaging, NodeChildAssocPaging, MoveBody, NodeBody) { - 'use strict'; - - /** - * Changes service. - * @module api/ChangesApi - * @version 0.1.0 - */ - - /** - * Constructs a new ChangesApi. - * @alias module:api/ChangesApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, default to {@link module:ApiClient#instance} - * if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - - /** - * Add node association - * Add association, with given association type, between source and target node.\n - * @param {String} sourceId The identifier of a node. - * @param {module:model/AssocTargetBody} assocTargetBody The target node id and assoc type. - */ - this.addAssoc = function(sourceId, assocTargetBody) { - var postBody = assocTargetBody; - - // verify the required parameter 'sourceId' is set - if (sourceId == undefined || sourceId == null) { - throw "Missing the required parameter 'sourceId' when calling addAssoc"; - } - - // verify the required parameter 'assocTargetBody' is set - if (assocTargetBody == undefined || assocTargetBody == null) { - throw "Missing the required parameter 'assocTargetBody' when calling addAssoc"; - } - - - var pathParams = { - 'sourceId': sourceId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/nodes/{sourceId}/targets', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Create a node - * Creates a node as a (primary) child of the node with identifier **nodeId**.\n\nYou must specify at least a **name** and **nodeType**. For example, to create a folder:\n```JSON\n{\n \"name\":\"My Folder\",\n \"nodeType\":\"cm:folder\"\n}\n```\n\nYou can create an empty file like this:\n```JSON\n{\n \"name\":\"My text file.txt\",\n \"nodeType\":\"cm:content\",\n \"content\":\n {\n \"mimeType\":\"text/plain\"\n }\n}\n```\nYou can update binary content using the ```PUT /nodes/{nodeId}``` API method.\n\nYou can create a folder, or other node, inside a folder hierarchy:\n```JSON\n{\n \"name\":\"My Special Folder\",\n \"nodeType\":\"cm:folder\",\n \"relativePath\":\"X/Y/Z\"\n}\n```\nThe **relativePath** specifies the folder structure to create relative to the node identified by **nodeId**. Folders in the\n**relativePath** that do not exist are created before the node is created.\n\nYou can set properties when you create a new node:\n```JSON\n{\n \"name\":\"My Other Folder\",\n \"nodeType\":\"cm:folder\",\n \"properties\":\n {\n \"cm:title\":\"Folder title\",\n \"cm:description\":\"This is an important folder\"\n }\n}\n```\nAny missing aspects are auto-applied. For example, **cm:titled** in the JSON shown above. You can set aspects\nexplicitly set, if needed, using an **aspectNames** field.\n\nThis API method also supports file upload using multipart/form-data.\n\nUse the **filedata** field to represent the content to upload.\nYou can use a **filename** field to give an alternative name for the new file.\n\nUse **overwrite** to overwrite an existing file, matched by name. If the file is versionable,\nthe existing content is replaced.\n\nWhen you overwrite overwrite existing content, you can set the **majorVersion** boolean field to **true** to indicate a major version\nshould be created. The default for **majorVersion** is **false**.\nSetting **majorVersion** enables versioning of the node, if it is not already versioned.\n\nWhen you overwrite overwrite existing content, you can use the **comment** field to add a version comment that appears in the\nversion history. This also enables versioning of this node, if it is not already versioned.\n\nYou can set the **autoRename** boolean field to automatically resolve name clashes. If there is a name clash, then\nthe API method tries to create\na unique name using an integer suffix.\n\nAny field in the JSON body defined below can also be passed as a form-data field.\n - * @param {String} nodeId The identifier of a node. You can also use one of these well-known aliases:\n* -my-\n* -shared-\n* -root-\n - * @param {module:model/NodeBody1} nodeBody The node information to create. - * @param {Object} opts Optional parameters - * @param {Boolean} opts.autoRename If true, then a name clash will cause an attempt to auto rename by finding a unique name using an integer suffix. - * @param {Array.} opts.include Returns additional information about the node. The following optional fields can be requested:\n* path\n* isLink\n* allowableOperations\n - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeEntry} - */ - this.addNode = function(nodeId, nodeBody, opts) { - opts = opts || {}; - var postBody = nodeBody; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling addNode"; - } - - // verify the required parameter 'nodeBody' is set - if (nodeBody == undefined || nodeBody == null) { - throw "Missing the required parameter 'nodeBody' when calling addNode"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'autoRename': opts['autoRename'], - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv'), - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json', 'multipart/form-data']; - var accepts = ['application/json']; - var returnType = NodeEntry; - - return this.apiClient.callApi( - '/nodes/{nodeId}/children', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Add secondary child - * Add secondary child association, with given association type, between parent and child node.\n - * @param {String} parentId The identifier of a node. - * @param {module:model/AssocChildBody} assocChildBody The child node id and assoc type. - */ - this.addSecondaryChildAssoc = function(parentId, assocChildBody) { - var postBody = assocChildBody; - - // verify the required parameter 'parentId' is set - if (parentId == undefined || parentId == null) { - throw "Missing the required parameter 'parentId' when calling addSecondaryChildAssoc"; - } - - // verify the required parameter 'assocChildBody' is set - if (assocChildBody == undefined || assocChildBody == null) { - throw "Missing the required parameter 'assocChildBody' when calling addSecondaryChildAssoc"; - } - - - var pathParams = { - 'parentId': parentId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/nodes/{parentId}/secondary-children', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Create a shared link to a file - * Create shared link to specfied file identified by **nodeId** in request body. - * @param {module:model/SharedLinkBody} sharedLinkBody The nodeId to create a shared link for. - * @param {Object} opts Optional parameters - * @param {Array.} opts.include Returns additional information about the shared link, the following optional fields can be requested:\n* allowableOperations\n - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeSharedLinkEntry} - */ - this.addSharedLink = function(sharedLinkBody, opts) { - opts = opts || {}; - var postBody = sharedLinkBody; - - // verify the required parameter 'sharedLinkBody' is set - if (sharedLinkBody == undefined || sharedLinkBody == null) { - throw "Missing the required parameter 'sharedLinkBody' when calling addSharedLink"; - } - - - var pathParams = { - }; - var queryParams = { - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv'), - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodeSharedLinkEntry; - - return this.apiClient.callApi( - '/shared-links', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Copy a node - * Copy the node **nodeId** to the parent folder node **targetParentId**. The **targetParentId** is specified in the request body.\n\nThe new node has the same name as the source node unless you specify a new **name** in the request body.\n\nIf the source **nodeId** is a folder, then all of its children are also copied.\n - * @param {String} nodeId The identifier of a node. You can also use one of these well-known aliases:\n* -my-\n* -shared-\n* -root-\n - * @param {module:model/CopyBody} copyBody The targetParentId and, optionally, a new name. - * @param {Object} opts Optional parameters - * @param {Array.} opts.include Returns additional information about the node. The following optional fields can be requested:\n* path\n* isLink\n* allowableOperations\n - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeEntry} - */ - this.copyNode = function(nodeId, copyBody, opts) { - opts = opts || {}; - var postBody = copyBody; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling copyNode"; - } - - // verify the required parameter 'copyBody' is set - if (copyBody == undefined || copyBody == null) { - throw "Missing the required parameter 'copyBody' when calling copyNode"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv'), - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodeEntry; - - return this.apiClient.callApi( - '/nodes/{nodeId}/copy', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Create rendition - * Async request to create a rendition for file with identifier\n**nodeId**. The rendition is specified by name \"id\" in the request body:\n```JSON\n{\n \"id\":\"doclib\"\n}\n```\n - * @param {String} nodeId The identifier of a node. You can also use one of these well-known aliases:\n* -my-\n* -shared-\n* -root-\n - * @param {module:model/RenditionBody} renditionBody The rendition \"id\". - */ - this.createRendition = function(nodeId, renditionBody) { - var postBody = renditionBody; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling createRendition"; - } - - // verify the required parameter 'renditionBody' is set - if (renditionBody == undefined || renditionBody == null) { - throw "Missing the required parameter 'renditionBody' when calling createRendition"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/nodes/{nodeId}/renditions', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Create a site - * Creates a default site with the given details. Unless explicitly specified, the site id will be generated from the site title. The site id must be unique and only contain alphanumeric and/or dash\ncharacters.\n\nFor example, to create a public site called \"Marketing\" the following body could be used:\n```JSON\n{\n \"title\": \"Marketing\",\n \"visibility\": \"PUBLIC\"\n}\n```\n\nThe creation of the (surf) configuration files required by Share can be skipped via the **skipConfiguration** query parameter.\n\n**Please note: if skipped then such a site will *not* work within Share.**\n\nThe addition of the site to the user's site favorites can be skipped via the **skipAddToFavorites** query parameter.\n\nThe creator will be added as a member with Site Manager role.\n - * @param {module:model/SiteBody} siteBody The site details - * @param {Object} opts Optional parameters - * @param {Boolean} opts.skipConfiguration Flag to indicate whether the Share-specific (surf) configuration files for the site should not be created. (default to false) - * @param {Boolean} opts.skipAddToFavorites Flag to indicate whether the site should not be added to the user's site favorites. (default to false) - * data is of type: {module:model/SiteEntry} - */ - this.createSite = function(siteBody, opts) { - opts = opts || {}; - var postBody = siteBody; - - // verify the required parameter 'siteBody' is set - if (siteBody == undefined || siteBody == null) { - throw "Missing the required parameter 'siteBody' when calling createSite"; - } - - - var pathParams = { - }; - var queryParams = { - 'skipConfiguration': opts['skipConfiguration'], - 'skipAddToFavorites': opts['skipAddToFavorites'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = SiteEntry; - - return this.apiClient.callApi( - '/sites', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Delete a node - * Deletes the node with identifier **nodeId**.\nIf the **nodeId** is a folder, then its children are also deleted.\nDeleted nodes move to the trashcan unless the **permanent** query parameter is true, and the current user is the owner or an admin.\n\nDeleting a node removes the child associations, ie. both primary and also secondary, if any.\n - * @param {String} nodeId The identifier of a node. - * @param {Object} opts Optional parameters - * @param {Boolean} opts.permanent If **true** then the node is deleted permanently, without it moving to the trashcan.\nYou must be the owner or an admin to permanently delete the node.\n (default to false) - */ - this.deleteNode = function(nodeId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling deleteNode"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'permanent': opts['permanent'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/nodes/{nodeId}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Deletes a shared link - * Deletes the shared link with identifier **sharedId**. - * @param {String} sharedId The identifier of a shared link to a file. - */ - this.deleteSharedLink = function(sharedId) { - var postBody = null; - - // verify the required parameter 'sharedId' is set - if (sharedId == undefined || sharedId == null) { - throw "Missing the required parameter 'sharedId' when calling deleteSharedLink"; - } - - - var pathParams = { - 'sharedId': sharedId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/shared-links/{sharedId}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Delete a site - * Deletes the site with **siteId**. - * @param {String} siteId The identifier of a site. - * @param {Object} opts Optional parameters - * @param {Boolean} opts.permanent Flag to indicate whether the site should be permanently deleted i.e. bypass the trashcan. (default to false) - */ - this.deleteSite = function(siteId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'siteId' is set - if (siteId == undefined || siteId == null) { - throw "Missing the required parameter 'siteId' when calling deleteSite"; - } - - - var pathParams = { - 'siteId': siteId - }; - var queryParams = { - 'permanent': opts['permanent'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/sites/{siteId}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Email shared link - * Sends email with app-specific url including identifier **sharedId**.\n\nThe client and recipientEmails properties are mandatory in the request body. For example, to email a shared link with minimum info:\n```JSON\n{\n \"client\": \"myClient\",\n \"recipientEmails\": [\"john.doe@acme.com\", joe.bloggs@acme.com]\n}\n```\nA plain text message property can be optionally provided in the request body to customise the sent email.\nAlso, a locale property can be optionally provided in the request body to send the emails in a particular language.\nFor example, to email a shared link with a messages and a locale:\n```JSON\n{\n \"client\": \"myClient\",\n \"recipientEmails\": [\"john.doe@acme.com\", joe.bloggs@acme.com],\n \"message\": \"myMessage\",\n \"locale\":\"en-GB\"\n}\n```\n**Note:** The client must be registered before you can send a shared link email. See [server documentation]\n - * @param {String} sharedId The identifier of a shared link to a file. - * @param {module:model/EmailSharedLinkBody} emailSharedLinkBody The shared link email to send. - */ - this.emailSharedLink = function(sharedId, emailSharedLinkBody) { - var postBody = emailSharedLinkBody; - - // verify the required parameter 'sharedId' is set - if (sharedId == undefined || sharedId == null) { - throw "Missing the required parameter 'sharedId' when calling emailSharedLink"; - } - - // verify the required parameter 'emailSharedLinkBody' is set - if (emailSharedLinkBody == undefined || emailSharedLinkBody == null) { - throw "Missing the required parameter 'emailSharedLinkBody' when calling emailSharedLink"; - } - - - var pathParams = { - 'sharedId': sharedId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/shared-links/{sharedId}/email', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Find shared links - * Find (search for) links that current user has read permission on source node. - * @param {Object} opts Optional parameters - * @param {String} opts.where Optionally filter the list by \"sharedByUser\" userid of person who shared the link (can also use -me-)\n* where=(sharedByUser='jbloggs')\n* where=(sharedByUser='-me-') - * @param {Array.} opts.include Returns additional information about the shared link, the following optional fields can be requested:\n* allowableOperations\n - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeSharedLinkPaging} - */ - this.findSharedLinks = function(opts) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'where': opts['where'], - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv'), - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodeSharedLinkPaging; - - return this.apiClient.callApi( - '/shared-links', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get a deleted node - * Returns a specific deleted node identified by **nodeId**.\n - * @param {String} nodeId The identifier of a node. - * @param {Object} opts Optional parameters - * @param {Array.} opts.include Returns additional information about the node. The following optional fields can be requested:\n* path\n* isLink\n* allowableOperations\n - * data is of type: {module:model/DeletedNodeEntry} - */ - this.getDeletedNode = function(nodeId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling getDeletedNode"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = DeletedNodeEntry; - - return this.apiClient.callApi( - '/deleted-nodes/{nodeId}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get deleted nodes - * Returns a list of deleted nodes for the current user.\nIf the current user is an administrator deleted nodes\nfor all users will be returned.\nThe list of deleted nodes will be ordered with the most recently deleted node at the top of the list.\n - * @param {Object} opts Optional parameters - * @param {Integer} opts.skipCount The number of entities that exist in the collection before those included in this list. - * @param {Integer} opts.maxItems The maximum number of items to return in the list. - * @param {Array.} opts.include Returns additional information about the node. The following optional fields can be requested:\n* properties\n* aspectNames\n* path\n* isLink\n* allowableOperations\n* association\n - * data is of type: {module:model/DeletedNodesPaging} - */ - this.getDeletedNodes = function(opts) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'skipCount': opts['skipCount'], - 'maxItems': opts['maxItems'], - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = DeletedNodesPaging; - - return this.apiClient.callApi( - '/deleted-nodes', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get file content - * Returns the file content of the node with identifier **nodeId**. - * @param {String} nodeId The identifier of a node. - * @param {Object} opts Optional parameters - * @param {Boolean} opts.attachment **true** enables a web browser to download the file as an attachment.\n**false** means a web browser may preview the file in a new tab or window, but not\ndownload the file.\n\nYou can only set this parameter to **false** if the content type of the file is in the supported list;\nfor example, certain image files and PDF files.\n\nIf the content type is not supported for preview, then a value of **false** is ignored, and\nthe attachment will be returned in the response.\n (default to true) - * @param {Date} opts.ifModifiedSince Only returns the content if it has been modified since the date provided.\nUse the date format defined by HTTP. For example, `Wed, 09 Mar 2016 16:56:34 GMT`.\n - */ - this.getFileContent = function(nodeId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling getFileContent"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'attachment': opts['attachment'] - }; - var headerParams = { - 'If-Modified-Since': opts['ifModifiedSince'] - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/nodes/{nodeId}/content', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get a node - * Get information for the node with identifier **nodeId**. - * @param {String} nodeId The identifier of a node. You can also use one of these well-known aliases:\n* -my-\n* -shared-\n* -root-\n - * @param {Object} opts Optional parameters - * @param {Array.} opts.include Returns additional information about the node. The following optional fields can be requested:\n* path\n* isLink\n* allowableOperations\n - * @param {String} opts.relativePath If specified, returns information on the node resolved by this path.\nThe path is relative to the specified **nodeId**\n - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeEntry} - */ - this.getNode = function(nodeId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling getNode"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv'), - 'relativePath': opts['relativePath'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodeEntry; - - return this.apiClient.callApi( - '/nodes/{nodeId}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get node children - * Returns the children of the node with identifier **nodeId**.\nMinimal information for each child is returned by default.\nYou can use the **include** parameter to return addtional information.\n\nThe list of child nodes includes primary children and also secondary children, if any.\n - * @param {String} nodeId The identifier of a node. You can also use one of these well-known aliases:\n* -my-\n* -shared-\n* -root-\n - * @param {Object} opts Optional parameters - * @param {Integer} opts.skipCount The number of entities that exist in the collection before those included in this list. - * @param {Integer} opts.maxItems The maximum number of items to return in the list. - * @param {String} opts.orderBy If not specified then default sort is for folders to be sorted before files, and by ascending name\ni.e. \"orderBy=isFolder DESC,name ASC\".\n\nThis default can be completely overridden by specifying a specific orderBy consisting of one, two or\nthree comma-separated list of properties (with optional ASCending or DESCending), for example,\nspecifying \u201CorderBy=name DESC\u201D would return a mixed folder/file list.\n\nThe following properties can be used to order the results:\n* isFolder\n* name\n* mimeType\n* nodeType\n* sizeInBytes\n* modifiedAt\n* createdAt\n* modifiedByUser\n* createdByUser\n - * @param {String} opts.where Optionally filter the list. Here are some examples:\n\n* where=(isFolder=true)\n\n* where=(isFile=true)\n\n* where=(nodeType='my:specialtype')\n\n* where=(nodeType='my:specialtype' INCLUDESUBTYPES)\n - * @param {Array.} opts.include Returns additional information about the node. The following optional fields can be requested:\n* properties\n* aspectNames\n* path\n* isLink\n* allowableOperations\n* association\n - * @param {String} opts.relativePath Return information on children within the folder resolved by this path (relative to specified nodeId as the starting parent folder) - * @param {Boolean} opts.includeSource Also include \"source\" (in addition to \"entries\") with folder information on parent node (either the specified parent \"nodeId\" or as resolved by \"relativePath\") - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodePaging} - */ - this.getNodeChildren = function(nodeId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling getNodeChildren"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'skipCount': opts['skipCount'], - 'maxItems': opts['maxItems'], - 'orderBy': opts['orderBy'], - 'where': opts['where'], - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv'), - 'relativePath': opts['relativePath'], - 'includeSource': opts['includeSource'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodePaging; - - return this.apiClient.callApi( - '/nodes/{nodeId}/children', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get rendition information - * Returns the rendition information for file node with identifier **nodeId**. - * @param {String} nodeId The identifier of a node. - * @param {String} renditionId The name of a thumbnail rendition, for example *doclib*, or *pdf*. - * data is of type: {module:model/RenditionEntry} - */ - this.getRendition = function(nodeId, renditionId) { - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling getRendition"; - } - - // verify the required parameter 'renditionId' is set - if (renditionId == undefined || renditionId == null) { - throw "Missing the required parameter 'renditionId' when calling getRendition"; - } - - - var pathParams = { - 'nodeId': nodeId, - 'renditionId': renditionId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = RenditionEntry; - - return this.apiClient.callApi( - '/nodes/{nodeId}/renditions/{renditionId}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get rendition content - * Returns the rendition content for file node with identifier **nodeId**. - * @param {String} nodeId The identifier of a node. - * @param {String} renditionId The name of a thumbnail rendition, for example *doclib*, or *pdf*. - * @param {Object} opts Optional parameters - * @param {Boolean} opts.attachment **true** enables a web browser to download the file as an attachment.\n**false** means a web browser may preview the file in a new tab or window, but not\ndownload the file.\n\nYou can only set this parameter to **false** if the content type of the file is in the supported list;\nfor example, certain image files and PDF files.\n\nIf the content type is not supported for preview, then a value of **false** is ignored, and\nthe attachment will be returned in the response.\n (default to true) - * @param {Date} opts.ifModifiedSince Only returns the content if it has been modified since the date provided.\nUse the date format defined by HTTP. For example, `Wed, 09 Mar 2016 16:56:34 GMT`.\n - */ - this.getRenditionContent = function(nodeId, renditionId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling getRenditionContent"; - } - - // verify the required parameter 'renditionId' is set - if (renditionId == undefined || renditionId == null) { - throw "Missing the required parameter 'renditionId' when calling getRenditionContent"; - } - - - var pathParams = { - 'nodeId': nodeId, - 'renditionId': renditionId - }; - var queryParams = { - 'attachment': opts['attachment'] - }; - var headerParams = { - 'If-Modified-Since': opts['ifModifiedSince'] - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/nodes/{nodeId}/renditions/{renditionId}/content', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * List information for renditions - * Returns the rendition information for the file node with identifier **nodeId**.\nThis will return rendition information, including the rendition id, for each rendition. The\u00A0rendition status is CREATED (ie. available\u00A0to view/download) or NOT_CREATED (ie. rendition can be requested). - * @param {String} nodeId The identifier of a node. - * data is of type: {module:model/RenditionPaging} - */ - this.getRenditions = function(nodeId) { - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling getRenditions"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = RenditionPaging; - - return this.apiClient.callApi( - '/nodes/{nodeId}/renditions', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get a shared link - * Returns minimal information for the file with shared link identifier **sharedId**.\n\n**Note:** No authentication is required to call this endpoint.\n - * @param {String} sharedId The identifier of a shared link to a file. - * @param {Object} opts Optional parameters - * @param {Array.} opts.include Returns additional information about the shared link, the following optional fields can be requested:\n* allowableOperations\n - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeSharedLinkEntry} - */ - this.getSharedLink = function(sharedId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'sharedId' is set - if (sharedId == undefined || sharedId == null) { - throw "Missing the required parameter 'sharedId' when calling getSharedLink"; - } - - - var pathParams = { - 'sharedId': sharedId - }; - var queryParams = { - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv'), - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodeSharedLinkEntry; - - return this.apiClient.callApi( - '/shared-links/{sharedId}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get file content - * Returns the content of the file with shared link identifier **sharedId**.\n\n**Note:** No authentication is required to call this endpoint.\n - * @param {String} sharedId The identifier of a shared link to a file. - * @param {Object} opts Optional parameters - * @param {Boolean} opts.attachment **true** enables a web browser to download the file as an attachment.\n**false** means a web browser may preview the file in a new tab or window, but not\ndownload the file.\n\nYou can only set this parameter to **false** if the content type of the file is in the supported list;\nfor example, certain image files and PDF files.\n\nIf the content type is not supported for preview, then a value of **false** is ignored, and\nthe attachment will be returned in the response.\n (default to true) - * @param {Date} opts.ifModifiedSince Only returns the content if it has been modified since the date provided.\nUse the date format defined by HTTP. For example, `Wed, 09 Mar 2016 16:56:34 GMT`.\n - */ - this.getSharedLinkContent = function(sharedId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'sharedId' is set - if (sharedId == undefined || sharedId == null) { - throw "Missing the required parameter 'sharedId' when calling getSharedLinkContent"; - } - - - var pathParams = { - 'sharedId': sharedId - }; - var queryParams = { - 'attachment': opts['attachment'] - }; - var headerParams = { - 'If-Modified-Since': opts['ifModifiedSince'] - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/shared-links/{sharedId}/content', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get shared link rendition content - * Returns the rendition content for file with shared link identifier **sharedId**.\n\n**Note:** No authentication is required to call this endpoint.\n - * @param {String} sharedId The identifier of a shared link to a file. - * @param {String} renditionId The name of a thumbnail rendition, for example *doclib*, or *pdf*. - * @param {Object} opts Optional parameters - * @param {Boolean} opts.attachment **true** enables a web browser to download the file as an attachment.\n**false** means a web browser may preview the file in a new tab or window, but not\ndownload the file.\n\nYou can only set this parameter to **false** if the content type of the file is in the supported list;\nfor example, certain image files and PDF files.\n\nIf the content type is not supported for preview, then a value of **false** is ignored, and\nthe attachment will be returned in the response.\n (default to true) - * @param {Date} opts.ifModifiedSince Only returns the content if it has been modified since the date provided.\nUse the date format defined by HTTP. For example, `Wed, 09 Mar 2016 16:56:34 GMT`.\n - */ - this.getSharedLinkRenditionContent = function(sharedId, renditionId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'sharedId' is set - if (sharedId == undefined || sharedId == null) { - throw "Missing the required parameter 'sharedId' when calling getSharedLinkRenditionContent"; - } - - // verify the required parameter 'renditionId' is set - if (renditionId == undefined || renditionId == null) { - throw "Missing the required parameter 'renditionId' when calling getSharedLinkRenditionContent"; - } - - - var pathParams = { - 'sharedId': sharedId, - 'renditionId': renditionId - }; - var queryParams = { - 'attachment': opts['attachment'] - }; - var headerParams = { - 'If-Modified-Since': opts['ifModifiedSince'] - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/shared-links/{sharedId}/renditions/{renditionId}/content', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * List information for created renditions - * Returns the rendition information for the file with shared link identifier **sharedId**.\n\nThis will only return rendition information, including the rendition id, for each rendition\nwhere the rendition status is CREATED (ie. available\u00A0to view/download).\n\n**Note:** No authentication is required to call this endpoint. \n - * @param {String} sharedId The identifier of a shared link to a file. - * data is of type: {module:model/RenditionPaging} - */ - this.getSharedLinkRenditions = function(sharedId) { - var postBody = null; - - // verify the required parameter 'sharedId' is set - if (sharedId == undefined || sharedId == null) { - throw "Missing the required parameter 'sharedId' when calling getSharedLinkRenditions"; - } - - - var pathParams = { - 'sharedId': sharedId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = RenditionPaging; - - return this.apiClient.callApi( - '/shared-links/{sharedId}/renditions', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * List parents - * Returns a list of parent nodes that point to (ie. are associated with) the current child node. \n\nThis inclues both the primary parent and also secondary parents, if any.\n - * @param {String} childId The identifier of a node. - * @param {Object} opts Optional parameters - * @param {String} opts.where Optionally filter the list by assocType. Here's an example:\n\n* where=(assocType='my:assoctype')\n - * @param {String} opts.include Return additional info, eg. aspect, properties, path, isLink - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeAssocPaging} - */ - this.listParents = function(childId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'childId' is set - if (childId == undefined || childId == null) { - throw "Missing the required parameter 'childId' when calling listParents"; - } - - - var pathParams = { - 'childId': childId - }; - var queryParams = { - 'where': opts['where'], - 'include': opts['include'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodeAssocPaging; - - return this.apiClient.callApi( - '/nodes/{childId}/parents', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * List secondary children - * Returns a list of secondary child nodes that are associated with the current parent node, via a secondary child association.\n - * @param {String} parentId The identifier of a node. - * @param {Object} opts Optional parameters - * @param {String} opts.assocType Restrict the returned results to only those of the given association type - * @param {String} opts.where Optionally filter the list by assocType. Here's an example:\n\n* where=(assocType='my:assoctype')\n - * @param {String} opts.include Return additional info, eg. aspect, properties, path, isLink - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeChildAssocPaging} - */ - this.listSecondaryChildAssociations = function(parentId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'parentId' is set - if (parentId == undefined || parentId == null) { - throw "Missing the required parameter 'parentId' when calling listSecondaryChildAssociations"; - } - - - var pathParams = { - 'parentId': parentId - }; - var queryParams = { - 'assocType': opts['assocType'], - 'where': opts['where'], - 'include': opts['include'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodeChildAssocPaging; - - return this.apiClient.callApi( - '/nodes/{parentId}/secondary-children', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * List node associations - * Returns a list of source nodes that point to (ie. are associated with) the current target node.\n - * @param {String} targetId The identifier of a node. - * @param {Object} opts Optional parameters - * @param {String} opts.where Optionally filter the list by assocType. Here's an example:\n\n* where=(assocType='my:assoctype')\n - * @param {String} opts.include Return additional info, eg. aspect, properties, path, isLink - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeAssocPaging} - */ - this.listSourceNodeAssociations = function(targetId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'targetId' is set - if (targetId == undefined || targetId == null) { - throw "Missing the required parameter 'targetId' when calling listSourceNodeAssociations"; - } - - - var pathParams = { - 'targetId': targetId - }; - var queryParams = { - 'where': opts['where'], - 'include': opts['include'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodeAssocPaging; - - return this.apiClient.callApi( - '/nodes/{targetId}/sources', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * List node associations - * Returns a list of target nodes that are pointed to (ie. are associated with) the current source node.\n - * @param {String} sourceId The identifier of a node. - * @param {Object} opts Optional parameters - * @param {String} opts.where Optionally filter the list by assocType. Here's an example:\n\n* where=(assocType='my:assoctype')\n - * @param {String} opts.include Return additional info, eg. aspect, properties, path, isLink - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeAssocPaging} - */ - this.listTargetAssociations = function(sourceId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'sourceId' is set - if (sourceId == undefined || sourceId == null) { - throw "Missing the required parameter 'sourceId' when calling listTargetAssociations"; - } - - - var pathParams = { - 'sourceId': sourceId - }; - var queryParams = { - 'where': opts['where'], - 'include': opts['include'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodeAssocPaging; - - return this.apiClient.callApi( - '/nodes/{sourceId}/targets', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Live search for nodes - * Returns a list of nodes that match the given search criteria.\n\nThe search term is used to look for nodes that match against name, title, description, full text content and tags.\n\nThe search term\n- must contain a minimum of 3 alphanumeric characters\n- allows \"quoted term\"\n- can optionally use '*' for wildcard matching\n\nBy default, file and folder types will be searched unless a specific type is provided as a query parameter.\n\nBy default, the search will be across the repository unless a specific root node id is provided to start the search from.\n - * @param {String} term The term to search for. - * @param {Object} opts Optional parameters - * @param {Integer} opts.skipCount The number of entities that exist in the collection before those included in this list. - * @param {Integer} opts.maxItems The maximum number of items to return in the list. - * @param {String} opts.rootNodeId The id of the node to start the search from.\n\nSupports the aliases -my-, -root- and -shared-.\n - * @param {String} opts.nodeType Restrict the returned results to only those of the given node type and it's sub-types - * @param {String} opts.include Return additional info, eg. aspectNames, properties, path, isLink - * @param {String} opts.orderBy The list of results can be ordered by the following:\n* name\n* modifiedAt\n* createdAt\n - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodePaging} - */ - this.liveSearchNodes = function(term, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'term' is set - if (term == undefined || term == null) { - throw "Missing the required parameter 'term' when calling liveSearchNodes"; - } - - - var pathParams = { - }; - var queryParams = { - 'skipCount': opts['skipCount'], - 'maxItems': opts['maxItems'], - 'term': term, - 'rootNodeId': opts['rootNodeId'], - 'nodeType': opts['nodeType'], - 'include': opts['include'], - 'orderBy': opts['orderBy'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodePaging; - - return this.apiClient.callApi( - '/queries/live-search-nodes', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Move a node - * Move the node **nodeId** to the parent folder node **targetParentId**. in request body.\nThe **targetParentId** is specified in the in request body.\n\nThe moved node retains its name unless you specify a new **name** in the request body.\n\nIf the source **nodeId** is a folder, then all of its children are also moved.\n\nThe move will effectively change the primary parent\n - * @param {String} nodeId The identifier of a node. You can also use one of these well-known aliases:\n* -my-\n* -shared-\n* -root-\n - * @param {module:model/MoveBody} moveBody The targetParentId and, optionally, a new name. - * @param {Object} opts Optional parameters - * @param {Array.} opts.include Returns additional information about the node. The following optional fields can be requested:\n* path\n* isLink\n* allowableOperations\n - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeEntry} - */ - this.moveNode = function(nodeId, moveBody, opts) { - opts = opts || {}; - var postBody = moveBody; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling moveNode"; - } - - // verify the required parameter 'moveBody' is set - if (moveBody == undefined || moveBody == null) { - throw "Missing the required parameter 'moveBody' when calling moveNode"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv'), - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodeEntry; - - return this.apiClient.callApi( - '/nodes/{nodeId}/move', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Purge a deleted node - * Permanently removes the deleted node identified by **nodeId**.\n - * @param {String} nodeId The identifier of a node. - */ - this.purgeDeletedNode = function(nodeId) { - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling purgeDeletedNode"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/deleted-nodes/{nodeId}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Remove node association(s) - * Remove association(s) between source and target node for given association type. \n\nIf association type is not specified then all associations between source and target are removed.\n - * @param {String} sourceId The identifier of a node. - * @param {String} targetId The identifier of a node. - * @param {Object} opts Optional parameters - * @param {String} opts.assocType Restrict the delete to only those of the given association type - */ - this.removeAssoc = function(sourceId, targetId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'sourceId' is set - if (sourceId == undefined || sourceId == null) { - throw "Missing the required parameter 'sourceId' when calling removeAssoc"; - } - - // verify the required parameter 'targetId' is set - if (targetId == undefined || targetId == null) { - throw "Missing the required parameter 'targetId' when calling removeAssoc"; - } - - - var pathParams = { - 'sourceId': sourceId, - 'targetId': targetId - }; - var queryParams = { - 'assocType': opts['assocType'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/nodes/{sourceId}/targets/{targetId}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Remove secondary child (or children) - * Remove secondary child association(s) between parent and child node for given association type. \n\nIf association type is not specified then all secondary child associations between parent and child are removed.\n - * @param {String} parentId The identifier of a node. - * @param {String} childId The identifier of a node. - * @param {Object} opts Optional parameters - * @param {String} opts.assocType Restrict the delete to only those of the given association type - */ - this.removeSecondaryChildAssoc = function(parentId, childId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'parentId' is set - if (parentId == undefined || parentId == null) { - throw "Missing the required parameter 'parentId' when calling removeSecondaryChildAssoc"; - } - - // verify the required parameter 'childId' is set - if (childId == undefined || childId == null) { - throw "Missing the required parameter 'childId' when calling removeSecondaryChildAssoc"; - } - - - var pathParams = { - 'parentId': parentId, - 'childId': childId - }; - var queryParams = { - 'assocType': opts['assocType'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/nodes/{parentId}/secondary-children/{childId}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Restore a deleted node - * Attempts to restore the deleted node identified by **nodeId** to its original location.\n - * @param {String} nodeId The identifier of a node. - * data is of type: {module:model/NodeEntry} - */ - this.restoreNode = function(nodeId) { - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling restoreNode"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodeEntry; - - return this.apiClient.callApi( - '/deleted-nodes/{nodeId}/restore', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Update file content - * Updates the content of the node with identifier **nodeId**.\n\nThe request body for this endpoint can be any text or binary stream. The Content-Type header should be set\ncorrectly for the type of content being updated. The Content-Type header is used to set the mimetype in the repository.\n\nThe **majorVersion** and **comment** parameters can be used to control versioning behaviour. If the content is versionable,\na new minor version is created by default.\n\n**Note:** This API method accepts any content type, but for testing with this tool text based content can be provided.\nThis is because the OpenAPI Specification does not allow a wildcard to be provided or the ability for\ntooling to accept an arbitary file.\n - * @param {String} nodeId The identifier of a node. - * @param {String} contentBody The binary content - * @param {Object} opts Optional parameters - * @param {Boolean} opts.majorVersion If **true**, create a major version.\nSetting this parameter also enables versioning of this node, if it is not already versioned.\n (default to false) - * @param {String} opts.comment Add a version comment which will appear in version history.\nSetting this parameter also enables versioning of this node, if it is not already versioned.\n - * @param {Array.} opts.include Returns additional information about the node. The following optional fields can be requested:\n* path\n* isLink\n* allowableOperations\n - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeEntry} - */ - this.updateFileContent = function(nodeId, contentBody, opts) { - opts = opts || {}; - var postBody = contentBody; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling updateFileContent"; - } - - // verify the required parameter 'contentBody' is set - if (contentBody == undefined || contentBody == null) { - throw "Missing the required parameter 'contentBody' when calling updateFileContent"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'majorVersion': opts['majorVersion'], - 'comment': opts['comment'], - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv'), - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/octet-stream']; - var accepts = ['application/json']; - var returnType = NodeEntry; - - return this.apiClient.callApi( - '/nodes/{nodeId}/content', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Update a node - * Updates the node with identifier **nodeId**. For example, you can rename a file or folder:\n```JSON\n{\n \"name\":\"My new name\",\n}\n```\nYou can also set or update one or more properties:\n```JSON\n{\n \"properties\":\n {\n \"cm:title\":\"Folder title\"\n }\n}\n```\n**Note:** if you want to add or remove aspects, then you must use **GET /nodes/{nodeId}** first to get the complete set of *aspectNames*.\n\n**Note:** Currently there is no optimistic locking for updates, so they are applied in \"last one wins\" order.\n - * @param {String} nodeId The identifier of a node. You can also use one of these well-known aliases:\n* -my-\n* -shared-\n* -root-\n - * @param {module:model/NodeBody} nodeBody The node information to update. - * @param {Object} opts Optional parameters - * @param {Array.} opts.include Returns additional information about the node. The following optional fields can be requested:\n* path\n* isLink\n* allowableOperations\n - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeEntry} - */ - this.updateNode = function(nodeId, nodeBody, opts) { - opts = opts || {}; - var postBody = nodeBody; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling updateNode"; - } - - // verify the required parameter 'nodeBody' is set - if (nodeBody == undefined || nodeBody == null) { - throw "Missing the required parameter 'nodeBody' when calling updateNode"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv'), - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodeEntry; - - return this.apiClient.callApi( - '/nodes/{nodeId}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - }; - - return exports; - })); - - -/***/ }, -/* 124 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(67), __webpack_require__(61), __webpack_require__(44), __webpack_require__(19), __webpack_require__(69), __webpack_require__(58), __webpack_require__(65), __webpack_require__(54)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/NodeEntry'), require('../model/NodeBody1'), require('../model/Error'), require('../model/AssocChildBody'), require('../model/NodePaging'), require('../model/NodeAssocPaging'), require('../model/NodeChildAssocPaging'), require('../model/MoveBody')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.ChildAssociationsApi = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.NodeEntry, root.AlfrescoCoreRestApi.NodeBody1, root.AlfrescoCoreRestApi.Error, root.AlfrescoCoreRestApi.AssocChildBody, root.AlfrescoCoreRestApi.NodePaging, root.AlfrescoCoreRestApi.NodeAssocPaging, root.AlfrescoCoreRestApi.NodeChildAssocPaging, root.AlfrescoCoreRestApi.MoveBody); - } - }(this, function(ApiClient, NodeEntry, NodeBody1, Error, AssocChildBody, NodePaging, NodeAssocPaging, NodeChildAssocPaging, MoveBody) { - 'use strict'; - - /** - * ChildAssociations service. - * @module api/ChildAssociationsApi - * @version 0.1.0 - */ - - /** - * Constructs a new ChildAssociationsApi. - * @alias module:api/ChildAssociationsApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, default to {@link module:ApiClient#instance} - * if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - - /** - * Create a node - * Creates a node as a (primary) child of the node with identifier **nodeId**.\n\nYou must specify at least a **name** and **nodeType**. For example, to create a folder:\n```JSON\n{\n \"name\":\"My Folder\",\n \"nodeType\":\"cm:folder\"\n}\n```\n\nYou can create an empty file like this:\n```JSON\n{\n \"name\":\"My text file.txt\",\n \"nodeType\":\"cm:content\",\n \"content\":\n {\n \"mimeType\":\"text/plain\"\n }\n}\n```\nYou can update binary content using the ```PUT /nodes/{nodeId}``` API method.\n\nYou can create a folder, or other node, inside a folder hierarchy:\n```JSON\n{\n \"name\":\"My Special Folder\",\n \"nodeType\":\"cm:folder\",\n \"relativePath\":\"X/Y/Z\"\n}\n```\nThe **relativePath** specifies the folder structure to create relative to the node identified by **nodeId**. Folders in the\n**relativePath** that do not exist are created before the node is created.\n\nYou can set properties when you create a new node:\n```JSON\n{\n \"name\":\"My Other Folder\",\n \"nodeType\":\"cm:folder\",\n \"properties\":\n {\n \"cm:title\":\"Folder title\",\n \"cm:description\":\"This is an important folder\"\n }\n}\n```\nAny missing aspects are auto-applied. For example, **cm:titled** in the JSON shown above. You can set aspects\nexplicitly set, if needed, using an **aspectNames** field.\n\nThis API method also supports file upload using multipart/form-data.\n\nUse the **filedata** field to represent the content to upload.\nYou can use a **filename** field to give an alternative name for the new file.\n\nUse **overwrite** to overwrite an existing file, matched by name. If the file is versionable,\nthe existing content is replaced.\n\nWhen you overwrite overwrite existing content, you can set the **majorVersion** boolean field to **true** to indicate a major version\nshould be created. The default for **majorVersion** is **false**.\nSetting **majorVersion** enables versioning of the node, if it is not already versioned.\n\nWhen you overwrite overwrite existing content, you can use the **comment** field to add a version comment that appears in the\nversion history. This also enables versioning of this node, if it is not already versioned.\n\nYou can set the **autoRename** boolean field to automatically resolve name clashes. If there is a name clash, then\nthe API method tries to create\na unique name using an integer suffix.\n\nAny field in the JSON body defined below can also be passed as a form-data field.\n - * @param {String} nodeId The identifier of a node. You can also use one of these well-known aliases:\n* -my-\n* -shared-\n* -root-\n - * @param {module:model/NodeBody1} nodeBody The node information to create. - * @param {Object} opts Optional parameters - * @param {Boolean} opts.autoRename If true, then a name clash will cause an attempt to auto rename by finding a unique name using an integer suffix. - * @param {Array.} opts.include Returns additional information about the node. The following optional fields can be requested:\n* path\n* isLink\n* allowableOperations\n - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeEntry} - */ - this.addNode = function(nodeId, nodeBody, opts) { - opts = opts || {}; - var postBody = nodeBody; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling addNode"; - } - - // verify the required parameter 'nodeBody' is set - if (nodeBody == undefined || nodeBody == null) { - throw "Missing the required parameter 'nodeBody' when calling addNode"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'autoRename': opts['autoRename'], - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv'), - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json', 'multipart/form-data']; - var accepts = ['application/json']; - var returnType = NodeEntry; - - return this.apiClient.callApi( - '/nodes/{nodeId}/children', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Add secondary child - * Add secondary child association, with given association type, between parent and child node.\n - * @param {String} parentId The identifier of a node. - * @param {module:model/AssocChildBody} assocChildBody The child node id and assoc type. - */ - this.addSecondaryChildAssoc = function(parentId, assocChildBody) { - var postBody = assocChildBody; - - // verify the required parameter 'parentId' is set - if (parentId == undefined || parentId == null) { - throw "Missing the required parameter 'parentId' when calling addSecondaryChildAssoc"; - } - - // verify the required parameter 'assocChildBody' is set - if (assocChildBody == undefined || assocChildBody == null) { - throw "Missing the required parameter 'assocChildBody' when calling addSecondaryChildAssoc"; - } - - - var pathParams = { - 'parentId': parentId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/nodes/{parentId}/secondary-children', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Delete a node - * Deletes the node with identifier **nodeId**.\nIf the **nodeId** is a folder, then its children are also deleted.\nDeleted nodes move to the trashcan unless the **permanent** query parameter is true, and the current user is the owner or an admin.\n\nDeleting a node removes the child associations, ie. both primary and also secondary, if any.\n - * @param {String} nodeId The identifier of a node. - * @param {Object} opts Optional parameters - * @param {Boolean} opts.permanent If **true** then the node is deleted permanently, without it moving to the trashcan.\nYou must be the owner or an admin to permanently delete the node.\n (default to false) - */ - this.deleteNode = function(nodeId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling deleteNode"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'permanent': opts['permanent'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/nodes/{nodeId}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get node children - * Returns the children of the node with identifier **nodeId**.\nMinimal information for each child is returned by default.\nYou can use the **include** parameter to return addtional information.\n\nThe list of child nodes includes primary children and also secondary children, if any.\n - * @param {String} nodeId The identifier of a node. You can also use one of these well-known aliases:\n* -my-\n* -shared-\n* -root-\n - * @param {Object} opts Optional parameters - * @param {Integer} opts.skipCount The number of entities that exist in the collection before those included in this list. - * @param {Integer} opts.maxItems The maximum number of items to return in the list. - * @param {String} opts.orderBy If not specified then default sort is for folders to be sorted before files, and by ascending name\ni.e. \"orderBy=isFolder DESC,name ASC\".\n\nThis default can be completely overridden by specifying a specific orderBy consisting of one, two or\nthree comma-separated list of properties (with optional ASCending or DESCending), for example,\nspecifying \u201CorderBy=name DESC\u201D would return a mixed folder/file list.\n\nThe following properties can be used to order the results:\n* isFolder\n* name\n* mimeType\n* nodeType\n* sizeInBytes\n* modifiedAt\n* createdAt\n* modifiedByUser\n* createdByUser\n - * @param {String} opts.where Optionally filter the list. Here are some examples:\n\n* where=(isFolder=true)\n\n* where=(isFile=true)\n\n* where=(nodeType='my:specialtype')\n\n* where=(nodeType='my:specialtype' INCLUDESUBTYPES)\n - * @param {Array.} opts.include Returns additional information about the node. The following optional fields can be requested:\n* properties\n* aspectNames\n* path\n* isLink\n* allowableOperations\n* association\n - * @param {String} opts.relativePath Return information on children within the folder resolved by this path (relative to specified nodeId as the starting parent folder) - * @param {Boolean} opts.includeSource Also include \"source\" (in addition to \"entries\") with folder information on parent node (either the specified parent \"nodeId\" or as resolved by \"relativePath\") - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodePaging} - */ - this.getNodeChildren = function(nodeId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling getNodeChildren"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'skipCount': opts['skipCount'], - 'maxItems': opts['maxItems'], - 'orderBy': opts['orderBy'], - 'where': opts['where'], - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv'), - 'relativePath': opts['relativePath'], - 'includeSource': opts['includeSource'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodePaging; - - return this.apiClient.callApi( - '/nodes/{nodeId}/children', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * List parents - * Returns a list of parent nodes that point to (ie. are associated with) the current child node. \n\nThis inclues both the primary parent and also secondary parents, if any.\n - * @param {String} childId The identifier of a node. - * @param {Object} opts Optional parameters - * @param {String} opts.where Optionally filter the list by assocType. Here's an example:\n\n* where=(assocType='my:assoctype')\n - * @param {String} opts.include Return additional info, eg. aspect, properties, path, isLink - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeAssocPaging} - */ - this.listParents = function(childId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'childId' is set - if (childId == undefined || childId == null) { - throw "Missing the required parameter 'childId' when calling listParents"; - } - - - var pathParams = { - 'childId': childId - }; - var queryParams = { - 'where': opts['where'], - 'include': opts['include'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodeAssocPaging; - - return this.apiClient.callApi( - '/nodes/{childId}/parents', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * List secondary children - * Returns a list of secondary child nodes that are associated with the current parent node, via a secondary child association.\n - * @param {String} parentId The identifier of a node. - * @param {Object} opts Optional parameters - * @param {String} opts.assocType Restrict the returned results to only those of the given association type - * @param {String} opts.where Optionally filter the list by assocType. Here's an example:\n\n* where=(assocType='my:assoctype')\n - * @param {String} opts.include Return additional info, eg. aspect, properties, path, isLink - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeChildAssocPaging} - */ - this.listSecondaryChildAssociations = function(parentId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'parentId' is set - if (parentId == undefined || parentId == null) { - throw "Missing the required parameter 'parentId' when calling listSecondaryChildAssociations"; - } - - - var pathParams = { - 'parentId': parentId - }; - var queryParams = { - 'assocType': opts['assocType'], - 'where': opts['where'], - 'include': opts['include'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodeChildAssocPaging; - - return this.apiClient.callApi( - '/nodes/{parentId}/secondary-children', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Move a node - * Move the node **nodeId** to the parent folder node **targetParentId**. in request body.\nThe **targetParentId** is specified in the in request body.\n\nThe moved node retains its name unless you specify a new **name** in the request body.\n\nIf the source **nodeId** is a folder, then all of its children are also moved.\n\nThe move will effectively change the primary parent\n - * @param {String} nodeId The identifier of a node. You can also use one of these well-known aliases:\n* -my-\n* -shared-\n* -root-\n - * @param {module:model/MoveBody} moveBody The targetParentId and, optionally, a new name. - * @param {Object} opts Optional parameters - * @param {Array.} opts.include Returns additional information about the node. The following optional fields can be requested:\n* path\n* isLink\n* allowableOperations\n - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeEntry} - */ - this.moveNode = function(nodeId, moveBody, opts) { - opts = opts || {}; - var postBody = moveBody; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling moveNode"; - } - - // verify the required parameter 'moveBody' is set - if (moveBody == undefined || moveBody == null) { - throw "Missing the required parameter 'moveBody' when calling moveNode"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv'), - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodeEntry; - - return this.apiClient.callApi( - '/nodes/{nodeId}/move', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Remove secondary child (or children) - * Remove secondary child association(s) between parent and child node for given association type. \n\nIf association type is not specified then all secondary child associations between parent and child are removed.\n - * @param {String} parentId The identifier of a node. - * @param {String} childId The identifier of a node. - * @param {Object} opts Optional parameters - * @param {String} opts.assocType Restrict the delete to only those of the given association type - */ - this.removeSecondaryChildAssoc = function(parentId, childId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'parentId' is set - if (parentId == undefined || parentId == null) { - throw "Missing the required parameter 'parentId' when calling removeSecondaryChildAssoc"; - } - - // verify the required parameter 'childId' is set - if (childId == undefined || childId == null) { - throw "Missing the required parameter 'childId' when calling removeSecondaryChildAssoc"; - } - - - var pathParams = { - 'parentId': parentId, - 'childId': childId - }; - var queryParams = { - 'assocType': opts['assocType'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/nodes/{parentId}/secondary-children/{childId}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - }; - - return exports; - })); - - -/***/ }, -/* 125 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(26), __webpack_require__(28), __webpack_require__(44), __webpack_require__(29), __webpack_require__(27)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/CommentBody'), require('../model/CommentEntry'), require('../model/Error'), require('../model/CommentPaging'), require('../model/CommentBody1')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.CommentsApi = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.CommentBody, root.AlfrescoCoreRestApi.CommentEntry, root.AlfrescoCoreRestApi.Error, root.AlfrescoCoreRestApi.CommentPaging, root.AlfrescoCoreRestApi.CommentBody1); - } - }(this, function(ApiClient, CommentBody, CommentEntry, Error, CommentPaging, CommentBody1) { - 'use strict'; - - /** - * Comments service. - * @module api/CommentsApi - * @version 0.1.0 - */ - - /** - * Constructs a new CommentsApi. - * @alias module:api/CommentsApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, default to {@link module:ApiClient#instance} - * if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - - /** - * Add a comment - * Creates one or more comments on node **nodeId**. You can create more than one comment by \nspecifying a list of comments in the JSON body like this: \n\n```JSON\n[\n {\n \"content\": \"This is a comment\"\n },\n {\n \"content\": \"This is another comment\"\n }\n]\n```\n - * @param {String} nodeId The identifier of a node. - * @param {module:model/CommentBody} commentBody The comment text. Note that you can provide an array of comments. - * data is of type: {module:model/CommentEntry} - */ - this.addComment = function(nodeId, commentBody) { - var postBody = commentBody; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling addComment"; - } - - // verify the required parameter 'commentBody' is set - if (commentBody == undefined || commentBody == null) { - throw "Missing the required parameter 'commentBody' when calling addComment"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = CommentEntry; - - return this.apiClient.callApi( - '/nodes/{nodeId}/comments', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get comments - * Returns a list of comments for the node identified by **nodeId**, sorted chronologically with the newest comment first. - * @param {String} nodeId The identifier of a node. - * @param {Object} opts Optional parameters - * @param {Integer} opts.skipCount The number of entities that exist in the collection before those included in this list. - * @param {Integer} opts.maxItems The maximum number of items to return in the list. - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/CommentPaging} - */ - this.getComments = function(nodeId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling getComments"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'skipCount': opts['skipCount'], - 'maxItems': opts['maxItems'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = CommentPaging; - - return this.apiClient.callApi( - '/nodes/{nodeId}/comments', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Delete a comment - * Removes the comment **commentId** from node **nodeId**. - * @param {String} nodeId The identifier of a node. - * @param {String} commentId The identifier of a comment. - */ - this.removeComment = function(nodeId, commentId) { - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling removeComment"; - } - - // verify the required parameter 'commentId' is set - if (commentId == undefined || commentId == null) { - throw "Missing the required parameter 'commentId' when calling removeComment"; - } - - - var pathParams = { - 'nodeId': nodeId, - 'commentId': commentId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/nodes/{nodeId}/comments/{commentId}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Update a comment - * Updates an existing comment **commentId** on node **nodeId**. - * @param {String} nodeId The identifier of a node. - * @param {String} commentId The identifier of a comment. - * @param {module:model/CommentBody1} commentBody The JSON representing the comment to be updated. - * @param {Object} opts Optional parameters - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/CommentEntry} - */ - this.updateComment = function(nodeId, commentId, commentBody, opts) { - opts = opts || {}; - var postBody = commentBody; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling updateComment"; - } - - // verify the required parameter 'commentId' is set - if (commentId == undefined || commentId == null) { - throw "Missing the required parameter 'commentId' when calling updateComment"; - } - - // verify the required parameter 'commentBody' is set - if (commentBody == undefined || commentBody == null) { - throw "Missing the required parameter 'commentBody' when calling updateComment"; - } - - - var pathParams = { - 'nodeId': nodeId, - 'commentId': commentId - }; - var queryParams = { - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = CommentEntry; - - return this.apiClient.callApi( - '/nodes/{nodeId}/comments/{commentId}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - }; - - return exports; - })); - - -/***/ }, -/* 126 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(48), __webpack_require__(47), __webpack_require__(44), __webpack_require__(49)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/FavoriteEntry'), require('../model/FavoriteBody'), require('../model/Error'), require('../model/FavoritePaging')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.FavoritesApi = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.FavoriteEntry, root.AlfrescoCoreRestApi.FavoriteBody, root.AlfrescoCoreRestApi.Error, root.AlfrescoCoreRestApi.FavoritePaging); - } - }(this, function(ApiClient, FavoriteEntry, FavoriteBody, Error, FavoritePaging) { - 'use strict'; - - /** - * Favorites service. - * @module api/FavoritesApi - * @version 0.1.0 - */ - - /** - * Constructs a new FavoritesApi. - * @alias module:api/FavoritesApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, default to {@link module:ApiClient#instance} - * if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - - /** - * Add a favorite - * Favorite a **site**, **file**, or **folder** in the repository. - * @param {String} personId The identifier of a person. - * @param {module:model/FavoriteBody} favoriteBody An object identifying the entity to be favorited. \n\nThe object consists of a single property which is an object with the name `site`, `file`, or `folder`. \nThe content of that object is the `guid` of the target entity.\n\nFor example, to favorite a file the following body would be used:\n\n```JSON\n{\n \"target\": {\n \"file\": {\n \"guid\": \"abcde-01234\"\n }\n }\n}\n```\n - * data is of type: {module:model/FavoriteEntry} - */ - this.addFavorite = function(personId, favoriteBody) { - var postBody = favoriteBody; - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling addFavorite"; - } - - // verify the required parameter 'favoriteBody' is set - if (favoriteBody == undefined || favoriteBody == null) { - throw "Missing the required parameter 'favoriteBody' when calling addFavorite"; - } - - - var pathParams = { - 'personId': personId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = FavoriteEntry; - - return this.apiClient.callApi( - '/people/{personId}/favorites', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get a favorite - * Returns favorite **favoriteId** for person **personId**. - * @param {String} personId The identifier of a person. - * @param {String} favoriteId The identifier of a favorite. - * @param {Object} opts Optional parameters - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/FavoriteEntry} - */ - this.getFavorite = function(personId, favoriteId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling getFavorite"; - } - - // verify the required parameter 'favoriteId' is set - if (favoriteId == undefined || favoriteId == null) { - throw "Missing the required parameter 'favoriteId' when calling getFavorite"; - } - - - var pathParams = { - 'personId': personId, - 'favoriteId': favoriteId - }; - var queryParams = { - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = FavoriteEntry; - - return this.apiClient.callApi( - '/people/{personId}/favorites/{favoriteId}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get favorites - * Returns a list of favorites for person **personId**.\n\nYou can us the `-me-` string in place of `<personId>` to get the favorites of the currently authenticated user.\n\nYou can use the **where** parameter to restrict the list in the response\nto entries of a specific kind. The **where** parameter takes a value.\nThe value is a single predicate that can include one or more **EXISTS**\nconditions. The **EXISTS** condition uses a single operand to limit the\nlist to include entries that include that one property. The property values are:\n\n* `target/file`\n* `target/folder`\n* `target/site`\n\nFor example, the following **where** parameter restricts the returned list to the file favorites for a person:\n\n```SQL\n(EXISTS(target/file))\n```\nYou can specify more than one condition using **OR**. The predicate must be enclosed in parentheses.\n\n\nFor example, the following **where** parameter restricts the returned list to the file and folder favorites for a person:\n\n```SQL\n(EXISTS(target/file) OR EXISTS(target/folder))\n```\n - * @param {String} personId The identifier of a person. - * @param {Object} opts Optional parameters - * @param {Integer} opts.skipCount The number of entities that exist in the collection before those included in this list. - * @param {Integer} opts.maxItems The maximum number of items to return in the list. - * @param {String} opts.where A string to restrict the returned objects by using a predicate. - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/FavoritePaging} - */ - this.getFavorites = function(personId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling getFavorites"; - } - - - var pathParams = { - 'personId': personId - }; - var queryParams = { - 'skipCount': opts['skipCount'], - 'maxItems': opts['maxItems'], - 'where': opts['where'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = FavoritePaging; - - return this.apiClient.callApi( - '/people/{personId}/favorites', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Delete a favorite - * Removes **favoriteId** as a favorite of person **personId**. - * @param {String} personId The identifier of a person. - * @param {String} favoriteId The identifier of a favorite. - */ - this.removeFavoriteSite = function(personId, favoriteId) { - var postBody = null; - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling removeFavoriteSite"; - } - - // verify the required parameter 'favoriteId' is set - if (favoriteId == undefined || favoriteId == null) { - throw "Missing the required parameter 'favoriteId' when calling removeFavoriteSite"; - } - - - var pathParams = { - 'personId': personId, - 'favoriteId': favoriteId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/people/{personId}/favorites/{favoriteId}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - }; - - return exports; - })); - - -/***/ }, -/* 127 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(78), __webpack_require__(44)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/PersonNetworkEntry'), require('../model/Error')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.NetworksApi = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.PersonNetworkEntry, root.AlfrescoCoreRestApi.Error); - } - }(this, function(ApiClient, PersonNetworkEntry, Error) { - 'use strict'; - - /** - * Networks service. - * @module api/NetworksApi - * @version 0.1.0 - */ - - /** - * Constructs a new NetworksApi. - * @alias module:api/NetworksApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, default to {@link module:ApiClient#instance} - * if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - - /** - * Get a network - * Returns information for a network **networkId**. - * @param {String} networkId The identifier of a network. - * @param {Object} opts Optional parameters - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/PersonNetworkEntry} - */ - this.getNetwork = function(networkId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'networkId' is set - if (networkId == undefined || networkId == null) { - throw "Missing the required parameter 'networkId' when calling getNetwork"; - } - - - var pathParams = { - 'networkId': networkId - }; - var queryParams = { - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = PersonNetworkEntry; - - return this.apiClient.callApi( - '/networks/{networkId}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - }; - - return exports; - })); - - -/***/ }, -/* 128 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(67), __webpack_require__(61), __webpack_require__(44), __webpack_require__(32), __webpack_require__(36), __webpack_require__(41), __webpack_require__(69), __webpack_require__(54), __webpack_require__(60)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/NodeEntry'), require('../model/NodeBody1'), require('../model/Error'), require('../model/CopyBody'), require('../model/DeletedNodeEntry'), require('../model/DeletedNodesPaging'), require('../model/NodePaging'), require('../model/MoveBody'), require('../model/NodeBody')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.NodesApi = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.NodeEntry, root.AlfrescoCoreRestApi.NodeBody1, root.AlfrescoCoreRestApi.Error, root.AlfrescoCoreRestApi.CopyBody, root.AlfrescoCoreRestApi.DeletedNodeEntry, root.AlfrescoCoreRestApi.DeletedNodesPaging, root.AlfrescoCoreRestApi.NodePaging, root.AlfrescoCoreRestApi.MoveBody, root.AlfrescoCoreRestApi.NodeBody); - } - }(this, function(ApiClient, NodeEntry, NodeBody1, Error, CopyBody, DeletedNodeEntry, DeletedNodesPaging, NodePaging, MoveBody, NodeBody) { - 'use strict'; - - /** - * Nodes service. - * @module api/NodesApi - * @version 0.1.0 - */ - - /** - * Constructs a new NodesApi. - * @alias module:api/NodesApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, default to {@link module:ApiClient#instance} - * if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - - /** - * Create a node - * Creates a node as a (primary) child of the node with identifier **nodeId**.\n\nYou must specify at least a **name** and **nodeType**. For example, to create a folder:\n```JSON\n{\n \"name\":\"My Folder\",\n \"nodeType\":\"cm:folder\"\n}\n```\n\nYou can create an empty file like this:\n```JSON\n{\n \"name\":\"My text file.txt\",\n \"nodeType\":\"cm:content\",\n \"content\":\n {\n \"mimeType\":\"text/plain\"\n }\n}\n```\nYou can update binary content using the ```PUT /nodes/{nodeId}``` API method.\n\nYou can create a folder, or other node, inside a folder hierarchy:\n```JSON\n{\n \"name\":\"My Special Folder\",\n \"nodeType\":\"cm:folder\",\n \"relativePath\":\"X/Y/Z\"\n}\n```\nThe **relativePath** specifies the folder structure to create relative to the node identified by **nodeId**. Folders in the\n**relativePath** that do not exist are created before the node is created.\n\nYou can set properties when you create a new node:\n```JSON\n{\n \"name\":\"My Other Folder\",\n \"nodeType\":\"cm:folder\",\n \"properties\":\n {\n \"cm:title\":\"Folder title\",\n \"cm:description\":\"This is an important folder\"\n }\n}\n```\nAny missing aspects are auto-applied. For example, **cm:titled** in the JSON shown above. You can set aspects\nexplicitly set, if needed, using an **aspectNames** field.\n\nThis API method also supports file upload using multipart/form-data.\n\nUse the **filedata** field to represent the content to upload.\nYou can use a **filename** field to give an alternative name for the new file.\n\nUse **overwrite** to overwrite an existing file, matched by name. If the file is versionable,\nthe existing content is replaced.\n\nWhen you overwrite overwrite existing content, you can set the **majorVersion** boolean field to **true** to indicate a major version\nshould be created. The default for **majorVersion** is **false**.\nSetting **majorVersion** enables versioning of the node, if it is not already versioned.\n\nWhen you overwrite overwrite existing content, you can use the **comment** field to add a version comment that appears in the\nversion history. This also enables versioning of this node, if it is not already versioned.\n\nYou can set the **autoRename** boolean field to automatically resolve name clashes. If there is a name clash, then\nthe API method tries to create\na unique name using an integer suffix.\n\nAny field in the JSON body defined below can also be passed as a form-data field.\n - * @param {String} nodeId The identifier of a node. You can also use one of these well-known aliases:\n* -my-\n* -shared-\n* -root-\n - * @param {module:model/NodeBody1} nodeBody The node information to create. - * @param {Object} opts Optional parameters - * @param {Boolean} opts.autoRename If true, then a name clash will cause an attempt to auto rename by finding a unique name using an integer suffix. - * @param {Array.} opts.include Returns additional information about the node. The following optional fields can be requested:\n* path\n* isLink\n* allowableOperations\n - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeEntry} - */ - this.addNode = function(nodeId, nodeBody, opts) { - opts = opts || {}; - var postBody = nodeBody; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling addNode"; - } - - // verify the required parameter 'nodeBody' is set - if (nodeBody == undefined || nodeBody == null) { - throw "Missing the required parameter 'nodeBody' when calling addNode"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'autoRename': opts['autoRename'], - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv'), - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json', 'multipart/form-data']; - var accepts = ['application/json']; - var returnType = NodeEntry; - - return this.apiClient.callApi( - '/nodes/{nodeId}/children', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Copy a node - * Copy the node **nodeId** to the parent folder node **targetParentId**. The **targetParentId** is specified in the request body.\n\nThe new node has the same name as the source node unless you specify a new **name** in the request body.\n\nIf the source **nodeId** is a folder, then all of its children are also copied.\n - * @param {String} nodeId The identifier of a node. You can also use one of these well-known aliases:\n* -my-\n* -shared-\n* -root-\n - * @param {module:model/CopyBody} copyBody The targetParentId and, optionally, a new name. - * @param {Object} opts Optional parameters - * @param {Array.} opts.include Returns additional information about the node. The following optional fields can be requested:\n* path\n* isLink\n* allowableOperations\n - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeEntry} - */ - this.copyNode = function(nodeId, copyBody, opts) { - opts = opts || {}; - var postBody = copyBody; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling copyNode"; - } - - // verify the required parameter 'copyBody' is set - if (copyBody == undefined || copyBody == null) { - throw "Missing the required parameter 'copyBody' when calling copyNode"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv'), - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodeEntry; - - return this.apiClient.callApi( - '/nodes/{nodeId}/copy', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Delete a node - * Deletes the node with identifier **nodeId**.\nIf the **nodeId** is a folder, then its children are also deleted.\nDeleted nodes move to the trashcan unless the **permanent** query parameter is true, and the current user is the owner or an admin.\n\nDeleting a node removes the child associations, ie. both primary and also secondary, if any.\n - * @param {String} nodeId The identifier of a node. - * @param {Object} opts Optional parameters - * @param {Boolean} opts.permanent If **true** then the node is deleted permanently, without it moving to the trashcan.\nYou must be the owner or an admin to permanently delete the node.\n (default to false) - */ - this.deleteNode = function(nodeId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling deleteNode"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'permanent': opts['permanent'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/nodes/{nodeId}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get a deleted node - * Returns a specific deleted node identified by **nodeId**.\n - * @param {String} nodeId The identifier of a node. - * @param {Object} opts Optional parameters - * @param {Array.} opts.include Returns additional information about the node. The following optional fields can be requested:\n* path\n* isLink\n* allowableOperations\n - * data is of type: {module:model/DeletedNodeEntry} - */ - this.getDeletedNode = function(nodeId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling getDeletedNode"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = DeletedNodeEntry; - - return this.apiClient.callApi( - '/deleted-nodes/{nodeId}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get deleted nodes - * Returns a list of deleted nodes for the current user.\nIf the current user is an administrator deleted nodes\nfor all users will be returned.\nThe list of deleted nodes will be ordered with the most recently deleted node at the top of the list.\n - * @param {Object} opts Optional parameters - * @param {Integer} opts.skipCount The number of entities that exist in the collection before those included in this list. - * @param {Integer} opts.maxItems The maximum number of items to return in the list. - * @param {Array.} opts.include Returns additional information about the node. The following optional fields can be requested:\n* properties\n* aspectNames\n* path\n* isLink\n* allowableOperations\n* association\n - * data is of type: {module:model/DeletedNodesPaging} - */ - this.getDeletedNodes = function(opts) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'skipCount': opts['skipCount'], - 'maxItems': opts['maxItems'], - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = DeletedNodesPaging; - - return this.apiClient.callApi( - '/deleted-nodes', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get file content - * Returns the file content of the node with identifier **nodeId**. - * @param {String} nodeId The identifier of a node. - * @param {Object} opts Optional parameters - * @param {Boolean} opts.attachment **true** enables a web browser to download the file as an attachment.\n**false** means a web browser may preview the file in a new tab or window, but not\ndownload the file.\n\nYou can only set this parameter to **false** if the content type of the file is in the supported list;\nfor example, certain image files and PDF files.\n\nIf the content type is not supported for preview, then a value of **false** is ignored, and\nthe attachment will be returned in the response.\n (default to true) - * @param {Date} opts.ifModifiedSince Only returns the content if it has been modified since the date provided.\nUse the date format defined by HTTP. For example, `Wed, 09 Mar 2016 16:56:34 GMT`.\n - */ - this.getFileContent = function(nodeId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling getFileContent"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'attachment': opts['attachment'] - }; - var headerParams = { - 'If-Modified-Since': opts['ifModifiedSince'] - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/nodes/{nodeId}/content', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get a node - * Get information for the node with identifier **nodeId**. - * @param {String} nodeId The identifier of a node. You can also use one of these well-known aliases:\n* -my-\n* -shared-\n* -root-\n - * @param {Object} opts Optional parameters - * @param {Array.} opts.include Returns additional information about the node. The following optional fields can be requested:\n* path\n* isLink\n* allowableOperations\n - * @param {String} opts.relativePath If specified, returns information on the node resolved by this path.\nThe path is relative to the specified **nodeId**\n - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeEntry} - */ - this.getNode = function(nodeId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling getNode"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv'), - 'relativePath': opts['relativePath'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodeEntry; - - return this.apiClient.callApi( - '/nodes/{nodeId}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get node children - * Returns the children of the node with identifier **nodeId**.\nMinimal information for each child is returned by default.\nYou can use the **include** parameter to return addtional information.\n\nThe list of child nodes includes primary children and also secondary children, if any.\n - * @param {String} nodeId The identifier of a node. You can also use one of these well-known aliases:\n* -my-\n* -shared-\n* -root-\n - * @param {Object} opts Optional parameters - * @param {Integer} opts.skipCount The number of entities that exist in the collection before those included in this list. - * @param {Integer} opts.maxItems The maximum number of items to return in the list. - * @param {String} opts.orderBy If not specified then default sort is for folders to be sorted before files, and by ascending name\ni.e. \"orderBy=isFolder DESC,name ASC\".\n\nThis default can be completely overridden by specifying a specific orderBy consisting of one, two or\nthree comma-separated list of properties (with optional ASCending or DESCending), for example,\nspecifying \u201CorderBy=name DESC\u201D would return a mixed folder/file list.\n\nThe following properties can be used to order the results:\n* isFolder\n* name\n* mimeType\n* nodeType\n* sizeInBytes\n* modifiedAt\n* createdAt\n* modifiedByUser\n* createdByUser\n - * @param {String} opts.where Optionally filter the list. Here are some examples:\n\n* where=(isFolder=true)\n\n* where=(isFile=true)\n\n* where=(nodeType='my:specialtype')\n\n* where=(nodeType='my:specialtype' INCLUDESUBTYPES)\n - * @param {Array.} opts.include Returns additional information about the node. The following optional fields can be requested:\n* properties\n* aspectNames\n* path\n* isLink\n* allowableOperations\n* association\n - * @param {String} opts.relativePath Return information on children within the folder resolved by this path (relative to specified nodeId as the starting parent folder) - * @param {Boolean} opts.includeSource Also include \"source\" (in addition to \"entries\") with folder information on parent node (either the specified parent \"nodeId\" or as resolved by \"relativePath\") - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodePaging} - */ - this.getNodeChildren = function(nodeId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling getNodeChildren"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'skipCount': opts['skipCount'], - 'maxItems': opts['maxItems'], - 'orderBy': opts['orderBy'], - 'where': opts['where'], - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv'), - 'relativePath': opts['relativePath'], - 'includeSource': opts['includeSource'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodePaging; - - return this.apiClient.callApi( - '/nodes/{nodeId}/children', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Move a node - * Move the node **nodeId** to the parent folder node **targetParentId**. in request body.\nThe **targetParentId** is specified in the in request body.\n\nThe moved node retains its name unless you specify a new **name** in the request body.\n\nIf the source **nodeId** is a folder, then all of its children are also moved.\n\nThe move will effectively change the primary parent\n - * @param {String} nodeId The identifier of a node. You can also use one of these well-known aliases:\n* -my-\n* -shared-\n* -root-\n - * @param {module:model/MoveBody} moveBody The targetParentId and, optionally, a new name. - * @param {Object} opts Optional parameters - * @param {Array.} opts.include Returns additional information about the node. The following optional fields can be requested:\n* path\n* isLink\n* allowableOperations\n - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeEntry} - */ - this.moveNode = function(nodeId, moveBody, opts) { - opts = opts || {}; - var postBody = moveBody; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling moveNode"; - } - - // verify the required parameter 'moveBody' is set - if (moveBody == undefined || moveBody == null) { - throw "Missing the required parameter 'moveBody' when calling moveNode"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv'), - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodeEntry; - - return this.apiClient.callApi( - '/nodes/{nodeId}/move', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Purge a deleted node - * Permanently removes the deleted node identified by **nodeId**.\n - * @param {String} nodeId The identifier of a node. - */ - this.purgeDeletedNode = function(nodeId) { - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling purgeDeletedNode"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/deleted-nodes/{nodeId}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Restore a deleted node - * Attempts to restore the deleted node identified by **nodeId** to its original location.\n - * @param {String} nodeId The identifier of a node. - * data is of type: {module:model/NodeEntry} - */ - this.restoreNode = function(nodeId) { - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling restoreNode"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodeEntry; - - return this.apiClient.callApi( - '/deleted-nodes/{nodeId}/restore', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Update file content - * Updates the content of the node with identifier **nodeId**.\n\nThe request body for this endpoint can be any text or binary stream. The Content-Type header should be set\ncorrectly for the type of content being updated. The Content-Type header is used to set the mimetype in the repository.\n\nThe **majorVersion** and **comment** parameters can be used to control versioning behaviour. If the content is versionable,\na new minor version is created by default.\n\n**Note:** This API method accepts any content type, but for testing with this tool text based content can be provided.\nThis is because the OpenAPI Specification does not allow a wildcard to be provided or the ability for\ntooling to accept an arbitary file.\n - * @param {String} nodeId The identifier of a node. - * @param {String} contentBody The binary content - * @param {Object} opts Optional parameters - * @param {Boolean} opts.majorVersion If **true**, create a major version.\nSetting this parameter also enables versioning of this node, if it is not already versioned.\n (default to false) - * @param {String} opts.comment Add a version comment which will appear in version history.\nSetting this parameter also enables versioning of this node, if it is not already versioned.\n - * @param {Array.} opts.include Returns additional information about the node. The following optional fields can be requested:\n* path\n* isLink\n* allowableOperations\n - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeEntry} - */ - this.updateFileContent = function(nodeId, contentBody, opts) { - opts = opts || {}; - var postBody = contentBody; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling updateFileContent"; - } - - // verify the required parameter 'contentBody' is set - if (contentBody == undefined || contentBody == null) { - throw "Missing the required parameter 'contentBody' when calling updateFileContent"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'majorVersion': opts['majorVersion'], - 'comment': opts['comment'], - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv'), - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/octet-stream']; - var accepts = ['application/json']; - var returnType = NodeEntry; - - return this.apiClient.callApi( - '/nodes/{nodeId}/content', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Update a node - * Updates the node with identifier **nodeId**. For example, you can rename a file or folder:\n```JSON\n{\n \"name\":\"My new name\",\n}\n```\nYou can also set or update one or more properties:\n```JSON\n{\n \"properties\":\n {\n \"cm:title\":\"Folder title\"\n }\n}\n```\n**Note:** if you want to add or remove aspects, then you must use **GET /nodes/{nodeId}** first to get the complete set of *aspectNames*.\n\n**Note:** Currently there is no optimistic locking for updates, so they are applied in \"last one wins\" order.\n - * @param {String} nodeId The identifier of a node. You can also use one of these well-known aliases:\n* -my-\n* -shared-\n* -root-\n - * @param {module:model/NodeBody} nodeBody The node information to update. - * @param {Object} opts Optional parameters - * @param {Array.} opts.include Returns additional information about the node. The following optional fields can be requested:\n* path\n* isLink\n* allowableOperations\n - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeEntry} - */ - this.updateNode = function(nodeId, nodeBody, opts) { - opts = opts || {}; - var postBody = nodeBody; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling updateNode"; - } - - // verify the required parameter 'nodeBody' is set - if (nodeBody == undefined || nodeBody == null) { - throw "Missing the required parameter 'nodeBody' when calling updateNode"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv'), - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodeEntry; - - return this.apiClient.callApi( - '/nodes/{nodeId}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - }; - - return exports; - })); - - -/***/ }, -/* 129 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(48), __webpack_require__(47), __webpack_require__(44), __webpack_require__(109), __webpack_require__(112), __webpack_require__(51), __webpack_require__(52), __webpack_require__(16), __webpack_require__(103), __webpack_require__(115), __webpack_require__(49), __webpack_require__(76), __webpack_require__(78), __webpack_require__(79), __webpack_require__(82), __webpack_require__(83), __webpack_require__(113), __webpack_require__(110)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/FavoriteEntry'), require('../model/FavoriteBody'), require('../model/Error'), require('../model/SiteMembershipBody'), require('../model/SiteMembershipRequestEntry'), require('../model/FavoriteSiteBody'), require('../model/InlineResponse201'), require('../model/ActivityPaging'), require('../model/SiteEntry'), require('../model/SitePaging'), require('../model/FavoritePaging'), require('../model/PersonEntry'), require('../model/PersonNetworkEntry'), require('../model/PersonNetworkPaging'), require('../model/PreferenceEntry'), require('../model/PreferencePaging'), require('../model/SiteMembershipRequestPaging'), require('../model/SiteMembershipBody1')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.PeopleApi = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.FavoriteEntry, root.AlfrescoCoreRestApi.FavoriteBody, root.AlfrescoCoreRestApi.Error, root.AlfrescoCoreRestApi.SiteMembershipBody, root.AlfrescoCoreRestApi.SiteMembershipRequestEntry, root.AlfrescoCoreRestApi.FavoriteSiteBody, root.AlfrescoCoreRestApi.InlineResponse201, root.AlfrescoCoreRestApi.ActivityPaging, root.AlfrescoCoreRestApi.SiteEntry, root.AlfrescoCoreRestApi.SitePaging, root.AlfrescoCoreRestApi.FavoritePaging, root.AlfrescoCoreRestApi.PersonEntry, root.AlfrescoCoreRestApi.PersonNetworkEntry, root.AlfrescoCoreRestApi.PersonNetworkPaging, root.AlfrescoCoreRestApi.PreferenceEntry, root.AlfrescoCoreRestApi.PreferencePaging, root.AlfrescoCoreRestApi.SiteMembershipRequestPaging, root.AlfrescoCoreRestApi.SiteMembershipBody1); - } - }(this, function(ApiClient, FavoriteEntry, FavoriteBody, Error, SiteMembershipBody, SiteMembershipRequestEntry, FavoriteSiteBody, InlineResponse201, ActivityPaging, SiteEntry, SitePaging, FavoritePaging, PersonEntry, PersonNetworkEntry, PersonNetworkPaging, PreferenceEntry, PreferencePaging, SiteMembershipRequestPaging, SiteMembershipBody1) { - 'use strict'; - - /** - * People service. - * @module api/PeopleApi - * @version 0.1.0 - */ - - /** - * Constructs a new PeopleApi. - * @alias module:api/PeopleApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, default to {@link module:ApiClient#instance} - * if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - - /** - * Add a favorite - * Favorite a **site**, **file**, or **folder** in the repository. - * @param {String} personId The identifier of a person. - * @param {module:model/FavoriteBody} favoriteBody An object identifying the entity to be favorited. \n\nThe object consists of a single property which is an object with the name `site`, `file`, or `folder`. \nThe content of that object is the `guid` of the target entity.\n\nFor example, to favorite a file the following body would be used:\n\n```JSON\n{\n \"target\": {\n \"file\": {\n \"guid\": \"abcde-01234\"\n }\n }\n}\n```\n - * data is of type: {module:model/FavoriteEntry} - */ - this.addFavorite = function(personId, favoriteBody) { - var postBody = favoriteBody; - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling addFavorite"; - } - - // verify the required parameter 'favoriteBody' is set - if (favoriteBody == undefined || favoriteBody == null) { - throw "Missing the required parameter 'favoriteBody' when calling addFavorite"; - } - - - var pathParams = { - 'personId': personId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = FavoriteEntry; - - return this.apiClient.callApi( - '/people/{personId}/favorites', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Create a site membership request - * Create a site membership request for **personId** and **siteId**. The **personId** will be invited to the site as a SiteConsumer. - * @param {String} personId The identifier of a person. - * @param {module:model/SiteMembershipBody} siteMembershipBody Site membership request details - * data is of type: {module:model/SiteMembershipRequestEntry} - */ - this.addSiteMembershipRequest = function(personId, siteMembershipBody) { - var postBody = siteMembershipBody; - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling addSiteMembershipRequest"; - } - - // verify the required parameter 'siteMembershipBody' is set - if (siteMembershipBody == undefined || siteMembershipBody == null) { - throw "Missing the required parameter 'siteMembershipBody' when calling addSiteMembershipRequest"; - } - - - var pathParams = { - 'personId': personId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = SiteMembershipRequestEntry; - - return this.apiClient.callApi( - '/people/{personId}/site-membership-requests', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Delete favorite site - * Removes site **siteId** from the favorite site list of person **personId**.\n\n**Note This method is deprecated and will be removed in the future.**\nUse `/people/{personId}/favorites/{favoriteId}` instead.\n - * @param {String} personId The identifier of a person. - * @param {String} siteId The identifier of a site. - */ - this.deleteFavoriteSite = function(personId, siteId) { - var postBody = null; - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling deleteFavoriteSite"; - } - - // verify the required parameter 'siteId' is set - if (siteId == undefined || siteId == null) { - throw "Missing the required parameter 'siteId' when calling deleteFavoriteSite"; - } - - - var pathParams = { - 'personId': personId, - 'siteId': siteId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/people/{personId}/favorite-sites/{siteId}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Favorite a site - * Add a favorite site for person **personId**.\n\n**Note: that this method is deprecated and will be removed in the future**.\nUse `/people/{personId}/favorites` instead.\n - * @param {String} personId The identifier of a person. - * @param {module:model/FavoriteSiteBody} favoriteSiteBody The id of the site to favorite. - * data is of type: {module:model/InlineResponse201} - */ - this.favoriteSite = function(personId, favoriteSiteBody) { - var postBody = favoriteSiteBody; - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling favoriteSite"; - } - - // verify the required parameter 'favoriteSiteBody' is set - if (favoriteSiteBody == undefined || favoriteSiteBody == null) { - throw "Missing the required parameter 'favoriteSiteBody' when calling favoriteSite"; - } - - - var pathParams = { - 'personId': personId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = InlineResponse201; - - return this.apiClient.callApi( - '/people/{personId}/favorite-sites', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get activities - * Returns a list of activities for person **personId**. - * @param {String} personId The identifier of a person. - * @param {Object} opts Optional parameters - * @param {Integer} opts.skipCount The number of entities that exist in the collection before those included in this list. - * @param {Integer} opts.maxItems The maximum number of items to return in the list. - * @param {String} opts.who A filter to include the user's activities only `-me-`, other user's activities only `-others-`'\n - * @param {String} opts.siteId Include only activity feed entries relating to this site. - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/ActivityPaging} - */ - this.getActivities = function(personId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling getActivities"; - } - - - var pathParams = { - 'personId': personId - }; - var queryParams = { - 'skipCount': opts['skipCount'], - 'maxItems': opts['maxItems'], - 'who': opts['who'], - 'siteId': opts['siteId'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = ActivityPaging; - - return this.apiClient.callApi( - '/people/{personId}/activities', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get a favorite - * Returns favorite **favoriteId** for person **personId**. - * @param {String} personId The identifier of a person. - * @param {String} favoriteId The identifier of a favorite. - * @param {Object} opts Optional parameters - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/FavoriteEntry} - */ - this.getFavorite = function(personId, favoriteId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling getFavorite"; - } - - // verify the required parameter 'favoriteId' is set - if (favoriteId == undefined || favoriteId == null) { - throw "Missing the required parameter 'favoriteId' when calling getFavorite"; - } - - - var pathParams = { - 'personId': personId, - 'favoriteId': favoriteId - }; - var queryParams = { - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = FavoriteEntry; - - return this.apiClient.callApi( - '/people/{personId}/favorites/{favoriteId}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get a favorite site - * Returns information on favorite site **siteId** of person **personId**.\n\n**Note: This method is deprecated and will be removed in the future.**\nUse `/people/{personId}/favorites/{favoriteId}` instead.\n - * @param {String} personId The identifier of a person. - * @param {String} siteId The identifier of a site. - * @param {Object} opts Optional parameters - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/SiteEntry} - */ - this.getFavoriteSite = function(personId, siteId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling getFavoriteSite"; - } - - // verify the required parameter 'siteId' is set - if (siteId == undefined || siteId == null) { - throw "Missing the required parameter 'siteId' when calling getFavoriteSite"; - } - - - var pathParams = { - 'personId': personId, - 'siteId': siteId - }; - var queryParams = { - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = SiteEntry; - - return this.apiClient.callApi( - '/people/{personId}/favorite-sites/{siteId}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get favorite sites - * Get a person's favorite sites.\n\n**Note: This method is deprecated and will be removed in the future**.\nUse `/people/{personId}/favorites` instead.\n - * @param {String} personId The identifier of a person. - * @param {Object} opts Optional parameters - * @param {Integer} opts.skipCount The number of entities that exist in the collection before those included in this list. - * @param {Integer} opts.maxItems The maximum number of items to return in the list. - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/SitePaging} - */ - this.getFavoriteSites = function(personId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling getFavoriteSites"; - } - - - var pathParams = { - 'personId': personId - }; - var queryParams = { - 'skipCount': opts['skipCount'], - 'maxItems': opts['maxItems'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = SitePaging; - - return this.apiClient.callApi( - '/people/{personId}/favorite-sites', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get favorites - * Returns a list of favorites for person **personId**.\n\nYou can us the `-me-` string in place of `<personId>` to get the favorites of the currently authenticated user.\n\nYou can use the **where** parameter to restrict the list in the response\nto entries of a specific kind. The **where** parameter takes a value.\nThe value is a single predicate that can include one or more **EXISTS**\nconditions. The **EXISTS** condition uses a single operand to limit the\nlist to include entries that include that one property. The property values are:\n\n* `target/file`\n* `target/folder`\n* `target/site`\n\nFor example, the following **where** parameter restricts the returned list to the file favorites for a person:\n\n```SQL\n(EXISTS(target/file))\n```\nYou can specify more than one condition using **OR**. The predicate must be enclosed in parentheses.\n\n\nFor example, the following **where** parameter restricts the returned list to the file and folder favorites for a person:\n\n```SQL\n(EXISTS(target/file) OR EXISTS(target/folder))\n```\n - * @param {String} personId The identifier of a person. - * @param {Object} opts Optional parameters - * @param {Integer} opts.skipCount The number of entities that exist in the collection before those included in this list. - * @param {Integer} opts.maxItems The maximum number of items to return in the list. - * @param {String} opts.where A string to restrict the returned objects by using a predicate. - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/FavoritePaging} - */ - this.getFavorites = function(personId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling getFavorites"; - } - - - var pathParams = { - 'personId': personId - }; - var queryParams = { - 'skipCount': opts['skipCount'], - 'maxItems': opts['maxItems'], - 'where': opts['where'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = FavoritePaging; - - return this.apiClient.callApi( - '/people/{personId}/favorites', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get a person - * Gets information for the person **personId**. - * @param {String} personId The identifier of a person. - * @param {Object} opts Optional parameters - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/PersonEntry} - */ - this.getPerson = function(personId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling getPerson"; - } - - - var pathParams = { - 'personId': personId - }; - var queryParams = { - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = PersonEntry; - - return this.apiClient.callApi( - '/people/{personId}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get network information - * Returns network information on a single network specified by **networkId** for **personId**. - * @param {String} personId The identifier of a person. - * @param {String} networkId The identifier of a network. - * @param {Object} opts Optional parameters - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/PersonNetworkEntry} - */ - this.getPersonNetwork = function(personId, networkId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling getPersonNetwork"; - } - - // verify the required parameter 'networkId' is set - if (networkId == undefined || networkId == null) { - throw "Missing the required parameter 'networkId' when calling getPersonNetwork"; - } - - - var pathParams = { - 'personId': personId, - 'networkId': networkId - }; - var queryParams = { - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = PersonNetworkEntry; - - return this.apiClient.callApi( - '/people/{personId}/networks/{networkId}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get network membership for a person - * Gets a list of network memberships for person **personId**. - * @param {String} personId The identifier of a person. - * @param {Object} opts Optional parameters - * @param {Integer} opts.skipCount The number of entities that exist in the collection before those included in this list. - * @param {Integer} opts.maxItems The maximum number of items to return in the list. - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/PersonNetworkPaging} - */ - this.getPersonNetworks = function(personId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling getPersonNetworks"; - } - - - var pathParams = { - 'personId': personId - }; - var queryParams = { - 'skipCount': opts['skipCount'], - 'maxItems': opts['maxItems'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = PersonNetworkPaging; - - return this.apiClient.callApi( - '/people/{personId}/networks', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get a preference - * Returns a specific preference for person **personId**. - * @param {String} personId The identifier of a person. - * @param {String} preferenceName The name of the preference. - * @param {Object} opts Optional parameters - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/PreferenceEntry} - */ - this.getPreference = function(personId, preferenceName, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling getPreference"; - } - - // verify the required parameter 'preferenceName' is set - if (preferenceName == undefined || preferenceName == null) { - throw "Missing the required parameter 'preferenceName' when calling getPreference"; - } - - - var pathParams = { - 'personId': personId, - 'preferenceName': preferenceName - }; - var queryParams = { - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = PreferenceEntry; - - return this.apiClient.callApi( - '/people/{personId}/preferences/{preferenceName}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get preferences - * Returns a list of preferences for person **personId**.\n\nEach preference consists of an **id** and a **value**.\nThe **value** can be of any JSON type.\n - * @param {String} personId The identifier of a person. - * @param {Object} opts Optional parameters - * @param {Integer} opts.skipCount The number of entities that exist in the collection before those included in this list. - * @param {Integer} opts.maxItems The maximum number of items to return in the list. - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/PreferencePaging} - */ - this.getPreferences = function(personId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling getPreferences"; - } - - - var pathParams = { - 'personId': personId - }; - var queryParams = { - 'skipCount': opts['skipCount'], - 'maxItems': opts['maxItems'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = PreferencePaging; - - return this.apiClient.callApi( - '/people/{personId}/preferences', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get site membership information - * Returns a list of site membership information for person **personId**.\nYou can sort the list of sites using the **orderBy** parameter.\n\n**orderBy** specifies the name of one or more\ncomma separated properties.\nFor each property you can optionally specify the order direction.\nBoth of the these **orderBy** examples retrieve sites ordered by ascending name:\n\n```\nname\nname ASC\n```\n - * @param {String} personId The identifier of a person. - * @param {Object} opts Optional parameters - * @param {Integer} opts.skipCount The number of entities that exist in the collection before those included in this list. - * @param {Integer} opts.maxItems The maximum number of items to return in the list. - * @param {String} opts.orderBy A string to control the order of the entities returned. - * @param {Array.} opts.relations Use the relations parameter to include one or more related entities in a single response. - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/SitePaging} - */ - this.getSiteMembership = function(personId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling getSiteMembership"; - } - - - var pathParams = { - 'personId': personId - }; - var queryParams = { - 'skipCount': opts['skipCount'], - 'maxItems': opts['maxItems'], - 'orderBy': opts['orderBy'], - 'relations': this.apiClient.buildCollectionParam(opts['relations'], 'csv'), - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = SitePaging; - - return this.apiClient.callApi( - '/people/{personId}/sites', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get a site membership request - * Returns the site membership request for site **siteId** for person **personId**, if one exists. - * @param {String} personId The identifier of a person. - * @param {String} siteId The identifier of a site. - * @param {Object} opts Optional parameters - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/SiteMembershipRequestEntry} - */ - this.getSiteMembershipRequest = function(personId, siteId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling getSiteMembershipRequest"; - } - - // verify the required parameter 'siteId' is set - if (siteId == undefined || siteId == null) { - throw "Missing the required parameter 'siteId' when calling getSiteMembershipRequest"; - } - - - var pathParams = { - 'personId': personId, - 'siteId': siteId - }; - var queryParams = { - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = SiteMembershipRequestEntry; - - return this.apiClient.callApi( - '/people/{personId}/site-membership-requests/{siteId}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get site membership requests - * Returns the current site membership requests for person **personId**. - * @param {String} personId The identifier of a person. - * @param {Object} opts Optional parameters - * @param {Integer} opts.skipCount The number of entities that exist in the collection before those included in this list. - * @param {Integer} opts.maxItems The maximum number of items to return in the list. - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/SiteMembershipRequestPaging} - */ - this.getSiteMembershipRequests = function(personId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling getSiteMembershipRequests"; - } - - - var pathParams = { - 'personId': personId - }; - var queryParams = { - 'skipCount': opts['skipCount'], - 'maxItems': opts['maxItems'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = SiteMembershipRequestPaging; - - return this.apiClient.callApi( - '/people/{personId}/site-membership-requests', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Delete a favorite - * Removes **favoriteId** as a favorite of person **personId**. - * @param {String} personId The identifier of a person. - * @param {String} favoriteId The identifier of a favorite. - */ - this.removeFavoriteSite = function(personId, favoriteId) { - var postBody = null; - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling removeFavoriteSite"; - } - - // verify the required parameter 'favoriteId' is set - if (favoriteId == undefined || favoriteId == null) { - throw "Missing the required parameter 'favoriteId' when calling removeFavoriteSite"; - } - - - var pathParams = { - 'personId': personId, - 'favoriteId': favoriteId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/people/{personId}/favorites/{favoriteId}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Cancel a site membership - * Cancels the site membership request to site **siteId** for person **personId**. - * @param {String} personId The identifier of a person. - * @param {String} siteId The identifier of a site. - */ - this.removeSiteMembershipRequest = function(personId, siteId) { - var postBody = null; - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling removeSiteMembershipRequest"; - } - - // verify the required parameter 'siteId' is set - if (siteId == undefined || siteId == null) { - throw "Missing the required parameter 'siteId' when calling removeSiteMembershipRequest"; - } - - - var pathParams = { - 'personId': personId, - 'siteId': siteId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/people/{personId}/site-membership-requests/{siteId}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Update a site membership request - * Updates the message for the site membership request to site **siteId** for person **personId**. - * @param {String} personId The identifier of a person. - * @param {String} siteId The identifier of a site. - * @param {module:model/SiteMembershipBody1} siteMembershipBody The new message to display - */ - this.updateSiteMembershipRequest = function(personId, siteId, siteMembershipBody) { - var postBody = siteMembershipBody; - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling updateSiteMembershipRequest"; - } - - // verify the required parameter 'siteId' is set - if (siteId == undefined || siteId == null) { - throw "Missing the required parameter 'siteId' when calling updateSiteMembershipRequest"; - } - - // verify the required parameter 'siteMembershipBody' is set - if (siteMembershipBody == undefined || siteMembershipBody == null) { - throw "Missing the required parameter 'siteMembershipBody' when calling updateSiteMembershipRequest"; - } - - - var pathParams = { - 'personId': personId, - 'siteId': siteId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/people/{personId}/site-membership-requests/{siteId}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - }; - - return exports; - })); - - -/***/ }, -/* 130 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(88), __webpack_require__(44), __webpack_require__(89), __webpack_require__(87)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/RatingEntry'), require('../model/Error'), require('../model/RatingPaging'), require('../model/RatingBody')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.RatingsApi = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.RatingEntry, root.AlfrescoCoreRestApi.Error, root.AlfrescoCoreRestApi.RatingPaging, root.AlfrescoCoreRestApi.RatingBody); - } - }(this, function(ApiClient, RatingEntry, Error, RatingPaging, RatingBody) { - 'use strict'; - - /** - * Ratings service. - * @module api/RatingsApi - * @version 0.1.0 - */ - - /** - * Constructs a new RatingsApi. - * @alias module:api/RatingsApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, default to {@link module:ApiClient#instance} - * if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - - /** - * Get a rating - * Get the specific rating **ratingId** on node **nodeId**. - * @param {String} nodeId The identifier of a node. - * @param {String} ratingId The identifier of a rating. - * @param {Object} opts Optional parameters - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/RatingEntry} - */ - this.getRating = function(nodeId, ratingId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling getRating"; - } - - // verify the required parameter 'ratingId' is set - if (ratingId == undefined || ratingId == null) { - throw "Missing the required parameter 'ratingId' when calling getRating"; - } - - - var pathParams = { - 'nodeId': nodeId, - 'ratingId': ratingId - }; - var queryParams = { - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = RatingEntry; - - return this.apiClient.callApi( - '/nodes/{nodeId}/ratings/{ratingId}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get ratings - * Get the ratings for node **nodeId**. - * @param {String} nodeId The identifier of a node. - * @param {Object} opts Optional parameters - * @param {Integer} opts.skipCount The number of entities that exist in the collection before those included in this list. - * @param {Integer} opts.maxItems The maximum number of items to return in the list. - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/RatingPaging} - */ - this.getRatings = function(nodeId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling getRatings"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'skipCount': opts['skipCount'], - 'maxItems': opts['maxItems'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = RatingPaging; - - return this.apiClient.callApi( - '/nodes/{nodeId}/ratings', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Rate - * Rate the node with identifier **nodeId** - * @param {String} nodeId The identifier of a node. - * @param {module:model/RatingBody} ratingBody For \"myRating\" the type is specific to the rating scheme, boolean for the likes and an integer for the fiveStar.\n\nFor example, to \"like\" a file the following body would be used:\n\n ```JSON\n {\n \"id\": \"likes\",\n \"myRating\": true\n }\n ```\n - * data is of type: {module:model/RatingEntry} - */ - this.rate = function(nodeId, ratingBody) { - var postBody = ratingBody; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling rate"; - } - - // verify the required parameter 'ratingBody' is set - if (ratingBody == undefined || ratingBody == null) { - throw "Missing the required parameter 'ratingBody' when calling rate"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = RatingEntry; - - return this.apiClient.callApi( - '/nodes/{nodeId}/ratings', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Delete a rating - * Removes rating **ratingId** from node **nodeId**. - * @param {String} nodeId The identifier of a node. - * @param {String} ratingId The identifier of a rating. - */ - this.removeRating = function(nodeId, ratingId) { - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling removeRating"; - } - - // verify the required parameter 'ratingId' is set - if (ratingId == undefined || ratingId == null) { - throw "Missing the required parameter 'ratingId' when calling removeRating"; - } - - - var pathParams = { - 'nodeId': nodeId, - 'ratingId': ratingId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/nodes/{nodeId}/ratings/{ratingId}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - }; - - return exports; - })); - - -/***/ }, -/* 131 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(92), __webpack_require__(44), __webpack_require__(93), __webpack_require__(94)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/RenditionBody'), require('../model/Error'), require('../model/RenditionEntry'), require('../model/RenditionPaging')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.RenditionsApi = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.RenditionBody, root.AlfrescoCoreRestApi.Error, root.AlfrescoCoreRestApi.RenditionEntry, root.AlfrescoCoreRestApi.RenditionPaging); - } - }(this, function(ApiClient, RenditionBody, Error, RenditionEntry, RenditionPaging) { - 'use strict'; - - /** - * Renditions service. - * @module api/RenditionsApi - * @version 0.1.0 - */ - - /** - * Constructs a new RenditionsApi. - * @alias module:api/RenditionsApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, default to {@link module:ApiClient#instance} - * if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - - /** - * Create rendition - * Async request to create a rendition for file with identifier\n**nodeId**. The rendition is specified by name \"id\" in the request body:\n```JSON\n{\n \"id\":\"doclib\"\n}\n```\n - * @param {String} nodeId The identifier of a node. You can also use one of these well-known aliases:\n* -my-\n* -shared-\n* -root-\n - * @param {module:model/RenditionBody} renditionBody The rendition \"id\". - */ - this.createRendition = function(nodeId, renditionBody) { - var postBody = renditionBody; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling createRendition"; - } - - // verify the required parameter 'renditionBody' is set - if (renditionBody == undefined || renditionBody == null) { - throw "Missing the required parameter 'renditionBody' when calling createRendition"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/nodes/{nodeId}/renditions', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get rendition information - * Returns the rendition information for file node with identifier **nodeId**. - * @param {String} nodeId The identifier of a node. - * @param {String} renditionId The name of a thumbnail rendition, for example *doclib*, or *pdf*. - * data is of type: {module:model/RenditionEntry} - */ - this.getRendition = function(nodeId, renditionId) { - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling getRendition"; - } - - // verify the required parameter 'renditionId' is set - if (renditionId == undefined || renditionId == null) { - throw "Missing the required parameter 'renditionId' when calling getRendition"; - } - - - var pathParams = { - 'nodeId': nodeId, - 'renditionId': renditionId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = RenditionEntry; - - return this.apiClient.callApi( - '/nodes/{nodeId}/renditions/{renditionId}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get rendition content - * Returns the rendition content for file node with identifier **nodeId**. - * @param {String} nodeId The identifier of a node. - * @param {String} renditionId The name of a thumbnail rendition, for example *doclib*, or *pdf*. - * @param {Object} opts Optional parameters - * @param {Boolean} opts.attachment **true** enables a web browser to download the file as an attachment.\n**false** means a web browser may preview the file in a new tab or window, but not\ndownload the file.\n\nYou can only set this parameter to **false** if the content type of the file is in the supported list;\nfor example, certain image files and PDF files.\n\nIf the content type is not supported for preview, then a value of **false** is ignored, and\nthe attachment will be returned in the response.\n (default to true) - * @param {Date} opts.ifModifiedSince Only returns the content if it has been modified since the date provided.\nUse the date format defined by HTTP. For example, `Wed, 09 Mar 2016 16:56:34 GMT`.\n - */ - this.getRenditionContent = function(nodeId, renditionId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling getRenditionContent"; - } - - // verify the required parameter 'renditionId' is set - if (renditionId == undefined || renditionId == null) { - throw "Missing the required parameter 'renditionId' when calling getRenditionContent"; - } - - - var pathParams = { - 'nodeId': nodeId, - 'renditionId': renditionId - }; - var queryParams = { - 'attachment': opts['attachment'] - }; - var headerParams = { - 'If-Modified-Since': opts['ifModifiedSince'] - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/nodes/{nodeId}/renditions/{renditionId}/content', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * List information for renditions - * Returns the rendition information for the file node with identifier **nodeId**.\nThis will return rendition information, including the rendition id, for each rendition. The\u00A0rendition status is CREATED (ie. available\u00A0to view/download) or NOT_CREATED (ie. rendition can be requested). - * @param {String} nodeId The identifier of a node. - * data is of type: {module:model/RenditionPaging} - */ - this.getRenditions = function(nodeId) { - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling getRenditions"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = RenditionPaging; - - return this.apiClient.callApi( - '/nodes/{nodeId}/renditions', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get shared link rendition content - * Returns the rendition content for file with shared link identifier **sharedId**.\n\n**Note:** No authentication is required to call this endpoint.\n - * @param {String} sharedId The identifier of a shared link to a file. - * @param {String} renditionId The name of a thumbnail rendition, for example *doclib*, or *pdf*. - * @param {Object} opts Optional parameters - * @param {Boolean} opts.attachment **true** enables a web browser to download the file as an attachment.\n**false** means a web browser may preview the file in a new tab or window, but not\ndownload the file.\n\nYou can only set this parameter to **false** if the content type of the file is in the supported list;\nfor example, certain image files and PDF files.\n\nIf the content type is not supported for preview, then a value of **false** is ignored, and\nthe attachment will be returned in the response.\n (default to true) - * @param {Date} opts.ifModifiedSince Only returns the content if it has been modified since the date provided.\nUse the date format defined by HTTP. For example, `Wed, 09 Mar 2016 16:56:34 GMT`.\n - */ - this.getSharedLinkRenditionContent = function(sharedId, renditionId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'sharedId' is set - if (sharedId == undefined || sharedId == null) { - throw "Missing the required parameter 'sharedId' when calling getSharedLinkRenditionContent"; - } - - // verify the required parameter 'renditionId' is set - if (renditionId == undefined || renditionId == null) { - throw "Missing the required parameter 'renditionId' when calling getSharedLinkRenditionContent"; - } - - - var pathParams = { - 'sharedId': sharedId, - 'renditionId': renditionId - }; - var queryParams = { - 'attachment': opts['attachment'] - }; - var headerParams = { - 'If-Modified-Since': opts['ifModifiedSince'] - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/shared-links/{sharedId}/renditions/{renditionId}/content', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * List information for created renditions - * Returns the rendition information for the file with shared link identifier **sharedId**.\n\nThis will only return rendition information, including the rendition id, for each rendition\nwhere the rendition status is CREATED (ie. available\u00A0to view/download).\n\n**Note:** No authentication is required to call this endpoint. \n - * @param {String} sharedId The identifier of a shared link to a file. - * data is of type: {module:model/RenditionPaging} - */ - this.getSharedLinkRenditions = function(sharedId) { - var postBody = null; - - // verify the required parameter 'sharedId' is set - if (sharedId == undefined || sharedId == null) { - throw "Missing the required parameter 'sharedId' when calling getSharedLinkRenditions"; - } - - - var pathParams = { - 'sharedId': sharedId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = RenditionPaging; - - return this.apiClient.callApi( - '/shared-links/{sharedId}/renditions', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - }; - - return exports; - })); - - -/***/ }, -/* 132 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(44), __webpack_require__(69)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/Error'), require('../model/NodePaging')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.SearchApi = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.Error, root.AlfrescoCoreRestApi.NodePaging); - } - }(this, function(ApiClient, Error, NodePaging) { - 'use strict'; - - /** - * Search service. - * @module api/SearchApi - * @version 0.1.0 - */ - - /** - * Constructs a new SearchApi. - * @alias module:api/SearchApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, default to {@link module:ApiClient#instance} - * if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - - /** - * Live search for nodes - * Returns a list of nodes that match the given search criteria.\n\nThe search term is used to look for nodes that match against name, title, description, full text content and tags.\n\nThe search term\n- must contain a minimum of 3 alphanumeric characters\n- allows \"quoted term\"\n- can optionally use '*' for wildcard matching\n\nBy default, file and folder types will be searched unless a specific type is provided as a query parameter.\n\nBy default, the search will be across the repository unless a specific root node id is provided to start the search from.\n - * @param {String} term The term to search for. - * @param {Object} opts Optional parameters - * @param {Integer} opts.skipCount The number of entities that exist in the collection before those included in this list. - * @param {Integer} opts.maxItems The maximum number of items to return in the list. - * @param {String} opts.rootNodeId The id of the node to start the search from.\n\nSupports the aliases -my-, -root- and -shared-.\n - * @param {String} opts.nodeType Restrict the returned results to only those of the given node type and it's sub-types - * @param {String} opts.include Return additional info, eg. aspectNames, properties, path, isLink - * @param {String} opts.orderBy The list of results can be ordered by the following:\n* name\n* modifiedAt\n* createdAt\n - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodePaging} - */ - this.liveSearchNodes = function(term, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'term' is set - if (term == undefined || term == null) { - throw "Missing the required parameter 'term' when calling liveSearchNodes"; - } - - - var pathParams = { - }; - var queryParams = { - 'skipCount': opts['skipCount'], - 'maxItems': opts['maxItems'], - 'term': term, - 'rootNodeId': opts['rootNodeId'], - 'nodeType': opts['nodeType'], - 'include': opts['include'], - 'orderBy': opts['orderBy'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodePaging; - - return this.apiClient.callApi( - '/queries/live-search-nodes', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - }; - - return exports; - })); - - -/***/ }, -/* 133 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(44), __webpack_require__(72), __webpack_require__(96), __webpack_require__(43), __webpack_require__(73)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/Error'), require('../model/NodeSharedLinkEntry'), require('../model/SharedLinkBody'), require('../model/EmailSharedLinkBody'), require('../model/NodeSharedLinkPaging')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.SharedlinksApi = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.Error, root.AlfrescoCoreRestApi.NodeSharedLinkEntry, root.AlfrescoCoreRestApi.SharedLinkBody, root.AlfrescoCoreRestApi.EmailSharedLinkBody, root.AlfrescoCoreRestApi.NodeSharedLinkPaging); - } - }(this, function(ApiClient, Error, NodeSharedLinkEntry, SharedLinkBody, EmailSharedLinkBody, NodeSharedLinkPaging) { - 'use strict'; - - /** - * Sharedlinks service. - * @module api/SharedlinksApi - * @version 0.1.0 - */ - - /** - * Constructs a new SharedlinksApi. - * @alias module:api/SharedlinksApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, default to {@link module:ApiClient#instance} - * if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - - /** - * Create a shared link to a file - * Create shared link to specfied file identified by **nodeId** in request body. - * @param {module:model/SharedLinkBody} sharedLinkBody The nodeId to create a shared link for. - * @param {Object} opts Optional parameters - * @param {Array.} opts.include Returns additional information about the shared link, the following optional fields can be requested:\n* allowableOperations\n - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeSharedLinkEntry} - */ - this.addSharedLink = function(sharedLinkBody, opts) { - opts = opts || {}; - var postBody = sharedLinkBody; - - // verify the required parameter 'sharedLinkBody' is set - if (sharedLinkBody == undefined || sharedLinkBody == null) { - throw "Missing the required parameter 'sharedLinkBody' when calling addSharedLink"; - } - - - var pathParams = { - }; - var queryParams = { - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv'), - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodeSharedLinkEntry; - - return this.apiClient.callApi( - '/shared-links', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Deletes a shared link - * Deletes the shared link with identifier **sharedId**. - * @param {String} sharedId The identifier of a shared link to a file. - */ - this.deleteSharedLink = function(sharedId) { - var postBody = null; - - // verify the required parameter 'sharedId' is set - if (sharedId == undefined || sharedId == null) { - throw "Missing the required parameter 'sharedId' when calling deleteSharedLink"; - } - - - var pathParams = { - 'sharedId': sharedId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/shared-links/{sharedId}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Email shared link - * Sends email with app-specific url including identifier **sharedId**.\n\nThe client and recipientEmails properties are mandatory in the request body. For example, to email a shared link with minimum info:\n```JSON\n{\n \"client\": \"myClient\",\n \"recipientEmails\": [\"john.doe@acme.com\", joe.bloggs@acme.com]\n}\n```\nA plain text message property can be optionally provided in the request body to customise the sent email.\nAlso, a locale property can be optionally provided in the request body to send the emails in a particular language.\nFor example, to email a shared link with a messages and a locale:\n```JSON\n{\n \"client\": \"myClient\",\n \"recipientEmails\": [\"john.doe@acme.com\", joe.bloggs@acme.com],\n \"message\": \"myMessage\",\n \"locale\":\"en-GB\"\n}\n```\n**Note:** The client must be registered before you can send a shared link email. See [server documentation]\n - * @param {String} sharedId The identifier of a shared link to a file. - * @param {module:model/EmailSharedLinkBody} emailSharedLinkBody The shared link email to send. - */ - this.emailSharedLink = function(sharedId, emailSharedLinkBody) { - var postBody = emailSharedLinkBody; - - // verify the required parameter 'sharedId' is set - if (sharedId == undefined || sharedId == null) { - throw "Missing the required parameter 'sharedId' when calling emailSharedLink"; - } - - // verify the required parameter 'emailSharedLinkBody' is set - if (emailSharedLinkBody == undefined || emailSharedLinkBody == null) { - throw "Missing the required parameter 'emailSharedLinkBody' when calling emailSharedLink"; - } - - - var pathParams = { - 'sharedId': sharedId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/shared-links/{sharedId}/email', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Find shared links - * Find (search for) links that current user has read permission on source node. - * @param {Object} opts Optional parameters - * @param {String} opts.where Optionally filter the list by \"sharedByUser\" userid of person who shared the link (can also use -me-)\n* where=(sharedByUser='jbloggs')\n* where=(sharedByUser='-me-') - * @param {Array.} opts.include Returns additional information about the shared link, the following optional fields can be requested:\n* allowableOperations\n - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeSharedLinkPaging} - */ - this.findSharedLinks = function(opts) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'where': opts['where'], - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv'), - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodeSharedLinkPaging; - - return this.apiClient.callApi( - '/shared-links', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get a shared link - * Returns minimal information for the file with shared link identifier **sharedId**.\n\n**Note:** No authentication is required to call this endpoint.\n - * @param {String} sharedId The identifier of a shared link to a file. - * @param {Object} opts Optional parameters - * @param {Array.} opts.include Returns additional information about the shared link, the following optional fields can be requested:\n* allowableOperations\n - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/NodeSharedLinkEntry} - */ - this.getSharedLink = function(sharedId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'sharedId' is set - if (sharedId == undefined || sharedId == null) { - throw "Missing the required parameter 'sharedId' when calling getSharedLink"; - } - - - var pathParams = { - 'sharedId': sharedId - }; - var queryParams = { - 'include': this.apiClient.buildCollectionParam(opts['include'], 'csv'), - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = NodeSharedLinkEntry; - - return this.apiClient.callApi( - '/shared-links/{sharedId}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get file content - * Returns the content of the file with shared link identifier **sharedId**.\n\n**Note:** No authentication is required to call this endpoint.\n - * @param {String} sharedId The identifier of a shared link to a file. - * @param {Object} opts Optional parameters - * @param {Boolean} opts.attachment **true** enables a web browser to download the file as an attachment.\n**false** means a web browser may preview the file in a new tab or window, but not\ndownload the file.\n\nYou can only set this parameter to **false** if the content type of the file is in the supported list;\nfor example, certain image files and PDF files.\n\nIf the content type is not supported for preview, then a value of **false** is ignored, and\nthe attachment will be returned in the response.\n (default to true) - * @param {Date} opts.ifModifiedSince Only returns the content if it has been modified since the date provided.\nUse the date format defined by HTTP. For example, `Wed, 09 Mar 2016 16:56:34 GMT`.\n - */ - this.getSharedLinkContent = function(sharedId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'sharedId' is set - if (sharedId == undefined || sharedId == null) { - throw "Missing the required parameter 'sharedId' when calling getSharedLinkContent"; - } - - - var pathParams = { - 'sharedId': sharedId - }; - var queryParams = { - 'attachment': opts['attachment'] - }; - var headerParams = { - 'If-Modified-Since': opts['ifModifiedSince'] - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/shared-links/{sharedId}/content', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - }; - - return exports; - })); - - -/***/ }, -/* 134 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(106), __webpack_require__(44), __webpack_require__(105), __webpack_require__(98), __webpack_require__(103), __webpack_require__(100), __webpack_require__(101), __webpack_require__(107), __webpack_require__(115), __webpack_require__(108)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/SiteMemberEntry'), require('../model/Error'), require('../model/SiteMemberBody'), require('../model/SiteBody'), require('../model/SiteEntry'), require('../model/SiteContainerEntry'), require('../model/SiteContainerPaging'), require('../model/SiteMemberPaging'), require('../model/SitePaging'), require('../model/SiteMemberRoleBody')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.SitesApi = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.SiteMemberEntry, root.AlfrescoCoreRestApi.Error, root.AlfrescoCoreRestApi.SiteMemberBody, root.AlfrescoCoreRestApi.SiteBody, root.AlfrescoCoreRestApi.SiteEntry, root.AlfrescoCoreRestApi.SiteContainerEntry, root.AlfrescoCoreRestApi.SiteContainerPaging, root.AlfrescoCoreRestApi.SiteMemberPaging, root.AlfrescoCoreRestApi.SitePaging, root.AlfrescoCoreRestApi.SiteMemberRoleBody); - } - }(this, function(ApiClient, SiteMemberEntry, Error, SiteMemberBody, SiteBody, SiteEntry, SiteContainerEntry, SiteContainerPaging, SiteMemberPaging, SitePaging, SiteMemberRoleBody) { - 'use strict'; - - /** - * Sites service. - * @module api/SitesApi - * @version 0.1.0 - */ - - /** - * Constructs a new SitesApi. - * @alias module:api/SitesApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, default to {@link module:ApiClient#instance} - * if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - - /** - * Add a person - * Adds person **personId** as a member of site **siteId**.\n\nYou can set the **role** to one of four types:\n\n* SiteConsumer\n* SiteCollaborator\n* SiteContributor\n* SiteManager\n - * @param {String} siteId The identifier of a site. - * @param {module:model/SiteMemberBody} siteMemberBody The person to add and their role - * data is of type: {module:model/SiteMemberEntry} - */ - this.addSiteMember = function(siteId, siteMemberBody) { - var postBody = siteMemberBody; - - // verify the required parameter 'siteId' is set - if (siteId == undefined || siteId == null) { - throw "Missing the required parameter 'siteId' when calling addSiteMember"; - } - - // verify the required parameter 'siteMemberBody' is set - if (siteMemberBody == undefined || siteMemberBody == null) { - throw "Missing the required parameter 'siteMemberBody' when calling addSiteMember"; - } - - - var pathParams = { - 'siteId': siteId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = SiteMemberEntry; - - return this.apiClient.callApi( - '/sites/{siteId}/members', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Create a site - * Creates a default site with the given details. Unless explicitly specified, the site id will be generated from the site title. The site id must be unique and only contain alphanumeric and/or dash\ncharacters.\n\nFor example, to create a public site called \"Marketing\" the following body could be used:\n```JSON\n{\n \"title\": \"Marketing\",\n \"visibility\": \"PUBLIC\"\n}\n```\n\nThe creation of the (surf) configuration files required by Share can be skipped via the **skipConfiguration** query parameter.\n\n**Please note: if skipped then such a site will *not* work within Share.**\n\nThe addition of the site to the user's site favorites can be skipped via the **skipAddToFavorites** query parameter.\n\nThe creator will be added as a member with Site Manager role.\n - * @param {module:model/SiteBody} siteBody The site details - * @param {Object} opts Optional parameters - * @param {Boolean} opts.skipConfiguration Flag to indicate whether the Share-specific (surf) configuration files for the site should not be created. (default to false) - * @param {Boolean} opts.skipAddToFavorites Flag to indicate whether the site should not be added to the user's site favorites. (default to false) - * data is of type: {module:model/SiteEntry} - */ - this.createSite = function(siteBody, opts) { - opts = opts || {}; - var postBody = siteBody; - - // verify the required parameter 'siteBody' is set - if (siteBody == undefined || siteBody == null) { - throw "Missing the required parameter 'siteBody' when calling createSite"; - } - - - var pathParams = { - }; - var queryParams = { - 'skipConfiguration': opts['skipConfiguration'], - 'skipAddToFavorites': opts['skipAddToFavorites'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = SiteEntry; - - return this.apiClient.callApi( - '/sites', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Delete a site - * Deletes the site with **siteId**. - * @param {String} siteId The identifier of a site. - * @param {Object} opts Optional parameters - * @param {Boolean} opts.permanent Flag to indicate whether the site should be permanently deleted i.e. bypass the trashcan. (default to false) - */ - this.deleteSite = function(siteId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'siteId' is set - if (siteId == undefined || siteId == null) { - throw "Missing the required parameter 'siteId' when calling deleteSite"; - } - - - var pathParams = { - 'siteId': siteId - }; - var queryParams = { - 'permanent': opts['permanent'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/sites/{siteId}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get a site - * Returns information for site **siteId**.\n\nYou can use the **relations** parameter to include one or more related\nentities in a single response and so reduce network traffic.\n\nThe entity types in Alfresco are organized in a tree structure.\nThe **sites** entity has two children, **containers** and **members**.\nThe following relations parameter returns all the container and member\nobjects related to the site **siteId**:\n\n```\ncontainers,members\n```\n - * @param {String} siteId The identifier of a site. - * @param {Object} opts Optional parameters - * @param {Array.} opts.relations Use the relations parameter to include one or more related entities in a single response. - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/SiteEntry} - */ - this.getSite = function(siteId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'siteId' is set - if (siteId == undefined || siteId == null) { - throw "Missing the required parameter 'siteId' when calling getSite"; - } - - - var pathParams = { - 'siteId': siteId - }; - var queryParams = { - 'relations': this.apiClient.buildCollectionParam(opts['relations'], 'csv'), - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = SiteEntry; - - return this.apiClient.callApi( - '/sites/{siteId}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get a container - * Returns information on the container **containerId** in site **siteId**. - * @param {String} siteId The identifier of a site. - * @param {String} containerId The unique identifier of a site container. - * @param {Object} opts Optional parameters - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/SiteContainerEntry} - */ - this.getSiteContainer = function(siteId, containerId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'siteId' is set - if (siteId == undefined || siteId == null) { - throw "Missing the required parameter 'siteId' when calling getSiteContainer"; - } - - // verify the required parameter 'containerId' is set - if (containerId == undefined || containerId == null) { - throw "Missing the required parameter 'containerId' when calling getSiteContainer"; - } - - - var pathParams = { - 'siteId': siteId, - 'containerId': containerId - }; - var queryParams = { - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = SiteContainerEntry; - - return this.apiClient.callApi( - '/sites/{siteId}/containers/{containerId}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get containers - * Returns a list of containers information for site identified by **siteId**. - * @param {String} siteId The identifier of a site. - * @param {Object} opts Optional parameters - * @param {Integer} opts.skipCount The number of entities that exist in the collection before those included in this list. - * @param {Integer} opts.maxItems The maximum number of items to return in the list. - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/SiteContainerPaging} - */ - this.getSiteContainers = function(siteId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'siteId' is set - if (siteId == undefined || siteId == null) { - throw "Missing the required parameter 'siteId' when calling getSiteContainers"; - } - - - var pathParams = { - 'siteId': siteId - }; - var queryParams = { - 'skipCount': opts['skipCount'], - 'maxItems': opts['maxItems'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = SiteContainerPaging; - - return this.apiClient.callApi( - '/sites/{siteId}/containers', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get a site member - * Returns site membership information for person **personId** on site **siteId**. - * @param {String} siteId The identifier of a site. - * @param {String} personId The identifier of a person. - * @param {Object} opts Optional parameters - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/SiteMemberEntry} - */ - this.getSiteMember = function(siteId, personId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'siteId' is set - if (siteId == undefined || siteId == null) { - throw "Missing the required parameter 'siteId' when calling getSiteMember"; - } - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling getSiteMember"; - } - - - var pathParams = { - 'siteId': siteId, - 'personId': personId - }; - var queryParams = { - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = SiteMemberEntry; - - return this.apiClient.callApi( - '/sites/{siteId}/members/{personId}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get members - * Returns a list of site memberships for site **siteId**. - * @param {String} siteId The identifier of a site. - * @param {Object} opts Optional parameters - * @param {Integer} opts.skipCount The number of entities that exist in the collection before those included in this list. - * @param {Integer} opts.maxItems The maximum number of items to return in the list. - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/SiteMemberPaging} - */ - this.getSiteMembers = function(siteId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'siteId' is set - if (siteId == undefined || siteId == null) { - throw "Missing the required parameter 'siteId' when calling getSiteMembers"; - } - - - var pathParams = { - 'siteId': siteId - }; - var queryParams = { - 'skipCount': opts['skipCount'], - 'maxItems': opts['maxItems'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = SiteMemberPaging; - - return this.apiClient.callApi( - '/sites/{siteId}/members', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get sites - * Returns a list of sites in this repository. You can sort the list if sites using the **orderBy** parameter.\n**orderBy** specifies the name of one or more\ncomma separated properties.\nFor each property you can optionally specify the order direction.\nBoth of the these **orderBy** examples retrieve sites ordered by ascending name:\n\n```\nname\nname ASC\n```\n\nYou can use the **relations** parameter to include one or more related\nentities in a single response and so reduce network traffic.\n\nThe entity types in Alfresco are organized in a tree structure.\nThe **sites** entity has two children, **containers** and **members**.\nThe following relations parameter returns all the container and member\nobjects related to each site:\n\n```\ncontainers,members\n```\n - * @param {Object} opts Optional parameters - * @param {Integer} opts.skipCount The number of entities that exist in the collection before those included in this list. - * @param {Integer} opts.maxItems The maximum number of items to return in the list. - * @param {String} opts.orderBy A string to control the order of the entities returned. - * @param {Array.} opts.relations Use the relations parameter to include one or more related entities in a single response. - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/SitePaging} - */ - this.getSites = function(opts) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'skipCount': opts['skipCount'], - 'maxItems': opts['maxItems'], - 'orderBy': opts['orderBy'], - 'relations': this.apiClient.buildCollectionParam(opts['relations'], 'csv'), - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = SitePaging; - - return this.apiClient.callApi( - '/sites', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Delete a site member - * Removes person **personId** as a member of site **siteId**. - * @param {String} siteId The identifier of a site. - * @param {String} personId The identifier of a person. - */ - this.removeSiteMember = function(siteId, personId) { - var postBody = null; - - // verify the required parameter 'siteId' is set - if (siteId == undefined || siteId == null) { - throw "Missing the required parameter 'siteId' when calling removeSiteMember"; - } - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling removeSiteMember"; - } - - - var pathParams = { - 'siteId': siteId, - 'personId': personId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/sites/{siteId}/members/{personId}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Update a site member - * Update the membership of person **personId** in site **siteId**.\n\nYou can set the **role** to one of four types:\n\n* SiteConsumer\n* SiteCollaborator\n* SiteContributor\n* SiteManager\n - * @param {String} siteId The identifier of a site. - * @param {String} personId The identifier of a person. - * @param {module:model/SiteMemberRoleBody} siteMemberRoleBody The persons new role - * data is of type: {module:model/SiteMemberEntry} - */ - this.updateSiteMember = function(siteId, personId, siteMemberRoleBody) { - var postBody = siteMemberRoleBody; - - // verify the required parameter 'siteId' is set - if (siteId == undefined || siteId == null) { - throw "Missing the required parameter 'siteId' when calling updateSiteMember"; - } - - // verify the required parameter 'personId' is set - if (personId == undefined || personId == null) { - throw "Missing the required parameter 'personId' when calling updateSiteMember"; - } - - // verify the required parameter 'siteMemberRoleBody' is set - if (siteMemberRoleBody == undefined || siteMemberRoleBody == null) { - throw "Missing the required parameter 'siteMemberRoleBody' when calling updateSiteMember"; - } - - - var pathParams = { - 'siteId': siteId, - 'personId': personId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = SiteMemberEntry; - - return this.apiClient.callApi( - '/sites/{siteId}/members/{personId}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - }; - - return exports; - })); - - -/***/ }, -/* 135 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6), __webpack_require__(117), __webpack_require__(44), __webpack_require__(119), __webpack_require__(120), __webpack_require__(118)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/TagBody'), require('../model/Error'), require('../model/TagEntry'), require('../model/TagPaging'), require('../model/TagBody1')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoCoreRestApi) { - root.AlfrescoCoreRestApi = {}; - } - root.AlfrescoCoreRestApi.TagsApi = factory(root.AlfrescoCoreRestApi.ApiClient, root.AlfrescoCoreRestApi.TagBody, root.AlfrescoCoreRestApi.Error, root.AlfrescoCoreRestApi.TagEntry, root.AlfrescoCoreRestApi.TagPaging, root.AlfrescoCoreRestApi.TagBody1); - } - }(this, function(ApiClient, TagBody, Error, TagEntry, TagPaging, TagBody1) { - 'use strict'; - - /** - * Tags service. - * @module api/TagsApi - * @version 0.1.0 - */ - - /** - * Constructs a new TagsApi. - * @alias module:api/TagsApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, default to {@link module:ApiClient#instance} - * if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - - /** - * Add a tag - * Adds one or more tags to the node **nodeId**. You can create more than one tag by\nspecifying a list of tags in the JSON body like this:\n\n```JSON\n[\n {\n \"tag\":\"test-tag-1\"\n },\n {\n \"tag\":\"test-tag-2\"\n }\n]\n```\n - * @param {String} nodeId The identifier of a node. - * @param {module:model/TagBody} tagBody The new tag - * data is of type: {module:model/TagEntry} - */ - this.addTag = function(nodeId, tagBody) { - var postBody = tagBody; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling addTag"; - } - - // verify the required parameter 'tagBody' is set - if (tagBody == undefined || tagBody == null) { - throw "Missing the required parameter 'tagBody' when calling addTag"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = TagEntry; - - return this.apiClient.callApi( - '/nodes/{nodeId}/tags', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get tags - * Returns a list of tags for node **nodeId**. - * @param {String} nodeId The identifier of a node. - * @param {Object} opts Optional parameters - * @param {Integer} opts.skipCount The number of entities that exist in the collection before those included in this list. - * @param {Integer} opts.maxItems The maximum number of items to return in the list. - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/TagPaging} - */ - this.getNodeTags = function(nodeId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling getNodeTags"; - } - - - var pathParams = { - 'nodeId': nodeId - }; - var queryParams = { - 'skipCount': opts['skipCount'], - 'maxItems': opts['maxItems'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = TagPaging; - - return this.apiClient.callApi( - '/nodes/{nodeId}/tags', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get a tag - * Return a specific tag with **tagId**. - * @param {String} tagId The identifier of a tag. - * @param {Object} opts Optional parameters - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/TagEntry} - */ - this.getTag = function(tagId, opts) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'tagId' is set - if (tagId == undefined || tagId == null) { - throw "Missing the required parameter 'tagId' when calling getTag"; - } - - - var pathParams = { - 'tagId': tagId - }; - var queryParams = { - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = TagEntry; - - return this.apiClient.callApi( - '/tags/{tagId}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Get tags - * Returns a list of tags in this repository. - * @param {Object} opts Optional parameters - * @param {Integer} opts.skipCount The number of entities that exist in the collection before those included in this list. - * @param {Integer} opts.maxItems The maximum number of items to return in the list. - * @param {Array.} opts.fields A list of field names.\n\nYou can use this parameter to restrict the fields\nreturned within a response if, for example, you want to save on overall bandwidth.\n\nThe list applies to a returned individual\nentity or entries within a collection.\n\nIf the API method also supports the **include**\nparameter, then the fields specified in the **include**\nparameter are returned in addition to those specified in the **fields** parameter.\n - * data is of type: {module:model/TagPaging} - */ - this.getTags = function(opts) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'skipCount': opts['skipCount'], - 'maxItems': opts['maxItems'], - 'fields': this.apiClient.buildCollectionParam(opts['fields'], 'csv') - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = TagPaging; - - return this.apiClient.callApi( - '/tags', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Delete a tag - * Removes tag **tagId** from node **nodeId**. - * @param {String} nodeId The identifier of a node. - * @param {String} tagId The identifier of a tag. - */ - this.removeTag = function(nodeId, tagId) { - var postBody = null; - - // verify the required parameter 'nodeId' is set - if (nodeId == undefined || nodeId == null) { - throw "Missing the required parameter 'nodeId' when calling removeTag"; - } - - // verify the required parameter 'tagId' is set - if (tagId == undefined || tagId == null) { - throw "Missing the required parameter 'tagId' when calling removeTag"; - } - - - var pathParams = { - 'nodeId': nodeId, - 'tagId': tagId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - - return this.apiClient.callApi( - '/nodes/{nodeId}/tags/{tagId}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - - /** - * Update a tag - * Updates the tag **tagId**. - * @param {String} tagId The identifier of a tag. - * @param {module:model/TagBody1} tagBody The updated tag - * data is of type: {module:model/TagEntry} - */ - this.updateTag = function(tagId, tagBody) { - var postBody = tagBody; - - // verify the required parameter 'tagId' is set - if (tagId == undefined || tagId == null) { - throw "Missing the required parameter 'tagId' when calling updateTag"; - } - - // verify the required parameter 'tagBody' is set - if (tagBody == undefined || tagBody == null) { - throw "Missing the required parameter 'tagBody' when calling updateTag"; - } - - - var pathParams = { - 'tagId': tagId - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['basicAuth']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = TagEntry; - - return this.apiClient.callApi( - '/tags/{tagId}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - }; - - return exports; - })); - - -/***/ }, -/* 136 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(138), __webpack_require__(137), __webpack_require__(156), __webpack_require__(157), __webpack_require__(162), __webpack_require__(158), __webpack_require__(159), __webpack_require__(160), __webpack_require__(161)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../../alfrescoApiClient'), require('./model/Error'), require('./model/ErrorError'), require('./model/LoginRequest'), require('./model/LoginTicketEntry'), require('./model/LoginTicketEntryEntry'), require('./model/ValidateTicketEntry'), require('./model/ValidateTicketEntryEntry'), require('./api/AuthenticationApi')); - } - }(function(ApiClient, Error, ErrorError, LoginRequest, LoginTicketEntry, LoginTicketEntryEntry, ValidateTicketEntry, ValidateTicketEntryEntry, AuthenticationApi) { - 'use strict'; - - /** - * Provides access to the Authentication features of Alfresco.
- * The index module provides access to constructors for all the classes which comprise the public API. - *

- * An AMD (recommended!) or CommonJS application will generally do something equivalent to the following: - *

-	   * var AlfrescoAuthRestApi = require('./index'); // See note below*.
-	   * var xxxSvc = new AlfrescoAuthRestApi.XxxApi(); // Allocate the API class we're going to use.
-	   * var yyyModel = new AlfrescoAuthRestApi.Yyy(); // Construct a model instance.
-	   * yyyModel.someProperty = 'someValue';
-	   * ...
-	   * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
-	   * ...
-	   * 
- * *NOTE: For a top-level AMD script, use require(['./index'], function(){...}) and put the application logic within the - * callback function. - *

- *

- * A non-AMD browser application (discouraged) might do something like this: - *

-	   * var xxxSvc = new AlfrescoAuthRestApi.XxxApi(); // Allocate the API class we're going to use.
-	   * var yyy = new AlfrescoAuthRestApi.Yyy(); // Construct a model instance.
-	   * yyyModel.someProperty = 'someValue';
-	   * ...
-	   * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
-	   * ...
-	   * 
- *

- * @module index - * @version 0.1.0 - */ - var exports = { - /** - * The ApiClient constructor. - * @property {module:ApiClient} - */ - ApiClient: ApiClient, - /** - * The Error model constructor. - * @property {module:model/Error} - */ - Error: Error, - /** - * The ErrorError model constructor. - * @property {module:model/ErrorError} - */ - ErrorError: ErrorError, - /** - * The LoginRequest model constructor. - * @property {module:model/LoginRequest} - */ - LoginRequest: LoginRequest, - /** - * The LoginTicketEntry model constructor. - * @property {module:model/LoginTicketEntry} - */ - LoginTicketEntry: LoginTicketEntry, - /** - * The LoginTicketEntryEntry model constructor. - * @property {module:model/LoginTicketEntryEntry} - */ - LoginTicketEntryEntry: LoginTicketEntryEntry, - /** - * The ValidateTicketEntry model constructor. - * @property {module:model/ValidateTicketEntry} - */ - ValidateTicketEntry: ValidateTicketEntry, - /** - * The ValidateTicketEntryEntry model constructor. - * @property {module:model/ValidateTicketEntryEntry} - */ - ValidateTicketEntryEntry: ValidateTicketEntryEntry, - /** - * The AuthenticationApi service constructor. - * @property {module:api/AuthenticationApi} - */ - AuthenticationApi: AuthenticationApi - }; - - return exports; - })); - - -/***/ }, -/* 137 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) { - if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(138), __webpack_require__(156)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../../../alfrescoApiClient'), require('./ErrorError')); - } else { - // Browser globals (root is window) - if (!root.AlfrescoAuthRestApi) { - root.AlfrescoAuthRestApi = {}; - } - root.AlfrescoAuthRestApi.Error = factory(root.AlfrescoAuthRestApi.ApiClient, root.AlfrescoAuthRestApi.ErrorError); - } - }(this, function(ApiClient, ErrorError) { - 'use strict'; - - /** - * The Error model module. - * @module model/Error - * @version 0.1.0 - */ - - /** - * Constructs a new Error. - * @alias module:model/Error - * @class - */ - var exports = function() { - - - }; - - /** - * Constructs a Error from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Error} obj Optional instance to populate. - * @return {module:model/Error} The populated Error instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('error')) { - obj['error'] = ErrorError.constructFromObject(data['error']); - } - } - return obj; - } - - - /** - * @member {module:model/ErrorError} error - */ - exports.prototype['error'] = undefined; - - - - - return exports; - })); - - -/***/ }, -/* 138 */ -/***/ function(module, exports, __webpack_require__) { - - 'use strict'; - var Emitter = __webpack_require__(139); - var ApiClient = __webpack_require__(6); - var superagent = __webpack_require__(11); - var _ = __webpack_require__(154); - - class AlfrescoApiClient extends ApiClient { - - /** - * @param {String} host - * */ - constructor(host) { - super(); - this.host = host; - Emitter.call(this); - } - - /** - * Invokes the REST service using the supplied settings and parameters. - * - * @param {String} path The base URL to invoke. - * @param {String} httpMethod The HTTP method to use. - * @param {Object.} pathParams A map of path parameters and their values. - * @param {Object.} queryParams A map of query parameters and their values. - * @param {Object.} headerParams A map of header parameters and their values. - * @param {Object.} formParams A map of form parameters and their values. - * @param {Object} bodyParam The value to pass as the request body. - * @param {Array.} authNames An array of authentication type names. - * @param {Array.} contentTypes An array of request MIME types. - * @param {Array.} accepts An array of acceptable response MIME types. - * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the - * @param {(String)} contextRoot alternative contextRoot - * constructor for a complex type. * @returns {Promise} A Promise object. - */ - callApi(path, httpMethod, pathParams, queryParams, headerParams, formParams, bodyParam, authNames, - contentTypes, accepts, returnType, contextRoot) { - - var eventEmitter = {}; - Emitter(eventEmitter); // jshint ignore:line - - var url; - - if (contextRoot) { - var basePath = this.host + '/' + contextRoot; - url = this.buildUrlCustomBasePath(basePath, path, pathParams); - } else { - url = this.buildUrl(path, pathParams); - } - - var request = superagent(httpMethod, url); - - // apply authentications - this.applyAuthToRequest(request, ['basicAuth']); - - // set query parameters - request.query(this.normalizeParams(queryParams)); - - // set header parameters - request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)); - - if (this.isBpmRequest() && this.isCsrfEnabled()) { - this.setCsrfToken(request); - } - - // add cookie for activiti - if (this.isBpmRequest() && this.cookie) { - request.set('Cookie', this.cookie); - } - - // set request timeout - request.timeout(this.timeout); - - var contentType = this.jsonPreferredMime(contentTypes); - - if (contentType && contentType !== 'multipart/form-data') { - request.type(contentType); - } else if (!request.header['Content-Type'] && contentType !== 'multipart/form-data') { - request.type('application/json'); - } - - if (contentType === 'application/x-www-form-urlencoded') { - request.send(this.normalizeParams(formParams)).on('progress', (event)=> { - this.progress(event, eventEmitter); - }); - } else if (contentType === 'multipart/form-data') { - var _formParams = this.normalizeParams(formParams); - for (var key in _formParams) { - if (_formParams.hasOwnProperty(key)) { - if (this.isFileParam(_formParams[key])) { - // file field - request.attach(key, _formParams[key]).on('progress', (event)=> {// jshint ignore:line - this.progress(event, eventEmitter); - }); - } else { - request.field(key, _formParams[key]).on('progress', (event)=> {// jshint ignore:line - this.progress(event, eventEmitter); - }); - } - } - } - } else if (bodyParam) { - request.send(bodyParam).on('progress', (event)=> { - this.progress(event, eventEmitter); - }); - } - - var accept = this.jsonPreferredMime(accepts); - if (accept) { - request.accept(accept); - } - - this.promise = new Promise((resolve, reject) => { - request.end((error, response) => { - if (error) { - eventEmitter.emit('error', error); - - if (error.status === 401) { - eventEmitter.emit('unauthorized'); - } - - if (response && response.text) { - reject(_.merge(error, {message: response.text})); - } else { - reject({error: error}); - } - - } else { - if (this.isBpmRequest()) { - if (response.header && response.header.hasOwnProperty('set-cookie')) { - this.cookie = response.header['set-cookie']; - } - } - var data = {}; - if (response.type === 'text/html') { - data = this.deserialize(response, 'String'); - } else { - data = this.deserialize(response, returnType); - } - - eventEmitter.emit('success', data); - resolve(data); - } - }).on('abort', () => { - eventEmitter.emit('abort'); - }); - }); - - this.promise.on = function () { - eventEmitter.on.apply(eventEmitter, arguments); - return this; - }; - - this.promise.once = function () { - eventEmitter.once.apply(eventEmitter, arguments); - return this; - }; - - this.promise.emit = function () { - eventEmitter.emit.apply(eventEmitter, arguments); - return this; - }; - - this.promise.off = function () { - eventEmitter.off.apply(eventEmitter, arguments); - return this; - }; - - this.promise.abort = function () { - request.abort(); - return this; - }; - - return this.promise; - } - - isBpmRequest() { - return this.constructor.name === 'BpmAuth'; - } - - isCsrfEnabled() { - if (this.config) { - return !this.config.disableCsrf; - }else { - return true; - } - } - - setCsrfToken(request) { - var token = this.token(); - request.set('X-CSRF-TOKEN', token); - request.set('Cookie', 'CSRF-TOKEN=' + token + ';path=/'); - - try { - document.cookie = 'CSRF-TOKEN=' + token + ';path=/'; - } catch (err) { - } - } - - token(a) { - return a ? (a ^ Math.random() * 16 >> a / 4).toString(16) : ([1e16] + 1e16).replace(/[01]/g, this.token); - } - - progress(event, eventEmitter) { - if (event.lengthComputable && this.promise) { - var percent = Math.round(event.loaded / event.total * 100); - - eventEmitter.emit('progress', { - total: event.total, - loaded: event.loaded, - percent: percent - }); - } - } - - /** - * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders - * with parameter values. - * - * @param {String} basePath the base path - * @param {String} path The path to append to the base URL. - * @param {Object} pathParams The parameter values to append. - * @returns {String} The encoded path with parameter values substituted. - */ - buildUrlCustomBasePath(basePath, path, pathParams) { - if (!path.match(/^\//)) { - path = '/' + path; - } - var url = basePath + path; - var _this = this; - url = url.replace(/\{([\w-]+)\}/g, function (fullMatch, key) { - var value; - if (pathParams.hasOwnProperty(key)) { - value = _this.paramToString(pathParams[key]); - } else { - value = fullMatch; - } - return encodeURIComponent(value); - }); - return url; - } - } - - Emitter(AlfrescoApiClient.prototype); // jshint ignore:line - module.exports = AlfrescoApiClient; - - -/***/ }, -/* 139 */ -/***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - var d = __webpack_require__(140) - , callable = __webpack_require__(153) - - , apply = Function.prototype.apply, call = Function.prototype.call - , create = Object.create, defineProperty = Object.defineProperty - , defineProperties = Object.defineProperties - , hasOwnProperty = Object.prototype.hasOwnProperty - , descriptor = { configurable: true, enumerable: false, writable: true } - - , on, once, off, emit, methods, descriptors, base; - - on = function (type, listener) { - var data; - - callable(listener); - - if (!hasOwnProperty.call(this, '__ee__')) { - data = descriptor.value = create(null); - defineProperty(this, '__ee__', descriptor); - descriptor.value = null; - } else { - data = this.__ee__; - } - if (!data[type]) data[type] = listener; - else if (typeof data[type] === 'object') data[type].push(listener); - else data[type] = [data[type], listener]; - - return this; - }; - - once = function (type, listener) { - var once, self; - - callable(listener); - self = this; - on.call(this, type, once = function () { - off.call(self, type, once); - apply.call(listener, this, arguments); - }); - - once.__eeOnceListener__ = listener; - return this; - }; - - off = function (type, listener) { - var data, listeners, candidate, i; - - callable(listener); - - if (!hasOwnProperty.call(this, '__ee__')) return this; - data = this.__ee__; - if (!data[type]) return this; - listeners = data[type]; - - if (typeof listeners === 'object') { - for (i = 0; (candidate = listeners[i]); ++i) { - if ((candidate === listener) || - (candidate.__eeOnceListener__ === listener)) { - if (listeners.length === 2) data[type] = listeners[i ? 0 : 1]; - else listeners.splice(i, 1); - } - } - } else { - if ((listeners === listener) || - (listeners.__eeOnceListener__ === listener)) { - delete data[type]; - } - } - - return this; - }; - - emit = function (type) { - var i, l, listener, listeners, args; - - if (!hasOwnProperty.call(this, '__ee__')) return; - listeners = this.__ee__[type]; - if (!listeners) return; - - if (typeof listeners === 'object') { - l = arguments.length; - args = new Array(l - 1); - for (i = 1; i < l; ++i) args[i - 1] = arguments[i]; - - listeners = listeners.slice(); - for (i = 0; (listener = listeners[i]); ++i) { - apply.call(listener, this, args); - } - } else { - switch (arguments.length) { - case 1: - call.call(listeners, this); - break; - case 2: - call.call(listeners, this, arguments[1]); - break; - case 3: - call.call(listeners, this, arguments[1], arguments[2]); - break; - default: - l = arguments.length; - args = new Array(l - 1); - for (i = 1; i < l; ++i) { - args[i - 1] = arguments[i]; - } - apply.call(listeners, this, args); - } - } - }; - - methods = { - on: on, - once: once, - off: off, - emit: emit - }; - - descriptors = { - on: d(on), - once: d(once), - off: d(off), - emit: d(emit) - }; - - base = defineProperties({}, descriptors); - - module.exports = exports = function (o) { - return (o == null) ? create(base) : defineProperties(Object(o), descriptors); - }; - exports.methods = methods; - - -/***/ }, -/* 140 */ -/***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - var assign = __webpack_require__(141) - , normalizeOpts = __webpack_require__(148) - , isCallable = __webpack_require__(149) - , contains = __webpack_require__(150) - - , d; - - d = module.exports = function (dscr, value/*, options*/) { - var c, e, w, options, desc; - if ((arguments.length < 2) || (typeof dscr !== 'string')) { - options = value; - value = dscr; - dscr = null; - } else { - options = arguments[2]; - } - if (dscr == null) { - c = w = true; - e = false; - } else { - c = contains.call(dscr, 'c'); - e = contains.call(dscr, 'e'); - w = contains.call(dscr, 'w'); - } - - desc = { value: value, configurable: c, enumerable: e, writable: w }; - return !options ? desc : assign(normalizeOpts(options), desc); - }; - - d.gs = function (dscr, get, set/*, options*/) { - var c, e, options, desc; - if (typeof dscr !== 'string') { - options = set; - set = get; - get = dscr; - dscr = null; - } else { - options = arguments[3]; - } - if (get == null) { - get = undefined; - } else if (!isCallable(get)) { - options = get; - get = set = undefined; - } else if (set == null) { - set = undefined; - } else if (!isCallable(set)) { - options = set; - set = undefined; - } - if (dscr == null) { - c = true; - e = false; - } else { - c = contains.call(dscr, 'c'); - e = contains.call(dscr, 'e'); - } - - desc = { get: get, set: set, configurable: c, enumerable: e }; - return !options ? desc : assign(normalizeOpts(options), desc); - }; - - -/***/ }, -/* 141 */ -/***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - module.exports = __webpack_require__(142)() - ? Object.assign - : __webpack_require__(143); - - -/***/ }, -/* 142 */ -/***/ function(module, exports) { - - 'use strict'; - - module.exports = function () { - var assign = Object.assign, obj; - if (typeof assign !== 'function') return false; - obj = { foo: 'raz' }; - assign(obj, { bar: 'dwa' }, { trzy: 'trzy' }); - return (obj.foo + obj.bar + obj.trzy) === 'razdwatrzy'; - }; - - -/***/ }, -/* 143 */ -/***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - var keys = __webpack_require__(144) - , value = __webpack_require__(147) - - , max = Math.max; - - module.exports = function (dest, src/*, …srcn*/) { - var error, i, l = max(arguments.length, 2), assign; - dest = Object(value(dest)); - assign = function (key) { - try { dest[key] = src[key]; } catch (e) { - if (!error) error = e; - } - }; - for (i = 1; i < l; ++i) { - src = arguments[i]; - keys(src).forEach(assign); - } - if (error !== undefined) throw error; - return dest; - }; - - -/***/ }, -/* 144 */ -/***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - module.exports = __webpack_require__(145)() - ? Object.keys - : __webpack_require__(146); - - -/***/ }, -/* 145 */ -/***/ function(module, exports) { - - 'use strict'; - - module.exports = function () { - try { - Object.keys('primitive'); - return true; - } catch (e) { return false; } - }; - - -/***/ }, -/* 146 */ -/***/ function(module, exports) { - - 'use strict'; - - var keys = Object.keys; - - module.exports = function (object) { - return keys(object == null ? object : Object(object)); - }; - - -/***/ }, -/* 147 */ -/***/ function(module, exports) { - - 'use strict'; - - module.exports = function (value) { - if (value == null) throw new TypeError("Cannot use null or undefined"); - return value; - }; - - -/***/ }, -/* 148 */ -/***/ function(module, exports) { - - 'use strict'; - - var forEach = Array.prototype.forEach, create = Object.create; - - var process = function (src, obj) { - var key; - for (key in src) obj[key] = src[key]; - }; - - module.exports = function (options/*, …options*/) { - var result = create(null); - forEach.call(arguments, function (options) { - if (options == null) return; - process(Object(options), result); - }); - return result; - }; - - -/***/ }, -/* 149 */ -/***/ function(module, exports) { - - // Deprecated - - 'use strict'; - - module.exports = function (obj) { return typeof obj === 'function'; }; - - -/***/ }, -/* 150 */ -/***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - module.exports = __webpack_require__(151)() - ? String.prototype.contains - : __webpack_require__(152); - - -/***/ }, -/* 151 */ -/***/ function(module, exports) { - - 'use strict'; - - var str = 'razdwatrzy'; - - module.exports = function () { - if (typeof str.contains !== 'function') return false; - return ((str.contains('dwa') === true) && (str.contains('foo') === false)); - }; - - -/***/ }, -/* 152 */ -/***/ function(module, exports) { - - 'use strict'; - - var indexOf = String.prototype.indexOf; - - module.exports = function (searchString/*, position*/) { - return indexOf.call(this, searchString, arguments[1]) > -1; - }; - - -/***/ }, -/* 153 */ -/***/ function(module, exports) { - - 'use strict'; - - module.exports = function (fn) { - if (typeof fn !== 'function') throw new TypeError(fn + " is not a function"); - return fn; - }; - - -/***/ }, -/* 154 */ -/***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(global, module) {/** - * @license - * lodash - * Copyright jQuery Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ - ;(function() { - - /** Used as a safe reference for `undefined` in pre-ES5 environments. */ - var undefined; - - /** Used as the semantic version number. */ - var VERSION = '4.16.4'; - - /** Used as the size to enable large array optimizations. */ - var LARGE_ARRAY_SIZE = 200; - - /** Error message constants. */ - var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://github.com/es-shims.', - FUNC_ERROR_TEXT = 'Expected a function'; - - /** Used to stand-in for `undefined` hash values. */ - var HASH_UNDEFINED = '__lodash_hash_undefined__'; - - /** Used as the maximum memoize cache size. */ - var MAX_MEMOIZE_SIZE = 500; - - /** Used as the internal argument placeholder. */ - var PLACEHOLDER = '__lodash_placeholder__'; - - /** Used to compose bitmasks for function metadata. */ - var BIND_FLAG = 1, - BIND_KEY_FLAG = 2, - CURRY_BOUND_FLAG = 4, - CURRY_FLAG = 8, - CURRY_RIGHT_FLAG = 16, - PARTIAL_FLAG = 32, - PARTIAL_RIGHT_FLAG = 64, - ARY_FLAG = 128, - REARG_FLAG = 256, - FLIP_FLAG = 512; - - /** Used to compose bitmasks for comparison styles. */ - var UNORDERED_COMPARE_FLAG = 1, - PARTIAL_COMPARE_FLAG = 2; - - /** Used as default options for `_.truncate`. */ - var DEFAULT_TRUNC_LENGTH = 30, - DEFAULT_TRUNC_OMISSION = '...'; - - /** Used to detect hot functions by number of calls within a span of milliseconds. */ - var HOT_COUNT = 500, - HOT_SPAN = 16; - - /** Used to indicate the type of lazy iteratees. */ - var LAZY_FILTER_FLAG = 1, - LAZY_MAP_FLAG = 2, - LAZY_WHILE_FLAG = 3; - - /** Used as references for various `Number` constants. */ - var INFINITY = 1 / 0, - MAX_SAFE_INTEGER = 9007199254740991, - MAX_INTEGER = 1.7976931348623157e+308, - NAN = 0 / 0; - - /** Used as references for the maximum length and index of an array. */ - var MAX_ARRAY_LENGTH = 4294967295, - MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1, - HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1; - - /** Used to associate wrap methods with their bit flags. */ - var wrapFlags = [ - ['ary', ARY_FLAG], - ['bind', BIND_FLAG], - ['bindKey', BIND_KEY_FLAG], - ['curry', CURRY_FLAG], - ['curryRight', CURRY_RIGHT_FLAG], - ['flip', FLIP_FLAG], - ['partial', PARTIAL_FLAG], - ['partialRight', PARTIAL_RIGHT_FLAG], - ['rearg', REARG_FLAG] - ]; - - /** `Object#toString` result references. */ - var argsTag = '[object Arguments]', - arrayTag = '[object Array]', - boolTag = '[object Boolean]', - dateTag = '[object Date]', - errorTag = '[object Error]', - funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - mapTag = '[object Map]', - numberTag = '[object Number]', - objectTag = '[object Object]', - promiseTag = '[object Promise]', - proxyTag = '[object Proxy]', - regexpTag = '[object RegExp]', - setTag = '[object Set]', - stringTag = '[object String]', - symbolTag = '[object Symbol]', - weakMapTag = '[object WeakMap]', - weakSetTag = '[object WeakSet]'; - - var arrayBufferTag = '[object ArrayBuffer]', - dataViewTag = '[object DataView]', - float32Tag = '[object Float32Array]', - float64Tag = '[object Float64Array]', - int8Tag = '[object Int8Array]', - int16Tag = '[object Int16Array]', - int32Tag = '[object Int32Array]', - uint8Tag = '[object Uint8Array]', - uint8ClampedTag = '[object Uint8ClampedArray]', - uint16Tag = '[object Uint16Array]', - uint32Tag = '[object Uint32Array]'; - - /** Used to match empty string literals in compiled template source. */ - var reEmptyStringLeading = /\b__p \+= '';/g, - reEmptyStringMiddle = /\b(__p \+=) '' \+/g, - reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g; - - /** Used to match HTML entities and HTML characters. */ - var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g, - reUnescapedHtml = /[&<>"']/g, - reHasEscapedHtml = RegExp(reEscapedHtml.source), - reHasUnescapedHtml = RegExp(reUnescapedHtml.source); - - /** Used to match template delimiters. */ - var reEscape = /<%-([\s\S]+?)%>/g, - reEvaluate = /<%([\s\S]+?)%>/g, - reInterpolate = /<%=([\s\S]+?)%>/g; - - /** Used to match property names within property paths. */ - var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, - reIsPlainProp = /^\w*$/, - reLeadingDot = /^\./, - rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; - - /** - * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). - */ - var reRegExpChar = /[\\^$.*+?()[\]{}|]/g, - reHasRegExpChar = RegExp(reRegExpChar.source); - - /** Used to match leading and trailing whitespace. */ - var reTrim = /^\s+|\s+$/g, - reTrimStart = /^\s+/, - reTrimEnd = /\s+$/; - - /** Used to match wrap detail comments. */ - var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, - reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/, - reSplitDetails = /,? & /; - - /** Used to match words composed of alphanumeric characters. */ - var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g; - - /** Used to match backslashes in property paths. */ - var reEscapeChar = /\\(\\)?/g; - - /** - * Used to match - * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components). - */ - var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g; - - /** Used to match `RegExp` flags from their coerced string values. */ - var reFlags = /\w*$/; - - /** Used to detect bad signed hexadecimal string values. */ - var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; - - /** Used to detect binary string values. */ - var reIsBinary = /^0b[01]+$/i; - - /** Used to detect host constructors (Safari). */ - var reIsHostCtor = /^\[object .+?Constructor\]$/; - - /** Used to detect octal string values. */ - var reIsOctal = /^0o[0-7]+$/i; - - /** Used to detect unsigned integer values. */ - var reIsUint = /^(?:0|[1-9]\d*)$/; - - /** Used to match Latin Unicode letters (excluding mathematical operators). */ - var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g; - - /** Used to ensure capturing order of template delimiters. */ - var reNoMatch = /($^)/; - - /** Used to match unescaped characters in compiled string literals. */ - var reUnescapedString = /['\n\r\u2028\u2029\\]/g; - - /** Used to compose unicode character classes. */ - var rsAstralRange = '\\ud800-\\udfff', - rsComboMarksRange = '\\u0300-\\u036f\\ufe20-\\ufe23', - rsComboSymbolsRange = '\\u20d0-\\u20f0', - rsDingbatRange = '\\u2700-\\u27bf', - rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff', - rsMathOpRange = '\\xac\\xb1\\xd7\\xf7', - rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf', - rsPunctuationRange = '\\u2000-\\u206f', - rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000', - rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde', - rsVarRange = '\\ufe0e\\ufe0f', - rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange; - - /** Used to compose unicode capture groups. */ - var rsApos = "['\u2019]", - rsAstral = '[' + rsAstralRange + ']', - rsBreak = '[' + rsBreakRange + ']', - rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']', - rsDigits = '\\d+', - rsDingbat = '[' + rsDingbatRange + ']', - rsLower = '[' + rsLowerRange + ']', - rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']', - rsFitz = '\\ud83c[\\udffb-\\udfff]', - rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')', - rsNonAstral = '[^' + rsAstralRange + ']', - rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}', - rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]', - rsUpper = '[' + rsUpperRange + ']', - rsZWJ = '\\u200d'; - - /** Used to compose unicode regexes. */ - var rsLowerMisc = '(?:' + rsLower + '|' + rsMisc + ')', - rsUpperMisc = '(?:' + rsUpper + '|' + rsMisc + ')', - rsOptLowerContr = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?', - rsOptUpperContr = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?', - reOptMod = rsModifier + '?', - rsOptVar = '[' + rsVarRange + ']?', - rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*', - rsSeq = rsOptVar + reOptMod + rsOptJoin, - rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq, - rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')'; - - /** Used to match apostrophes. */ - var reApos = RegExp(rsApos, 'g'); - - /** - * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and - * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols). - */ - var reComboMark = RegExp(rsCombo, 'g'); - - /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */ - var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g'); - - /** Used to match complex or compound words. */ - var reUnicodeWord = RegExp([ - rsUpper + '?' + rsLower + '+' + rsOptLowerContr + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')', - rsUpperMisc + '+' + rsOptUpperContr + '(?=' + [rsBreak, rsUpper + rsLowerMisc, '$'].join('|') + ')', - rsUpper + '?' + rsLowerMisc + '+' + rsOptLowerContr, - rsUpper + '+' + rsOptUpperContr, - rsDigits, - rsEmoji - ].join('|'), 'g'); - - /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */ - var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + ']'); - - /** Used to detect strings that need a more robust regexp to match words. */ - var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/; - - /** Used to assign default `context` object properties. */ - var contextProps = [ - 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array', - 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object', - 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array', - 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap', - '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout' - ]; - - /** Used to make template sourceURLs easier to identify. */ - var templateCounter = -1; - - /** Used to identify `toStringTag` values of typed arrays. */ - var typedArrayTags = {}; - typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = - typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = - typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = - typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = - typedArrayTags[uint32Tag] = true; - typedArrayTags[argsTag] = typedArrayTags[arrayTag] = - typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = - typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = - typedArrayTags[errorTag] = typedArrayTags[funcTag] = - typedArrayTags[mapTag] = typedArrayTags[numberTag] = - typedArrayTags[objectTag] = typedArrayTags[regexpTag] = - typedArrayTags[setTag] = typedArrayTags[stringTag] = - typedArrayTags[weakMapTag] = false; - - /** Used to identify `toStringTag` values supported by `_.clone`. */ - var cloneableTags = {}; - cloneableTags[argsTag] = cloneableTags[arrayTag] = - cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = - cloneableTags[boolTag] = cloneableTags[dateTag] = - cloneableTags[float32Tag] = cloneableTags[float64Tag] = - cloneableTags[int8Tag] = cloneableTags[int16Tag] = - cloneableTags[int32Tag] = cloneableTags[mapTag] = - cloneableTags[numberTag] = cloneableTags[objectTag] = - cloneableTags[regexpTag] = cloneableTags[setTag] = - cloneableTags[stringTag] = cloneableTags[symbolTag] = - cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = - cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; - cloneableTags[errorTag] = cloneableTags[funcTag] = - cloneableTags[weakMapTag] = false; - - /** Used to map Latin Unicode letters to basic Latin letters. */ - var deburredLetters = { - // Latin-1 Supplement block. - '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A', - '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a', - '\xc7': 'C', '\xe7': 'c', - '\xd0': 'D', '\xf0': 'd', - '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E', - '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e', - '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I', - '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i', - '\xd1': 'N', '\xf1': 'n', - '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O', - '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o', - '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U', - '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u', - '\xdd': 'Y', '\xfd': 'y', '\xff': 'y', - '\xc6': 'Ae', '\xe6': 'ae', - '\xde': 'Th', '\xfe': 'th', - '\xdf': 'ss', - // Latin Extended-A block. - '\u0100': 'A', '\u0102': 'A', '\u0104': 'A', - '\u0101': 'a', '\u0103': 'a', '\u0105': 'a', - '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C', - '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c', - '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd', - '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E', - '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e', - '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G', - '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g', - '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h', - '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I', - '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i', - '\u0134': 'J', '\u0135': 'j', - '\u0136': 'K', '\u0137': 'k', '\u0138': 'k', - '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L', - '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l', - '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N', - '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n', - '\u014c': 'O', '\u014e': 'O', '\u0150': 'O', - '\u014d': 'o', '\u014f': 'o', '\u0151': 'o', - '\u0154': 'R', '\u0156': 'R', '\u0158': 'R', - '\u0155': 'r', '\u0157': 'r', '\u0159': 'r', - '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S', - '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's', - '\u0162': 'T', '\u0164': 'T', '\u0166': 'T', - '\u0163': 't', '\u0165': 't', '\u0167': 't', - '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U', - '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u', - '\u0174': 'W', '\u0175': 'w', - '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y', - '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z', - '\u017a': 'z', '\u017c': 'z', '\u017e': 'z', - '\u0132': 'IJ', '\u0133': 'ij', - '\u0152': 'Oe', '\u0153': 'oe', - '\u0149': "'n", '\u017f': 's' - }; - - /** Used to map characters to HTML entities. */ - var htmlEscapes = { - '&': '&', - '<': '<', - '>': '>', - '"': '"', - "'": ''' - }; - - /** Used to map HTML entities to characters. */ - var htmlUnescapes = { - '&': '&', - '<': '<', - '>': '>', - '"': '"', - ''': "'" - }; - - /** Used to escape characters for inclusion in compiled string literals. */ - var stringEscapes = { - '\\': '\\', - "'": "'", - '\n': 'n', - '\r': 'r', - '\u2028': 'u2028', - '\u2029': 'u2029' - }; - - /** Built-in method references without a dependency on `root`. */ - var freeParseFloat = parseFloat, - freeParseInt = parseInt; - - /** Detect free variable `global` from Node.js. */ - var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; - - /** Detect free variable `self`. */ - var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - - /** Used as a reference to the global object. */ - var root = freeGlobal || freeSelf || Function('return this')(); - - /** Detect free variable `exports`. */ - var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; - - /** Detect free variable `module`. */ - var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; - - /** Detect the popular CommonJS extension `module.exports`. */ - var moduleExports = freeModule && freeModule.exports === freeExports; - - /** Detect free variable `process` from Node.js. */ - var freeProcess = moduleExports && freeGlobal.process; - - /** Used to access faster Node.js helpers. */ - var nodeUtil = (function() { - try { - return freeProcess && freeProcess.binding('util'); - } catch (e) {} - }()); - - /* Node.js helper references. */ - var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer, - nodeIsDate = nodeUtil && nodeUtil.isDate, - nodeIsMap = nodeUtil && nodeUtil.isMap, - nodeIsRegExp = nodeUtil && nodeUtil.isRegExp, - nodeIsSet = nodeUtil && nodeUtil.isSet, - nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; - - /*--------------------------------------------------------------------------*/ - - /** - * Adds the key-value `pair` to `map`. - * - * @private - * @param {Object} map The map to modify. - * @param {Array} pair The key-value pair to add. - * @returns {Object} Returns `map`. - */ - function addMapEntry(map, pair) { - // Don't return `map.set` because it's not chainable in IE 11. - map.set(pair[0], pair[1]); - return map; - } - - /** - * Adds `value` to `set`. - * - * @private - * @param {Object} set The set to modify. - * @param {*} value The value to add. - * @returns {Object} Returns `set`. - */ - function addSetEntry(set, value) { - // Don't return `set.add` because it's not chainable in IE 11. - set.add(value); - return set; - } - - /** - * A faster alternative to `Function#apply`, this function invokes `func` - * with the `this` binding of `thisArg` and the arguments of `args`. - * - * @private - * @param {Function} func The function to invoke. - * @param {*} thisArg The `this` binding of `func`. - * @param {Array} args The arguments to invoke `func` with. - * @returns {*} Returns the result of `func`. - */ - function apply(func, thisArg, args) { - switch (args.length) { - case 0: return func.call(thisArg); - case 1: return func.call(thisArg, args[0]); - case 2: return func.call(thisArg, args[0], args[1]); - case 3: return func.call(thisArg, args[0], args[1], args[2]); - } - return func.apply(thisArg, args); - } - - /** - * A specialized version of `baseAggregator` for arrays. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} setter The function to set `accumulator` values. - * @param {Function} iteratee The iteratee to transform keys. - * @param {Object} accumulator The initial aggregated object. - * @returns {Function} Returns `accumulator`. - */ - function arrayAggregator(array, setter, iteratee, accumulator) { - var index = -1, - length = array ? array.length : 0; - - while (++index < length) { - var value = array[index]; - setter(accumulator, value, iteratee(value), array); - } - return accumulator; - } - - /** - * A specialized version of `_.forEach` for arrays without support for - * iteratee shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns `array`. - */ - function arrayEach(array, iteratee) { - var index = -1, - length = array ? array.length : 0; - - while (++index < length) { - if (iteratee(array[index], index, array) === false) { - break; - } - } - return array; - } - - /** - * A specialized version of `_.forEachRight` for arrays without support for - * iteratee shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns `array`. - */ - function arrayEachRight(array, iteratee) { - var length = array ? array.length : 0; - - while (length--) { - if (iteratee(array[length], length, array) === false) { - break; - } - } - return array; - } - - /** - * A specialized version of `_.every` for arrays without support for - * iteratee shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} predicate The function invoked per iteration. - * @returns {boolean} Returns `true` if all elements pass the predicate check, - * else `false`. - */ - function arrayEvery(array, predicate) { - var index = -1, - length = array ? array.length : 0; - - while (++index < length) { - if (!predicate(array[index], index, array)) { - return false; - } - } - return true; - } - - /** - * A specialized version of `_.filter` for arrays without support for - * iteratee shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} predicate The function invoked per iteration. - * @returns {Array} Returns the new filtered array. - */ - function arrayFilter(array, predicate) { - var index = -1, - length = array ? array.length : 0, - resIndex = 0, - result = []; - - while (++index < length) { - var value = array[index]; - if (predicate(value, index, array)) { - result[resIndex++] = value; - } - } - return result; - } - - /** - * A specialized version of `_.includes` for arrays without support for - * specifying an index to search from. - * - * @private - * @param {Array} [array] The array to inspect. - * @param {*} target The value to search for. - * @returns {boolean} Returns `true` if `target` is found, else `false`. - */ - function arrayIncludes(array, value) { - var length = array ? array.length : 0; - return !!length && baseIndexOf(array, value, 0) > -1; - } - - /** - * This function is like `arrayIncludes` except that it accepts a comparator. - * - * @private - * @param {Array} [array] The array to inspect. - * @param {*} target The value to search for. - * @param {Function} comparator The comparator invoked per element. - * @returns {boolean} Returns `true` if `target` is found, else `false`. - */ - function arrayIncludesWith(array, value, comparator) { - var index = -1, - length = array ? array.length : 0; - - while (++index < length) { - if (comparator(value, array[index])) { - return true; - } - } - return false; - } - - /** - * A specialized version of `_.map` for arrays without support for iteratee - * shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns the new mapped array. - */ - function arrayMap(array, iteratee) { - var index = -1, - length = array ? array.length : 0, - result = Array(length); - - while (++index < length) { - result[index] = iteratee(array[index], index, array); - } - return result; - } - - /** - * Appends the elements of `values` to `array`. - * - * @private - * @param {Array} array The array to modify. - * @param {Array} values The values to append. - * @returns {Array} Returns `array`. - */ - function arrayPush(array, values) { - var index = -1, - length = values.length, - offset = array.length; - - while (++index < length) { - array[offset + index] = values[index]; - } - return array; - } - - /** - * A specialized version of `_.reduce` for arrays without support for - * iteratee shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @param {*} [accumulator] The initial value. - * @param {boolean} [initAccum] Specify using the first element of `array` as - * the initial value. - * @returns {*} Returns the accumulated value. - */ - function arrayReduce(array, iteratee, accumulator, initAccum) { - var index = -1, - length = array ? array.length : 0; - - if (initAccum && length) { - accumulator = array[++index]; - } - while (++index < length) { - accumulator = iteratee(accumulator, array[index], index, array); - } - return accumulator; - } - - /** - * A specialized version of `_.reduceRight` for arrays without support for - * iteratee shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @param {*} [accumulator] The initial value. - * @param {boolean} [initAccum] Specify using the last element of `array` as - * the initial value. - * @returns {*} Returns the accumulated value. - */ - function arrayReduceRight(array, iteratee, accumulator, initAccum) { - var length = array ? array.length : 0; - if (initAccum && length) { - accumulator = array[--length]; - } - while (length--) { - accumulator = iteratee(accumulator, array[length], length, array); - } - return accumulator; - } - - /** - * A specialized version of `_.some` for arrays without support for iteratee - * shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} predicate The function invoked per iteration. - * @returns {boolean} Returns `true` if any element passes the predicate check, - * else `false`. - */ - function arraySome(array, predicate) { - var index = -1, - length = array ? array.length : 0; - - while (++index < length) { - if (predicate(array[index], index, array)) { - return true; - } - } - return false; - } - - /** - * Gets the size of an ASCII `string`. - * - * @private - * @param {string} string The string inspect. - * @returns {number} Returns the string size. - */ - var asciiSize = baseProperty('length'); - - /** - * Converts an ASCII `string` to an array. - * - * @private - * @param {string} string The string to convert. - * @returns {Array} Returns the converted array. - */ - function asciiToArray(string) { - return string.split(''); - } - - /** - * Splits an ASCII `string` into an array of its words. - * - * @private - * @param {string} The string to inspect. - * @returns {Array} Returns the words of `string`. - */ - function asciiWords(string) { - return string.match(reAsciiWord) || []; - } - - /** - * The base implementation of methods like `_.findKey` and `_.findLastKey`, - * without support for iteratee shorthands, which iterates over `collection` - * using `eachFunc`. - * - * @private - * @param {Array|Object} collection The collection to inspect. - * @param {Function} predicate The function invoked per iteration. - * @param {Function} eachFunc The function to iterate over `collection`. - * @returns {*} Returns the found element or its key, else `undefined`. - */ - function baseFindKey(collection, predicate, eachFunc) { - var result; - eachFunc(collection, function(value, key, collection) { - if (predicate(value, key, collection)) { - result = key; - return false; - } - }); - return result; - } - - /** - * The base implementation of `_.findIndex` and `_.findLastIndex` without - * support for iteratee shorthands. - * - * @private - * @param {Array} array The array to inspect. - * @param {Function} predicate The function invoked per iteration. - * @param {number} fromIndex The index to search from. - * @param {boolean} [fromRight] Specify iterating from right to left. - * @returns {number} Returns the index of the matched value, else `-1`. - */ - function baseFindIndex(array, predicate, fromIndex, fromRight) { - var length = array.length, - index = fromIndex + (fromRight ? 1 : -1); - - while ((fromRight ? index-- : ++index < length)) { - if (predicate(array[index], index, array)) { - return index; - } - } - return -1; - } - - /** - * The base implementation of `_.indexOf` without `fromIndex` bounds checks. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} value The value to search for. - * @param {number} fromIndex The index to search from. - * @returns {number} Returns the index of the matched value, else `-1`. - */ - function baseIndexOf(array, value, fromIndex) { - return value === value - ? strictIndexOf(array, value, fromIndex) - : baseFindIndex(array, baseIsNaN, fromIndex); - } - - /** - * This function is like `baseIndexOf` except that it accepts a comparator. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} value The value to search for. - * @param {number} fromIndex The index to search from. - * @param {Function} comparator The comparator invoked per element. - * @returns {number} Returns the index of the matched value, else `-1`. - */ - function baseIndexOfWith(array, value, fromIndex, comparator) { - var index = fromIndex - 1, - length = array.length; - - while (++index < length) { - if (comparator(array[index], value)) { - return index; - } - } - return -1; - } - - /** - * The base implementation of `_.isNaN` without support for number objects. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. - */ - function baseIsNaN(value) { - return value !== value; - } - - /** - * The base implementation of `_.mean` and `_.meanBy` without support for - * iteratee shorthands. - * - * @private - * @param {Array} array The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {number} Returns the mean. - */ - function baseMean(array, iteratee) { - var length = array ? array.length : 0; - return length ? (baseSum(array, iteratee) / length) : NAN; - } - - /** - * The base implementation of `_.property` without support for deep paths. - * - * @private - * @param {string} key The key of the property to get. - * @returns {Function} Returns the new accessor function. - */ - function baseProperty(key) { - return function(object) { - return object == null ? undefined : object[key]; - }; - } - - /** - * The base implementation of `_.propertyOf` without support for deep paths. - * - * @private - * @param {Object} object The object to query. - * @returns {Function} Returns the new accessor function. - */ - function basePropertyOf(object) { - return function(key) { - return object == null ? undefined : object[key]; - }; - } - - /** - * The base implementation of `_.reduce` and `_.reduceRight`, without support - * for iteratee shorthands, which iterates over `collection` using `eachFunc`. - * - * @private - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @param {*} accumulator The initial value. - * @param {boolean} initAccum Specify using the first or last element of - * `collection` as the initial value. - * @param {Function} eachFunc The function to iterate over `collection`. - * @returns {*} Returns the accumulated value. - */ - function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) { - eachFunc(collection, function(value, index, collection) { - accumulator = initAccum - ? (initAccum = false, value) - : iteratee(accumulator, value, index, collection); - }); - return accumulator; - } - - /** - * The base implementation of `_.sortBy` which uses `comparer` to define the - * sort order of `array` and replaces criteria objects with their corresponding - * values. - * - * @private - * @param {Array} array The array to sort. - * @param {Function} comparer The function to define sort order. - * @returns {Array} Returns `array`. - */ - function baseSortBy(array, comparer) { - var length = array.length; - - array.sort(comparer); - while (length--) { - array[length] = array[length].value; - } - return array; - } - - /** - * The base implementation of `_.sum` and `_.sumBy` without support for - * iteratee shorthands. - * - * @private - * @param {Array} array The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {number} Returns the sum. - */ - function baseSum(array, iteratee) { - var result, - index = -1, - length = array.length; - - while (++index < length) { - var current = iteratee(array[index]); - if (current !== undefined) { - result = result === undefined ? current : (result + current); - } - } - return result; - } - - /** - * The base implementation of `_.times` without support for iteratee shorthands - * or max array length checks. - * - * @private - * @param {number} n The number of times to invoke `iteratee`. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns the array of results. - */ - function baseTimes(n, iteratee) { - var index = -1, - result = Array(n); - - while (++index < n) { - result[index] = iteratee(index); - } - return result; - } - - /** - * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array - * of key-value pairs for `object` corresponding to the property names of `props`. - * - * @private - * @param {Object} object The object to query. - * @param {Array} props The property names to get values for. - * @returns {Object} Returns the key-value pairs. - */ - function baseToPairs(object, props) { - return arrayMap(props, function(key) { - return [key, object[key]]; - }); - } - - /** - * The base implementation of `_.unary` without support for storing metadata. - * - * @private - * @param {Function} func The function to cap arguments for. - * @returns {Function} Returns the new capped function. - */ - function baseUnary(func) { - return function(value) { - return func(value); - }; - } - - /** - * The base implementation of `_.values` and `_.valuesIn` which creates an - * array of `object` property values corresponding to the property names - * of `props`. - * - * @private - * @param {Object} object The object to query. - * @param {Array} props The property names to get values for. - * @returns {Object} Returns the array of property values. - */ - function baseValues(object, props) { - return arrayMap(props, function(key) { - return object[key]; - }); - } - - /** - * Checks if a `cache` value for `key` exists. - * - * @private - * @param {Object} cache The cache to query. - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ - function cacheHas(cache, key) { - return cache.has(key); - } - - /** - * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol - * that is not found in the character symbols. - * - * @private - * @param {Array} strSymbols The string symbols to inspect. - * @param {Array} chrSymbols The character symbols to find. - * @returns {number} Returns the index of the first unmatched string symbol. - */ - function charsStartIndex(strSymbols, chrSymbols) { - var index = -1, - length = strSymbols.length; - - while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {} - return index; - } - - /** - * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol - * that is not found in the character symbols. - * - * @private - * @param {Array} strSymbols The string symbols to inspect. - * @param {Array} chrSymbols The character symbols to find. - * @returns {number} Returns the index of the last unmatched string symbol. - */ - function charsEndIndex(strSymbols, chrSymbols) { - var index = strSymbols.length; - - while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {} - return index; - } - - /** - * Gets the number of `placeholder` occurrences in `array`. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} placeholder The placeholder to search for. - * @returns {number} Returns the placeholder count. - */ - function countHolders(array, placeholder) { - var length = array.length, - result = 0; - - while (length--) { - if (array[length] === placeholder) { - ++result; - } - } - return result; - } - - /** - * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A - * letters to basic Latin letters. - * - * @private - * @param {string} letter The matched letter to deburr. - * @returns {string} Returns the deburred letter. - */ - var deburrLetter = basePropertyOf(deburredLetters); - - /** - * Used by `_.escape` to convert characters to HTML entities. - * - * @private - * @param {string} chr The matched character to escape. - * @returns {string} Returns the escaped character. - */ - var escapeHtmlChar = basePropertyOf(htmlEscapes); - - /** - * Used by `_.template` to escape characters for inclusion in compiled string literals. - * - * @private - * @param {string} chr The matched character to escape. - * @returns {string} Returns the escaped character. - */ - function escapeStringChar(chr) { - return '\\' + stringEscapes[chr]; - } - - /** - * Gets the value at `key` of `object`. - * - * @private - * @param {Object} [object] The object to query. - * @param {string} key The key of the property to get. - * @returns {*} Returns the property value. - */ - function getValue(object, key) { - return object == null ? undefined : object[key]; - } - - /** - * Checks if `string` contains Unicode symbols. - * - * @private - * @param {string} string The string to inspect. - * @returns {boolean} Returns `true` if a symbol is found, else `false`. - */ - function hasUnicode(string) { - return reHasUnicode.test(string); - } - - /** - * Checks if `string` contains a word composed of Unicode symbols. - * - * @private - * @param {string} string The string to inspect. - * @returns {boolean} Returns `true` if a word is found, else `false`. - */ - function hasUnicodeWord(string) { - return reHasUnicodeWord.test(string); - } - - /** - * Converts `iterator` to an array. - * - * @private - * @param {Object} iterator The iterator to convert. - * @returns {Array} Returns the converted array. - */ - function iteratorToArray(iterator) { - var data, - result = []; - - while (!(data = iterator.next()).done) { - result.push(data.value); - } - return result; - } - - /** - * Converts `map` to its key-value pairs. - * - * @private - * @param {Object} map The map to convert. - * @returns {Array} Returns the key-value pairs. - */ - function mapToArray(map) { - var index = -1, - result = Array(map.size); - - map.forEach(function(value, key) { - result[++index] = [key, value]; - }); - return result; - } - - /** - * Creates a unary function that invokes `func` with its argument transformed. - * - * @private - * @param {Function} func The function to wrap. - * @param {Function} transform The argument transform. - * @returns {Function} Returns the new function. - */ - function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; - } - - /** - * Replaces all `placeholder` elements in `array` with an internal placeholder - * and returns an array of their indexes. - * - * @private - * @param {Array} array The array to modify. - * @param {*} placeholder The placeholder to replace. - * @returns {Array} Returns the new array of placeholder indexes. - */ - function replaceHolders(array, placeholder) { - var index = -1, - length = array.length, - resIndex = 0, - result = []; - - while (++index < length) { - var value = array[index]; - if (value === placeholder || value === PLACEHOLDER) { - array[index] = PLACEHOLDER; - result[resIndex++] = index; - } - } - return result; - } - - /** - * Converts `set` to an array of its values. - * - * @private - * @param {Object} set The set to convert. - * @returns {Array} Returns the values. - */ - function setToArray(set) { - var index = -1, - result = Array(set.size); - - set.forEach(function(value) { - result[++index] = value; - }); - return result; - } - - /** - * Converts `set` to its value-value pairs. - * - * @private - * @param {Object} set The set to convert. - * @returns {Array} Returns the value-value pairs. - */ - function setToPairs(set) { - var index = -1, - result = Array(set.size); - - set.forEach(function(value) { - result[++index] = [value, value]; - }); - return result; - } - - /** - * A specialized version of `_.indexOf` which performs strict equality - * comparisons of values, i.e. `===`. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} value The value to search for. - * @param {number} fromIndex The index to search from. - * @returns {number} Returns the index of the matched value, else `-1`. - */ - function strictIndexOf(array, value, fromIndex) { - var index = fromIndex - 1, - length = array.length; - - while (++index < length) { - if (array[index] === value) { - return index; - } - } - return -1; - } - - /** - * A specialized version of `_.lastIndexOf` which performs strict equality - * comparisons of values, i.e. `===`. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} value The value to search for. - * @param {number} fromIndex The index to search from. - * @returns {number} Returns the index of the matched value, else `-1`. - */ - function strictLastIndexOf(array, value, fromIndex) { - var index = fromIndex + 1; - while (index--) { - if (array[index] === value) { - return index; - } - } - return index; - } - - /** - * Gets the number of symbols in `string`. - * - * @private - * @param {string} string The string to inspect. - * @returns {number} Returns the string size. - */ - function stringSize(string) { - return hasUnicode(string) - ? unicodeSize(string) - : asciiSize(string); - } - - /** - * Converts `string` to an array. - * - * @private - * @param {string} string The string to convert. - * @returns {Array} Returns the converted array. - */ - function stringToArray(string) { - return hasUnicode(string) - ? unicodeToArray(string) - : asciiToArray(string); - } - - /** - * Used by `_.unescape` to convert HTML entities to characters. - * - * @private - * @param {string} chr The matched character to unescape. - * @returns {string} Returns the unescaped character. - */ - var unescapeHtmlChar = basePropertyOf(htmlUnescapes); - - /** - * Gets the size of a Unicode `string`. - * - * @private - * @param {string} string The string inspect. - * @returns {number} Returns the string size. - */ - function unicodeSize(string) { - var result = reUnicode.lastIndex = 0; - while (reUnicode.test(string)) { - ++result; - } - return result; - } - - /** - * Converts a Unicode `string` to an array. - * - * @private - * @param {string} string The string to convert. - * @returns {Array} Returns the converted array. - */ - function unicodeToArray(string) { - return string.match(reUnicode) || []; - } - - /** - * Splits a Unicode `string` into an array of its words. - * - * @private - * @param {string} The string to inspect. - * @returns {Array} Returns the words of `string`. - */ - function unicodeWords(string) { - return string.match(reUnicodeWord) || []; - } - - /*--------------------------------------------------------------------------*/ - - /** - * Create a new pristine `lodash` function using the `context` object. - * - * @static - * @memberOf _ - * @since 1.1.0 - * @category Util - * @param {Object} [context=root] The context object. - * @returns {Function} Returns a new `lodash` function. - * @example - * - * _.mixin({ 'foo': _.constant('foo') }); - * - * var lodash = _.runInContext(); - * lodash.mixin({ 'bar': lodash.constant('bar') }); - * - * _.isFunction(_.foo); - * // => true - * _.isFunction(_.bar); - * // => false - * - * lodash.isFunction(lodash.foo); - * // => false - * lodash.isFunction(lodash.bar); - * // => true - * - * // Create a suped-up `defer` in Node.js. - * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer; - */ - var runInContext = (function runInContext(context) { - context = context ? _.defaults(root.Object(), context, _.pick(root, contextProps)) : root; - - /** Built-in constructor references. */ - var Array = context.Array, - Date = context.Date, - Error = context.Error, - Function = context.Function, - Math = context.Math, - Object = context.Object, - RegExp = context.RegExp, - String = context.String, - TypeError = context.TypeError; - - /** Used for built-in method references. */ - var arrayProto = Array.prototype, - funcProto = Function.prototype, - objectProto = Object.prototype; - - /** Used to detect overreaching core-js shims. */ - var coreJsData = context['__core-js_shared__']; - - /** Used to detect methods masquerading as native. */ - var maskSrcKey = (function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); - return uid ? ('Symbol(src)_1.' + uid) : ''; - }()); - - /** Used to resolve the decompiled source of functions. */ - var funcToString = funcProto.toString; - - /** Used to check objects for own properties. */ - var hasOwnProperty = objectProto.hasOwnProperty; - - /** Used to generate unique IDs. */ - var idCounter = 0; - - /** Used to infer the `Object` constructor. */ - var objectCtorString = funcToString.call(Object); - - /** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ - var objectToString = objectProto.toString; - - /** Used to restore the original `_` reference in `_.noConflict`. */ - var oldDash = root._; - - /** Used to detect if a method is native. */ - var reIsNative = RegExp('^' + - funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' - ); - - /** Built-in value references. */ - var Buffer = moduleExports ? context.Buffer : undefined, - Symbol = context.Symbol, - Uint8Array = context.Uint8Array, - allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined, - getPrototype = overArg(Object.getPrototypeOf, Object), - iteratorSymbol = Symbol ? Symbol.iterator : undefined, - objectCreate = Object.create, - propertyIsEnumerable = objectProto.propertyIsEnumerable, - splice = arrayProto.splice, - spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined; - - var defineProperty = (function() { - try { - var func = getNative(Object, 'defineProperty'); - func({}, '', {}); - return func; - } catch (e) {} - }()); - - /** Mocked built-ins. */ - var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, - ctxNow = Date && Date.now !== root.Date.now && Date.now, - ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout; - - /* Built-in method references for those with the same name as other `lodash` methods. */ - var nativeCeil = Math.ceil, - nativeFloor = Math.floor, - nativeGetSymbols = Object.getOwnPropertySymbols, - nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined, - nativeIsFinite = context.isFinite, - nativeJoin = arrayProto.join, - nativeKeys = overArg(Object.keys, Object), - nativeMax = Math.max, - nativeMin = Math.min, - nativeNow = Date.now, - nativeParseInt = context.parseInt, - nativeRandom = Math.random, - nativeReverse = arrayProto.reverse; - - /* Built-in method references that are verified to be native. */ - var DataView = getNative(context, 'DataView'), - Map = getNative(context, 'Map'), - Promise = getNative(context, 'Promise'), - Set = getNative(context, 'Set'), - WeakMap = getNative(context, 'WeakMap'), - nativeCreate = getNative(Object, 'create'); - - /** Used to store function metadata. */ - var metaMap = WeakMap && new WeakMap; - - /** Used to lookup unminified function names. */ - var realNames = {}; - - /** Used to detect maps, sets, and weakmaps. */ - var dataViewCtorString = toSource(DataView), - mapCtorString = toSource(Map), - promiseCtorString = toSource(Promise), - setCtorString = toSource(Set), - weakMapCtorString = toSource(WeakMap); - - /** Used to convert symbols to primitives and strings. */ - var symbolProto = Symbol ? Symbol.prototype : undefined, - symbolValueOf = symbolProto ? symbolProto.valueOf : undefined, - symbolToString = symbolProto ? symbolProto.toString : undefined; - - /*------------------------------------------------------------------------*/ - - /** - * Creates a `lodash` object which wraps `value` to enable implicit method - * chain sequences. Methods that operate on and return arrays, collections, - * and functions can be chained together. Methods that retrieve a single value - * or may return a primitive value will automatically end the chain sequence - * and return the unwrapped value. Otherwise, the value must be unwrapped - * with `_#value`. - * - * Explicit chain sequences, which must be unwrapped with `_#value`, may be - * enabled using `_.chain`. - * - * The execution of chained methods is lazy, that is, it's deferred until - * `_#value` is implicitly or explicitly called. - * - * Lazy evaluation allows several methods to support shortcut fusion. - * Shortcut fusion is an optimization to merge iteratee calls; this avoids - * the creation of intermediate arrays and can greatly reduce the number of - * iteratee executions. Sections of a chain sequence qualify for shortcut - * fusion if the section is applied to an array of at least `200` elements - * and any iteratees accept only one argument. The heuristic for whether a - * section qualifies for shortcut fusion is subject to change. - * - * Chaining is supported in custom builds as long as the `_#value` method is - * directly or indirectly included in the build. - * - * In addition to lodash methods, wrappers have `Array` and `String` methods. - * - * The wrapper `Array` methods are: - * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift` - * - * The wrapper `String` methods are: - * `replace` and `split` - * - * The wrapper methods that support shortcut fusion are: - * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`, - * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`, - * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray` - * - * The chainable wrapper methods are: - * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`, - * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`, - * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`, - * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`, - * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`, - * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`, - * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`, - * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`, - * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`, - * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`, - * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`, - * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`, - * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`, - * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`, - * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`, - * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`, - * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`, - * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`, - * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`, - * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`, - * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`, - * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`, - * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`, - * `zipObject`, `zipObjectDeep`, and `zipWith` - * - * The wrapper methods that are **not** chainable by default are: - * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`, - * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`, - * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`, - * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`, - * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`, - * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`, - * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`, - * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`, - * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`, - * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`, - * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`, - * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`, - * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`, - * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`, - * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`, - * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`, - * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`, - * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`, - * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`, - * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`, - * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`, - * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`, - * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`, - * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`, - * `upperFirst`, `value`, and `words` - * - * @name _ - * @constructor - * @category Seq - * @param {*} value The value to wrap in a `lodash` instance. - * @returns {Object} Returns the new `lodash` wrapper instance. - * @example - * - * function square(n) { - * return n * n; - * } - * - * var wrapped = _([1, 2, 3]); - * - * // Returns an unwrapped value. - * wrapped.reduce(_.add); - * // => 6 - * - * // Returns a wrapped value. - * var squares = wrapped.map(square); - * - * _.isArray(squares); - * // => false - * - * _.isArray(squares.value()); - * // => true - */ - function lodash(value) { - if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) { - if (value instanceof LodashWrapper) { - return value; - } - if (hasOwnProperty.call(value, '__wrapped__')) { - return wrapperClone(value); - } - } - return new LodashWrapper(value); - } - - /** - * The base implementation of `_.create` without support for assigning - * properties to the created object. - * - * @private - * @param {Object} proto The object to inherit from. - * @returns {Object} Returns the new object. - */ - var baseCreate = (function() { - function object() {} - return function(proto) { - if (!isObject(proto)) { - return {}; - } - if (objectCreate) { - return objectCreate(proto); - } - object.prototype = proto; - var result = new object; - object.prototype = undefined; - return result; - }; - }()); - - /** - * The function whose prototype chain sequence wrappers inherit from. - * - * @private - */ - function baseLodash() { - // No operation performed. - } - - /** - * The base constructor for creating `lodash` wrapper objects. - * - * @private - * @param {*} value The value to wrap. - * @param {boolean} [chainAll] Enable explicit method chain sequences. - */ - function LodashWrapper(value, chainAll) { - this.__wrapped__ = value; - this.__actions__ = []; - this.__chain__ = !!chainAll; - this.__index__ = 0; - this.__values__ = undefined; - } - - /** - * By default, the template delimiters used by lodash are like those in - * embedded Ruby (ERB). Change the following template settings to use - * alternative delimiters. - * - * @static - * @memberOf _ - * @type {Object} - */ - lodash.templateSettings = { - - /** - * Used to detect `data` property values to be HTML-escaped. - * - * @memberOf _.templateSettings - * @type {RegExp} - */ - 'escape': reEscape, - - /** - * Used to detect code to be evaluated. - * - * @memberOf _.templateSettings - * @type {RegExp} - */ - 'evaluate': reEvaluate, - - /** - * Used to detect `data` property values to inject. - * - * @memberOf _.templateSettings - * @type {RegExp} - */ - 'interpolate': reInterpolate, - - /** - * Used to reference the data object in the template text. - * - * @memberOf _.templateSettings - * @type {string} - */ - 'variable': '', - - /** - * Used to import variables into the compiled template. - * - * @memberOf _.templateSettings - * @type {Object} - */ - 'imports': { - - /** - * A reference to the `lodash` function. - * - * @memberOf _.templateSettings.imports - * @type {Function} - */ - '_': lodash - } - }; - - // Ensure wrappers are instances of `baseLodash`. - lodash.prototype = baseLodash.prototype; - lodash.prototype.constructor = lodash; - - LodashWrapper.prototype = baseCreate(baseLodash.prototype); - LodashWrapper.prototype.constructor = LodashWrapper; - - /*------------------------------------------------------------------------*/ - - /** - * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation. - * - * @private - * @constructor - * @param {*} value The value to wrap. - */ - function LazyWrapper(value) { - this.__wrapped__ = value; - this.__actions__ = []; - this.__dir__ = 1; - this.__filtered__ = false; - this.__iteratees__ = []; - this.__takeCount__ = MAX_ARRAY_LENGTH; - this.__views__ = []; - } - - /** - * Creates a clone of the lazy wrapper object. - * - * @private - * @name clone - * @memberOf LazyWrapper - * @returns {Object} Returns the cloned `LazyWrapper` object. - */ - function lazyClone() { - var result = new LazyWrapper(this.__wrapped__); - result.__actions__ = copyArray(this.__actions__); - result.__dir__ = this.__dir__; - result.__filtered__ = this.__filtered__; - result.__iteratees__ = copyArray(this.__iteratees__); - result.__takeCount__ = this.__takeCount__; - result.__views__ = copyArray(this.__views__); - return result; - } - - /** - * Reverses the direction of lazy iteration. - * - * @private - * @name reverse - * @memberOf LazyWrapper - * @returns {Object} Returns the new reversed `LazyWrapper` object. - */ - function lazyReverse() { - if (this.__filtered__) { - var result = new LazyWrapper(this); - result.__dir__ = -1; - result.__filtered__ = true; - } else { - result = this.clone(); - result.__dir__ *= -1; - } - return result; - } - - /** - * Extracts the unwrapped value from its lazy wrapper. - * - * @private - * @name value - * @memberOf LazyWrapper - * @returns {*} Returns the unwrapped value. - */ - function lazyValue() { - var array = this.__wrapped__.value(), - dir = this.__dir__, - isArr = isArray(array), - isRight = dir < 0, - arrLength = isArr ? array.length : 0, - view = getView(0, arrLength, this.__views__), - start = view.start, - end = view.end, - length = end - start, - index = isRight ? end : (start - 1), - iteratees = this.__iteratees__, - iterLength = iteratees.length, - resIndex = 0, - takeCount = nativeMin(length, this.__takeCount__); - - if (!isArr || arrLength < LARGE_ARRAY_SIZE || - (arrLength == length && takeCount == length)) { - return baseWrapperValue(array, this.__actions__); - } - var result = []; - - outer: - while (length-- && resIndex < takeCount) { - index += dir; - - var iterIndex = -1, - value = array[index]; - - while (++iterIndex < iterLength) { - var data = iteratees[iterIndex], - iteratee = data.iteratee, - type = data.type, - computed = iteratee(value); - - if (type == LAZY_MAP_FLAG) { - value = computed; - } else if (!computed) { - if (type == LAZY_FILTER_FLAG) { - continue outer; - } else { - break outer; - } - } - } - result[resIndex++] = value; - } - return result; - } - - // Ensure `LazyWrapper` is an instance of `baseLodash`. - LazyWrapper.prototype = baseCreate(baseLodash.prototype); - LazyWrapper.prototype.constructor = LazyWrapper; - - /*------------------------------------------------------------------------*/ - - /** - * Creates a hash object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ - function Hash(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - - /** - * Removes all key-value entries from the hash. - * - * @private - * @name clear - * @memberOf Hash - */ - function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; - this.size = 0; - } - - /** - * Removes `key` and its value from the hash. - * - * @private - * @name delete - * @memberOf Hash - * @param {Object} hash The hash to modify. - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ - function hashDelete(key) { - var result = this.has(key) && delete this.__data__[key]; - this.size -= result ? 1 : 0; - return result; - } - - /** - * Gets the hash value for `key`. - * - * @private - * @name get - * @memberOf Hash - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ - function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result = data[key]; - return result === HASH_UNDEFINED ? undefined : result; - } - return hasOwnProperty.call(data, key) ? data[key] : undefined; - } - - /** - * Checks if a hash value for `key` exists. - * - * @private - * @name has - * @memberOf Hash - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ - function hashHas(key) { - var data = this.__data__; - return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key); - } - - /** - * Sets the hash `key` to `value`. - * - * @private - * @name set - * @memberOf Hash - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the hash instance. - */ - function hashSet(key, value) { - var data = this.__data__; - this.size += this.has(key) ? 0 : 1; - data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; - return this; - } - - // Add methods to `Hash`. - Hash.prototype.clear = hashClear; - Hash.prototype['delete'] = hashDelete; - Hash.prototype.get = hashGet; - Hash.prototype.has = hashHas; - Hash.prototype.set = hashSet; - - /*------------------------------------------------------------------------*/ - - /** - * Creates an list cache object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ - function ListCache(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - - /** - * Removes all key-value entries from the list cache. - * - * @private - * @name clear - * @memberOf ListCache - */ - function listCacheClear() { - this.__data__ = []; - this.size = 0; - } - - /** - * Removes `key` and its value from the list cache. - * - * @private - * @name delete - * @memberOf ListCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ - function listCacheDelete(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - --this.size; - return true; - } - - /** - * Gets the list cache value for `key`. - * - * @private - * @name get - * @memberOf ListCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ - function listCacheGet(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - return index < 0 ? undefined : data[index][1]; - } - - /** - * Checks if a list cache value for `key` exists. - * - * @private - * @name has - * @memberOf ListCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ - function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; - } - - /** - * Sets the list cache `key` to `value`. - * - * @private - * @name set - * @memberOf ListCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the list cache instance. - */ - function listCacheSet(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - ++this.size; - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; - } - - // Add methods to `ListCache`. - ListCache.prototype.clear = listCacheClear; - ListCache.prototype['delete'] = listCacheDelete; - ListCache.prototype.get = listCacheGet; - ListCache.prototype.has = listCacheHas; - ListCache.prototype.set = listCacheSet; - - /*------------------------------------------------------------------------*/ - - /** - * Creates a map cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ - function MapCache(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - - /** - * Removes all key-value entries from the map. - * - * @private - * @name clear - * @memberOf MapCache - */ - function mapCacheClear() { - this.size = 0; - this.__data__ = { - 'hash': new Hash, - 'map': new (Map || ListCache), - 'string': new Hash - }; - } - - /** - * Removes `key` and its value from the map. - * - * @private - * @name delete - * @memberOf MapCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ - function mapCacheDelete(key) { - var result = getMapData(this, key)['delete'](key); - this.size -= result ? 1 : 0; - return result; - } - - /** - * Gets the map value for `key`. - * - * @private - * @name get - * @memberOf MapCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ - function mapCacheGet(key) { - return getMapData(this, key).get(key); - } - - /** - * Checks if a map value for `key` exists. - * - * @private - * @name has - * @memberOf MapCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ - function mapCacheHas(key) { - return getMapData(this, key).has(key); - } - - /** - * Sets the map `key` to `value`. - * - * @private - * @name set - * @memberOf MapCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the map cache instance. - */ - function mapCacheSet(key, value) { - var data = getMapData(this, key), - size = data.size; - - data.set(key, value); - this.size += data.size == size ? 0 : 1; - return this; - } - - // Add methods to `MapCache`. - MapCache.prototype.clear = mapCacheClear; - MapCache.prototype['delete'] = mapCacheDelete; - MapCache.prototype.get = mapCacheGet; - MapCache.prototype.has = mapCacheHas; - MapCache.prototype.set = mapCacheSet; - - /*------------------------------------------------------------------------*/ - - /** - * - * Creates an array cache object to store unique values. - * - * @private - * @constructor - * @param {Array} [values] The values to cache. - */ - function SetCache(values) { - var index = -1, - length = values ? values.length : 0; - - this.__data__ = new MapCache; - while (++index < length) { - this.add(values[index]); - } - } - - /** - * Adds `value` to the array cache. - * - * @private - * @name add - * @memberOf SetCache - * @alias push - * @param {*} value The value to cache. - * @returns {Object} Returns the cache instance. - */ - function setCacheAdd(value) { - this.__data__.set(value, HASH_UNDEFINED); - return this; - } - - /** - * Checks if `value` is in the array cache. - * - * @private - * @name has - * @memberOf SetCache - * @param {*} value The value to search for. - * @returns {number} Returns `true` if `value` is found, else `false`. - */ - function setCacheHas(value) { - return this.__data__.has(value); - } - - // Add methods to `SetCache`. - SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; - SetCache.prototype.has = setCacheHas; - - /*------------------------------------------------------------------------*/ - - /** - * Creates a stack cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ - function Stack(entries) { - var data = this.__data__ = new ListCache(entries); - this.size = data.size; - } - - /** - * Removes all key-value entries from the stack. - * - * @private - * @name clear - * @memberOf Stack - */ - function stackClear() { - this.__data__ = new ListCache; - this.size = 0; - } - - /** - * Removes `key` and its value from the stack. - * - * @private - * @name delete - * @memberOf Stack - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ - function stackDelete(key) { - var data = this.__data__, - result = data['delete'](key); - - this.size = data.size; - return result; - } - - /** - * Gets the stack value for `key`. - * - * @private - * @name get - * @memberOf Stack - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ - function stackGet(key) { - return this.__data__.get(key); - } - - /** - * Checks if a stack value for `key` exists. - * - * @private - * @name has - * @memberOf Stack - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ - function stackHas(key) { - return this.__data__.has(key); - } - - /** - * Sets the stack `key` to `value`. - * - * @private - * @name set - * @memberOf Stack - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the stack cache instance. - */ - function stackSet(key, value) { - var data = this.__data__; - if (data instanceof ListCache) { - var pairs = data.__data__; - if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { - pairs.push([key, value]); - this.size = ++data.size; - return this; - } - data = this.__data__ = new MapCache(pairs); - } - data.set(key, value); - this.size = data.size; - return this; - } - - // Add methods to `Stack`. - Stack.prototype.clear = stackClear; - Stack.prototype['delete'] = stackDelete; - Stack.prototype.get = stackGet; - Stack.prototype.has = stackHas; - Stack.prototype.set = stackSet; - - /*------------------------------------------------------------------------*/ - - /** - * Creates an array of the enumerable property names of the array-like `value`. - * - * @private - * @param {*} value The value to query. - * @param {boolean} inherited Specify returning inherited property names. - * @returns {Array} Returns the array of property names. - */ - function arrayLikeKeys(value, inherited) { - var isArr = isArray(value), - isArg = !isArr && isArguments(value), - isBuff = !isArr && !isArg && isBuffer(value), - isType = !isArr && !isArg && !isBuff && isTypedArray(value), - skipIndexes = isArr || isArg || isBuff || isType, - result = skipIndexes ? baseTimes(value.length, String) : [], - length = result.length; - - for (var key in value) { - if ((inherited || hasOwnProperty.call(value, key)) && - !(skipIndexes && ( - // Safari 9 has enumerable `arguments.length` in strict mode. - key == 'length' || - // Node.js 0.10 has enumerable non-index properties on buffers. - (isBuff && (key == 'offset' || key == 'parent')) || - // PhantomJS 2 has enumerable non-index properties on typed arrays. - (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || - // Skip index properties. - isIndex(key, length) - ))) { - result.push(key); - } - } - return result; - } - - /** - * A specialized version of `_.sample` for arrays. - * - * @private - * @param {Array} array The array to sample. - * @returns {*} Returns the random element. - */ - function arraySample(array) { - var length = array.length; - return length ? array[baseRandom(0, length - 1)] : undefined; - } - - /** - * A specialized version of `_.sampleSize` for arrays. - * - * @private - * @param {Array} array The array to sample. - * @param {number} n The number of elements to sample. - * @returns {Array} Returns the random elements. - */ - function arraySampleSize(array, n) { - return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length)); - } - - /** - * A specialized version of `_.shuffle` for arrays. - * - * @private - * @param {Array} array The array to shuffle. - * @returns {Array} Returns the new shuffled array. - */ - function arrayShuffle(array) { - return shuffleSelf(copyArray(array)); - } - - /** - * Used by `_.defaults` to customize its `_.assignIn` use. - * - * @private - * @param {*} objValue The destination value. - * @param {*} srcValue The source value. - * @param {string} key The key of the property to assign. - * @param {Object} object The parent object of `objValue`. - * @returns {*} Returns the value to assign. - */ - function assignInDefaults(objValue, srcValue, key, object) { - if (objValue === undefined || - (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) { - return srcValue; - } - return objValue; - } - - /** - * This function is like `assignValue` except that it doesn't assign - * `undefined` values. - * - * @private - * @param {Object} object The object to modify. - * @param {string} key The key of the property to assign. - * @param {*} value The value to assign. - */ - function assignMergeValue(object, key, value) { - if ((value !== undefined && !eq(object[key], value)) || - (value === undefined && !(key in object))) { - baseAssignValue(object, key, value); - } - } - - /** - * Assigns `value` to `key` of `object` if the existing value is not equivalent - * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * for equality comparisons. - * - * @private - * @param {Object} object The object to modify. - * @param {string} key The key of the property to assign. - * @param {*} value The value to assign. - */ - function assignValue(object, key, value) { - var objValue = object[key]; - if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || - (value === undefined && !(key in object))) { - baseAssignValue(object, key, value); - } - } - - /** - * Gets the index at which the `key` is found in `array` of key-value pairs. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} key The key to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - */ - function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; - } - - /** - * Aggregates elements of `collection` on `accumulator` with keys transformed - * by `iteratee` and values set by `setter`. - * - * @private - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} setter The function to set `accumulator` values. - * @param {Function} iteratee The iteratee to transform keys. - * @param {Object} accumulator The initial aggregated object. - * @returns {Function} Returns `accumulator`. - */ - function baseAggregator(collection, setter, iteratee, accumulator) { - baseEach(collection, function(value, key, collection) { - setter(accumulator, value, iteratee(value), collection); - }); - return accumulator; - } - - /** - * The base implementation of `_.assign` without support for multiple sources - * or `customizer` functions. - * - * @private - * @param {Object} object The destination object. - * @param {Object} source The source object. - * @returns {Object} Returns `object`. - */ - function baseAssign(object, source) { - return object && copyObject(source, keys(source), object); - } - - /** - * The base implementation of `assignValue` and `assignMergeValue` without - * value checks. - * - * @private - * @param {Object} object The object to modify. - * @param {string} key The key of the property to assign. - * @param {*} value The value to assign. - */ - function baseAssignValue(object, key, value) { - if (key == '__proto__' && defineProperty) { - defineProperty(object, key, { - 'configurable': true, - 'enumerable': true, - 'value': value, - 'writable': true - }); - } else { - object[key] = value; - } - } - - /** - * The base implementation of `_.at` without support for individual paths. - * - * @private - * @param {Object} object The object to iterate over. - * @param {string[]} paths The property paths of elements to pick. - * @returns {Array} Returns the picked elements. - */ - function baseAt(object, paths) { - var index = -1, - isNil = object == null, - length = paths.length, - result = Array(length); - - while (++index < length) { - result[index] = isNil ? undefined : get(object, paths[index]); - } - return result; - } - - /** - * The base implementation of `_.clamp` which doesn't coerce arguments. - * - * @private - * @param {number} number The number to clamp. - * @param {number} [lower] The lower bound. - * @param {number} upper The upper bound. - * @returns {number} Returns the clamped number. - */ - function baseClamp(number, lower, upper) { - if (number === number) { - if (upper !== undefined) { - number = number <= upper ? number : upper; - } - if (lower !== undefined) { - number = number >= lower ? number : lower; - } - } - return number; - } - - /** - * The base implementation of `_.clone` and `_.cloneDeep` which tracks - * traversed objects. - * - * @private - * @param {*} value The value to clone. - * @param {boolean} [isDeep] Specify a deep clone. - * @param {boolean} [isFull] Specify a clone including symbols. - * @param {Function} [customizer] The function to customize cloning. - * @param {string} [key] The key of `value`. - * @param {Object} [object] The parent object of `value`. - * @param {Object} [stack] Tracks traversed objects and their clone counterparts. - * @returns {*} Returns the cloned value. - */ - function baseClone(value, isDeep, isFull, customizer, key, object, stack) { - var result; - if (customizer) { - result = object ? customizer(value, key, object, stack) : customizer(value); - } - if (result !== undefined) { - return result; - } - if (!isObject(value)) { - return value; - } - var isArr = isArray(value); - if (isArr) { - result = initCloneArray(value); - if (!isDeep) { - return copyArray(value, result); - } - } else { - var tag = getTag(value), - isFunc = tag == funcTag || tag == genTag; - - if (isBuffer(value)) { - return cloneBuffer(value, isDeep); - } - if (tag == objectTag || tag == argsTag || (isFunc && !object)) { - result = initCloneObject(isFunc ? {} : value); - if (!isDeep) { - return copySymbols(value, baseAssign(result, value)); - } - } else { - if (!cloneableTags[tag]) { - return object ? value : {}; - } - result = initCloneByTag(value, tag, baseClone, isDeep); - } - } - // Check for circular references and return its corresponding clone. - stack || (stack = new Stack); - var stacked = stack.get(value); - if (stacked) { - return stacked; - } - stack.set(value, result); - - var props = isArr ? undefined : (isFull ? getAllKeys : keys)(value); - arrayEach(props || value, function(subValue, key) { - if (props) { - key = subValue; - subValue = value[key]; - } - // Recursively populate clone (susceptible to call stack limits). - assignValue(result, key, baseClone(subValue, isDeep, isFull, customizer, key, value, stack)); - }); - return result; - } - - /** - * The base implementation of `_.conforms` which doesn't clone `source`. - * - * @private - * @param {Object} source The object of property predicates to conform to. - * @returns {Function} Returns the new spec function. - */ - function baseConforms(source) { - var props = keys(source); - return function(object) { - return baseConformsTo(object, source, props); - }; - } - - /** - * The base implementation of `_.conformsTo` which accepts `props` to check. - * - * @private - * @param {Object} object The object to inspect. - * @param {Object} source The object of property predicates to conform to. - * @returns {boolean} Returns `true` if `object` conforms, else `false`. - */ - function baseConformsTo(object, source, props) { - var length = props.length; - if (object == null) { - return !length; - } - object = Object(object); - while (length--) { - var key = props[length], - predicate = source[key], - value = object[key]; - - if ((value === undefined && !(key in object)) || !predicate(value)) { - return false; - } - } - return true; - } - - /** - * The base implementation of `_.delay` and `_.defer` which accepts `args` - * to provide to `func`. - * - * @private - * @param {Function} func The function to delay. - * @param {number} wait The number of milliseconds to delay invocation. - * @param {Array} args The arguments to provide to `func`. - * @returns {number|Object} Returns the timer id or timeout object. - */ - function baseDelay(func, wait, args) { - if (typeof func != 'function') { - throw new TypeError(FUNC_ERROR_TEXT); - } - return setTimeout(function() { func.apply(undefined, args); }, wait); - } - - /** - * The base implementation of methods like `_.difference` without support - * for excluding multiple arrays or iteratee shorthands. - * - * @private - * @param {Array} array The array to inspect. - * @param {Array} values The values to exclude. - * @param {Function} [iteratee] The iteratee invoked per element. - * @param {Function} [comparator] The comparator invoked per element. - * @returns {Array} Returns the new array of filtered values. - */ - function baseDifference(array, values, iteratee, comparator) { - var index = -1, - includes = arrayIncludes, - isCommon = true, - length = array.length, - result = [], - valuesLength = values.length; - - if (!length) { - return result; - } - if (iteratee) { - values = arrayMap(values, baseUnary(iteratee)); - } - if (comparator) { - includes = arrayIncludesWith; - isCommon = false; - } - else if (values.length >= LARGE_ARRAY_SIZE) { - includes = cacheHas; - isCommon = false; - values = new SetCache(values); - } - outer: - while (++index < length) { - var value = array[index], - computed = iteratee ? iteratee(value) : value; - - value = (comparator || value !== 0) ? value : 0; - if (isCommon && computed === computed) { - var valuesIndex = valuesLength; - while (valuesIndex--) { - if (values[valuesIndex] === computed) { - continue outer; - } - } - result.push(value); - } - else if (!includes(values, computed, comparator)) { - result.push(value); - } - } - return result; - } - - /** - * The base implementation of `_.forEach` without support for iteratee shorthands. - * - * @private - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array|Object} Returns `collection`. - */ - var baseEach = createBaseEach(baseForOwn); - - /** - * The base implementation of `_.forEachRight` without support for iteratee shorthands. - * - * @private - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array|Object} Returns `collection`. - */ - var baseEachRight = createBaseEach(baseForOwnRight, true); - - /** - * The base implementation of `_.every` without support for iteratee shorthands. - * - * @private - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} predicate The function invoked per iteration. - * @returns {boolean} Returns `true` if all elements pass the predicate check, - * else `false` - */ - function baseEvery(collection, predicate) { - var result = true; - baseEach(collection, function(value, index, collection) { - result = !!predicate(value, index, collection); - return result; - }); - return result; - } - - /** - * The base implementation of methods like `_.max` and `_.min` which accepts a - * `comparator` to determine the extremum value. - * - * @private - * @param {Array} array The array to iterate over. - * @param {Function} iteratee The iteratee invoked per iteration. - * @param {Function} comparator The comparator used to compare values. - * @returns {*} Returns the extremum value. - */ - function baseExtremum(array, iteratee, comparator) { - var index = -1, - length = array.length; - - while (++index < length) { - var value = array[index], - current = iteratee(value); - - if (current != null && (computed === undefined - ? (current === current && !isSymbol(current)) - : comparator(current, computed) - )) { - var computed = current, - result = value; - } - } - return result; - } - - /** - * The base implementation of `_.fill` without an iteratee call guard. - * - * @private - * @param {Array} array The array to fill. - * @param {*} value The value to fill `array` with. - * @param {number} [start=0] The start position. - * @param {number} [end=array.length] The end position. - * @returns {Array} Returns `array`. - */ - function baseFill(array, value, start, end) { - var length = array.length; - - start = toInteger(start); - if (start < 0) { - start = -start > length ? 0 : (length + start); - } - end = (end === undefined || end > length) ? length : toInteger(end); - if (end < 0) { - end += length; - } - end = start > end ? 0 : toLength(end); - while (start < end) { - array[start++] = value; - } - return array; - } - - /** - * The base implementation of `_.filter` without support for iteratee shorthands. - * - * @private - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} predicate The function invoked per iteration. - * @returns {Array} Returns the new filtered array. - */ - function baseFilter(collection, predicate) { - var result = []; - baseEach(collection, function(value, index, collection) { - if (predicate(value, index, collection)) { - result.push(value); - } - }); - return result; - } - - /** - * The base implementation of `_.flatten` with support for restricting flattening. - * - * @private - * @param {Array} array The array to flatten. - * @param {number} depth The maximum recursion depth. - * @param {boolean} [predicate=isFlattenable] The function invoked per iteration. - * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks. - * @param {Array} [result=[]] The initial result value. - * @returns {Array} Returns the new flattened array. - */ - function baseFlatten(array, depth, predicate, isStrict, result) { - var index = -1, - length = array.length; - - predicate || (predicate = isFlattenable); - result || (result = []); - - while (++index < length) { - var value = array[index]; - if (depth > 0 && predicate(value)) { - if (depth > 1) { - // Recursively flatten arrays (susceptible to call stack limits). - baseFlatten(value, depth - 1, predicate, isStrict, result); - } else { - arrayPush(result, value); - } - } else if (!isStrict) { - result[result.length] = value; - } - } - return result; - } - - /** - * The base implementation of `baseForOwn` which iterates over `object` - * properties returned by `keysFunc` and invokes `iteratee` for each property. - * Iteratee functions may exit iteration early by explicitly returning `false`. - * - * @private - * @param {Object} object The object to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @param {Function} keysFunc The function to get the keys of `object`. - * @returns {Object} Returns `object`. - */ - var baseFor = createBaseFor(); - - /** - * This function is like `baseFor` except that it iterates over properties - * in the opposite order. - * - * @private - * @param {Object} object The object to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @param {Function} keysFunc The function to get the keys of `object`. - * @returns {Object} Returns `object`. - */ - var baseForRight = createBaseFor(true); - - /** - * The base implementation of `_.forOwn` without support for iteratee shorthands. - * - * @private - * @param {Object} object The object to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Object} Returns `object`. - */ - function baseForOwn(object, iteratee) { - return object && baseFor(object, iteratee, keys); - } - - /** - * The base implementation of `_.forOwnRight` without support for iteratee shorthands. - * - * @private - * @param {Object} object The object to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Object} Returns `object`. - */ - function baseForOwnRight(object, iteratee) { - return object && baseForRight(object, iteratee, keys); - } - - /** - * The base implementation of `_.functions` which creates an array of - * `object` function property names filtered from `props`. - * - * @private - * @param {Object} object The object to inspect. - * @param {Array} props The property names to filter. - * @returns {Array} Returns the function names. - */ - function baseFunctions(object, props) { - return arrayFilter(props, function(key) { - return isFunction(object[key]); - }); - } - - /** - * The base implementation of `_.get` without support for default values. - * - * @private - * @param {Object} object The object to query. - * @param {Array|string} path The path of the property to get. - * @returns {*} Returns the resolved value. - */ - function baseGet(object, path) { - path = isKey(path, object) ? [path] : castPath(path); - - var index = 0, - length = path.length; - - while (object != null && index < length) { - object = object[toKey(path[index++])]; - } - return (index && index == length) ? object : undefined; - } - - /** - * The base implementation of `getAllKeys` and `getAllKeysIn` which uses - * `keysFunc` and `symbolsFunc` to get the enumerable property names and - * symbols of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {Function} keysFunc The function to get the keys of `object`. - * @param {Function} symbolsFunc The function to get the symbols of `object`. - * @returns {Array} Returns the array of property names and symbols. - */ - function baseGetAllKeys(object, keysFunc, symbolsFunc) { - var result = keysFunc(object); - return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); - } - - /** - * The base implementation of `getTag`. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the `toStringTag`. - */ - function baseGetTag(value) { - return objectToString.call(value); - } - - /** - * The base implementation of `_.gt` which doesn't coerce arguments. - * - * @private - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @returns {boolean} Returns `true` if `value` is greater than `other`, - * else `false`. - */ - function baseGt(value, other) { - return value > other; - } - - /** - * The base implementation of `_.has` without support for deep paths. - * - * @private - * @param {Object} [object] The object to query. - * @param {Array|string} key The key to check. - * @returns {boolean} Returns `true` if `key` exists, else `false`. - */ - function baseHas(object, key) { - return object != null && hasOwnProperty.call(object, key); - } - - /** - * The base implementation of `_.hasIn` without support for deep paths. - * - * @private - * @param {Object} [object] The object to query. - * @param {Array|string} key The key to check. - * @returns {boolean} Returns `true` if `key` exists, else `false`. - */ - function baseHasIn(object, key) { - return object != null && key in Object(object); - } - - /** - * The base implementation of `_.inRange` which doesn't coerce arguments. - * - * @private - * @param {number} number The number to check. - * @param {number} start The start of the range. - * @param {number} end The end of the range. - * @returns {boolean} Returns `true` if `number` is in the range, else `false`. - */ - function baseInRange(number, start, end) { - return number >= nativeMin(start, end) && number < nativeMax(start, end); - } - - /** - * The base implementation of methods like `_.intersection`, without support - * for iteratee shorthands, that accepts an array of arrays to inspect. - * - * @private - * @param {Array} arrays The arrays to inspect. - * @param {Function} [iteratee] The iteratee invoked per element. - * @param {Function} [comparator] The comparator invoked per element. - * @returns {Array} Returns the new array of shared values. - */ - function baseIntersection(arrays, iteratee, comparator) { - var includes = comparator ? arrayIncludesWith : arrayIncludes, - length = arrays[0].length, - othLength = arrays.length, - othIndex = othLength, - caches = Array(othLength), - maxLength = Infinity, - result = []; - - while (othIndex--) { - var array = arrays[othIndex]; - if (othIndex && iteratee) { - array = arrayMap(array, baseUnary(iteratee)); - } - maxLength = nativeMin(array.length, maxLength); - caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120)) - ? new SetCache(othIndex && array) - : undefined; - } - array = arrays[0]; - - var index = -1, - seen = caches[0]; - - outer: - while (++index < length && result.length < maxLength) { - var value = array[index], - computed = iteratee ? iteratee(value) : value; - - value = (comparator || value !== 0) ? value : 0; - if (!(seen - ? cacheHas(seen, computed) - : includes(result, computed, comparator) - )) { - othIndex = othLength; - while (--othIndex) { - var cache = caches[othIndex]; - if (!(cache - ? cacheHas(cache, computed) - : includes(arrays[othIndex], computed, comparator)) - ) { - continue outer; - } - } - if (seen) { - seen.push(computed); - } - result.push(value); - } - } - return result; - } - - /** - * The base implementation of `_.invert` and `_.invertBy` which inverts - * `object` with values transformed by `iteratee` and set by `setter`. - * - * @private - * @param {Object} object The object to iterate over. - * @param {Function} setter The function to set `accumulator` values. - * @param {Function} iteratee The iteratee to transform values. - * @param {Object} accumulator The initial inverted object. - * @returns {Function} Returns `accumulator`. - */ - function baseInverter(object, setter, iteratee, accumulator) { - baseForOwn(object, function(value, key, object) { - setter(accumulator, iteratee(value), key, object); - }); - return accumulator; - } - - /** - * The base implementation of `_.invoke` without support for individual - * method arguments. - * - * @private - * @param {Object} object The object to query. - * @param {Array|string} path The path of the method to invoke. - * @param {Array} args The arguments to invoke the method with. - * @returns {*} Returns the result of the invoked method. - */ - function baseInvoke(object, path, args) { - if (!isKey(path, object)) { - path = castPath(path); - object = parent(object, path); - path = last(path); - } - var func = object == null ? object : object[toKey(path)]; - return func == null ? undefined : apply(func, object, args); - } - - /** - * The base implementation of `_.isArguments`. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an `arguments` object, - */ - function baseIsArguments(value) { - return isObjectLike(value) && objectToString.call(value) == argsTag; - } - - /** - * The base implementation of `_.isArrayBuffer` without Node.js optimizations. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`. - */ - function baseIsArrayBuffer(value) { - return isObjectLike(value) && objectToString.call(value) == arrayBufferTag; - } - - /** - * The base implementation of `_.isDate` without Node.js optimizations. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a date object, else `false`. - */ - function baseIsDate(value) { - return isObjectLike(value) && objectToString.call(value) == dateTag; - } - - /** - * The base implementation of `_.isEqual` which supports partial comparisons - * and tracks traversed objects. - * - * @private - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @param {Function} [customizer] The function to customize comparisons. - * @param {boolean} [bitmask] The bitmask of comparison flags. - * The bitmask may be composed of the following flags: - * 1 - Unordered comparison - * 2 - Partial comparison - * @param {Object} [stack] Tracks traversed `value` and `other` objects. - * @returns {boolean} Returns `true` if the values are equivalent, else `false`. - */ - function baseIsEqual(value, other, customizer, bitmask, stack) { - if (value === other) { - return true; - } - if (value == null || other == null || (!isObject(value) && !isObjectLike(other))) { - return value !== value && other !== other; - } - return baseIsEqualDeep(value, other, baseIsEqual, customizer, bitmask, stack); - } - - /** - * A specialized version of `baseIsEqual` for arrays and objects which performs - * deep comparisons and tracks traversed objects enabling objects with circular - * references to be compared. - * - * @private - * @param {Object} object The object to compare. - * @param {Object} other The other object to compare. - * @param {Function} equalFunc The function to determine equivalents of values. - * @param {Function} [customizer] The function to customize comparisons. - * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual` - * for more details. - * @param {Object} [stack] Tracks traversed `object` and `other` objects. - * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. - */ - function baseIsEqualDeep(object, other, equalFunc, customizer, bitmask, stack) { - var objIsArr = isArray(object), - othIsArr = isArray(other), - objTag = arrayTag, - othTag = arrayTag; - - if (!objIsArr) { - objTag = getTag(object); - objTag = objTag == argsTag ? objectTag : objTag; - } - if (!othIsArr) { - othTag = getTag(other); - othTag = othTag == argsTag ? objectTag : othTag; - } - var objIsObj = objTag == objectTag, - othIsObj = othTag == objectTag, - isSameTag = objTag == othTag; - - if (isSameTag && isBuffer(object)) { - if (!isBuffer(other)) { - return false; - } - objIsArr = true; - objIsObj = false; - } - if (isSameTag && !objIsObj) { - stack || (stack = new Stack); - return (objIsArr || isTypedArray(object)) - ? equalArrays(object, other, equalFunc, customizer, bitmask, stack) - : equalByTag(object, other, objTag, equalFunc, customizer, bitmask, stack); - } - if (!(bitmask & PARTIAL_COMPARE_FLAG)) { - var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), - othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); - - if (objIsWrapped || othIsWrapped) { - var objUnwrapped = objIsWrapped ? object.value() : object, - othUnwrapped = othIsWrapped ? other.value() : other; - - stack || (stack = new Stack); - return equalFunc(objUnwrapped, othUnwrapped, customizer, bitmask, stack); - } - } - if (!isSameTag) { - return false; - } - stack || (stack = new Stack); - return equalObjects(object, other, equalFunc, customizer, bitmask, stack); - } - - /** - * The base implementation of `_.isMap` without Node.js optimizations. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a map, else `false`. - */ - function baseIsMap(value) { - return isObjectLike(value) && getTag(value) == mapTag; - } - - /** - * The base implementation of `_.isMatch` without support for iteratee shorthands. - * - * @private - * @param {Object} object The object to inspect. - * @param {Object} source The object of property values to match. - * @param {Array} matchData The property names, values, and compare flags to match. - * @param {Function} [customizer] The function to customize comparisons. - * @returns {boolean} Returns `true` if `object` is a match, else `false`. - */ - function baseIsMatch(object, source, matchData, customizer) { - var index = matchData.length, - length = index, - noCustomizer = !customizer; - - if (object == null) { - return !length; - } - object = Object(object); - while (index--) { - var data = matchData[index]; - if ((noCustomizer && data[2]) - ? data[1] !== object[data[0]] - : !(data[0] in object) - ) { - return false; - } - } - while (++index < length) { - data = matchData[index]; - var key = data[0], - objValue = object[key], - srcValue = data[1]; - - if (noCustomizer && data[2]) { - if (objValue === undefined && !(key in object)) { - return false; - } - } else { - var stack = new Stack; - if (customizer) { - var result = customizer(objValue, srcValue, key, object, source, stack); - } - if (!(result === undefined - ? baseIsEqual(srcValue, objValue, customizer, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG, stack) - : result - )) { - return false; - } - } - } - return true; - } - - /** - * The base implementation of `_.isNative` without bad shim checks. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a native function, - * else `false`. - */ - function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - var pattern = isFunction(value) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); - } - - /** - * The base implementation of `_.isRegExp` without Node.js optimizations. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a regexp, else `false`. - */ - function baseIsRegExp(value) { - return isObject(value) && objectToString.call(value) == regexpTag; - } - - /** - * The base implementation of `_.isSet` without Node.js optimizations. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a set, else `false`. - */ - function baseIsSet(value) { - return isObjectLike(value) && getTag(value) == setTag; - } - - /** - * The base implementation of `_.isTypedArray` without Node.js optimizations. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. - */ - function baseIsTypedArray(value) { - return isObjectLike(value) && - isLength(value.length) && !!typedArrayTags[objectToString.call(value)]; - } - - /** - * The base implementation of `_.iteratee`. - * - * @private - * @param {*} [value=_.identity] The value to convert to an iteratee. - * @returns {Function} Returns the iteratee. - */ - function baseIteratee(value) { - // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9. - // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details. - if (typeof value == 'function') { - return value; - } - if (value == null) { - return identity; - } - if (typeof value == 'object') { - return isArray(value) - ? baseMatchesProperty(value[0], value[1]) - : baseMatches(value); - } - return property(value); - } - - /** - * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names. - */ - function baseKeys(object) { - if (!isPrototype(object)) { - return nativeKeys(object); - } - var result = []; - for (var key in Object(object)) { - if (hasOwnProperty.call(object, key) && key != 'constructor') { - result.push(key); - } - } - return result; - } - - /** - * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names. - */ - function baseKeysIn(object) { - if (!isObject(object)) { - return nativeKeysIn(object); - } - var isProto = isPrototype(object), - result = []; - - for (var key in object) { - if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { - result.push(key); - } - } - return result; - } - - /** - * The base implementation of `_.lt` which doesn't coerce arguments. - * - * @private - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @returns {boolean} Returns `true` if `value` is less than `other`, - * else `false`. - */ - function baseLt(value, other) { - return value < other; - } - - /** - * The base implementation of `_.map` without support for iteratee shorthands. - * - * @private - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns the new mapped array. - */ - function baseMap(collection, iteratee) { - var index = -1, - result = isArrayLike(collection) ? Array(collection.length) : []; - - baseEach(collection, function(value, key, collection) { - result[++index] = iteratee(value, key, collection); - }); - return result; - } - - /** - * The base implementation of `_.matches` which doesn't clone `source`. - * - * @private - * @param {Object} source The object of property values to match. - * @returns {Function} Returns the new spec function. - */ - function baseMatches(source) { - var matchData = getMatchData(source); - if (matchData.length == 1 && matchData[0][2]) { - return matchesStrictComparable(matchData[0][0], matchData[0][1]); - } - return function(object) { - return object === source || baseIsMatch(object, source, matchData); - }; - } - - /** - * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`. - * - * @private - * @param {string} path The path of the property to get. - * @param {*} srcValue The value to match. - * @returns {Function} Returns the new spec function. - */ - function baseMatchesProperty(path, srcValue) { - if (isKey(path) && isStrictComparable(srcValue)) { - return matchesStrictComparable(toKey(path), srcValue); - } - return function(object) { - var objValue = get(object, path); - return (objValue === undefined && objValue === srcValue) - ? hasIn(object, path) - : baseIsEqual(srcValue, objValue, undefined, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG); - }; - } - - /** - * The base implementation of `_.merge` without support for multiple sources. - * - * @private - * @param {Object} object The destination object. - * @param {Object} source The source object. - * @param {number} srcIndex The index of `source`. - * @param {Function} [customizer] The function to customize merged values. - * @param {Object} [stack] Tracks traversed source values and their merged - * counterparts. - */ - function baseMerge(object, source, srcIndex, customizer, stack) { - if (object === source) { - return; - } - baseFor(source, function(srcValue, key) { - if (isObject(srcValue)) { - stack || (stack = new Stack); - baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack); - } - else { - var newValue = customizer - ? customizer(object[key], srcValue, (key + ''), object, source, stack) - : undefined; - - if (newValue === undefined) { - newValue = srcValue; - } - assignMergeValue(object, key, newValue); - } - }, keysIn); - } - - /** - * A specialized version of `baseMerge` for arrays and objects which performs - * deep merges and tracks traversed objects enabling objects with circular - * references to be merged. - * - * @private - * @param {Object} object The destination object. - * @param {Object} source The source object. - * @param {string} key The key of the value to merge. - * @param {number} srcIndex The index of `source`. - * @param {Function} mergeFunc The function to merge values. - * @param {Function} [customizer] The function to customize assigned values. - * @param {Object} [stack] Tracks traversed source values and their merged - * counterparts. - */ - function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) { - var objValue = object[key], - srcValue = source[key], - stacked = stack.get(srcValue); - - if (stacked) { - assignMergeValue(object, key, stacked); - return; - } - var newValue = customizer - ? customizer(objValue, srcValue, (key + ''), object, source, stack) - : undefined; - - var isCommon = newValue === undefined; - - if (isCommon) { - var isArr = isArray(srcValue), - isBuff = !isArr && isBuffer(srcValue), - isTyped = !isArr && !isBuff && isTypedArray(srcValue); - - newValue = srcValue; - if (isArr || isBuff || isTyped) { - if (isArray(objValue)) { - newValue = objValue; - } - else if (isArrayLikeObject(objValue)) { - newValue = copyArray(objValue); - } - else if (isBuff) { - isCommon = false; - newValue = cloneBuffer(srcValue, true); - } - else if (isTyped) { - isCommon = false; - newValue = cloneTypedArray(srcValue, true); - } - else { - newValue = []; - } - } - else if (isPlainObject(srcValue) || isArguments(srcValue)) { - newValue = objValue; - if (isArguments(objValue)) { - newValue = toPlainObject(objValue); - } - else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) { - newValue = initCloneObject(srcValue); - } - } - else { - isCommon = false; - } - } - if (isCommon) { - // Recursively merge objects and arrays (susceptible to call stack limits). - stack.set(srcValue, newValue); - mergeFunc(newValue, srcValue, srcIndex, customizer, stack); - stack['delete'](srcValue); - } - assignMergeValue(object, key, newValue); - } - - /** - * The base implementation of `_.nth` which doesn't coerce arguments. - * - * @private - * @param {Array} array The array to query. - * @param {number} n The index of the element to return. - * @returns {*} Returns the nth element of `array`. - */ - function baseNth(array, n) { - var length = array.length; - if (!length) { - return; - } - n += n < 0 ? length : 0; - return isIndex(n, length) ? array[n] : undefined; - } - - /** - * The base implementation of `_.orderBy` without param guards. - * - * @private - * @param {Array|Object} collection The collection to iterate over. - * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by. - * @param {string[]} orders The sort orders of `iteratees`. - * @returns {Array} Returns the new sorted array. - */ - function baseOrderBy(collection, iteratees, orders) { - var index = -1; - iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(getIteratee())); - - var result = baseMap(collection, function(value, key, collection) { - var criteria = arrayMap(iteratees, function(iteratee) { - return iteratee(value); - }); - return { 'criteria': criteria, 'index': ++index, 'value': value }; - }); - - return baseSortBy(result, function(object, other) { - return compareMultiple(object, other, orders); - }); - } - - /** - * The base implementation of `_.pick` without support for individual - * property identifiers. - * - * @private - * @param {Object} object The source object. - * @param {string[]} props The property identifiers to pick. - * @returns {Object} Returns the new object. - */ - function basePick(object, props) { - object = Object(object); - return basePickBy(object, props, function(value, key) { - return key in object; - }); - } - - /** - * The base implementation of `_.pickBy` without support for iteratee shorthands. - * - * @private - * @param {Object} object The source object. - * @param {string[]} props The property identifiers to pick from. - * @param {Function} predicate The function invoked per property. - * @returns {Object} Returns the new object. - */ - function basePickBy(object, props, predicate) { - var index = -1, - length = props.length, - result = {}; - - while (++index < length) { - var key = props[index], - value = object[key]; - - if (predicate(value, key)) { - baseAssignValue(result, key, value); - } - } - return result; - } - - /** - * A specialized version of `baseProperty` which supports deep paths. - * - * @private - * @param {Array|string} path The path of the property to get. - * @returns {Function} Returns the new accessor function. - */ - function basePropertyDeep(path) { - return function(object) { - return baseGet(object, path); - }; - } - - /** - * The base implementation of `_.pullAllBy` without support for iteratee - * shorthands. - * - * @private - * @param {Array} array The array to modify. - * @param {Array} values The values to remove. - * @param {Function} [iteratee] The iteratee invoked per element. - * @param {Function} [comparator] The comparator invoked per element. - * @returns {Array} Returns `array`. - */ - function basePullAll(array, values, iteratee, comparator) { - var indexOf = comparator ? baseIndexOfWith : baseIndexOf, - index = -1, - length = values.length, - seen = array; - - if (array === values) { - values = copyArray(values); - } - if (iteratee) { - seen = arrayMap(array, baseUnary(iteratee)); - } - while (++index < length) { - var fromIndex = 0, - value = values[index], - computed = iteratee ? iteratee(value) : value; - - while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) { - if (seen !== array) { - splice.call(seen, fromIndex, 1); - } - splice.call(array, fromIndex, 1); - } - } - return array; - } - - /** - * The base implementation of `_.pullAt` without support for individual - * indexes or capturing the removed elements. - * - * @private - * @param {Array} array The array to modify. - * @param {number[]} indexes The indexes of elements to remove. - * @returns {Array} Returns `array`. - */ - function basePullAt(array, indexes) { - var length = array ? indexes.length : 0, - lastIndex = length - 1; - - while (length--) { - var index = indexes[length]; - if (length == lastIndex || index !== previous) { - var previous = index; - if (isIndex(index)) { - splice.call(array, index, 1); - } - else if (!isKey(index, array)) { - var path = castPath(index), - object = parent(array, path); - - if (object != null) { - delete object[toKey(last(path))]; - } - } - else { - delete array[toKey(index)]; - } - } - } - return array; - } - - /** - * The base implementation of `_.random` without support for returning - * floating-point numbers. - * - * @private - * @param {number} lower The lower bound. - * @param {number} upper The upper bound. - * @returns {number} Returns the random number. - */ - function baseRandom(lower, upper) { - return lower + nativeFloor(nativeRandom() * (upper - lower + 1)); - } - - /** - * The base implementation of `_.range` and `_.rangeRight` which doesn't - * coerce arguments. - * - * @private - * @param {number} start The start of the range. - * @param {number} end The end of the range. - * @param {number} step The value to increment or decrement by. - * @param {boolean} [fromRight] Specify iterating from right to left. - * @returns {Array} Returns the range of numbers. - */ - function baseRange(start, end, step, fromRight) { - var index = -1, - length = nativeMax(nativeCeil((end - start) / (step || 1)), 0), - result = Array(length); - - while (length--) { - result[fromRight ? length : ++index] = start; - start += step; - } - return result; - } - - /** - * The base implementation of `_.repeat` which doesn't coerce arguments. - * - * @private - * @param {string} string The string to repeat. - * @param {number} n The number of times to repeat the string. - * @returns {string} Returns the repeated string. - */ - function baseRepeat(string, n) { - var result = ''; - if (!string || n < 1 || n > MAX_SAFE_INTEGER) { - return result; - } - // Leverage the exponentiation by squaring algorithm for a faster repeat. - // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details. - do { - if (n % 2) { - result += string; - } - n = nativeFloor(n / 2); - if (n) { - string += string; - } - } while (n); - - return result; - } - - /** - * The base implementation of `_.rest` which doesn't validate or coerce arguments. - * - * @private - * @param {Function} func The function to apply a rest parameter to. - * @param {number} [start=func.length-1] The start position of the rest parameter. - * @returns {Function} Returns the new function. - */ - function baseRest(func, start) { - return setToString(overRest(func, start, identity), func + ''); - } - - /** - * The base implementation of `_.sample`. - * - * @private - * @param {Array|Object} collection The collection to sample. - * @returns {*} Returns the random element. - */ - function baseSample(collection) { - return arraySample(values(collection)); - } - - /** - * The base implementation of `_.sampleSize` without param guards. - * - * @private - * @param {Array|Object} collection The collection to sample. - * @param {number} n The number of elements to sample. - * @returns {Array} Returns the random elements. - */ - function baseSampleSize(collection, n) { - var array = values(collection); - return shuffleSelf(array, baseClamp(n, 0, array.length)); - } - - /** - * The base implementation of `_.set`. - * - * @private - * @param {Object} object The object to modify. - * @param {Array|string} path The path of the property to set. - * @param {*} value The value to set. - * @param {Function} [customizer] The function to customize path creation. - * @returns {Object} Returns `object`. - */ - function baseSet(object, path, value, customizer) { - if (!isObject(object)) { - return object; - } - path = isKey(path, object) ? [path] : castPath(path); - - var index = -1, - length = path.length, - lastIndex = length - 1, - nested = object; - - while (nested != null && ++index < length) { - var key = toKey(path[index]), - newValue = value; - - if (index != lastIndex) { - var objValue = nested[key]; - newValue = customizer ? customizer(objValue, key, nested) : undefined; - if (newValue === undefined) { - newValue = isObject(objValue) - ? objValue - : (isIndex(path[index + 1]) ? [] : {}); - } - } - assignValue(nested, key, newValue); - nested = nested[key]; - } - return object; - } - - /** - * The base implementation of `setData` without support for hot loop shorting. - * - * @private - * @param {Function} func The function to associate metadata with. - * @param {*} data The metadata. - * @returns {Function} Returns `func`. - */ - var baseSetData = !metaMap ? identity : function(func, data) { - metaMap.set(func, data); - return func; - }; - - /** - * The base implementation of `setToString` without support for hot loop shorting. - * - * @private - * @param {Function} func The function to modify. - * @param {Function} string The `toString` result. - * @returns {Function} Returns `func`. - */ - var baseSetToString = !defineProperty ? identity : function(func, string) { - return defineProperty(func, 'toString', { - 'configurable': true, - 'enumerable': false, - 'value': constant(string), - 'writable': true - }); - }; - - /** - * The base implementation of `_.shuffle`. - * - * @private - * @param {Array|Object} collection The collection to shuffle. - * @returns {Array} Returns the new shuffled array. - */ - function baseShuffle(collection) { - return shuffleSelf(values(collection)); - } - - /** - * The base implementation of `_.slice` without an iteratee call guard. - * - * @private - * @param {Array} array The array to slice. - * @param {number} [start=0] The start position. - * @param {number} [end=array.length] The end position. - * @returns {Array} Returns the slice of `array`. - */ - function baseSlice(array, start, end) { - var index = -1, - length = array.length; - - if (start < 0) { - start = -start > length ? 0 : (length + start); - } - end = end > length ? length : end; - if (end < 0) { - end += length; - } - length = start > end ? 0 : ((end - start) >>> 0); - start >>>= 0; - - var result = Array(length); - while (++index < length) { - result[index] = array[index + start]; - } - return result; - } - - /** - * The base implementation of `_.some` without support for iteratee shorthands. - * - * @private - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} predicate The function invoked per iteration. - * @returns {boolean} Returns `true` if any element passes the predicate check, - * else `false`. - */ - function baseSome(collection, predicate) { - var result; - - baseEach(collection, function(value, index, collection) { - result = predicate(value, index, collection); - return !result; - }); - return !!result; - } - - /** - * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which - * performs a binary search of `array` to determine the index at which `value` - * should be inserted into `array` in order to maintain its sort order. - * - * @private - * @param {Array} array The sorted array to inspect. - * @param {*} value The value to evaluate. - * @param {boolean} [retHighest] Specify returning the highest qualified index. - * @returns {number} Returns the index at which `value` should be inserted - * into `array`. - */ - function baseSortedIndex(array, value, retHighest) { - var low = 0, - high = array ? array.length : low; - - if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) { - while (low < high) { - var mid = (low + high) >>> 1, - computed = array[mid]; - - if (computed !== null && !isSymbol(computed) && - (retHighest ? (computed <= value) : (computed < value))) { - low = mid + 1; - } else { - high = mid; - } - } - return high; - } - return baseSortedIndexBy(array, value, identity, retHighest); - } - - /** - * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy` - * which invokes `iteratee` for `value` and each element of `array` to compute - * their sort ranking. The iteratee is invoked with one argument; (value). - * - * @private - * @param {Array} array The sorted array to inspect. - * @param {*} value The value to evaluate. - * @param {Function} iteratee The iteratee invoked per element. - * @param {boolean} [retHighest] Specify returning the highest qualified index. - * @returns {number} Returns the index at which `value` should be inserted - * into `array`. - */ - function baseSortedIndexBy(array, value, iteratee, retHighest) { - value = iteratee(value); - - var low = 0, - high = array ? array.length : 0, - valIsNaN = value !== value, - valIsNull = value === null, - valIsSymbol = isSymbol(value), - valIsUndefined = value === undefined; - - while (low < high) { - var mid = nativeFloor((low + high) / 2), - computed = iteratee(array[mid]), - othIsDefined = computed !== undefined, - othIsNull = computed === null, - othIsReflexive = computed === computed, - othIsSymbol = isSymbol(computed); - - if (valIsNaN) { - var setLow = retHighest || othIsReflexive; - } else if (valIsUndefined) { - setLow = othIsReflexive && (retHighest || othIsDefined); - } else if (valIsNull) { - setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull); - } else if (valIsSymbol) { - setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol); - } else if (othIsNull || othIsSymbol) { - setLow = false; - } else { - setLow = retHighest ? (computed <= value) : (computed < value); - } - if (setLow) { - low = mid + 1; - } else { - high = mid; - } - } - return nativeMin(high, MAX_ARRAY_INDEX); - } - - /** - * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without - * support for iteratee shorthands. - * - * @private - * @param {Array} array The array to inspect. - * @param {Function} [iteratee] The iteratee invoked per element. - * @returns {Array} Returns the new duplicate free array. - */ - function baseSortedUniq(array, iteratee) { - var index = -1, - length = array.length, - resIndex = 0, - result = []; - - while (++index < length) { - var value = array[index], - computed = iteratee ? iteratee(value) : value; - - if (!index || !eq(computed, seen)) { - var seen = computed; - result[resIndex++] = value === 0 ? 0 : value; - } - } - return result; - } - - /** - * The base implementation of `_.toNumber` which doesn't ensure correct - * conversions of binary, hexadecimal, or octal string values. - * - * @private - * @param {*} value The value to process. - * @returns {number} Returns the number. - */ - function baseToNumber(value) { - if (typeof value == 'number') { - return value; - } - if (isSymbol(value)) { - return NAN; - } - return +value; - } - - /** - * The base implementation of `_.toString` which doesn't convert nullish - * values to empty strings. - * - * @private - * @param {*} value The value to process. - * @returns {string} Returns the string. - */ - function baseToString(value) { - // Exit early for strings to avoid a performance hit in some environments. - if (typeof value == 'string') { - return value; - } - if (isArray(value)) { - // Recursively convert values (susceptible to call stack limits). - return arrayMap(value, baseToString) + ''; - } - if (isSymbol(value)) { - return symbolToString ? symbolToString.call(value) : ''; - } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; - } - - /** - * The base implementation of `_.uniqBy` without support for iteratee shorthands. - * - * @private - * @param {Array} array The array to inspect. - * @param {Function} [iteratee] The iteratee invoked per element. - * @param {Function} [comparator] The comparator invoked per element. - * @returns {Array} Returns the new duplicate free array. - */ - function baseUniq(array, iteratee, comparator) { - var index = -1, - includes = arrayIncludes, - length = array.length, - isCommon = true, - result = [], - seen = result; - - if (comparator) { - isCommon = false; - includes = arrayIncludesWith; - } - else if (length >= LARGE_ARRAY_SIZE) { - var set = iteratee ? null : createSet(array); - if (set) { - return setToArray(set); - } - isCommon = false; - includes = cacheHas; - seen = new SetCache; - } - else { - seen = iteratee ? [] : result; - } - outer: - while (++index < length) { - var value = array[index], - computed = iteratee ? iteratee(value) : value; - - value = (comparator || value !== 0) ? value : 0; - if (isCommon && computed === computed) { - var seenIndex = seen.length; - while (seenIndex--) { - if (seen[seenIndex] === computed) { - continue outer; - } - } - if (iteratee) { - seen.push(computed); - } - result.push(value); - } - else if (!includes(seen, computed, comparator)) { - if (seen !== result) { - seen.push(computed); - } - result.push(value); - } - } - return result; - } - - /** - * The base implementation of `_.unset`. - * - * @private - * @param {Object} object The object to modify. - * @param {Array|string} path The path of the property to unset. - * @returns {boolean} Returns `true` if the property is deleted, else `false`. - */ - function baseUnset(object, path) { - path = isKey(path, object) ? [path] : castPath(path); - object = parent(object, path); - - var key = toKey(last(path)); - return !(object != null && hasOwnProperty.call(object, key)) || delete object[key]; - } - - /** - * The base implementation of `_.update`. - * - * @private - * @param {Object} object The object to modify. - * @param {Array|string} path The path of the property to update. - * @param {Function} updater The function to produce the updated value. - * @param {Function} [customizer] The function to customize path creation. - * @returns {Object} Returns `object`. - */ - function baseUpdate(object, path, updater, customizer) { - return baseSet(object, path, updater(baseGet(object, path)), customizer); - } - - /** - * The base implementation of methods like `_.dropWhile` and `_.takeWhile` - * without support for iteratee shorthands. - * - * @private - * @param {Array} array The array to query. - * @param {Function} predicate The function invoked per iteration. - * @param {boolean} [isDrop] Specify dropping elements instead of taking them. - * @param {boolean} [fromRight] Specify iterating from right to left. - * @returns {Array} Returns the slice of `array`. - */ - function baseWhile(array, predicate, isDrop, fromRight) { - var length = array.length, - index = fromRight ? length : -1; - - while ((fromRight ? index-- : ++index < length) && - predicate(array[index], index, array)) {} - - return isDrop - ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length)) - : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index)); - } - - /** - * The base implementation of `wrapperValue` which returns the result of - * performing a sequence of actions on the unwrapped `value`, where each - * successive action is supplied the return value of the previous. - * - * @private - * @param {*} value The unwrapped value. - * @param {Array} actions Actions to perform to resolve the unwrapped value. - * @returns {*} Returns the resolved value. - */ - function baseWrapperValue(value, actions) { - var result = value; - if (result instanceof LazyWrapper) { - result = result.value(); - } - return arrayReduce(actions, function(result, action) { - return action.func.apply(action.thisArg, arrayPush([result], action.args)); - }, result); - } - - /** - * The base implementation of methods like `_.xor`, without support for - * iteratee shorthands, that accepts an array of arrays to inspect. - * - * @private - * @param {Array} arrays The arrays to inspect. - * @param {Function} [iteratee] The iteratee invoked per element. - * @param {Function} [comparator] The comparator invoked per element. - * @returns {Array} Returns the new array of values. - */ - function baseXor(arrays, iteratee, comparator) { - var index = -1, - length = arrays.length; - - while (++index < length) { - var result = result - ? arrayPush( - baseDifference(result, arrays[index], iteratee, comparator), - baseDifference(arrays[index], result, iteratee, comparator) - ) - : arrays[index]; - } - return (result && result.length) ? baseUniq(result, iteratee, comparator) : []; - } - - /** - * This base implementation of `_.zipObject` which assigns values using `assignFunc`. - * - * @private - * @param {Array} props The property identifiers. - * @param {Array} values The property values. - * @param {Function} assignFunc The function to assign values. - * @returns {Object} Returns the new object. - */ - function baseZipObject(props, values, assignFunc) { - var index = -1, - length = props.length, - valsLength = values.length, - result = {}; - - while (++index < length) { - var value = index < valsLength ? values[index] : undefined; - assignFunc(result, props[index], value); - } - return result; - } - - /** - * Casts `value` to an empty array if it's not an array like object. - * - * @private - * @param {*} value The value to inspect. - * @returns {Array|Object} Returns the cast array-like object. - */ - function castArrayLikeObject(value) { - return isArrayLikeObject(value) ? value : []; - } - - /** - * Casts `value` to `identity` if it's not a function. - * - * @private - * @param {*} value The value to inspect. - * @returns {Function} Returns cast function. - */ - function castFunction(value) { - return typeof value == 'function' ? value : identity; - } - - /** - * Casts `value` to a path array if it's not one. - * - * @private - * @param {*} value The value to inspect. - * @returns {Array} Returns the cast property path array. - */ - function castPath(value) { - return isArray(value) ? value : stringToPath(value); - } - - /** - * A `baseRest` alias which can be replaced with `identity` by module - * replacement plugins. - * - * @private - * @type {Function} - * @param {Function} func The function to apply a rest parameter to. - * @returns {Function} Returns the new function. - */ - var castRest = baseRest; - - /** - * Casts `array` to a slice if it's needed. - * - * @private - * @param {Array} array The array to inspect. - * @param {number} start The start position. - * @param {number} [end=array.length] The end position. - * @returns {Array} Returns the cast slice. - */ - function castSlice(array, start, end) { - var length = array.length; - end = end === undefined ? length : end; - return (!start && end >= length) ? array : baseSlice(array, start, end); - } - - /** - * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout). - * - * @private - * @param {number|Object} id The timer id or timeout object of the timer to clear. - */ - var clearTimeout = ctxClearTimeout || function(id) { - return root.clearTimeout(id); - }; - - /** - * Creates a clone of `buffer`. - * - * @private - * @param {Buffer} buffer The buffer to clone. - * @param {boolean} [isDeep] Specify a deep clone. - * @returns {Buffer} Returns the cloned buffer. - */ - function cloneBuffer(buffer, isDeep) { - if (isDeep) { - return buffer.slice(); - } - var length = buffer.length, - result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); - - buffer.copy(result); - return result; - } - - /** - * Creates a clone of `arrayBuffer`. - * - * @private - * @param {ArrayBuffer} arrayBuffer The array buffer to clone. - * @returns {ArrayBuffer} Returns the cloned array buffer. - */ - function cloneArrayBuffer(arrayBuffer) { - var result = new arrayBuffer.constructor(arrayBuffer.byteLength); - new Uint8Array(result).set(new Uint8Array(arrayBuffer)); - return result; - } - - /** - * Creates a clone of `dataView`. - * - * @private - * @param {Object} dataView The data view to clone. - * @param {boolean} [isDeep] Specify a deep clone. - * @returns {Object} Returns the cloned data view. - */ - function cloneDataView(dataView, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; - return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); - } - - /** - * Creates a clone of `map`. - * - * @private - * @param {Object} map The map to clone. - * @param {Function} cloneFunc The function to clone values. - * @param {boolean} [isDeep] Specify a deep clone. - * @returns {Object} Returns the cloned map. - */ - function cloneMap(map, isDeep, cloneFunc) { - var array = isDeep ? cloneFunc(mapToArray(map), true) : mapToArray(map); - return arrayReduce(array, addMapEntry, new map.constructor); - } - - /** - * Creates a clone of `regexp`. - * - * @private - * @param {Object} regexp The regexp to clone. - * @returns {Object} Returns the cloned regexp. - */ - function cloneRegExp(regexp) { - var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); - result.lastIndex = regexp.lastIndex; - return result; - } - - /** - * Creates a clone of `set`. - * - * @private - * @param {Object} set The set to clone. - * @param {Function} cloneFunc The function to clone values. - * @param {boolean} [isDeep] Specify a deep clone. - * @returns {Object} Returns the cloned set. - */ - function cloneSet(set, isDeep, cloneFunc) { - var array = isDeep ? cloneFunc(setToArray(set), true) : setToArray(set); - return arrayReduce(array, addSetEntry, new set.constructor); - } - - /** - * Creates a clone of the `symbol` object. - * - * @private - * @param {Object} symbol The symbol object to clone. - * @returns {Object} Returns the cloned symbol object. - */ - function cloneSymbol(symbol) { - return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; - } - - /** - * Creates a clone of `typedArray`. - * - * @private - * @param {Object} typedArray The typed array to clone. - * @param {boolean} [isDeep] Specify a deep clone. - * @returns {Object} Returns the cloned typed array. - */ - function cloneTypedArray(typedArray, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; - return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); - } - - /** - * Compares values to sort them in ascending order. - * - * @private - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @returns {number} Returns the sort order indicator for `value`. - */ - function compareAscending(value, other) { - if (value !== other) { - var valIsDefined = value !== undefined, - valIsNull = value === null, - valIsReflexive = value === value, - valIsSymbol = isSymbol(value); - - var othIsDefined = other !== undefined, - othIsNull = other === null, - othIsReflexive = other === other, - othIsSymbol = isSymbol(other); - - if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) || - (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) || - (valIsNull && othIsDefined && othIsReflexive) || - (!valIsDefined && othIsReflexive) || - !valIsReflexive) { - return 1; - } - if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) || - (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) || - (othIsNull && valIsDefined && valIsReflexive) || - (!othIsDefined && valIsReflexive) || - !othIsReflexive) { - return -1; - } - } - return 0; - } - - /** - * Used by `_.orderBy` to compare multiple properties of a value to another - * and stable sort them. - * - * If `orders` is unspecified, all values are sorted in ascending order. Otherwise, - * specify an order of "desc" for descending or "asc" for ascending sort order - * of corresponding values. - * - * @private - * @param {Object} object The object to compare. - * @param {Object} other The other object to compare. - * @param {boolean[]|string[]} orders The order to sort by for each property. - * @returns {number} Returns the sort order indicator for `object`. - */ - function compareMultiple(object, other, orders) { - var index = -1, - objCriteria = object.criteria, - othCriteria = other.criteria, - length = objCriteria.length, - ordersLength = orders.length; - - while (++index < length) { - var result = compareAscending(objCriteria[index], othCriteria[index]); - if (result) { - if (index >= ordersLength) { - return result; - } - var order = orders[index]; - return result * (order == 'desc' ? -1 : 1); - } - } - // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications - // that causes it, under certain circumstances, to provide the same value for - // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247 - // for more details. - // - // This also ensures a stable sort in V8 and other engines. - // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details. - return object.index - other.index; - } - - /** - * Creates an array that is the composition of partially applied arguments, - * placeholders, and provided arguments into a single array of arguments. - * - * @private - * @param {Array} args The provided arguments. - * @param {Array} partials The arguments to prepend to those provided. - * @param {Array} holders The `partials` placeholder indexes. - * @params {boolean} [isCurried] Specify composing for a curried function. - * @returns {Array} Returns the new array of composed arguments. - */ - function composeArgs(args, partials, holders, isCurried) { - var argsIndex = -1, - argsLength = args.length, - holdersLength = holders.length, - leftIndex = -1, - leftLength = partials.length, - rangeLength = nativeMax(argsLength - holdersLength, 0), - result = Array(leftLength + rangeLength), - isUncurried = !isCurried; - - while (++leftIndex < leftLength) { - result[leftIndex] = partials[leftIndex]; - } - while (++argsIndex < holdersLength) { - if (isUncurried || argsIndex < argsLength) { - result[holders[argsIndex]] = args[argsIndex]; - } - } - while (rangeLength--) { - result[leftIndex++] = args[argsIndex++]; - } - return result; - } - - /** - * This function is like `composeArgs` except that the arguments composition - * is tailored for `_.partialRight`. - * - * @private - * @param {Array} args The provided arguments. - * @param {Array} partials The arguments to append to those provided. - * @param {Array} holders The `partials` placeholder indexes. - * @params {boolean} [isCurried] Specify composing for a curried function. - * @returns {Array} Returns the new array of composed arguments. - */ - function composeArgsRight(args, partials, holders, isCurried) { - var argsIndex = -1, - argsLength = args.length, - holdersIndex = -1, - holdersLength = holders.length, - rightIndex = -1, - rightLength = partials.length, - rangeLength = nativeMax(argsLength - holdersLength, 0), - result = Array(rangeLength + rightLength), - isUncurried = !isCurried; - - while (++argsIndex < rangeLength) { - result[argsIndex] = args[argsIndex]; - } - var offset = argsIndex; - while (++rightIndex < rightLength) { - result[offset + rightIndex] = partials[rightIndex]; - } - while (++holdersIndex < holdersLength) { - if (isUncurried || argsIndex < argsLength) { - result[offset + holders[holdersIndex]] = args[argsIndex++]; - } - } - return result; - } - - /** - * Copies the values of `source` to `array`. - * - * @private - * @param {Array} source The array to copy values from. - * @param {Array} [array=[]] The array to copy values to. - * @returns {Array} Returns `array`. - */ - function copyArray(source, array) { - var index = -1, - length = source.length; - - array || (array = Array(length)); - while (++index < length) { - array[index] = source[index]; - } - return array; - } - - /** - * Copies properties of `source` to `object`. - * - * @private - * @param {Object} source The object to copy properties from. - * @param {Array} props The property identifiers to copy. - * @param {Object} [object={}] The object to copy properties to. - * @param {Function} [customizer] The function to customize copied values. - * @returns {Object} Returns `object`. - */ - function copyObject(source, props, object, customizer) { - var isNew = !object; - object || (object = {}); - - var index = -1, - length = props.length; - - while (++index < length) { - var key = props[index]; - - var newValue = customizer - ? customizer(object[key], source[key], key, object, source) - : undefined; - - if (newValue === undefined) { - newValue = source[key]; - } - if (isNew) { - baseAssignValue(object, key, newValue); - } else { - assignValue(object, key, newValue); - } - } - return object; - } - - /** - * Copies own symbol properties of `source` to `object`. - * - * @private - * @param {Object} source The object to copy symbols from. - * @param {Object} [object={}] The object to copy symbols to. - * @returns {Object} Returns `object`. - */ - function copySymbols(source, object) { - return copyObject(source, getSymbols(source), object); - } - - /** - * Creates a function like `_.groupBy`. - * - * @private - * @param {Function} setter The function to set accumulator values. - * @param {Function} [initializer] The accumulator object initializer. - * @returns {Function} Returns the new aggregator function. - */ - function createAggregator(setter, initializer) { - return function(collection, iteratee) { - var func = isArray(collection) ? arrayAggregator : baseAggregator, - accumulator = initializer ? initializer() : {}; - - return func(collection, setter, getIteratee(iteratee, 2), accumulator); - }; - } - - /** - * Creates a function like `_.assign`. - * - * @private - * @param {Function} assigner The function to assign values. - * @returns {Function} Returns the new assigner function. - */ - function createAssigner(assigner) { - return baseRest(function(object, sources) { - var index = -1, - length = sources.length, - customizer = length > 1 ? sources[length - 1] : undefined, - guard = length > 2 ? sources[2] : undefined; - - customizer = (assigner.length > 3 && typeof customizer == 'function') - ? (length--, customizer) - : undefined; - - if (guard && isIterateeCall(sources[0], sources[1], guard)) { - customizer = length < 3 ? undefined : customizer; - length = 1; - } - object = Object(object); - while (++index < length) { - var source = sources[index]; - if (source) { - assigner(object, source, index, customizer); - } - } - return object; - }); - } - - /** - * Creates a `baseEach` or `baseEachRight` function. - * - * @private - * @param {Function} eachFunc The function to iterate over a collection. - * @param {boolean} [fromRight] Specify iterating from right to left. - * @returns {Function} Returns the new base function. - */ - function createBaseEach(eachFunc, fromRight) { - return function(collection, iteratee) { - if (collection == null) { - return collection; - } - if (!isArrayLike(collection)) { - return eachFunc(collection, iteratee); - } - var length = collection.length, - index = fromRight ? length : -1, - iterable = Object(collection); - - while ((fromRight ? index-- : ++index < length)) { - if (iteratee(iterable[index], index, iterable) === false) { - break; - } - } - return collection; - }; - } - - /** - * Creates a base function for methods like `_.forIn` and `_.forOwn`. - * - * @private - * @param {boolean} [fromRight] Specify iterating from right to left. - * @returns {Function} Returns the new base function. - */ - function createBaseFor(fromRight) { - return function(object, iteratee, keysFunc) { - var index = -1, - iterable = Object(object), - props = keysFunc(object), - length = props.length; - - while (length--) { - var key = props[fromRight ? length : ++index]; - if (iteratee(iterable[key], key, iterable) === false) { - break; - } - } - return object; - }; - } - - /** - * Creates a function that wraps `func` to invoke it with the optional `this` - * binding of `thisArg`. - * - * @private - * @param {Function} func The function to wrap. - * @param {number} bitmask The bitmask flags. See `createWrap` for more details. - * @param {*} [thisArg] The `this` binding of `func`. - * @returns {Function} Returns the new wrapped function. - */ - function createBind(func, bitmask, thisArg) { - var isBind = bitmask & BIND_FLAG, - Ctor = createCtor(func); - - function wrapper() { - var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func; - return fn.apply(isBind ? thisArg : this, arguments); - } - return wrapper; - } - - /** - * Creates a function like `_.lowerFirst`. - * - * @private - * @param {string} methodName The name of the `String` case method to use. - * @returns {Function} Returns the new case function. - */ - function createCaseFirst(methodName) { - return function(string) { - string = toString(string); - - var strSymbols = hasUnicode(string) - ? stringToArray(string) - : undefined; - - var chr = strSymbols - ? strSymbols[0] - : string.charAt(0); - - var trailing = strSymbols - ? castSlice(strSymbols, 1).join('') - : string.slice(1); - - return chr[methodName]() + trailing; - }; - } - - /** - * Creates a function like `_.camelCase`. - * - * @private - * @param {Function} callback The function to combine each word. - * @returns {Function} Returns the new compounder function. - */ - function createCompounder(callback) { - return function(string) { - return arrayReduce(words(deburr(string).replace(reApos, '')), callback, ''); - }; - } - - /** - * Creates a function that produces an instance of `Ctor` regardless of - * whether it was invoked as part of a `new` expression or by `call` or `apply`. - * - * @private - * @param {Function} Ctor The constructor to wrap. - * @returns {Function} Returns the new wrapped function. - */ - function createCtor(Ctor) { - return function() { - // Use a `switch` statement to work with class constructors. See - // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist - // for more details. - var args = arguments; - switch (args.length) { - case 0: return new Ctor; - case 1: return new Ctor(args[0]); - case 2: return new Ctor(args[0], args[1]); - case 3: return new Ctor(args[0], args[1], args[2]); - case 4: return new Ctor(args[0], args[1], args[2], args[3]); - case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]); - case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]); - case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]); - } - var thisBinding = baseCreate(Ctor.prototype), - result = Ctor.apply(thisBinding, args); - - // Mimic the constructor's `return` behavior. - // See https://es5.github.io/#x13.2.2 for more details. - return isObject(result) ? result : thisBinding; - }; - } - - /** - * Creates a function that wraps `func` to enable currying. - * - * @private - * @param {Function} func The function to wrap. - * @param {number} bitmask The bitmask flags. See `createWrap` for more details. - * @param {number} arity The arity of `func`. - * @returns {Function} Returns the new wrapped function. - */ - function createCurry(func, bitmask, arity) { - var Ctor = createCtor(func); - - function wrapper() { - var length = arguments.length, - args = Array(length), - index = length, - placeholder = getHolder(wrapper); - - while (index--) { - args[index] = arguments[index]; - } - var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder) - ? [] - : replaceHolders(args, placeholder); - - length -= holders.length; - if (length < arity) { - return createRecurry( - func, bitmask, createHybrid, wrapper.placeholder, undefined, - args, holders, undefined, undefined, arity - length); - } - var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func; - return apply(fn, this, args); - } - return wrapper; - } - - /** - * Creates a `_.find` or `_.findLast` function. - * - * @private - * @param {Function} findIndexFunc The function to find the collection index. - * @returns {Function} Returns the new find function. - */ - function createFind(findIndexFunc) { - return function(collection, predicate, fromIndex) { - var iterable = Object(collection); - if (!isArrayLike(collection)) { - var iteratee = getIteratee(predicate, 3); - collection = keys(collection); - predicate = function(key) { return iteratee(iterable[key], key, iterable); }; - } - var index = findIndexFunc(collection, predicate, fromIndex); - return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined; - }; - } - - /** - * Creates a `_.flow` or `_.flowRight` function. - * - * @private - * @param {boolean} [fromRight] Specify iterating from right to left. - * @returns {Function} Returns the new flow function. - */ - function createFlow(fromRight) { - return flatRest(function(funcs) { - var length = funcs.length, - index = length, - prereq = LodashWrapper.prototype.thru; - - if (fromRight) { - funcs.reverse(); - } - while (index--) { - var func = funcs[index]; - if (typeof func != 'function') { - throw new TypeError(FUNC_ERROR_TEXT); - } - if (prereq && !wrapper && getFuncName(func) == 'wrapper') { - var wrapper = new LodashWrapper([], true); - } - } - index = wrapper ? index : length; - while (++index < length) { - func = funcs[index]; - - var funcName = getFuncName(func), - data = funcName == 'wrapper' ? getData(func) : undefined; - - if (data && isLaziable(data[0]) && - data[1] == (ARY_FLAG | CURRY_FLAG | PARTIAL_FLAG | REARG_FLAG) && - !data[4].length && data[9] == 1 - ) { - wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]); - } else { - wrapper = (func.length == 1 && isLaziable(func)) - ? wrapper[funcName]() - : wrapper.thru(func); - } - } - return function() { - var args = arguments, - value = args[0]; - - if (wrapper && args.length == 1 && - isArray(value) && value.length >= LARGE_ARRAY_SIZE) { - return wrapper.plant(value).value(); - } - var index = 0, - result = length ? funcs[index].apply(this, args) : value; - - while (++index < length) { - result = funcs[index].call(this, result); - } - return result; - }; - }); - } - - /** - * Creates a function that wraps `func` to invoke it with optional `this` - * binding of `thisArg`, partial application, and currying. - * - * @private - * @param {Function|string} func The function or method name to wrap. - * @param {number} bitmask The bitmask flags. See `createWrap` for more details. - * @param {*} [thisArg] The `this` binding of `func`. - * @param {Array} [partials] The arguments to prepend to those provided to - * the new function. - * @param {Array} [holders] The `partials` placeholder indexes. - * @param {Array} [partialsRight] The arguments to append to those provided - * to the new function. - * @param {Array} [holdersRight] The `partialsRight` placeholder indexes. - * @param {Array} [argPos] The argument positions of the new function. - * @param {number} [ary] The arity cap of `func`. - * @param {number} [arity] The arity of `func`. - * @returns {Function} Returns the new wrapped function. - */ - function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) { - var isAry = bitmask & ARY_FLAG, - isBind = bitmask & BIND_FLAG, - isBindKey = bitmask & BIND_KEY_FLAG, - isCurried = bitmask & (CURRY_FLAG | CURRY_RIGHT_FLAG), - isFlip = bitmask & FLIP_FLAG, - Ctor = isBindKey ? undefined : createCtor(func); - - function wrapper() { - var length = arguments.length, - args = Array(length), - index = length; - - while (index--) { - args[index] = arguments[index]; - } - if (isCurried) { - var placeholder = getHolder(wrapper), - holdersCount = countHolders(args, placeholder); - } - if (partials) { - args = composeArgs(args, partials, holders, isCurried); - } - if (partialsRight) { - args = composeArgsRight(args, partialsRight, holdersRight, isCurried); - } - length -= holdersCount; - if (isCurried && length < arity) { - var newHolders = replaceHolders(args, placeholder); - return createRecurry( - func, bitmask, createHybrid, wrapper.placeholder, thisArg, - args, newHolders, argPos, ary, arity - length - ); - } - var thisBinding = isBind ? thisArg : this, - fn = isBindKey ? thisBinding[func] : func; - - length = args.length; - if (argPos) { - args = reorder(args, argPos); - } else if (isFlip && length > 1) { - args.reverse(); - } - if (isAry && ary < length) { - args.length = ary; - } - if (this && this !== root && this instanceof wrapper) { - fn = Ctor || createCtor(fn); - } - return fn.apply(thisBinding, args); - } - return wrapper; - } - - /** - * Creates a function like `_.invertBy`. - * - * @private - * @param {Function} setter The function to set accumulator values. - * @param {Function} toIteratee The function to resolve iteratees. - * @returns {Function} Returns the new inverter function. - */ - function createInverter(setter, toIteratee) { - return function(object, iteratee) { - return baseInverter(object, setter, toIteratee(iteratee), {}); - }; - } - - /** - * Creates a function that performs a mathematical operation on two values. - * - * @private - * @param {Function} operator The function to perform the operation. - * @param {number} [defaultValue] The value used for `undefined` arguments. - * @returns {Function} Returns the new mathematical operation function. - */ - function createMathOperation(operator, defaultValue) { - return function(value, other) { - var result; - if (value === undefined && other === undefined) { - return defaultValue; - } - if (value !== undefined) { - result = value; - } - if (other !== undefined) { - if (result === undefined) { - return other; - } - if (typeof value == 'string' || typeof other == 'string') { - value = baseToString(value); - other = baseToString(other); - } else { - value = baseToNumber(value); - other = baseToNumber(other); - } - result = operator(value, other); - } - return result; - }; - } - - /** - * Creates a function like `_.over`. - * - * @private - * @param {Function} arrayFunc The function to iterate over iteratees. - * @returns {Function} Returns the new over function. - */ - function createOver(arrayFunc) { - return flatRest(function(iteratees) { - iteratees = arrayMap(iteratees, baseUnary(getIteratee())); - return baseRest(function(args) { - var thisArg = this; - return arrayFunc(iteratees, function(iteratee) { - return apply(iteratee, thisArg, args); - }); - }); - }); - } - - /** - * Creates the padding for `string` based on `length`. The `chars` string - * is truncated if the number of characters exceeds `length`. - * - * @private - * @param {number} length The padding length. - * @param {string} [chars=' '] The string used as padding. - * @returns {string} Returns the padding for `string`. - */ - function createPadding(length, chars) { - chars = chars === undefined ? ' ' : baseToString(chars); - - var charsLength = chars.length; - if (charsLength < 2) { - return charsLength ? baseRepeat(chars, length) : chars; - } - var result = baseRepeat(chars, nativeCeil(length / stringSize(chars))); - return hasUnicode(chars) - ? castSlice(stringToArray(result), 0, length).join('') - : result.slice(0, length); - } - - /** - * Creates a function that wraps `func` to invoke it with the `this` binding - * of `thisArg` and `partials` prepended to the arguments it receives. - * - * @private - * @param {Function} func The function to wrap. - * @param {number} bitmask The bitmask flags. See `createWrap` for more details. - * @param {*} thisArg The `this` binding of `func`. - * @param {Array} partials The arguments to prepend to those provided to - * the new function. - * @returns {Function} Returns the new wrapped function. - */ - function createPartial(func, bitmask, thisArg, partials) { - var isBind = bitmask & BIND_FLAG, - Ctor = createCtor(func); - - function wrapper() { - var argsIndex = -1, - argsLength = arguments.length, - leftIndex = -1, - leftLength = partials.length, - args = Array(leftLength + argsLength), - fn = (this && this !== root && this instanceof wrapper) ? Ctor : func; - - while (++leftIndex < leftLength) { - args[leftIndex] = partials[leftIndex]; - } - while (argsLength--) { - args[leftIndex++] = arguments[++argsIndex]; - } - return apply(fn, isBind ? thisArg : this, args); - } - return wrapper; - } - - /** - * Creates a `_.range` or `_.rangeRight` function. - * - * @private - * @param {boolean} [fromRight] Specify iterating from right to left. - * @returns {Function} Returns the new range function. - */ - function createRange(fromRight) { - return function(start, end, step) { - if (step && typeof step != 'number' && isIterateeCall(start, end, step)) { - end = step = undefined; - } - // Ensure the sign of `-0` is preserved. - start = toFinite(start); - if (end === undefined) { - end = start; - start = 0; - } else { - end = toFinite(end); - } - step = step === undefined ? (start < end ? 1 : -1) : toFinite(step); - return baseRange(start, end, step, fromRight); - }; - } - - /** - * Creates a function that performs a relational operation on two values. - * - * @private - * @param {Function} operator The function to perform the operation. - * @returns {Function} Returns the new relational operation function. - */ - function createRelationalOperation(operator) { - return function(value, other) { - if (!(typeof value == 'string' && typeof other == 'string')) { - value = toNumber(value); - other = toNumber(other); - } - return operator(value, other); - }; - } - - /** - * Creates a function that wraps `func` to continue currying. - * - * @private - * @param {Function} func The function to wrap. - * @param {number} bitmask The bitmask flags. See `createWrap` for more details. - * @param {Function} wrapFunc The function to create the `func` wrapper. - * @param {*} placeholder The placeholder value. - * @param {*} [thisArg] The `this` binding of `func`. - * @param {Array} [partials] The arguments to prepend to those provided to - * the new function. - * @param {Array} [holders] The `partials` placeholder indexes. - * @param {Array} [argPos] The argument positions of the new function. - * @param {number} [ary] The arity cap of `func`. - * @param {number} [arity] The arity of `func`. - * @returns {Function} Returns the new wrapped function. - */ - function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) { - var isCurry = bitmask & CURRY_FLAG, - newHolders = isCurry ? holders : undefined, - newHoldersRight = isCurry ? undefined : holders, - newPartials = isCurry ? partials : undefined, - newPartialsRight = isCurry ? undefined : partials; - - bitmask |= (isCurry ? PARTIAL_FLAG : PARTIAL_RIGHT_FLAG); - bitmask &= ~(isCurry ? PARTIAL_RIGHT_FLAG : PARTIAL_FLAG); - - if (!(bitmask & CURRY_BOUND_FLAG)) { - bitmask &= ~(BIND_FLAG | BIND_KEY_FLAG); - } - var newData = [ - func, bitmask, thisArg, newPartials, newHolders, newPartialsRight, - newHoldersRight, argPos, ary, arity - ]; - - var result = wrapFunc.apply(undefined, newData); - if (isLaziable(func)) { - setData(result, newData); - } - result.placeholder = placeholder; - return setWrapToString(result, func, bitmask); - } - - /** - * Creates a function like `_.round`. - * - * @private - * @param {string} methodName The name of the `Math` method to use when rounding. - * @returns {Function} Returns the new round function. - */ - function createRound(methodName) { - var func = Math[methodName]; - return function(number, precision) { - number = toNumber(number); - precision = nativeMin(toInteger(precision), 292); - if (precision) { - // Shift with exponential notation to avoid floating-point issues. - // See [MDN](https://mdn.io/round#Examples) for more details. - var pair = (toString(number) + 'e').split('e'), - value = func(pair[0] + 'e' + (+pair[1] + precision)); - - pair = (toString(value) + 'e').split('e'); - return +(pair[0] + 'e' + (+pair[1] - precision)); - } - return func(number); - }; - } - - /** - * Creates a set object of `values`. - * - * @private - * @param {Array} values The values to add to the set. - * @returns {Object} Returns the new set. - */ - var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) { - return new Set(values); - }; - - /** - * Creates a `_.toPairs` or `_.toPairsIn` function. - * - * @private - * @param {Function} keysFunc The function to get the keys of a given object. - * @returns {Function} Returns the new pairs function. - */ - function createToPairs(keysFunc) { - return function(object) { - var tag = getTag(object); - if (tag == mapTag) { - return mapToArray(object); - } - if (tag == setTag) { - return setToPairs(object); - } - return baseToPairs(object, keysFunc(object)); - }; - } - - /** - * Creates a function that either curries or invokes `func` with optional - * `this` binding and partially applied arguments. - * - * @private - * @param {Function|string} func The function or method name to wrap. - * @param {number} bitmask The bitmask flags. - * The bitmask may be composed of the following flags: - * 1 - `_.bind` - * 2 - `_.bindKey` - * 4 - `_.curry` or `_.curryRight` of a bound function - * 8 - `_.curry` - * 16 - `_.curryRight` - * 32 - `_.partial` - * 64 - `_.partialRight` - * 128 - `_.rearg` - * 256 - `_.ary` - * 512 - `_.flip` - * @param {*} [thisArg] The `this` binding of `func`. - * @param {Array} [partials] The arguments to be partially applied. - * @param {Array} [holders] The `partials` placeholder indexes. - * @param {Array} [argPos] The argument positions of the new function. - * @param {number} [ary] The arity cap of `func`. - * @param {number} [arity] The arity of `func`. - * @returns {Function} Returns the new wrapped function. - */ - function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) { - var isBindKey = bitmask & BIND_KEY_FLAG; - if (!isBindKey && typeof func != 'function') { - throw new TypeError(FUNC_ERROR_TEXT); - } - var length = partials ? partials.length : 0; - if (!length) { - bitmask &= ~(PARTIAL_FLAG | PARTIAL_RIGHT_FLAG); - partials = holders = undefined; - } - ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0); - arity = arity === undefined ? arity : toInteger(arity); - length -= holders ? holders.length : 0; - - if (bitmask & PARTIAL_RIGHT_FLAG) { - var partialsRight = partials, - holdersRight = holders; - - partials = holders = undefined; - } - var data = isBindKey ? undefined : getData(func); - - var newData = [ - func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, - argPos, ary, arity - ]; - - if (data) { - mergeData(newData, data); - } - func = newData[0]; - bitmask = newData[1]; - thisArg = newData[2]; - partials = newData[3]; - holders = newData[4]; - arity = newData[9] = newData[9] == null - ? (isBindKey ? 0 : func.length) - : nativeMax(newData[9] - length, 0); - - if (!arity && bitmask & (CURRY_FLAG | CURRY_RIGHT_FLAG)) { - bitmask &= ~(CURRY_FLAG | CURRY_RIGHT_FLAG); - } - if (!bitmask || bitmask == BIND_FLAG) { - var result = createBind(func, bitmask, thisArg); - } else if (bitmask == CURRY_FLAG || bitmask == CURRY_RIGHT_FLAG) { - result = createCurry(func, bitmask, arity); - } else if ((bitmask == PARTIAL_FLAG || bitmask == (BIND_FLAG | PARTIAL_FLAG)) && !holders.length) { - result = createPartial(func, bitmask, thisArg, partials); - } else { - result = createHybrid.apply(undefined, newData); - } - var setter = data ? baseSetData : setData; - return setWrapToString(setter(result, newData), func, bitmask); - } - - /** - * A specialized version of `baseIsEqualDeep` for arrays with support for - * partial deep comparisons. - * - * @private - * @param {Array} array The array to compare. - * @param {Array} other The other array to compare. - * @param {Function} equalFunc The function to determine equivalents of values. - * @param {Function} customizer The function to customize comparisons. - * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual` - * for more details. - * @param {Object} stack Tracks traversed `array` and `other` objects. - * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`. - */ - function equalArrays(array, other, equalFunc, customizer, bitmask, stack) { - var isPartial = bitmask & PARTIAL_COMPARE_FLAG, - arrLength = array.length, - othLength = other.length; - - if (arrLength != othLength && !(isPartial && othLength > arrLength)) { - return false; - } - // Assume cyclic values are equal. - var stacked = stack.get(array); - if (stacked && stack.get(other)) { - return stacked == other; - } - var index = -1, - result = true, - seen = (bitmask & UNORDERED_COMPARE_FLAG) ? new SetCache : undefined; - - stack.set(array, other); - stack.set(other, array); - - // Ignore non-index properties. - while (++index < arrLength) { - var arrValue = array[index], - othValue = other[index]; - - if (customizer) { - var compared = isPartial - ? customizer(othValue, arrValue, index, other, array, stack) - : customizer(arrValue, othValue, index, array, other, stack); - } - if (compared !== undefined) { - if (compared) { - continue; - } - result = false; - break; - } - // Recursively compare arrays (susceptible to call stack limits). - if (seen) { - if (!arraySome(other, function(othValue, othIndex) { - if (!cacheHas(seen, othIndex) && - (arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack))) { - return seen.push(othIndex); - } - })) { - result = false; - break; - } - } else if (!( - arrValue === othValue || - equalFunc(arrValue, othValue, customizer, bitmask, stack) - )) { - result = false; - break; - } - } - stack['delete'](array); - stack['delete'](other); - return result; - } - - /** - * A specialized version of `baseIsEqualDeep` for comparing objects of - * the same `toStringTag`. - * - * **Note:** This function only supports comparing values with tags of - * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`. - * - * @private - * @param {Object} object The object to compare. - * @param {Object} other The other object to compare. - * @param {string} tag The `toStringTag` of the objects to compare. - * @param {Function} equalFunc The function to determine equivalents of values. - * @param {Function} customizer The function to customize comparisons. - * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual` - * for more details. - * @param {Object} stack Tracks traversed `object` and `other` objects. - * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. - */ - function equalByTag(object, other, tag, equalFunc, customizer, bitmask, stack) { - switch (tag) { - case dataViewTag: - if ((object.byteLength != other.byteLength) || - (object.byteOffset != other.byteOffset)) { - return false; - } - object = object.buffer; - other = other.buffer; - - case arrayBufferTag: - if ((object.byteLength != other.byteLength) || - !equalFunc(new Uint8Array(object), new Uint8Array(other))) { - return false; - } - return true; - - case boolTag: - case dateTag: - case numberTag: - // Coerce booleans to `1` or `0` and dates to milliseconds. - // Invalid dates are coerced to `NaN`. - return eq(+object, +other); - - case errorTag: - return object.name == other.name && object.message == other.message; - - case regexpTag: - case stringTag: - // Coerce regexes to strings and treat strings, primitives and objects, - // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring - // for more details. - return object == (other + ''); - - case mapTag: - var convert = mapToArray; - - case setTag: - var isPartial = bitmask & PARTIAL_COMPARE_FLAG; - convert || (convert = setToArray); - - if (object.size != other.size && !isPartial) { - return false; - } - // Assume cyclic values are equal. - var stacked = stack.get(object); - if (stacked) { - return stacked == other; - } - bitmask |= UNORDERED_COMPARE_FLAG; - - // Recursively compare objects (susceptible to call stack limits). - stack.set(object, other); - var result = equalArrays(convert(object), convert(other), equalFunc, customizer, bitmask, stack); - stack['delete'](object); - return result; - - case symbolTag: - if (symbolValueOf) { - return symbolValueOf.call(object) == symbolValueOf.call(other); - } - } - return false; - } - - /** - * A specialized version of `baseIsEqualDeep` for objects with support for - * partial deep comparisons. - * - * @private - * @param {Object} object The object to compare. - * @param {Object} other The other object to compare. - * @param {Function} equalFunc The function to determine equivalents of values. - * @param {Function} customizer The function to customize comparisons. - * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual` - * for more details. - * @param {Object} stack Tracks traversed `object` and `other` objects. - * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. - */ - function equalObjects(object, other, equalFunc, customizer, bitmask, stack) { - var isPartial = bitmask & PARTIAL_COMPARE_FLAG, - objProps = keys(object), - objLength = objProps.length, - othProps = keys(other), - othLength = othProps.length; - - if (objLength != othLength && !isPartial) { - return false; - } - var index = objLength; - while (index--) { - var key = objProps[index]; - if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) { - return false; - } - } - // Assume cyclic values are equal. - var stacked = stack.get(object); - if (stacked && stack.get(other)) { - return stacked == other; - } - var result = true; - stack.set(object, other); - stack.set(other, object); - - var skipCtor = isPartial; - while (++index < objLength) { - key = objProps[index]; - var objValue = object[key], - othValue = other[key]; - - if (customizer) { - var compared = isPartial - ? customizer(othValue, objValue, key, other, object, stack) - : customizer(objValue, othValue, key, object, other, stack); - } - // Recursively compare objects (susceptible to call stack limits). - if (!(compared === undefined - ? (objValue === othValue || equalFunc(objValue, othValue, customizer, bitmask, stack)) - : compared - )) { - result = false; - break; - } - skipCtor || (skipCtor = key == 'constructor'); - } - if (result && !skipCtor) { - var objCtor = object.constructor, - othCtor = other.constructor; - - // Non `Object` object instances with different constructors are not equal. - if (objCtor != othCtor && - ('constructor' in object && 'constructor' in other) && - !(typeof objCtor == 'function' && objCtor instanceof objCtor && - typeof othCtor == 'function' && othCtor instanceof othCtor)) { - result = false; - } - } - stack['delete'](object); - stack['delete'](other); - return result; - } - - /** - * A specialized version of `baseRest` which flattens the rest array. - * - * @private - * @param {Function} func The function to apply a rest parameter to. - * @returns {Function} Returns the new function. - */ - function flatRest(func) { - return setToString(overRest(func, undefined, flatten), func + ''); - } - - /** - * Creates an array of own enumerable property names and symbols of `object`. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names and symbols. - */ - function getAllKeys(object) { - return baseGetAllKeys(object, keys, getSymbols); - } - - /** - * Creates an array of own and inherited enumerable property names and - * symbols of `object`. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names and symbols. - */ - function getAllKeysIn(object) { - return baseGetAllKeys(object, keysIn, getSymbolsIn); - } - - /** - * Gets metadata for `func`. - * - * @private - * @param {Function} func The function to query. - * @returns {*} Returns the metadata for `func`. - */ - var getData = !metaMap ? noop : function(func) { - return metaMap.get(func); - }; - - /** - * Gets the name of `func`. - * - * @private - * @param {Function} func The function to query. - * @returns {string} Returns the function name. - */ - function getFuncName(func) { - var result = (func.name + ''), - array = realNames[result], - length = hasOwnProperty.call(realNames, result) ? array.length : 0; - - while (length--) { - var data = array[length], - otherFunc = data.func; - if (otherFunc == null || otherFunc == func) { - return data.name; - } - } - return result; - } - - /** - * Gets the argument placeholder value for `func`. - * - * @private - * @param {Function} func The function to inspect. - * @returns {*} Returns the placeholder value. - */ - function getHolder(func) { - var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func; - return object.placeholder; - } - - /** - * Gets the appropriate "iteratee" function. If `_.iteratee` is customized, - * this function returns the custom method, otherwise it returns `baseIteratee`. - * If arguments are provided, the chosen function is invoked with them and - * its result is returned. - * - * @private - * @param {*} [value] The value to convert to an iteratee. - * @param {number} [arity] The arity of the created iteratee. - * @returns {Function} Returns the chosen function or its result. - */ - function getIteratee() { - var result = lodash.iteratee || iteratee; - result = result === iteratee ? baseIteratee : result; - return arguments.length ? result(arguments[0], arguments[1]) : result; - } - - /** - * Gets the data for `map`. - * - * @private - * @param {Object} map The map to query. - * @param {string} key The reference key. - * @returns {*} Returns the map data. - */ - function getMapData(map, key) { - var data = map.__data__; - return isKeyable(key) - ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map; - } - - /** - * Gets the property names, values, and compare flags of `object`. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the match data of `object`. - */ - function getMatchData(object) { - var result = keys(object), - length = result.length; - - while (length--) { - var key = result[length], - value = object[key]; - - result[length] = [key, value, isStrictComparable(value)]; - } - return result; - } - - /** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ - function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; - } - - /** - * Creates an array of the own enumerable symbol properties of `object`. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of symbols. - */ - var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray; - - /** - * Creates an array of the own and inherited enumerable symbol properties - * of `object`. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of symbols. - */ - var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { - var result = []; - while (object) { - arrayPush(result, getSymbols(object)); - object = getPrototype(object); - } - return result; - }; - - /** - * Gets the `toStringTag` of `value`. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the `toStringTag`. - */ - var getTag = baseGetTag; - - // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. - if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || - (Map && getTag(new Map) != mapTag) || - (Promise && getTag(Promise.resolve()) != promiseTag) || - (Set && getTag(new Set) != setTag) || - (WeakMap && getTag(new WeakMap) != weakMapTag)) { - getTag = function(value) { - var result = objectToString.call(value), - Ctor = result == objectTag ? value.constructor : undefined, - ctorString = Ctor ? toSource(Ctor) : undefined; - - if (ctorString) { - switch (ctorString) { - case dataViewCtorString: return dataViewTag; - case mapCtorString: return mapTag; - case promiseCtorString: return promiseTag; - case setCtorString: return setTag; - case weakMapCtorString: return weakMapTag; - } - } - return result; - }; - } - - /** - * Gets the view, applying any `transforms` to the `start` and `end` positions. - * - * @private - * @param {number} start The start of the view. - * @param {number} end The end of the view. - * @param {Array} transforms The transformations to apply to the view. - * @returns {Object} Returns an object containing the `start` and `end` - * positions of the view. - */ - function getView(start, end, transforms) { - var index = -1, - length = transforms.length; - - while (++index < length) { - var data = transforms[index], - size = data.size; - - switch (data.type) { - case 'drop': start += size; break; - case 'dropRight': end -= size; break; - case 'take': end = nativeMin(end, start + size); break; - case 'takeRight': start = nativeMax(start, end - size); break; - } - } - return { 'start': start, 'end': end }; - } - - /** - * Extracts wrapper details from the `source` body comment. - * - * @private - * @param {string} source The source to inspect. - * @returns {Array} Returns the wrapper details. - */ - function getWrapDetails(source) { - var match = source.match(reWrapDetails); - return match ? match[1].split(reSplitDetails) : []; - } - - /** - * Checks if `path` exists on `object`. - * - * @private - * @param {Object} object The object to query. - * @param {Array|string} path The path to check. - * @param {Function} hasFunc The function to check properties. - * @returns {boolean} Returns `true` if `path` exists, else `false`. - */ - function hasPath(object, path, hasFunc) { - path = isKey(path, object) ? [path] : castPath(path); - - var index = -1, - length = path.length, - result = false; - - while (++index < length) { - var key = toKey(path[index]); - if (!(result = object != null && hasFunc(object, key))) { - break; - } - object = object[key]; - } - if (result || ++index != length) { - return result; - } - length = object ? object.length : 0; - return !!length && isLength(length) && isIndex(key, length) && - (isArray(object) || isArguments(object)); - } - - /** - * Initializes an array clone. - * - * @private - * @param {Array} array The array to clone. - * @returns {Array} Returns the initialized clone. - */ - function initCloneArray(array) { - var length = array.length, - result = array.constructor(length); - - // Add properties assigned by `RegExp#exec`. - if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) { - result.index = array.index; - result.input = array.input; - } - return result; - } - - /** - * Initializes an object clone. - * - * @private - * @param {Object} object The object to clone. - * @returns {Object} Returns the initialized clone. - */ - function initCloneObject(object) { - return (typeof object.constructor == 'function' && !isPrototype(object)) - ? baseCreate(getPrototype(object)) - : {}; - } - - /** - * Initializes an object clone based on its `toStringTag`. - * - * **Note:** This function only supports cloning values with tags of - * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`. - * - * @private - * @param {Object} object The object to clone. - * @param {string} tag The `toStringTag` of the object to clone. - * @param {Function} cloneFunc The function to clone values. - * @param {boolean} [isDeep] Specify a deep clone. - * @returns {Object} Returns the initialized clone. - */ - function initCloneByTag(object, tag, cloneFunc, isDeep) { - var Ctor = object.constructor; - switch (tag) { - case arrayBufferTag: - return cloneArrayBuffer(object); - - case boolTag: - case dateTag: - return new Ctor(+object); - - case dataViewTag: - return cloneDataView(object, isDeep); - - case float32Tag: case float64Tag: - case int8Tag: case int16Tag: case int32Tag: - case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag: - return cloneTypedArray(object, isDeep); - - case mapTag: - return cloneMap(object, isDeep, cloneFunc); - - case numberTag: - case stringTag: - return new Ctor(object); - - case regexpTag: - return cloneRegExp(object); - - case setTag: - return cloneSet(object, isDeep, cloneFunc); - - case symbolTag: - return cloneSymbol(object); - } - } - - /** - * Inserts wrapper `details` in a comment at the top of the `source` body. - * - * @private - * @param {string} source The source to modify. - * @returns {Array} details The details to insert. - * @returns {string} Returns the modified source. - */ - function insertWrapDetails(source, details) { - var length = details.length; - if (!length) { - return source; - } - var lastIndex = length - 1; - details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex]; - details = details.join(length > 2 ? ', ' : ' '); - return source.replace(reWrapComment, '{\n/* [wrapped with ' + details + '] */\n'); - } - - /** - * Checks if `value` is a flattenable `arguments` object or array. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is flattenable, else `false`. - */ - function isFlattenable(value) { - return isArray(value) || isArguments(value) || - !!(spreadableSymbol && value && value[spreadableSymbol]); - } - - /** - * Checks if `value` is a valid array-like index. - * - * @private - * @param {*} value The value to check. - * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. - * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. - */ - function isIndex(value, length) { - length = length == null ? MAX_SAFE_INTEGER : length; - return !!length && - (typeof value == 'number' || reIsUint.test(value)) && - (value > -1 && value % 1 == 0 && value < length); - } - - /** - * Checks if the given arguments are from an iteratee call. - * - * @private - * @param {*} value The potential iteratee value argument. - * @param {*} index The potential iteratee index or key argument. - * @param {*} object The potential iteratee object argument. - * @returns {boolean} Returns `true` if the arguments are from an iteratee call, - * else `false`. - */ - function isIterateeCall(value, index, object) { - if (!isObject(object)) { - return false; - } - var type = typeof index; - if (type == 'number' - ? (isArrayLike(object) && isIndex(index, object.length)) - : (type == 'string' && index in object) - ) { - return eq(object[index], value); - } - return false; - } - - /** - * Checks if `value` is a property name and not a property path. - * - * @private - * @param {*} value The value to check. - * @param {Object} [object] The object to query keys on. - * @returns {boolean} Returns `true` if `value` is a property name, else `false`. - */ - function isKey(value, object) { - if (isArray(value)) { - return false; - } - var type = typeof value; - if (type == 'number' || type == 'symbol' || type == 'boolean' || - value == null || isSymbol(value)) { - return true; - } - return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || - (object != null && value in Object(object)); - } - - /** - * Checks if `value` is suitable for use as unique object key. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is suitable, else `false`. - */ - function isKeyable(value) { - var type = typeof value; - return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') - ? (value !== '__proto__') - : (value === null); - } - - /** - * Checks if `func` has a lazy counterpart. - * - * @private - * @param {Function} func The function to check. - * @returns {boolean} Returns `true` if `func` has a lazy counterpart, - * else `false`. - */ - function isLaziable(func) { - var funcName = getFuncName(func), - other = lodash[funcName]; - - if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) { - return false; - } - if (func === other) { - return true; - } - var data = getData(other); - return !!data && func === data[0]; - } - - /** - * Checks if `func` has its source masked. - * - * @private - * @param {Function} func The function to check. - * @returns {boolean} Returns `true` if `func` is masked, else `false`. - */ - function isMasked(func) { - return !!maskSrcKey && (maskSrcKey in func); - } - - /** - * Checks if `func` is capable of being masked. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `func` is maskable, else `false`. - */ - var isMaskable = coreJsData ? isFunction : stubFalse; - - /** - * Checks if `value` is likely a prototype object. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. - */ - function isPrototype(value) { - var Ctor = value && value.constructor, - proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; - - return value === proto; - } - - /** - * Checks if `value` is suitable for strict equality comparisons, i.e. `===`. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` if suitable for strict - * equality comparisons, else `false`. - */ - function isStrictComparable(value) { - return value === value && !isObject(value); - } - - /** - * A specialized version of `matchesProperty` for source values suitable - * for strict equality comparisons, i.e. `===`. - * - * @private - * @param {string} key The key of the property to get. - * @param {*} srcValue The value to match. - * @returns {Function} Returns the new spec function. - */ - function matchesStrictComparable(key, srcValue) { - return function(object) { - if (object == null) { - return false; - } - return object[key] === srcValue && - (srcValue !== undefined || (key in Object(object))); - }; - } - - /** - * A specialized version of `_.memoize` which clears the memoized function's - * cache when it exceeds `MAX_MEMOIZE_SIZE`. - * - * @private - * @param {Function} func The function to have its output memoized. - * @returns {Function} Returns the new memoized function. - */ - function memoizeCapped(func) { - var result = memoize(func, function(key) { - if (cache.size === MAX_MEMOIZE_SIZE) { - cache.clear(); - } - return key; - }); - - var cache = result.cache; - return result; - } - - /** - * Merges the function metadata of `source` into `data`. - * - * Merging metadata reduces the number of wrappers used to invoke a function. - * This is possible because methods like `_.bind`, `_.curry`, and `_.partial` - * may be applied regardless of execution order. Methods like `_.ary` and - * `_.rearg` modify function arguments, making the order in which they are - * executed important, preventing the merging of metadata. However, we make - * an exception for a safe combined case where curried functions have `_.ary` - * and or `_.rearg` applied. - * - * @private - * @param {Array} data The destination metadata. - * @param {Array} source The source metadata. - * @returns {Array} Returns `data`. - */ - function mergeData(data, source) { - var bitmask = data[1], - srcBitmask = source[1], - newBitmask = bitmask | srcBitmask, - isCommon = newBitmask < (BIND_FLAG | BIND_KEY_FLAG | ARY_FLAG); - - var isCombo = - ((srcBitmask == ARY_FLAG) && (bitmask == CURRY_FLAG)) || - ((srcBitmask == ARY_FLAG) && (bitmask == REARG_FLAG) && (data[7].length <= source[8])) || - ((srcBitmask == (ARY_FLAG | REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == CURRY_FLAG)); - - // Exit early if metadata can't be merged. - if (!(isCommon || isCombo)) { - return data; - } - // Use source `thisArg` if available. - if (srcBitmask & BIND_FLAG) { - data[2] = source[2]; - // Set when currying a bound function. - newBitmask |= bitmask & BIND_FLAG ? 0 : CURRY_BOUND_FLAG; - } - // Compose partial arguments. - var value = source[3]; - if (value) { - var partials = data[3]; - data[3] = partials ? composeArgs(partials, value, source[4]) : value; - data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4]; - } - // Compose partial right arguments. - value = source[5]; - if (value) { - partials = data[5]; - data[5] = partials ? composeArgsRight(partials, value, source[6]) : value; - data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6]; - } - // Use source `argPos` if available. - value = source[7]; - if (value) { - data[7] = value; - } - // Use source `ary` if it's smaller. - if (srcBitmask & ARY_FLAG) { - data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]); - } - // Use source `arity` if one is not provided. - if (data[9] == null) { - data[9] = source[9]; - } - // Use source `func` and merge bitmasks. - data[0] = source[0]; - data[1] = newBitmask; - - return data; - } - - /** - * Used by `_.defaultsDeep` to customize its `_.merge` use. - * - * @private - * @param {*} objValue The destination value. - * @param {*} srcValue The source value. - * @param {string} key The key of the property to merge. - * @param {Object} object The parent object of `objValue`. - * @param {Object} source The parent object of `srcValue`. - * @param {Object} [stack] Tracks traversed source values and their merged - * counterparts. - * @returns {*} Returns the value to assign. - */ - function mergeDefaults(objValue, srcValue, key, object, source, stack) { - if (isObject(objValue) && isObject(srcValue)) { - // Recursively merge objects and arrays (susceptible to call stack limits). - stack.set(srcValue, objValue); - baseMerge(objValue, srcValue, undefined, mergeDefaults, stack); - stack['delete'](srcValue); - } - return objValue; - } - - /** - * This function is like - * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) - * except that it includes inherited enumerable properties. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names. - */ - function nativeKeysIn(object) { - var result = []; - if (object != null) { - for (var key in Object(object)) { - result.push(key); - } - } - return result; - } - - /** - * A specialized version of `baseRest` which transforms the rest array. - * - * @private - * @param {Function} func The function to apply a rest parameter to. - * @param {number} [start=func.length-1] The start position of the rest parameter. - * @param {Function} transform The rest array transform. - * @returns {Function} Returns the new function. - */ - function overRest(func, start, transform) { - start = nativeMax(start === undefined ? (func.length - 1) : start, 0); - return function() { - var args = arguments, - index = -1, - length = nativeMax(args.length - start, 0), - array = Array(length); - - while (++index < length) { - array[index] = args[start + index]; - } - index = -1; - var otherArgs = Array(start + 1); - while (++index < start) { - otherArgs[index] = args[index]; - } - otherArgs[start] = transform(array); - return apply(func, this, otherArgs); - }; - } - - /** - * Gets the parent value at `path` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {Array} path The path to get the parent value of. - * @returns {*} Returns the parent value. - */ - function parent(object, path) { - return path.length == 1 ? object : baseGet(object, baseSlice(path, 0, -1)); - } - - /** - * Reorder `array` according to the specified indexes where the element at - * the first index is assigned as the first element, the element at - * the second index is assigned as the second element, and so on. - * - * @private - * @param {Array} array The array to reorder. - * @param {Array} indexes The arranged array indexes. - * @returns {Array} Returns `array`. - */ - function reorder(array, indexes) { - var arrLength = array.length, - length = nativeMin(indexes.length, arrLength), - oldArray = copyArray(array); - - while (length--) { - var index = indexes[length]; - array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined; - } - return array; - } - - /** - * Sets metadata for `func`. - * - * **Note:** If this function becomes hot, i.e. is invoked a lot in a short - * period of time, it will trip its breaker and transition to an identity - * function to avoid garbage collection pauses in V8. See - * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070) - * for more details. - * - * @private - * @param {Function} func The function to associate metadata with. - * @param {*} data The metadata. - * @returns {Function} Returns `func`. - */ - var setData = shortOut(baseSetData); - - /** - * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout). - * - * @private - * @param {Function} func The function to delay. - * @param {number} wait The number of milliseconds to delay invocation. - * @returns {number|Object} Returns the timer id or timeout object. - */ - var setTimeout = ctxSetTimeout || function(func, wait) { - return root.setTimeout(func, wait); - }; - - /** - * Sets the `toString` method of `func` to return `string`. - * - * @private - * @param {Function} func The function to modify. - * @param {Function} string The `toString` result. - * @returns {Function} Returns `func`. - */ - var setToString = shortOut(baseSetToString); - - /** - * Sets the `toString` method of `wrapper` to mimic the source of `reference` - * with wrapper details in a comment at the top of the source body. - * - * @private - * @param {Function} wrapper The function to modify. - * @param {Function} reference The reference function. - * @param {number} bitmask The bitmask flags. See `createWrap` for more details. - * @returns {Function} Returns `wrapper`. - */ - function setWrapToString(wrapper, reference, bitmask) { - var source = (reference + ''); - return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask))); - } - - /** - * Creates a function that'll short out and invoke `identity` instead - * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN` - * milliseconds. - * - * @private - * @param {Function} func The function to restrict. - * @returns {Function} Returns the new shortable function. - */ - function shortOut(func) { - var count = 0, - lastCalled = 0; - - return function() { - var stamp = nativeNow(), - remaining = HOT_SPAN - (stamp - lastCalled); - - lastCalled = stamp; - if (remaining > 0) { - if (++count >= HOT_COUNT) { - return arguments[0]; - } - } else { - count = 0; - } - return func.apply(undefined, arguments); - }; - } - - /** - * A specialized version of `_.shuffle` which mutates and sets the size of `array`. - * - * @private - * @param {Array} array The array to shuffle. - * @param {number} [size=array.length] The size of `array`. - * @returns {Array} Returns `array`. - */ - function shuffleSelf(array, size) { - var index = -1, - length = array.length, - lastIndex = length - 1; - - size = size === undefined ? length : size; - while (++index < size) { - var rand = baseRandom(index, lastIndex), - value = array[rand]; - - array[rand] = array[index]; - array[index] = value; - } - array.length = size; - return array; - } - - /** - * Converts `string` to a property path array. - * - * @private - * @param {string} string The string to convert. - * @returns {Array} Returns the property path array. - */ - var stringToPath = memoizeCapped(function(string) { - string = toString(string); - - var result = []; - if (reLeadingDot.test(string)) { - result.push(''); - } - string.replace(rePropName, function(match, number, quote, string) { - result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match)); - }); - return result; - }); - - /** - * Converts `value` to a string key if it's not a string or symbol. - * - * @private - * @param {*} value The value to inspect. - * @returns {string|symbol} Returns the key. - */ - function toKey(value) { - if (typeof value == 'string' || isSymbol(value)) { - return value; - } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; - } - - /** - * Converts `func` to its source code. - * - * @private - * @param {Function} func The function to process. - * @returns {string} Returns the source code. - */ - function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) {} - try { - return (func + ''); - } catch (e) {} - } - return ''; - } - - /** - * Updates wrapper `details` based on `bitmask` flags. - * - * @private - * @returns {Array} details The details to modify. - * @param {number} bitmask The bitmask flags. See `createWrap` for more details. - * @returns {Array} Returns `details`. - */ - function updateWrapDetails(details, bitmask) { - arrayEach(wrapFlags, function(pair) { - var value = '_.' + pair[0]; - if ((bitmask & pair[1]) && !arrayIncludes(details, value)) { - details.push(value); - } - }); - return details.sort(); - } - - /** - * Creates a clone of `wrapper`. - * - * @private - * @param {Object} wrapper The wrapper to clone. - * @returns {Object} Returns the cloned wrapper. - */ - function wrapperClone(wrapper) { - if (wrapper instanceof LazyWrapper) { - return wrapper.clone(); - } - var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__); - result.__actions__ = copyArray(wrapper.__actions__); - result.__index__ = wrapper.__index__; - result.__values__ = wrapper.__values__; - return result; - } - - /*------------------------------------------------------------------------*/ - - /** - * Creates an array of elements split into groups the length of `size`. - * If `array` can't be split evenly, the final chunk will be the remaining - * elements. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Array - * @param {Array} array The array to process. - * @param {number} [size=1] The length of each chunk - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. - * @returns {Array} Returns the new array of chunks. - * @example - * - * _.chunk(['a', 'b', 'c', 'd'], 2); - * // => [['a', 'b'], ['c', 'd']] - * - * _.chunk(['a', 'b', 'c', 'd'], 3); - * // => [['a', 'b', 'c'], ['d']] - */ - function chunk(array, size, guard) { - if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) { - size = 1; - } else { - size = nativeMax(toInteger(size), 0); - } - var length = array ? array.length : 0; - if (!length || size < 1) { - return []; - } - var index = 0, - resIndex = 0, - result = Array(nativeCeil(length / size)); - - while (index < length) { - result[resIndex++] = baseSlice(array, index, (index += size)); - } - return result; - } - - /** - * Creates an array with all falsey values removed. The values `false`, `null`, - * `0`, `""`, `undefined`, and `NaN` are falsey. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Array - * @param {Array} array The array to compact. - * @returns {Array} Returns the new array of filtered values. - * @example - * - * _.compact([0, 1, false, 2, '', 3]); - * // => [1, 2, 3] - */ - function compact(array) { - var index = -1, - length = array ? array.length : 0, - resIndex = 0, - result = []; - - while (++index < length) { - var value = array[index]; - if (value) { - result[resIndex++] = value; - } - } - return result; - } - - /** - * Creates a new array concatenating `array` with any additional arrays - * and/or values. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Array - * @param {Array} array The array to concatenate. - * @param {...*} [values] The values to concatenate. - * @returns {Array} Returns the new concatenated array. - * @example - * - * var array = [1]; - * var other = _.concat(array, 2, [3], [[4]]); - * - * console.log(other); - * // => [1, 2, 3, [4]] - * - * console.log(array); - * // => [1] - */ - function concat() { - var length = arguments.length; - if (!length) { - return []; - } - var args = Array(length - 1), - array = arguments[0], - index = length; - - while (index--) { - args[index - 1] = arguments[index]; - } - return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1)); - } - - /** - * Creates an array of `array` values not included in the other given arrays - * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * for equality comparisons. The order and references of result values are - * determined by the first array. - * - * **Note:** Unlike `_.pullAll`, this method returns a new array. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Array - * @param {Array} array The array to inspect. - * @param {...Array} [values] The values to exclude. - * @returns {Array} Returns the new array of filtered values. - * @see _.without, _.xor - * @example - * - * _.difference([2, 1], [2, 3]); - * // => [1] - */ - var difference = baseRest(function(array, values) { - return isArrayLikeObject(array) - ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true)) - : []; - }); - - /** - * This method is like `_.difference` except that it accepts `iteratee` which - * is invoked for each element of `array` and `values` to generate the criterion - * by which they're compared. The order and references of result values are - * determined by the first array. The iteratee is invoked with one argument: - * (value). - * - * **Note:** Unlike `_.pullAllBy`, this method returns a new array. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Array - * @param {Array} array The array to inspect. - * @param {...Array} [values] The values to exclude. - * @param {Function} [iteratee=_.identity] The iteratee invoked per element. - * @returns {Array} Returns the new array of filtered values. - * @example - * - * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor); - * // => [1.2] - * - * // The `_.property` iteratee shorthand. - * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x'); - * // => [{ 'x': 2 }] - */ - var differenceBy = baseRest(function(array, values) { - var iteratee = last(values); - if (isArrayLikeObject(iteratee)) { - iteratee = undefined; - } - return isArrayLikeObject(array) - ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2)) - : []; - }); - - /** - * This method is like `_.difference` except that it accepts `comparator` - * which is invoked to compare elements of `array` to `values`. The order and - * references of result values are determined by the first array. The comparator - * is invoked with two arguments: (arrVal, othVal). - * - * **Note:** Unlike `_.pullAllWith`, this method returns a new array. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Array - * @param {Array} array The array to inspect. - * @param {...Array} [values] The values to exclude. - * @param {Function} [comparator] The comparator invoked per element. - * @returns {Array} Returns the new array of filtered values. - * @example - * - * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]; - * - * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual); - * // => [{ 'x': 2, 'y': 1 }] - */ - var differenceWith = baseRest(function(array, values) { - var comparator = last(values); - if (isArrayLikeObject(comparator)) { - comparator = undefined; - } - return isArrayLikeObject(array) - ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator) - : []; - }); - - /** - * Creates a slice of `array` with `n` elements dropped from the beginning. - * - * @static - * @memberOf _ - * @since 0.5.0 - * @category Array - * @param {Array} array The array to query. - * @param {number} [n=1] The number of elements to drop. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. - * @returns {Array} Returns the slice of `array`. - * @example - * - * _.drop([1, 2, 3]); - * // => [2, 3] - * - * _.drop([1, 2, 3], 2); - * // => [3] - * - * _.drop([1, 2, 3], 5); - * // => [] - * - * _.drop([1, 2, 3], 0); - * // => [1, 2, 3] - */ - function drop(array, n, guard) { - var length = array ? array.length : 0; - if (!length) { - return []; - } - n = (guard || n === undefined) ? 1 : toInteger(n); - return baseSlice(array, n < 0 ? 0 : n, length); - } - - /** - * Creates a slice of `array` with `n` elements dropped from the end. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Array - * @param {Array} array The array to query. - * @param {number} [n=1] The number of elements to drop. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. - * @returns {Array} Returns the slice of `array`. - * @example - * - * _.dropRight([1, 2, 3]); - * // => [1, 2] - * - * _.dropRight([1, 2, 3], 2); - * // => [1] - * - * _.dropRight([1, 2, 3], 5); - * // => [] - * - * _.dropRight([1, 2, 3], 0); - * // => [1, 2, 3] - */ - function dropRight(array, n, guard) { - var length = array ? array.length : 0; - if (!length) { - return []; - } - n = (guard || n === undefined) ? 1 : toInteger(n); - n = length - n; - return baseSlice(array, 0, n < 0 ? 0 : n); - } - - /** - * Creates a slice of `array` excluding elements dropped from the end. - * Elements are dropped until `predicate` returns falsey. The predicate is - * invoked with three arguments: (value, index, array). - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Array - * @param {Array} array The array to query. - * @param {Function} [predicate=_.identity] The function invoked per iteration. - * @returns {Array} Returns the slice of `array`. - * @example - * - * var users = [ - * { 'user': 'barney', 'active': true }, - * { 'user': 'fred', 'active': false }, - * { 'user': 'pebbles', 'active': false } - * ]; - * - * _.dropRightWhile(users, function(o) { return !o.active; }); - * // => objects for ['barney'] - * - * // The `_.matches` iteratee shorthand. - * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false }); - * // => objects for ['barney', 'fred'] - * - * // The `_.matchesProperty` iteratee shorthand. - * _.dropRightWhile(users, ['active', false]); - * // => objects for ['barney'] - * - * // The `_.property` iteratee shorthand. - * _.dropRightWhile(users, 'active'); - * // => objects for ['barney', 'fred', 'pebbles'] - */ - function dropRightWhile(array, predicate) { - return (array && array.length) - ? baseWhile(array, getIteratee(predicate, 3), true, true) - : []; - } - - /** - * Creates a slice of `array` excluding elements dropped from the beginning. - * Elements are dropped until `predicate` returns falsey. The predicate is - * invoked with three arguments: (value, index, array). - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Array - * @param {Array} array The array to query. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. - * @returns {Array} Returns the slice of `array`. - * @example - * - * var users = [ - * { 'user': 'barney', 'active': false }, - * { 'user': 'fred', 'active': false }, - * { 'user': 'pebbles', 'active': true } - * ]; - * - * _.dropWhile(users, function(o) { return !o.active; }); - * // => objects for ['pebbles'] - * - * // The `_.matches` iteratee shorthand. - * _.dropWhile(users, { 'user': 'barney', 'active': false }); - * // => objects for ['fred', 'pebbles'] - * - * // The `_.matchesProperty` iteratee shorthand. - * _.dropWhile(users, ['active', false]); - * // => objects for ['pebbles'] - * - * // The `_.property` iteratee shorthand. - * _.dropWhile(users, 'active'); - * // => objects for ['barney', 'fred', 'pebbles'] - */ - function dropWhile(array, predicate) { - return (array && array.length) - ? baseWhile(array, getIteratee(predicate, 3), true) - : []; - } - - /** - * Fills elements of `array` with `value` from `start` up to, but not - * including, `end`. - * - * **Note:** This method mutates `array`. - * - * @static - * @memberOf _ - * @since 3.2.0 - * @category Array - * @param {Array} array The array to fill. - * @param {*} value The value to fill `array` with. - * @param {number} [start=0] The start position. - * @param {number} [end=array.length] The end position. - * @returns {Array} Returns `array`. - * @example - * - * var array = [1, 2, 3]; - * - * _.fill(array, 'a'); - * console.log(array); - * // => ['a', 'a', 'a'] - * - * _.fill(Array(3), 2); - * // => [2, 2, 2] - * - * _.fill([4, 6, 8, 10], '*', 1, 3); - * // => [4, '*', '*', 10] - */ - function fill(array, value, start, end) { - var length = array ? array.length : 0; - if (!length) { - return []; - } - if (start && typeof start != 'number' && isIterateeCall(array, value, start)) { - start = 0; - end = length; - } - return baseFill(array, value, start, end); - } - - /** - * This method is like `_.find` except that it returns the index of the first - * element `predicate` returns truthy for instead of the element itself. - * - * @static - * @memberOf _ - * @since 1.1.0 - * @category Array - * @param {Array} array The array to inspect. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. - * @param {number} [fromIndex=0] The index to search from. - * @returns {number} Returns the index of the found element, else `-1`. - * @example - * - * var users = [ - * { 'user': 'barney', 'active': false }, - * { 'user': 'fred', 'active': false }, - * { 'user': 'pebbles', 'active': true } - * ]; - * - * _.findIndex(users, function(o) { return o.user == 'barney'; }); - * // => 0 - * - * // The `_.matches` iteratee shorthand. - * _.findIndex(users, { 'user': 'fred', 'active': false }); - * // => 1 - * - * // The `_.matchesProperty` iteratee shorthand. - * _.findIndex(users, ['active', false]); - * // => 0 - * - * // The `_.property` iteratee shorthand. - * _.findIndex(users, 'active'); - * // => 2 - */ - function findIndex(array, predicate, fromIndex) { - var length = array ? array.length : 0; - if (!length) { - return -1; - } - var index = fromIndex == null ? 0 : toInteger(fromIndex); - if (index < 0) { - index = nativeMax(length + index, 0); - } - return baseFindIndex(array, getIteratee(predicate, 3), index); - } - - /** - * This method is like `_.findIndex` except that it iterates over elements - * of `collection` from right to left. - * - * @static - * @memberOf _ - * @since 2.0.0 - * @category Array - * @param {Array} array The array to inspect. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. - * @param {number} [fromIndex=array.length-1] The index to search from. - * @returns {number} Returns the index of the found element, else `-1`. - * @example - * - * var users = [ - * { 'user': 'barney', 'active': true }, - * { 'user': 'fred', 'active': false }, - * { 'user': 'pebbles', 'active': false } - * ]; - * - * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; }); - * // => 2 - * - * // The `_.matches` iteratee shorthand. - * _.findLastIndex(users, { 'user': 'barney', 'active': true }); - * // => 0 - * - * // The `_.matchesProperty` iteratee shorthand. - * _.findLastIndex(users, ['active', false]); - * // => 2 - * - * // The `_.property` iteratee shorthand. - * _.findLastIndex(users, 'active'); - * // => 0 - */ - function findLastIndex(array, predicate, fromIndex) { - var length = array ? array.length : 0; - if (!length) { - return -1; - } - var index = length - 1; - if (fromIndex !== undefined) { - index = toInteger(fromIndex); - index = fromIndex < 0 - ? nativeMax(length + index, 0) - : nativeMin(index, length - 1); - } - return baseFindIndex(array, getIteratee(predicate, 3), index, true); - } - - /** - * Flattens `array` a single level deep. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Array - * @param {Array} array The array to flatten. - * @returns {Array} Returns the new flattened array. - * @example - * - * _.flatten([1, [2, [3, [4]], 5]]); - * // => [1, 2, [3, [4]], 5] - */ - function flatten(array) { - var length = array ? array.length : 0; - return length ? baseFlatten(array, 1) : []; - } - - /** - * Recursively flattens `array`. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Array - * @param {Array} array The array to flatten. - * @returns {Array} Returns the new flattened array. - * @example - * - * _.flattenDeep([1, [2, [3, [4]], 5]]); - * // => [1, 2, 3, 4, 5] - */ - function flattenDeep(array) { - var length = array ? array.length : 0; - return length ? baseFlatten(array, INFINITY) : []; - } - - /** - * Recursively flatten `array` up to `depth` times. - * - * @static - * @memberOf _ - * @since 4.4.0 - * @category Array - * @param {Array} array The array to flatten. - * @param {number} [depth=1] The maximum recursion depth. - * @returns {Array} Returns the new flattened array. - * @example - * - * var array = [1, [2, [3, [4]], 5]]; - * - * _.flattenDepth(array, 1); - * // => [1, 2, [3, [4]], 5] - * - * _.flattenDepth(array, 2); - * // => [1, 2, 3, [4], 5] - */ - function flattenDepth(array, depth) { - var length = array ? array.length : 0; - if (!length) { - return []; - } - depth = depth === undefined ? 1 : toInteger(depth); - return baseFlatten(array, depth); - } - - /** - * The inverse of `_.toPairs`; this method returns an object composed - * from key-value `pairs`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Array - * @param {Array} pairs The key-value pairs. - * @returns {Object} Returns the new object. - * @example - * - * _.fromPairs([['a', 1], ['b', 2]]); - * // => { 'a': 1, 'b': 2 } - */ - function fromPairs(pairs) { - var index = -1, - length = pairs ? pairs.length : 0, - result = {}; - - while (++index < length) { - var pair = pairs[index]; - result[pair[0]] = pair[1]; - } - return result; - } - - /** - * Gets the first element of `array`. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @alias first - * @category Array - * @param {Array} array The array to query. - * @returns {*} Returns the first element of `array`. - * @example - * - * _.head([1, 2, 3]); - * // => 1 - * - * _.head([]); - * // => undefined - */ - function head(array) { - return (array && array.length) ? array[0] : undefined; - } - - /** - * Gets the index at which the first occurrence of `value` is found in `array` - * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * for equality comparisons. If `fromIndex` is negative, it's used as the - * offset from the end of `array`. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Array - * @param {Array} array The array to inspect. - * @param {*} value The value to search for. - * @param {number} [fromIndex=0] The index to search from. - * @returns {number} Returns the index of the matched value, else `-1`. - * @example - * - * _.indexOf([1, 2, 1, 2], 2); - * // => 1 - * - * // Search from the `fromIndex`. - * _.indexOf([1, 2, 1, 2], 2, 2); - * // => 3 - */ - function indexOf(array, value, fromIndex) { - var length = array ? array.length : 0; - if (!length) { - return -1; - } - var index = fromIndex == null ? 0 : toInteger(fromIndex); - if (index < 0) { - index = nativeMax(length + index, 0); - } - return baseIndexOf(array, value, index); - } - - /** - * Gets all but the last element of `array`. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Array - * @param {Array} array The array to query. - * @returns {Array} Returns the slice of `array`. - * @example - * - * _.initial([1, 2, 3]); - * // => [1, 2] - */ - function initial(array) { - var length = array ? array.length : 0; - return length ? baseSlice(array, 0, -1) : []; - } - - /** - * Creates an array of unique values that are included in all given arrays - * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * for equality comparisons. The order and references of result values are - * determined by the first array. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Array - * @param {...Array} [arrays] The arrays to inspect. - * @returns {Array} Returns the new array of intersecting values. - * @example - * - * _.intersection([2, 1], [2, 3]); - * // => [2] - */ - var intersection = baseRest(function(arrays) { - var mapped = arrayMap(arrays, castArrayLikeObject); - return (mapped.length && mapped[0] === arrays[0]) - ? baseIntersection(mapped) - : []; - }); - - /** - * This method is like `_.intersection` except that it accepts `iteratee` - * which is invoked for each element of each `arrays` to generate the criterion - * by which they're compared. The order and references of result values are - * determined by the first array. The iteratee is invoked with one argument: - * (value). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Array - * @param {...Array} [arrays] The arrays to inspect. - * @param {Function} [iteratee=_.identity] The iteratee invoked per element. - * @returns {Array} Returns the new array of intersecting values. - * @example - * - * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor); - * // => [2.1] - * - * // The `_.property` iteratee shorthand. - * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x'); - * // => [{ 'x': 1 }] - */ - var intersectionBy = baseRest(function(arrays) { - var iteratee = last(arrays), - mapped = arrayMap(arrays, castArrayLikeObject); - - if (iteratee === last(mapped)) { - iteratee = undefined; - } else { - mapped.pop(); - } - return (mapped.length && mapped[0] === arrays[0]) - ? baseIntersection(mapped, getIteratee(iteratee, 2)) - : []; - }); - - /** - * This method is like `_.intersection` except that it accepts `comparator` - * which is invoked to compare elements of `arrays`. The order and references - * of result values are determined by the first array. The comparator is - * invoked with two arguments: (arrVal, othVal). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Array - * @param {...Array} [arrays] The arrays to inspect. - * @param {Function} [comparator] The comparator invoked per element. - * @returns {Array} Returns the new array of intersecting values. - * @example - * - * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]; - * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }]; - * - * _.intersectionWith(objects, others, _.isEqual); - * // => [{ 'x': 1, 'y': 2 }] - */ - var intersectionWith = baseRest(function(arrays) { - var comparator = last(arrays), - mapped = arrayMap(arrays, castArrayLikeObject); - - if (comparator === last(mapped)) { - comparator = undefined; - } else { - mapped.pop(); - } - return (mapped.length && mapped[0] === arrays[0]) - ? baseIntersection(mapped, undefined, comparator) - : []; - }); - - /** - * Converts all elements in `array` into a string separated by `separator`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Array - * @param {Array} array The array to convert. - * @param {string} [separator=','] The element separator. - * @returns {string} Returns the joined string. - * @example - * - * _.join(['a', 'b', 'c'], '~'); - * // => 'a~b~c' - */ - function join(array, separator) { - return array ? nativeJoin.call(array, separator) : ''; - } - - /** - * Gets the last element of `array`. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Array - * @param {Array} array The array to query. - * @returns {*} Returns the last element of `array`. - * @example - * - * _.last([1, 2, 3]); - * // => 3 - */ - function last(array) { - var length = array ? array.length : 0; - return length ? array[length - 1] : undefined; - } - - /** - * This method is like `_.indexOf` except that it iterates over elements of - * `array` from right to left. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Array - * @param {Array} array The array to inspect. - * @param {*} value The value to search for. - * @param {number} [fromIndex=array.length-1] The index to search from. - * @returns {number} Returns the index of the matched value, else `-1`. - * @example - * - * _.lastIndexOf([1, 2, 1, 2], 2); - * // => 3 - * - * // Search from the `fromIndex`. - * _.lastIndexOf([1, 2, 1, 2], 2, 2); - * // => 1 - */ - function lastIndexOf(array, value, fromIndex) { - var length = array ? array.length : 0; - if (!length) { - return -1; - } - var index = length; - if (fromIndex !== undefined) { - index = toInteger(fromIndex); - index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1); - } - return value === value - ? strictLastIndexOf(array, value, index) - : baseFindIndex(array, baseIsNaN, index, true); - } - - /** - * Gets the element at index `n` of `array`. If `n` is negative, the nth - * element from the end is returned. - * - * @static - * @memberOf _ - * @since 4.11.0 - * @category Array - * @param {Array} array The array to query. - * @param {number} [n=0] The index of the element to return. - * @returns {*} Returns the nth element of `array`. - * @example - * - * var array = ['a', 'b', 'c', 'd']; - * - * _.nth(array, 1); - * // => 'b' - * - * _.nth(array, -2); - * // => 'c'; - */ - function nth(array, n) { - return (array && array.length) ? baseNth(array, toInteger(n)) : undefined; - } - - /** - * Removes all given values from `array` using - * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * for equality comparisons. - * - * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove` - * to remove elements from an array by predicate. - * - * @static - * @memberOf _ - * @since 2.0.0 - * @category Array - * @param {Array} array The array to modify. - * @param {...*} [values] The values to remove. - * @returns {Array} Returns `array`. - * @example - * - * var array = ['a', 'b', 'c', 'a', 'b', 'c']; - * - * _.pull(array, 'a', 'c'); - * console.log(array); - * // => ['b', 'b'] - */ - var pull = baseRest(pullAll); - - /** - * This method is like `_.pull` except that it accepts an array of values to remove. - * - * **Note:** Unlike `_.difference`, this method mutates `array`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Array - * @param {Array} array The array to modify. - * @param {Array} values The values to remove. - * @returns {Array} Returns `array`. - * @example - * - * var array = ['a', 'b', 'c', 'a', 'b', 'c']; - * - * _.pullAll(array, ['a', 'c']); - * console.log(array); - * // => ['b', 'b'] - */ - function pullAll(array, values) { - return (array && array.length && values && values.length) - ? basePullAll(array, values) - : array; - } - - /** - * This method is like `_.pullAll` except that it accepts `iteratee` which is - * invoked for each element of `array` and `values` to generate the criterion - * by which they're compared. The iteratee is invoked with one argument: (value). - * - * **Note:** Unlike `_.differenceBy`, this method mutates `array`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Array - * @param {Array} array The array to modify. - * @param {Array} values The values to remove. - * @param {Function} [iteratee=_.identity] - * The iteratee invoked per element. - * @returns {Array} Returns `array`. - * @example - * - * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }]; - * - * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x'); - * console.log(array); - * // => [{ 'x': 2 }] - */ - function pullAllBy(array, values, iteratee) { - return (array && array.length && values && values.length) - ? basePullAll(array, values, getIteratee(iteratee, 2)) - : array; - } - - /** - * This method is like `_.pullAll` except that it accepts `comparator` which - * is invoked to compare elements of `array` to `values`. The comparator is - * invoked with two arguments: (arrVal, othVal). - * - * **Note:** Unlike `_.differenceWith`, this method mutates `array`. - * - * @static - * @memberOf _ - * @since 4.6.0 - * @category Array - * @param {Array} array The array to modify. - * @param {Array} values The values to remove. - * @param {Function} [comparator] The comparator invoked per element. - * @returns {Array} Returns `array`. - * @example - * - * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }]; - * - * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual); - * console.log(array); - * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }] - */ - function pullAllWith(array, values, comparator) { - return (array && array.length && values && values.length) - ? basePullAll(array, values, undefined, comparator) - : array; - } - - /** - * Removes elements from `array` corresponding to `indexes` and returns an - * array of removed elements. - * - * **Note:** Unlike `_.at`, this method mutates `array`. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Array - * @param {Array} array The array to modify. - * @param {...(number|number[])} [indexes] The indexes of elements to remove. - * @returns {Array} Returns the new array of removed elements. - * @example - * - * var array = ['a', 'b', 'c', 'd']; - * var pulled = _.pullAt(array, [1, 3]); - * - * console.log(array); - * // => ['a', 'c'] - * - * console.log(pulled); - * // => ['b', 'd'] - */ - var pullAt = flatRest(function(array, indexes) { - var length = array ? array.length : 0, - result = baseAt(array, indexes); - - basePullAt(array, arrayMap(indexes, function(index) { - return isIndex(index, length) ? +index : index; - }).sort(compareAscending)); - - return result; - }); - - /** - * Removes all elements from `array` that `predicate` returns truthy for - * and returns an array of the removed elements. The predicate is invoked - * with three arguments: (value, index, array). - * - * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull` - * to pull elements from an array by value. - * - * @static - * @memberOf _ - * @since 2.0.0 - * @category Array - * @param {Array} array The array to modify. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. - * @returns {Array} Returns the new array of removed elements. - * @example - * - * var array = [1, 2, 3, 4]; - * var evens = _.remove(array, function(n) { - * return n % 2 == 0; - * }); - * - * console.log(array); - * // => [1, 3] - * - * console.log(evens); - * // => [2, 4] - */ - function remove(array, predicate) { - var result = []; - if (!(array && array.length)) { - return result; - } - var index = -1, - indexes = [], - length = array.length; - - predicate = getIteratee(predicate, 3); - while (++index < length) { - var value = array[index]; - if (predicate(value, index, array)) { - result.push(value); - indexes.push(index); - } - } - basePullAt(array, indexes); - return result; - } - - /** - * Reverses `array` so that the first element becomes the last, the second - * element becomes the second to last, and so on. - * - * **Note:** This method mutates `array` and is based on - * [`Array#reverse`](https://mdn.io/Array/reverse). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Array - * @param {Array} array The array to modify. - * @returns {Array} Returns `array`. - * @example - * - * var array = [1, 2, 3]; - * - * _.reverse(array); - * // => [3, 2, 1] - * - * console.log(array); - * // => [3, 2, 1] - */ - function reverse(array) { - return array ? nativeReverse.call(array) : array; - } - - /** - * Creates a slice of `array` from `start` up to, but not including, `end`. - * - * **Note:** This method is used instead of - * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are - * returned. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Array - * @param {Array} array The array to slice. - * @param {number} [start=0] The start position. - * @param {number} [end=array.length] The end position. - * @returns {Array} Returns the slice of `array`. - */ - function slice(array, start, end) { - var length = array ? array.length : 0; - if (!length) { - return []; - } - if (end && typeof end != 'number' && isIterateeCall(array, start, end)) { - start = 0; - end = length; - } - else { - start = start == null ? 0 : toInteger(start); - end = end === undefined ? length : toInteger(end); - } - return baseSlice(array, start, end); - } - - /** - * Uses a binary search to determine the lowest index at which `value` - * should be inserted into `array` in order to maintain its sort order. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Array - * @param {Array} array The sorted array to inspect. - * @param {*} value The value to evaluate. - * @returns {number} Returns the index at which `value` should be inserted - * into `array`. - * @example - * - * _.sortedIndex([30, 50], 40); - * // => 1 - */ - function sortedIndex(array, value) { - return baseSortedIndex(array, value); - } - - /** - * This method is like `_.sortedIndex` except that it accepts `iteratee` - * which is invoked for `value` and each element of `array` to compute their - * sort ranking. The iteratee is invoked with one argument: (value). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Array - * @param {Array} array The sorted array to inspect. - * @param {*} value The value to evaluate. - * @param {Function} [iteratee=_.identity] - * The iteratee invoked per element. - * @returns {number} Returns the index at which `value` should be inserted - * into `array`. - * @example - * - * var objects = [{ 'x': 4 }, { 'x': 5 }]; - * - * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; }); - * // => 0 - * - * // The `_.property` iteratee shorthand. - * _.sortedIndexBy(objects, { 'x': 4 }, 'x'); - * // => 0 - */ - function sortedIndexBy(array, value, iteratee) { - return baseSortedIndexBy(array, value, getIteratee(iteratee, 2)); - } - - /** - * This method is like `_.indexOf` except that it performs a binary - * search on a sorted `array`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Array - * @param {Array} array The array to inspect. - * @param {*} value The value to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - * @example - * - * _.sortedIndexOf([4, 5, 5, 5, 6], 5); - * // => 1 - */ - function sortedIndexOf(array, value) { - var length = array ? array.length : 0; - if (length) { - var index = baseSortedIndex(array, value); - if (index < length && eq(array[index], value)) { - return index; - } - } - return -1; - } - - /** - * This method is like `_.sortedIndex` except that it returns the highest - * index at which `value` should be inserted into `array` in order to - * maintain its sort order. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Array - * @param {Array} array The sorted array to inspect. - * @param {*} value The value to evaluate. - * @returns {number} Returns the index at which `value` should be inserted - * into `array`. - * @example - * - * _.sortedLastIndex([4, 5, 5, 5, 6], 5); - * // => 4 - */ - function sortedLastIndex(array, value) { - return baseSortedIndex(array, value, true); - } - - /** - * This method is like `_.sortedLastIndex` except that it accepts `iteratee` - * which is invoked for `value` and each element of `array` to compute their - * sort ranking. The iteratee is invoked with one argument: (value). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Array - * @param {Array} array The sorted array to inspect. - * @param {*} value The value to evaluate. - * @param {Function} [iteratee=_.identity] - * The iteratee invoked per element. - * @returns {number} Returns the index at which `value` should be inserted - * into `array`. - * @example - * - * var objects = [{ 'x': 4 }, { 'x': 5 }]; - * - * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; }); - * // => 1 - * - * // The `_.property` iteratee shorthand. - * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x'); - * // => 1 - */ - function sortedLastIndexBy(array, value, iteratee) { - return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true); - } - - /** - * This method is like `_.lastIndexOf` except that it performs a binary - * search on a sorted `array`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Array - * @param {Array} array The array to inspect. - * @param {*} value The value to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - * @example - * - * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5); - * // => 3 - */ - function sortedLastIndexOf(array, value) { - var length = array ? array.length : 0; - if (length) { - var index = baseSortedIndex(array, value, true) - 1; - if (eq(array[index], value)) { - return index; - } - } - return -1; - } - - /** - * This method is like `_.uniq` except that it's designed and optimized - * for sorted arrays. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Array - * @param {Array} array The array to inspect. - * @returns {Array} Returns the new duplicate free array. - * @example - * - * _.sortedUniq([1, 1, 2]); - * // => [1, 2] - */ - function sortedUniq(array) { - return (array && array.length) - ? baseSortedUniq(array) - : []; - } - - /** - * This method is like `_.uniqBy` except that it's designed and optimized - * for sorted arrays. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Array - * @param {Array} array The array to inspect. - * @param {Function} [iteratee] The iteratee invoked per element. - * @returns {Array} Returns the new duplicate free array. - * @example - * - * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor); - * // => [1.1, 2.3] - */ - function sortedUniqBy(array, iteratee) { - return (array && array.length) - ? baseSortedUniq(array, getIteratee(iteratee, 2)) - : []; - } - - /** - * Gets all but the first element of `array`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Array - * @param {Array} array The array to query. - * @returns {Array} Returns the slice of `array`. - * @example - * - * _.tail([1, 2, 3]); - * // => [2, 3] - */ - function tail(array) { - var length = array ? array.length : 0; - return length ? baseSlice(array, 1, length) : []; - } - - /** - * Creates a slice of `array` with `n` elements taken from the beginning. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Array - * @param {Array} array The array to query. - * @param {number} [n=1] The number of elements to take. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. - * @returns {Array} Returns the slice of `array`. - * @example - * - * _.take([1, 2, 3]); - * // => [1] - * - * _.take([1, 2, 3], 2); - * // => [1, 2] - * - * _.take([1, 2, 3], 5); - * // => [1, 2, 3] - * - * _.take([1, 2, 3], 0); - * // => [] - */ - function take(array, n, guard) { - if (!(array && array.length)) { - return []; - } - n = (guard || n === undefined) ? 1 : toInteger(n); - return baseSlice(array, 0, n < 0 ? 0 : n); - } - - /** - * Creates a slice of `array` with `n` elements taken from the end. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Array - * @param {Array} array The array to query. - * @param {number} [n=1] The number of elements to take. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. - * @returns {Array} Returns the slice of `array`. - * @example - * - * _.takeRight([1, 2, 3]); - * // => [3] - * - * _.takeRight([1, 2, 3], 2); - * // => [2, 3] - * - * _.takeRight([1, 2, 3], 5); - * // => [1, 2, 3] - * - * _.takeRight([1, 2, 3], 0); - * // => [] - */ - function takeRight(array, n, guard) { - var length = array ? array.length : 0; - if (!length) { - return []; - } - n = (guard || n === undefined) ? 1 : toInteger(n); - n = length - n; - return baseSlice(array, n < 0 ? 0 : n, length); - } - - /** - * Creates a slice of `array` with elements taken from the end. Elements are - * taken until `predicate` returns falsey. The predicate is invoked with - * three arguments: (value, index, array). - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Array - * @param {Array} array The array to query. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. - * @returns {Array} Returns the slice of `array`. - * @example - * - * var users = [ - * { 'user': 'barney', 'active': true }, - * { 'user': 'fred', 'active': false }, - * { 'user': 'pebbles', 'active': false } - * ]; - * - * _.takeRightWhile(users, function(o) { return !o.active; }); - * // => objects for ['fred', 'pebbles'] - * - * // The `_.matches` iteratee shorthand. - * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false }); - * // => objects for ['pebbles'] - * - * // The `_.matchesProperty` iteratee shorthand. - * _.takeRightWhile(users, ['active', false]); - * // => objects for ['fred', 'pebbles'] - * - * // The `_.property` iteratee shorthand. - * _.takeRightWhile(users, 'active'); - * // => [] - */ - function takeRightWhile(array, predicate) { - return (array && array.length) - ? baseWhile(array, getIteratee(predicate, 3), false, true) - : []; - } - - /** - * Creates a slice of `array` with elements taken from the beginning. Elements - * are taken until `predicate` returns falsey. The predicate is invoked with - * three arguments: (value, index, array). - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Array - * @param {Array} array The array to query. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. - * @returns {Array} Returns the slice of `array`. - * @example - * - * var users = [ - * { 'user': 'barney', 'active': false }, - * { 'user': 'fred', 'active': false}, - * { 'user': 'pebbles', 'active': true } - * ]; - * - * _.takeWhile(users, function(o) { return !o.active; }); - * // => objects for ['barney', 'fred'] - * - * // The `_.matches` iteratee shorthand. - * _.takeWhile(users, { 'user': 'barney', 'active': false }); - * // => objects for ['barney'] - * - * // The `_.matchesProperty` iteratee shorthand. - * _.takeWhile(users, ['active', false]); - * // => objects for ['barney', 'fred'] - * - * // The `_.property` iteratee shorthand. - * _.takeWhile(users, 'active'); - * // => [] - */ - function takeWhile(array, predicate) { - return (array && array.length) - ? baseWhile(array, getIteratee(predicate, 3)) - : []; - } - - /** - * Creates an array of unique values, in order, from all given arrays using - * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * for equality comparisons. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Array - * @param {...Array} [arrays] The arrays to inspect. - * @returns {Array} Returns the new array of combined values. - * @example - * - * _.union([2], [1, 2]); - * // => [2, 1] - */ - var union = baseRest(function(arrays) { - return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true)); - }); - - /** - * This method is like `_.union` except that it accepts `iteratee` which is - * invoked for each element of each `arrays` to generate the criterion by - * which uniqueness is computed. Result values are chosen from the first - * array in which the value occurs. The iteratee is invoked with one argument: - * (value). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Array - * @param {...Array} [arrays] The arrays to inspect. - * @param {Function} [iteratee=_.identity] - * The iteratee invoked per element. - * @returns {Array} Returns the new array of combined values. - * @example - * - * _.unionBy([2.1], [1.2, 2.3], Math.floor); - * // => [2.1, 1.2] - * - * // The `_.property` iteratee shorthand. - * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x'); - * // => [{ 'x': 1 }, { 'x': 2 }] - */ - var unionBy = baseRest(function(arrays) { - var iteratee = last(arrays); - if (isArrayLikeObject(iteratee)) { - iteratee = undefined; - } - return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2)); - }); - - /** - * This method is like `_.union` except that it accepts `comparator` which - * is invoked to compare elements of `arrays`. Result values are chosen from - * the first array in which the value occurs. The comparator is invoked - * with two arguments: (arrVal, othVal). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Array - * @param {...Array} [arrays] The arrays to inspect. - * @param {Function} [comparator] The comparator invoked per element. - * @returns {Array} Returns the new array of combined values. - * @example - * - * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]; - * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }]; - * - * _.unionWith(objects, others, _.isEqual); - * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }] - */ - var unionWith = baseRest(function(arrays) { - var comparator = last(arrays); - if (isArrayLikeObject(comparator)) { - comparator = undefined; - } - return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator); - }); - - /** - * Creates a duplicate-free version of an array, using - * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * for equality comparisons, in which only the first occurrence of each element - * is kept. The order of result values is determined by the order they occur - * in the array. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Array - * @param {Array} array The array to inspect. - * @returns {Array} Returns the new duplicate free array. - * @example - * - * _.uniq([2, 1, 2]); - * // => [2, 1] - */ - function uniq(array) { - return (array && array.length) - ? baseUniq(array) - : []; - } - - /** - * This method is like `_.uniq` except that it accepts `iteratee` which is - * invoked for each element in `array` to generate the criterion by which - * uniqueness is computed. The order of result values is determined by the - * order they occur in the array. The iteratee is invoked with one argument: - * (value). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Array - * @param {Array} array The array to inspect. - * @param {Function} [iteratee=_.identity] - * The iteratee invoked per element. - * @returns {Array} Returns the new duplicate free array. - * @example - * - * _.uniqBy([2.1, 1.2, 2.3], Math.floor); - * // => [2.1, 1.2] - * - * // The `_.property` iteratee shorthand. - * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x'); - * // => [{ 'x': 1 }, { 'x': 2 }] - */ - function uniqBy(array, iteratee) { - return (array && array.length) - ? baseUniq(array, getIteratee(iteratee, 2)) - : []; - } - - /** - * This method is like `_.uniq` except that it accepts `comparator` which - * is invoked to compare elements of `array`. The order of result values is - * determined by the order they occur in the array.The comparator is invoked - * with two arguments: (arrVal, othVal). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Array - * @param {Array} array The array to inspect. - * @param {Function} [comparator] The comparator invoked per element. - * @returns {Array} Returns the new duplicate free array. - * @example - * - * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }]; - * - * _.uniqWith(objects, _.isEqual); - * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }] - */ - function uniqWith(array, comparator) { - return (array && array.length) - ? baseUniq(array, undefined, comparator) - : []; - } - - /** - * This method is like `_.zip` except that it accepts an array of grouped - * elements and creates an array regrouping the elements to their pre-zip - * configuration. - * - * @static - * @memberOf _ - * @since 1.2.0 - * @category Array - * @param {Array} array The array of grouped elements to process. - * @returns {Array} Returns the new array of regrouped elements. - * @example - * - * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]); - * // => [['a', 1, true], ['b', 2, false]] - * - * _.unzip(zipped); - * // => [['a', 'b'], [1, 2], [true, false]] - */ - function unzip(array) { - if (!(array && array.length)) { - return []; - } - var length = 0; - array = arrayFilter(array, function(group) { - if (isArrayLikeObject(group)) { - length = nativeMax(group.length, length); - return true; - } - }); - return baseTimes(length, function(index) { - return arrayMap(array, baseProperty(index)); - }); - } - - /** - * This method is like `_.unzip` except that it accepts `iteratee` to specify - * how regrouped values should be combined. The iteratee is invoked with the - * elements of each group: (...group). - * - * @static - * @memberOf _ - * @since 3.8.0 - * @category Array - * @param {Array} array The array of grouped elements to process. - * @param {Function} [iteratee=_.identity] The function to combine - * regrouped values. - * @returns {Array} Returns the new array of regrouped elements. - * @example - * - * var zipped = _.zip([1, 2], [10, 20], [100, 200]); - * // => [[1, 10, 100], [2, 20, 200]] - * - * _.unzipWith(zipped, _.add); - * // => [3, 30, 300] - */ - function unzipWith(array, iteratee) { - if (!(array && array.length)) { - return []; - } - var result = unzip(array); - if (iteratee == null) { - return result; - } - return arrayMap(result, function(group) { - return apply(iteratee, undefined, group); - }); - } - - /** - * Creates an array excluding all given values using - * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * for equality comparisons. - * - * **Note:** Unlike `_.pull`, this method returns a new array. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Array - * @param {Array} array The array to inspect. - * @param {...*} [values] The values to exclude. - * @returns {Array} Returns the new array of filtered values. - * @see _.difference, _.xor - * @example - * - * _.without([2, 1, 2, 3], 1, 2); - * // => [3] - */ - var without = baseRest(function(array, values) { - return isArrayLikeObject(array) - ? baseDifference(array, values) - : []; - }); - - /** - * Creates an array of unique values that is the - * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference) - * of the given arrays. The order of result values is determined by the order - * they occur in the arrays. - * - * @static - * @memberOf _ - * @since 2.4.0 - * @category Array - * @param {...Array} [arrays] The arrays to inspect. - * @returns {Array} Returns the new array of filtered values. - * @see _.difference, _.without - * @example - * - * _.xor([2, 1], [2, 3]); - * // => [1, 3] - */ - var xor = baseRest(function(arrays) { - return baseXor(arrayFilter(arrays, isArrayLikeObject)); - }); - - /** - * This method is like `_.xor` except that it accepts `iteratee` which is - * invoked for each element of each `arrays` to generate the criterion by - * which by which they're compared. The order of result values is determined - * by the order they occur in the arrays. The iteratee is invoked with one - * argument: (value). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Array - * @param {...Array} [arrays] The arrays to inspect. - * @param {Function} [iteratee=_.identity] - * The iteratee invoked per element. - * @returns {Array} Returns the new array of filtered values. - * @example - * - * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor); - * // => [1.2, 3.4] - * - * // The `_.property` iteratee shorthand. - * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x'); - * // => [{ 'x': 2 }] - */ - var xorBy = baseRest(function(arrays) { - var iteratee = last(arrays); - if (isArrayLikeObject(iteratee)) { - iteratee = undefined; - } - return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2)); - }); - - /** - * This method is like `_.xor` except that it accepts `comparator` which is - * invoked to compare elements of `arrays`. The order of result values is - * determined by the order they occur in the arrays. The comparator is invoked - * with two arguments: (arrVal, othVal). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Array - * @param {...Array} [arrays] The arrays to inspect. - * @param {Function} [comparator] The comparator invoked per element. - * @returns {Array} Returns the new array of filtered values. - * @example - * - * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]; - * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }]; - * - * _.xorWith(objects, others, _.isEqual); - * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }] - */ - var xorWith = baseRest(function(arrays) { - var comparator = last(arrays); - if (isArrayLikeObject(comparator)) { - comparator = undefined; - } - return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator); - }); - - /** - * Creates an array of grouped elements, the first of which contains the - * first elements of the given arrays, the second of which contains the - * second elements of the given arrays, and so on. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Array - * @param {...Array} [arrays] The arrays to process. - * @returns {Array} Returns the new array of grouped elements. - * @example - * - * _.zip(['a', 'b'], [1, 2], [true, false]); - * // => [['a', 1, true], ['b', 2, false]] - */ - var zip = baseRest(unzip); - - /** - * This method is like `_.fromPairs` except that it accepts two arrays, - * one of property identifiers and one of corresponding values. - * - * @static - * @memberOf _ - * @since 0.4.0 - * @category Array - * @param {Array} [props=[]] The property identifiers. - * @param {Array} [values=[]] The property values. - * @returns {Object} Returns the new object. - * @example - * - * _.zipObject(['a', 'b'], [1, 2]); - * // => { 'a': 1, 'b': 2 } - */ - function zipObject(props, values) { - return baseZipObject(props || [], values || [], assignValue); - } - - /** - * This method is like `_.zipObject` except that it supports property paths. - * - * @static - * @memberOf _ - * @since 4.1.0 - * @category Array - * @param {Array} [props=[]] The property identifiers. - * @param {Array} [values=[]] The property values. - * @returns {Object} Returns the new object. - * @example - * - * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]); - * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } } - */ - function zipObjectDeep(props, values) { - return baseZipObject(props || [], values || [], baseSet); - } - - /** - * This method is like `_.zip` except that it accepts `iteratee` to specify - * how grouped values should be combined. The iteratee is invoked with the - * elements of each group: (...group). - * - * @static - * @memberOf _ - * @since 3.8.0 - * @category Array - * @param {...Array} [arrays] The arrays to process. - * @param {Function} [iteratee=_.identity] The function to combine grouped values. - * @returns {Array} Returns the new array of grouped elements. - * @example - * - * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) { - * return a + b + c; - * }); - * // => [111, 222] - */ - var zipWith = baseRest(function(arrays) { - var length = arrays.length, - iteratee = length > 1 ? arrays[length - 1] : undefined; - - iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined; - return unzipWith(arrays, iteratee); - }); - - /*------------------------------------------------------------------------*/ - - /** - * Creates a `lodash` wrapper instance that wraps `value` with explicit method - * chain sequences enabled. The result of such sequences must be unwrapped - * with `_#value`. - * - * @static - * @memberOf _ - * @since 1.3.0 - * @category Seq - * @param {*} value The value to wrap. - * @returns {Object} Returns the new `lodash` wrapper instance. - * @example - * - * var users = [ - * { 'user': 'barney', 'age': 36 }, - * { 'user': 'fred', 'age': 40 }, - * { 'user': 'pebbles', 'age': 1 } - * ]; - * - * var youngest = _ - * .chain(users) - * .sortBy('age') - * .map(function(o) { - * return o.user + ' is ' + o.age; - * }) - * .head() - * .value(); - * // => 'pebbles is 1' - */ - function chain(value) { - var result = lodash(value); - result.__chain__ = true; - return result; - } - - /** - * This method invokes `interceptor` and returns `value`. The interceptor - * is invoked with one argument; (value). The purpose of this method is to - * "tap into" a method chain sequence in order to modify intermediate results. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Seq - * @param {*} value The value to provide to `interceptor`. - * @param {Function} interceptor The function to invoke. - * @returns {*} Returns `value`. - * @example - * - * _([1, 2, 3]) - * .tap(function(array) { - * // Mutate input array. - * array.pop(); - * }) - * .reverse() - * .value(); - * // => [2, 1] - */ - function tap(value, interceptor) { - interceptor(value); - return value; - } - - /** - * This method is like `_.tap` except that it returns the result of `interceptor`. - * The purpose of this method is to "pass thru" values replacing intermediate - * results in a method chain sequence. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Seq - * @param {*} value The value to provide to `interceptor`. - * @param {Function} interceptor The function to invoke. - * @returns {*} Returns the result of `interceptor`. - * @example - * - * _(' abc ') - * .chain() - * .trim() - * .thru(function(value) { - * return [value]; - * }) - * .value(); - * // => ['abc'] - */ - function thru(value, interceptor) { - return interceptor(value); - } - - /** - * This method is the wrapper version of `_.at`. - * - * @name at - * @memberOf _ - * @since 1.0.0 - * @category Seq - * @param {...(string|string[])} [paths] The property paths of elements to pick. - * @returns {Object} Returns the new `lodash` wrapper instance. - * @example - * - * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] }; - * - * _(object).at(['a[0].b.c', 'a[1]']).value(); - * // => [3, 4] - */ - var wrapperAt = flatRest(function(paths) { - var length = paths.length, - start = length ? paths[0] : 0, - value = this.__wrapped__, - interceptor = function(object) { return baseAt(object, paths); }; - - if (length > 1 || this.__actions__.length || - !(value instanceof LazyWrapper) || !isIndex(start)) { - return this.thru(interceptor); - } - value = value.slice(start, +start + (length ? 1 : 0)); - value.__actions__.push({ - 'func': thru, - 'args': [interceptor], - 'thisArg': undefined - }); - return new LodashWrapper(value, this.__chain__).thru(function(array) { - if (length && !array.length) { - array.push(undefined); - } - return array; - }); - }); - - /** - * Creates a `lodash` wrapper instance with explicit method chain sequences enabled. - * - * @name chain - * @memberOf _ - * @since 0.1.0 - * @category Seq - * @returns {Object} Returns the new `lodash` wrapper instance. - * @example - * - * var users = [ - * { 'user': 'barney', 'age': 36 }, - * { 'user': 'fred', 'age': 40 } - * ]; - * - * // A sequence without explicit chaining. - * _(users).head(); - * // => { 'user': 'barney', 'age': 36 } - * - * // A sequence with explicit chaining. - * _(users) - * .chain() - * .head() - * .pick('user') - * .value(); - * // => { 'user': 'barney' } - */ - function wrapperChain() { - return chain(this); - } - - /** - * Executes the chain sequence and returns the wrapped result. - * - * @name commit - * @memberOf _ - * @since 3.2.0 - * @category Seq - * @returns {Object} Returns the new `lodash` wrapper instance. - * @example - * - * var array = [1, 2]; - * var wrapped = _(array).push(3); - * - * console.log(array); - * // => [1, 2] - * - * wrapped = wrapped.commit(); - * console.log(array); - * // => [1, 2, 3] - * - * wrapped.last(); - * // => 3 - * - * console.log(array); - * // => [1, 2, 3] - */ - function wrapperCommit() { - return new LodashWrapper(this.value(), this.__chain__); - } - - /** - * Gets the next value on a wrapped object following the - * [iterator protocol](https://mdn.io/iteration_protocols#iterator). - * - * @name next - * @memberOf _ - * @since 4.0.0 - * @category Seq - * @returns {Object} Returns the next iterator value. - * @example - * - * var wrapped = _([1, 2]); - * - * wrapped.next(); - * // => { 'done': false, 'value': 1 } - * - * wrapped.next(); - * // => { 'done': false, 'value': 2 } - * - * wrapped.next(); - * // => { 'done': true, 'value': undefined } - */ - function wrapperNext() { - if (this.__values__ === undefined) { - this.__values__ = toArray(this.value()); - } - var done = this.__index__ >= this.__values__.length, - value = done ? undefined : this.__values__[this.__index__++]; - - return { 'done': done, 'value': value }; - } - - /** - * Enables the wrapper to be iterable. - * - * @name Symbol.iterator - * @memberOf _ - * @since 4.0.0 - * @category Seq - * @returns {Object} Returns the wrapper object. - * @example - * - * var wrapped = _([1, 2]); - * - * wrapped[Symbol.iterator]() === wrapped; - * // => true - * - * Array.from(wrapped); - * // => [1, 2] - */ - function wrapperToIterator() { - return this; - } - - /** - * Creates a clone of the chain sequence planting `value` as the wrapped value. - * - * @name plant - * @memberOf _ - * @since 3.2.0 - * @category Seq - * @param {*} value The value to plant. - * @returns {Object} Returns the new `lodash` wrapper instance. - * @example - * - * function square(n) { - * return n * n; - * } - * - * var wrapped = _([1, 2]).map(square); - * var other = wrapped.plant([3, 4]); - * - * other.value(); - * // => [9, 16] - * - * wrapped.value(); - * // => [1, 4] - */ - function wrapperPlant(value) { - var result, - parent = this; - - while (parent instanceof baseLodash) { - var clone = wrapperClone(parent); - clone.__index__ = 0; - clone.__values__ = undefined; - if (result) { - previous.__wrapped__ = clone; - } else { - result = clone; - } - var previous = clone; - parent = parent.__wrapped__; - } - previous.__wrapped__ = value; - return result; - } - - /** - * This method is the wrapper version of `_.reverse`. - * - * **Note:** This method mutates the wrapped array. - * - * @name reverse - * @memberOf _ - * @since 0.1.0 - * @category Seq - * @returns {Object} Returns the new `lodash` wrapper instance. - * @example - * - * var array = [1, 2, 3]; - * - * _(array).reverse().value() - * // => [3, 2, 1] - * - * console.log(array); - * // => [3, 2, 1] - */ - function wrapperReverse() { - var value = this.__wrapped__; - if (value instanceof LazyWrapper) { - var wrapped = value; - if (this.__actions__.length) { - wrapped = new LazyWrapper(this); - } - wrapped = wrapped.reverse(); - wrapped.__actions__.push({ - 'func': thru, - 'args': [reverse], - 'thisArg': undefined - }); - return new LodashWrapper(wrapped, this.__chain__); - } - return this.thru(reverse); - } - - /** - * Executes the chain sequence to resolve the unwrapped value. - * - * @name value - * @memberOf _ - * @since 0.1.0 - * @alias toJSON, valueOf - * @category Seq - * @returns {*} Returns the resolved unwrapped value. - * @example - * - * _([1, 2, 3]).value(); - * // => [1, 2, 3] - */ - function wrapperValue() { - return baseWrapperValue(this.__wrapped__, this.__actions__); - } - - /*------------------------------------------------------------------------*/ - - /** - * Creates an object composed of keys generated from the results of running - * each element of `collection` thru `iteratee`. The corresponding value of - * each key is the number of times the key was returned by `iteratee`. The - * iteratee is invoked with one argument: (value). - * - * @static - * @memberOf _ - * @since 0.5.0 - * @category Collection - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [iteratee=_.identity] - * The iteratee to transform keys. - * @returns {Object} Returns the composed aggregate object. - * @example - * - * _.countBy([6.1, 4.2, 6.3], Math.floor); - * // => { '4': 1, '6': 2 } - * - * // The `_.property` iteratee shorthand. - * _.countBy(['one', 'two', 'three'], 'length'); - * // => { '3': 2, '5': 1 } - */ - var countBy = createAggregator(function(result, value, key) { - if (hasOwnProperty.call(result, key)) { - ++result[key]; - } else { - baseAssignValue(result, key, 1); - } - }); - - /** - * Checks if `predicate` returns truthy for **all** elements of `collection`. - * Iteration is stopped once `predicate` returns falsey. The predicate is - * invoked with three arguments: (value, index|key, collection). - * - * **Note:** This method returns `true` for - * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because - * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of - * elements of empty collections. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Collection - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. - * @returns {boolean} Returns `true` if all elements pass the predicate check, - * else `false`. - * @example - * - * _.every([true, 1, null, 'yes'], Boolean); - * // => false - * - * var users = [ - * { 'user': 'barney', 'age': 36, 'active': false }, - * { 'user': 'fred', 'age': 40, 'active': false } - * ]; - * - * // The `_.matches` iteratee shorthand. - * _.every(users, { 'user': 'barney', 'active': false }); - * // => false - * - * // The `_.matchesProperty` iteratee shorthand. - * _.every(users, ['active', false]); - * // => true - * - * // The `_.property` iteratee shorthand. - * _.every(users, 'active'); - * // => false - */ - function every(collection, predicate, guard) { - var func = isArray(collection) ? arrayEvery : baseEvery; - if (guard && isIterateeCall(collection, predicate, guard)) { - predicate = undefined; - } - return func(collection, getIteratee(predicate, 3)); - } - - /** - * Iterates over elements of `collection`, returning an array of all elements - * `predicate` returns truthy for. The predicate is invoked with three - * arguments: (value, index|key, collection). - * - * **Note:** Unlike `_.remove`, this method returns a new array. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Collection - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. - * @returns {Array} Returns the new filtered array. - * @see _.reject - * @example - * - * var users = [ - * { 'user': 'barney', 'age': 36, 'active': true }, - * { 'user': 'fred', 'age': 40, 'active': false } - * ]; - * - * _.filter(users, function(o) { return !o.active; }); - * // => objects for ['fred'] - * - * // The `_.matches` iteratee shorthand. - * _.filter(users, { 'age': 36, 'active': true }); - * // => objects for ['barney'] - * - * // The `_.matchesProperty` iteratee shorthand. - * _.filter(users, ['active', false]); - * // => objects for ['fred'] - * - * // The `_.property` iteratee shorthand. - * _.filter(users, 'active'); - * // => objects for ['barney'] - */ - function filter(collection, predicate) { - var func = isArray(collection) ? arrayFilter : baseFilter; - return func(collection, getIteratee(predicate, 3)); - } - - /** - * Iterates over elements of `collection`, returning the first element - * `predicate` returns truthy for. The predicate is invoked with three - * arguments: (value, index|key, collection). - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Collection - * @param {Array|Object} collection The collection to inspect. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. - * @param {number} [fromIndex=0] The index to search from. - * @returns {*} Returns the matched element, else `undefined`. - * @example - * - * var users = [ - * { 'user': 'barney', 'age': 36, 'active': true }, - * { 'user': 'fred', 'age': 40, 'active': false }, - * { 'user': 'pebbles', 'age': 1, 'active': true } - * ]; - * - * _.find(users, function(o) { return o.age < 40; }); - * // => object for 'barney' - * - * // The `_.matches` iteratee shorthand. - * _.find(users, { 'age': 1, 'active': true }); - * // => object for 'pebbles' - * - * // The `_.matchesProperty` iteratee shorthand. - * _.find(users, ['active', false]); - * // => object for 'fred' - * - * // The `_.property` iteratee shorthand. - * _.find(users, 'active'); - * // => object for 'barney' - */ - var find = createFind(findIndex); - - /** - * This method is like `_.find` except that it iterates over elements of - * `collection` from right to left. - * - * @static - * @memberOf _ - * @since 2.0.0 - * @category Collection - * @param {Array|Object} collection The collection to inspect. - * @param {Function} [predicate=_.identity] - * The function invoked per iteration. - * @param {number} [fromIndex=collection.length-1] The index to search from. - * @returns {*} Returns the matched element, else `undefined`. - * @example - * - * _.findLast([1, 2, 3, 4], function(n) { - * return n % 2 == 1; - * }); - * // => 3 - */ - var findLast = createFind(findLastIndex); - - /** - * Creates a flattened array of values by running each element in `collection` - * thru `iteratee` and flattening the mapped results. The iteratee is invoked - * with three arguments: (value, index|key, collection). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Collection - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [iteratee=_.identity] - * The function invoked per iteration. - * @returns {Array} Returns the new flattened array. - * @example - * - * function duplicate(n) { - * return [n, n]; - * } - * - * _.flatMap([1, 2], duplicate); - * // => [1, 1, 2, 2] - */ - function flatMap(collection, iteratee) { - return baseFlatten(map(collection, iteratee), 1); - } - - /** - * This method is like `_.flatMap` except that it recursively flattens the - * mapped results. - * - * @static - * @memberOf _ - * @since 4.7.0 - * @category Collection - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [iteratee=_.identity] - * The function invoked per iteration. - * @returns {Array} Returns the new flattened array. - * @example - * - * function duplicate(n) { - * return [[[n, n]]]; - * } - * - * _.flatMapDeep([1, 2], duplicate); - * // => [1, 1, 2, 2] - */ - function flatMapDeep(collection, iteratee) { - return baseFlatten(map(collection, iteratee), INFINITY); - } - - /** - * This method is like `_.flatMap` except that it recursively flattens the - * mapped results up to `depth` times. - * - * @static - * @memberOf _ - * @since 4.7.0 - * @category Collection - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [iteratee=_.identity] - * The function invoked per iteration. - * @param {number} [depth=1] The maximum recursion depth. - * @returns {Array} Returns the new flattened array. - * @example - * - * function duplicate(n) { - * return [[[n, n]]]; - * } - * - * _.flatMapDepth([1, 2], duplicate, 2); - * // => [[1, 1], [2, 2]] - */ - function flatMapDepth(collection, iteratee, depth) { - depth = depth === undefined ? 1 : toInteger(depth); - return baseFlatten(map(collection, iteratee), depth); - } - - /** - * Iterates over elements of `collection` and invokes `iteratee` for each element. - * The iteratee is invoked with three arguments: (value, index|key, collection). - * Iteratee functions may exit iteration early by explicitly returning `false`. - * - * **Note:** As with other "Collections" methods, objects with a "length" - * property are iterated like arrays. To avoid this behavior use `_.forIn` - * or `_.forOwn` for object iteration. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @alias each - * @category Collection - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [iteratee=_.identity] The function invoked per iteration. - * @returns {Array|Object} Returns `collection`. - * @see _.forEachRight - * @example - * - * _.forEach([1, 2], function(value) { - * console.log(value); - * }); - * // => Logs `1` then `2`. - * - * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) { - * console.log(key); - * }); - * // => Logs 'a' then 'b' (iteration order is not guaranteed). - */ - function forEach(collection, iteratee) { - var func = isArray(collection) ? arrayEach : baseEach; - return func(collection, getIteratee(iteratee, 3)); - } - - /** - * This method is like `_.forEach` except that it iterates over elements of - * `collection` from right to left. - * - * @static - * @memberOf _ - * @since 2.0.0 - * @alias eachRight - * @category Collection - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [iteratee=_.identity] The function invoked per iteration. - * @returns {Array|Object} Returns `collection`. - * @see _.forEach - * @example - * - * _.forEachRight([1, 2], function(value) { - * console.log(value); - * }); - * // => Logs `2` then `1`. - */ - function forEachRight(collection, iteratee) { - var func = isArray(collection) ? arrayEachRight : baseEachRight; - return func(collection, getIteratee(iteratee, 3)); - } - - /** - * Creates an object composed of keys generated from the results of running - * each element of `collection` thru `iteratee`. The order of grouped values - * is determined by the order they occur in `collection`. The corresponding - * value of each key is an array of elements responsible for generating the - * key. The iteratee is invoked with one argument: (value). - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Collection - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [iteratee=_.identity] - * The iteratee to transform keys. - * @returns {Object} Returns the composed aggregate object. - * @example - * - * _.groupBy([6.1, 4.2, 6.3], Math.floor); - * // => { '4': [4.2], '6': [6.1, 6.3] } - * - * // The `_.property` iteratee shorthand. - * _.groupBy(['one', 'two', 'three'], 'length'); - * // => { '3': ['one', 'two'], '5': ['three'] } - */ - var groupBy = createAggregator(function(result, value, key) { - if (hasOwnProperty.call(result, key)) { - result[key].push(value); - } else { - baseAssignValue(result, key, [value]); - } - }); - - /** - * Checks if `value` is in `collection`. If `collection` is a string, it's - * checked for a substring of `value`, otherwise - * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * is used for equality comparisons. If `fromIndex` is negative, it's used as - * the offset from the end of `collection`. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Collection - * @param {Array|Object|string} collection The collection to inspect. - * @param {*} value The value to search for. - * @param {number} [fromIndex=0] The index to search from. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`. - * @returns {boolean} Returns `true` if `value` is found, else `false`. - * @example - * - * _.includes([1, 2, 3], 1); - * // => true - * - * _.includes([1, 2, 3], 1, 2); - * // => false - * - * _.includes({ 'a': 1, 'b': 2 }, 1); - * // => true - * - * _.includes('abcd', 'bc'); - * // => true - */ - function includes(collection, value, fromIndex, guard) { - collection = isArrayLike(collection) ? collection : values(collection); - fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0; - - var length = collection.length; - if (fromIndex < 0) { - fromIndex = nativeMax(length + fromIndex, 0); - } - return isString(collection) - ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1) - : (!!length && baseIndexOf(collection, value, fromIndex) > -1); - } - - /** - * Invokes the method at `path` of each element in `collection`, returning - * an array of the results of each invoked method. Any additional arguments - * are provided to each invoked method. If `path` is a function, it's invoked - * for, and `this` bound to, each element in `collection`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Collection - * @param {Array|Object} collection The collection to iterate over. - * @param {Array|Function|string} path The path of the method to invoke or - * the function invoked per iteration. - * @param {...*} [args] The arguments to invoke each method with. - * @returns {Array} Returns the array of results. - * @example - * - * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort'); - * // => [[1, 5, 7], [1, 2, 3]] - * - * _.invokeMap([123, 456], String.prototype.split, ''); - * // => [['1', '2', '3'], ['4', '5', '6']] - */ - var invokeMap = baseRest(function(collection, path, args) { - var index = -1, - isFunc = typeof path == 'function', - isProp = isKey(path), - result = isArrayLike(collection) ? Array(collection.length) : []; - - baseEach(collection, function(value) { - var func = isFunc ? path : ((isProp && value != null) ? value[path] : undefined); - result[++index] = func ? apply(func, value, args) : baseInvoke(value, path, args); - }); - return result; - }); - - /** - * Creates an object composed of keys generated from the results of running - * each element of `collection` thru `iteratee`. The corresponding value of - * each key is the last element responsible for generating the key. The - * iteratee is invoked with one argument: (value). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Collection - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [iteratee=_.identity] - * The iteratee to transform keys. - * @returns {Object} Returns the composed aggregate object. - * @example - * - * var array = [ - * { 'dir': 'left', 'code': 97 }, - * { 'dir': 'right', 'code': 100 } - * ]; - * - * _.keyBy(array, function(o) { - * return String.fromCharCode(o.code); - * }); - * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } } - * - * _.keyBy(array, 'dir'); - * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } } - */ - var keyBy = createAggregator(function(result, value, key) { - baseAssignValue(result, key, value); - }); - - /** - * Creates an array of values by running each element in `collection` thru - * `iteratee`. The iteratee is invoked with three arguments: - * (value, index|key, collection). - * - * Many lodash methods are guarded to work as iteratees for methods like - * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`. - * - * The guarded methods are: - * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`, - * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`, - * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`, - * `template`, `trim`, `trimEnd`, `trimStart`, and `words` - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Collection - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [iteratee=_.identity] The function invoked per iteration. - * @returns {Array} Returns the new mapped array. - * @example - * - * function square(n) { - * return n * n; - * } - * - * _.map([4, 8], square); - * // => [16, 64] - * - * _.map({ 'a': 4, 'b': 8 }, square); - * // => [16, 64] (iteration order is not guaranteed) - * - * var users = [ - * { 'user': 'barney' }, - * { 'user': 'fred' } - * ]; - * - * // The `_.property` iteratee shorthand. - * _.map(users, 'user'); - * // => ['barney', 'fred'] - */ - function map(collection, iteratee) { - var func = isArray(collection) ? arrayMap : baseMap; - return func(collection, getIteratee(iteratee, 3)); - } - - /** - * This method is like `_.sortBy` except that it allows specifying the sort - * orders of the iteratees to sort by. If `orders` is unspecified, all values - * are sorted in ascending order. Otherwise, specify an order of "desc" for - * descending or "asc" for ascending sort order of corresponding values. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Collection - * @param {Array|Object} collection The collection to iterate over. - * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]] - * The iteratees to sort by. - * @param {string[]} [orders] The sort orders of `iteratees`. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`. - * @returns {Array} Returns the new sorted array. - * @example - * - * var users = [ - * { 'user': 'fred', 'age': 48 }, - * { 'user': 'barney', 'age': 34 }, - * { 'user': 'fred', 'age': 40 }, - * { 'user': 'barney', 'age': 36 } - * ]; - * - * // Sort by `user` in ascending order and by `age` in descending order. - * _.orderBy(users, ['user', 'age'], ['asc', 'desc']); - * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]] - */ - function orderBy(collection, iteratees, orders, guard) { - if (collection == null) { - return []; - } - if (!isArray(iteratees)) { - iteratees = iteratees == null ? [] : [iteratees]; - } - orders = guard ? undefined : orders; - if (!isArray(orders)) { - orders = orders == null ? [] : [orders]; - } - return baseOrderBy(collection, iteratees, orders); - } - - /** - * Creates an array of elements split into two groups, the first of which - * contains elements `predicate` returns truthy for, the second of which - * contains elements `predicate` returns falsey for. The predicate is - * invoked with one argument: (value). - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Collection - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [predicate=_.identity] The function invoked per iteration. - * @returns {Array} Returns the array of grouped elements. - * @example - * - * var users = [ - * { 'user': 'barney', 'age': 36, 'active': false }, - * { 'user': 'fred', 'age': 40, 'active': true }, - * { 'user': 'pebbles', 'age': 1, 'active': false } - * ]; - * - * _.partition(users, function(o) { return o.active; }); - * // => objects for [['fred'], ['barney', 'pebbles']] - * - * // The `_.matches` iteratee shorthand. - * _.partition(users, { 'age': 1, 'active': false }); - * // => objects for [['pebbles'], ['barney', 'fred']] - * - * // The `_.matchesProperty` iteratee shorthand. - * _.partition(users, ['active', false]); - * // => objects for [['barney', 'pebbles'], ['fred']] - * - * // The `_.property` iteratee shorthand. - * _.partition(users, 'active'); - * // => objects for [['fred'], ['barney', 'pebbles']] - */ - var partition = createAggregator(function(result, value, key) { - result[key ? 0 : 1].push(value); - }, function() { return [[], []]; }); - - /** - * Reduces `collection` to a value which is the accumulated result of running - * each element in `collection` thru `iteratee`, where each successive - * invocation is supplied the return value of the previous. If `accumulator` - * is not given, the first element of `collection` is used as the initial - * value. The iteratee is invoked with four arguments: - * (accumulator, value, index|key, collection). - * - * Many lodash methods are guarded to work as iteratees for methods like - * `_.reduce`, `_.reduceRight`, and `_.transform`. - * - * The guarded methods are: - * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`, - * and `sortBy` - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Collection - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [iteratee=_.identity] The function invoked per iteration. - * @param {*} [accumulator] The initial value. - * @returns {*} Returns the accumulated value. - * @see _.reduceRight - * @example - * - * _.reduce([1, 2], function(sum, n) { - * return sum + n; - * }, 0); - * // => 3 - * - * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) { - * (result[value] || (result[value] = [])).push(key); - * return result; - * }, {}); - * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed) - */ - function reduce(collection, iteratee, accumulator) { - var func = isArray(collection) ? arrayReduce : baseReduce, - initAccum = arguments.length < 3; - - return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach); - } - - /** - * This method is like `_.reduce` except that it iterates over elements of - * `collection` from right to left. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Collection - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [iteratee=_.identity] The function invoked per iteration. - * @param {*} [accumulator] The initial value. - * @returns {*} Returns the accumulated value. - * @see _.reduce - * @example - * - * var array = [[0, 1], [2, 3], [4, 5]]; - * - * _.reduceRight(array, function(flattened, other) { - * return flattened.concat(other); - * }, []); - * // => [4, 5, 2, 3, 0, 1] - */ - function reduceRight(collection, iteratee, accumulator) { - var func = isArray(collection) ? arrayReduceRight : baseReduce, - initAccum = arguments.length < 3; - - return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight); - } - - /** - * The opposite of `_.filter`; this method returns the elements of `collection` - * that `predicate` does **not** return truthy for. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Collection - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [predicate=_.identity] The function invoked per iteration. - * @returns {Array} Returns the new filtered array. - * @see _.filter - * @example - * - * var users = [ - * { 'user': 'barney', 'age': 36, 'active': false }, - * { 'user': 'fred', 'age': 40, 'active': true } - * ]; - * - * _.reject(users, function(o) { return !o.active; }); - * // => objects for ['fred'] - * - * // The `_.matches` iteratee shorthand. - * _.reject(users, { 'age': 40, 'active': true }); - * // => objects for ['barney'] - * - * // The `_.matchesProperty` iteratee shorthand. - * _.reject(users, ['active', false]); - * // => objects for ['fred'] - * - * // The `_.property` iteratee shorthand. - * _.reject(users, 'active'); - * // => objects for ['barney'] - */ - function reject(collection, predicate) { - var func = isArray(collection) ? arrayFilter : baseFilter; - return func(collection, negate(getIteratee(predicate, 3))); - } - - /** - * Gets a random element from `collection`. - * - * @static - * @memberOf _ - * @since 2.0.0 - * @category Collection - * @param {Array|Object} collection The collection to sample. - * @returns {*} Returns the random element. - * @example - * - * _.sample([1, 2, 3, 4]); - * // => 2 - */ - function sample(collection) { - var func = isArray(collection) ? arraySample : baseSample; - return func(collection); - } - - /** - * Gets `n` random elements at unique keys from `collection` up to the - * size of `collection`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Collection - * @param {Array|Object} collection The collection to sample. - * @param {number} [n=1] The number of elements to sample. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. - * @returns {Array} Returns the random elements. - * @example - * - * _.sampleSize([1, 2, 3], 2); - * // => [3, 1] - * - * _.sampleSize([1, 2, 3], 4); - * // => [2, 3, 1] - */ - function sampleSize(collection, n, guard) { - if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) { - n = 1; - } else { - n = toInteger(n); - } - var func = isArray(collection) ? arraySampleSize : baseSampleSize; - return func(collection, n); - } - - /** - * Creates an array of shuffled values, using a version of the - * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle). - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Collection - * @param {Array|Object} collection The collection to shuffle. - * @returns {Array} Returns the new shuffled array. - * @example - * - * _.shuffle([1, 2, 3, 4]); - * // => [4, 1, 3, 2] - */ - function shuffle(collection) { - var func = isArray(collection) ? arrayShuffle : baseShuffle; - return func(collection); - } - - /** - * Gets the size of `collection` by returning its length for array-like - * values or the number of own enumerable string keyed properties for objects. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Collection - * @param {Array|Object|string} collection The collection to inspect. - * @returns {number} Returns the collection size. - * @example - * - * _.size([1, 2, 3]); - * // => 3 - * - * _.size({ 'a': 1, 'b': 2 }); - * // => 2 - * - * _.size('pebbles'); - * // => 7 - */ - function size(collection) { - if (collection == null) { - return 0; - } - if (isArrayLike(collection)) { - return isString(collection) ? stringSize(collection) : collection.length; - } - var tag = getTag(collection); - if (tag == mapTag || tag == setTag) { - return collection.size; - } - return baseKeys(collection).length; - } - - /** - * Checks if `predicate` returns truthy for **any** element of `collection`. - * Iteration is stopped once `predicate` returns truthy. The predicate is - * invoked with three arguments: (value, index|key, collection). - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Collection - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [predicate=_.identity] The function invoked per iteration. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. - * @returns {boolean} Returns `true` if any element passes the predicate check, - * else `false`. - * @example - * - * _.some([null, 0, 'yes', false], Boolean); - * // => true - * - * var users = [ - * { 'user': 'barney', 'active': true }, - * { 'user': 'fred', 'active': false } - * ]; - * - * // The `_.matches` iteratee shorthand. - * _.some(users, { 'user': 'barney', 'active': false }); - * // => false - * - * // The `_.matchesProperty` iteratee shorthand. - * _.some(users, ['active', false]); - * // => true - * - * // The `_.property` iteratee shorthand. - * _.some(users, 'active'); - * // => true - */ - function some(collection, predicate, guard) { - var func = isArray(collection) ? arraySome : baseSome; - if (guard && isIterateeCall(collection, predicate, guard)) { - predicate = undefined; - } - return func(collection, getIteratee(predicate, 3)); - } - - /** - * Creates an array of elements, sorted in ascending order by the results of - * running each element in a collection thru each iteratee. This method - * performs a stable sort, that is, it preserves the original sort order of - * equal elements. The iteratees are invoked with one argument: (value). - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Collection - * @param {Array|Object} collection The collection to iterate over. - * @param {...(Function|Function[])} [iteratees=[_.identity]] - * The iteratees to sort by. - * @returns {Array} Returns the new sorted array. - * @example - * - * var users = [ - * { 'user': 'fred', 'age': 48 }, - * { 'user': 'barney', 'age': 36 }, - * { 'user': 'fred', 'age': 40 }, - * { 'user': 'barney', 'age': 34 } - * ]; - * - * _.sortBy(users, [function(o) { return o.user; }]); - * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]] - * - * _.sortBy(users, ['user', 'age']); - * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]] - */ - var sortBy = baseRest(function(collection, iteratees) { - if (collection == null) { - return []; - } - var length = iteratees.length; - if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) { - iteratees = []; - } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) { - iteratees = [iteratees[0]]; - } - return baseOrderBy(collection, baseFlatten(iteratees, 1), []); - }); - - /*------------------------------------------------------------------------*/ - - /** - * Gets the timestamp of the number of milliseconds that have elapsed since - * the Unix epoch (1 January 1970 00:00:00 UTC). - * - * @static - * @memberOf _ - * @since 2.4.0 - * @category Date - * @returns {number} Returns the timestamp. - * @example - * - * _.defer(function(stamp) { - * console.log(_.now() - stamp); - * }, _.now()); - * // => Logs the number of milliseconds it took for the deferred invocation. - */ - var now = ctxNow || function() { - return root.Date.now(); - }; - - /*------------------------------------------------------------------------*/ - - /** - * The opposite of `_.before`; this method creates a function that invokes - * `func` once it's called `n` or more times. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Function - * @param {number} n The number of calls before `func` is invoked. - * @param {Function} func The function to restrict. - * @returns {Function} Returns the new restricted function. - * @example - * - * var saves = ['profile', 'settings']; - * - * var done = _.after(saves.length, function() { - * console.log('done saving!'); - * }); - * - * _.forEach(saves, function(type) { - * asyncSave({ 'type': type, 'complete': done }); - * }); - * // => Logs 'done saving!' after the two async saves have completed. - */ - function after(n, func) { - if (typeof func != 'function') { - throw new TypeError(FUNC_ERROR_TEXT); - } - n = toInteger(n); - return function() { - if (--n < 1) { - return func.apply(this, arguments); - } - }; - } - - /** - * Creates a function that invokes `func`, with up to `n` arguments, - * ignoring any additional arguments. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Function - * @param {Function} func The function to cap arguments for. - * @param {number} [n=func.length] The arity cap. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. - * @returns {Function} Returns the new capped function. - * @example - * - * _.map(['6', '8', '10'], _.ary(parseInt, 1)); - * // => [6, 8, 10] - */ - function ary(func, n, guard) { - n = guard ? undefined : n; - n = (func && n == null) ? func.length : n; - return createWrap(func, ARY_FLAG, undefined, undefined, undefined, undefined, n); - } - - /** - * Creates a function that invokes `func`, with the `this` binding and arguments - * of the created function, while it's called less than `n` times. Subsequent - * calls to the created function return the result of the last `func` invocation. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Function - * @param {number} n The number of calls at which `func` is no longer invoked. - * @param {Function} func The function to restrict. - * @returns {Function} Returns the new restricted function. - * @example - * - * jQuery(element).on('click', _.before(5, addContactToList)); - * // => Allows adding up to 4 contacts to the list. - */ - function before(n, func) { - var result; - if (typeof func != 'function') { - throw new TypeError(FUNC_ERROR_TEXT); - } - n = toInteger(n); - return function() { - if (--n > 0) { - result = func.apply(this, arguments); - } - if (n <= 1) { - func = undefined; - } - return result; - }; - } - - /** - * Creates a function that invokes `func` with the `this` binding of `thisArg` - * and `partials` prepended to the arguments it receives. - * - * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds, - * may be used as a placeholder for partially applied arguments. - * - * **Note:** Unlike native `Function#bind`, this method doesn't set the "length" - * property of bound functions. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Function - * @param {Function} func The function to bind. - * @param {*} thisArg The `this` binding of `func`. - * @param {...*} [partials] The arguments to be partially applied. - * @returns {Function} Returns the new bound function. - * @example - * - * function greet(greeting, punctuation) { - * return greeting + ' ' + this.user + punctuation; - * } - * - * var object = { 'user': 'fred' }; - * - * var bound = _.bind(greet, object, 'hi'); - * bound('!'); - * // => 'hi fred!' - * - * // Bound with placeholders. - * var bound = _.bind(greet, object, _, '!'); - * bound('hi'); - * // => 'hi fred!' - */ - var bind = baseRest(function(func, thisArg, partials) { - var bitmask = BIND_FLAG; - if (partials.length) { - var holders = replaceHolders(partials, getHolder(bind)); - bitmask |= PARTIAL_FLAG; - } - return createWrap(func, bitmask, thisArg, partials, holders); - }); - - /** - * Creates a function that invokes the method at `object[key]` with `partials` - * prepended to the arguments it receives. - * - * This method differs from `_.bind` by allowing bound functions to reference - * methods that may be redefined or don't yet exist. See - * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern) - * for more details. - * - * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic - * builds, may be used as a placeholder for partially applied arguments. - * - * @static - * @memberOf _ - * @since 0.10.0 - * @category Function - * @param {Object} object The object to invoke the method on. - * @param {string} key The key of the method. - * @param {...*} [partials] The arguments to be partially applied. - * @returns {Function} Returns the new bound function. - * @example - * - * var object = { - * 'user': 'fred', - * 'greet': function(greeting, punctuation) { - * return greeting + ' ' + this.user + punctuation; - * } - * }; - * - * var bound = _.bindKey(object, 'greet', 'hi'); - * bound('!'); - * // => 'hi fred!' - * - * object.greet = function(greeting, punctuation) { - * return greeting + 'ya ' + this.user + punctuation; - * }; - * - * bound('!'); - * // => 'hiya fred!' - * - * // Bound with placeholders. - * var bound = _.bindKey(object, 'greet', _, '!'); - * bound('hi'); - * // => 'hiya fred!' - */ - var bindKey = baseRest(function(object, key, partials) { - var bitmask = BIND_FLAG | BIND_KEY_FLAG; - if (partials.length) { - var holders = replaceHolders(partials, getHolder(bindKey)); - bitmask |= PARTIAL_FLAG; - } - return createWrap(key, bitmask, object, partials, holders); - }); - - /** - * Creates a function that accepts arguments of `func` and either invokes - * `func` returning its result, if at least `arity` number of arguments have - * been provided, or returns a function that accepts the remaining `func` - * arguments, and so on. The arity of `func` may be specified if `func.length` - * is not sufficient. - * - * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds, - * may be used as a placeholder for provided arguments. - * - * **Note:** This method doesn't set the "length" property of curried functions. - * - * @static - * @memberOf _ - * @since 2.0.0 - * @category Function - * @param {Function} func The function to curry. - * @param {number} [arity=func.length] The arity of `func`. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. - * @returns {Function} Returns the new curried function. - * @example - * - * var abc = function(a, b, c) { - * return [a, b, c]; - * }; - * - * var curried = _.curry(abc); - * - * curried(1)(2)(3); - * // => [1, 2, 3] - * - * curried(1, 2)(3); - * // => [1, 2, 3] - * - * curried(1, 2, 3); - * // => [1, 2, 3] - * - * // Curried with placeholders. - * curried(1)(_, 3)(2); - * // => [1, 2, 3] - */ - function curry(func, arity, guard) { - arity = guard ? undefined : arity; - var result = createWrap(func, CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity); - result.placeholder = curry.placeholder; - return result; - } - - /** - * This method is like `_.curry` except that arguments are applied to `func` - * in the manner of `_.partialRight` instead of `_.partial`. - * - * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic - * builds, may be used as a placeholder for provided arguments. - * - * **Note:** This method doesn't set the "length" property of curried functions. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Function - * @param {Function} func The function to curry. - * @param {number} [arity=func.length] The arity of `func`. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. - * @returns {Function} Returns the new curried function. - * @example - * - * var abc = function(a, b, c) { - * return [a, b, c]; - * }; - * - * var curried = _.curryRight(abc); - * - * curried(3)(2)(1); - * // => [1, 2, 3] - * - * curried(2, 3)(1); - * // => [1, 2, 3] - * - * curried(1, 2, 3); - * // => [1, 2, 3] - * - * // Curried with placeholders. - * curried(3)(1, _)(2); - * // => [1, 2, 3] - */ - function curryRight(func, arity, guard) { - arity = guard ? undefined : arity; - var result = createWrap(func, CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity); - result.placeholder = curryRight.placeholder; - return result; - } - - /** - * Creates a debounced function that delays invoking `func` until after `wait` - * milliseconds have elapsed since the last time the debounced function was - * invoked. The debounced function comes with a `cancel` method to cancel - * delayed `func` invocations and a `flush` method to immediately invoke them. - * Provide `options` to indicate whether `func` should be invoked on the - * leading and/or trailing edge of the `wait` timeout. The `func` is invoked - * with the last arguments provided to the debounced function. Subsequent - * calls to the debounced function return the result of the last `func` - * invocation. - * - * **Note:** If `leading` and `trailing` options are `true`, `func` is - * invoked on the trailing edge of the timeout only if the debounced function - * is invoked more than once during the `wait` timeout. - * - * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred - * until to the next tick, similar to `setTimeout` with a timeout of `0`. - * - * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/) - * for details over the differences between `_.debounce` and `_.throttle`. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Function - * @param {Function} func The function to debounce. - * @param {number} [wait=0] The number of milliseconds to delay. - * @param {Object} [options={}] The options object. - * @param {boolean} [options.leading=false] - * Specify invoking on the leading edge of the timeout. - * @param {number} [options.maxWait] - * The maximum time `func` is allowed to be delayed before it's invoked. - * @param {boolean} [options.trailing=true] - * Specify invoking on the trailing edge of the timeout. - * @returns {Function} Returns the new debounced function. - * @example - * - * // Avoid costly calculations while the window size is in flux. - * jQuery(window).on('resize', _.debounce(calculateLayout, 150)); - * - * // Invoke `sendMail` when clicked, debouncing subsequent calls. - * jQuery(element).on('click', _.debounce(sendMail, 300, { - * 'leading': true, - * 'trailing': false - * })); - * - * // Ensure `batchLog` is invoked once after 1 second of debounced calls. - * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 }); - * var source = new EventSource('/stream'); - * jQuery(source).on('message', debounced); - * - * // Cancel the trailing debounced invocation. - * jQuery(window).on('popstate', debounced.cancel); - */ - function debounce(func, wait, options) { - var lastArgs, - lastThis, - maxWait, - result, - timerId, - lastCallTime, - lastInvokeTime = 0, - leading = false, - maxing = false, - trailing = true; - - if (typeof func != 'function') { - throw new TypeError(FUNC_ERROR_TEXT); - } - wait = toNumber(wait) || 0; - if (isObject(options)) { - leading = !!options.leading; - maxing = 'maxWait' in options; - maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait; - trailing = 'trailing' in options ? !!options.trailing : trailing; - } - - function invokeFunc(time) { - var args = lastArgs, - thisArg = lastThis; - - lastArgs = lastThis = undefined; - lastInvokeTime = time; - result = func.apply(thisArg, args); - return result; - } - - function leadingEdge(time) { - // Reset any `maxWait` timer. - lastInvokeTime = time; - // Start the timer for the trailing edge. - timerId = setTimeout(timerExpired, wait); - // Invoke the leading edge. - return leading ? invokeFunc(time) : result; - } - - function remainingWait(time) { - var timeSinceLastCall = time - lastCallTime, - timeSinceLastInvoke = time - lastInvokeTime, - result = wait - timeSinceLastCall; - - return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result; - } - - function shouldInvoke(time) { - var timeSinceLastCall = time - lastCallTime, - timeSinceLastInvoke = time - lastInvokeTime; - - // Either this is the first call, activity has stopped and we're at the - // trailing edge, the system time has gone backwards and we're treating - // it as the trailing edge, or we've hit the `maxWait` limit. - return (lastCallTime === undefined || (timeSinceLastCall >= wait) || - (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait)); - } - - function timerExpired() { - var time = now(); - if (shouldInvoke(time)) { - return trailingEdge(time); - } - // Restart the timer. - timerId = setTimeout(timerExpired, remainingWait(time)); - } - - function trailingEdge(time) { - timerId = undefined; - - // Only invoke if we have `lastArgs` which means `func` has been - // debounced at least once. - if (trailing && lastArgs) { - return invokeFunc(time); - } - lastArgs = lastThis = undefined; - return result; - } - - function cancel() { - if (timerId !== undefined) { - clearTimeout(timerId); - } - lastInvokeTime = 0; - lastArgs = lastCallTime = lastThis = timerId = undefined; - } - - function flush() { - return timerId === undefined ? result : trailingEdge(now()); - } - - function debounced() { - var time = now(), - isInvoking = shouldInvoke(time); - - lastArgs = arguments; - lastThis = this; - lastCallTime = time; - - if (isInvoking) { - if (timerId === undefined) { - return leadingEdge(lastCallTime); - } - if (maxing) { - // Handle invocations in a tight loop. - timerId = setTimeout(timerExpired, wait); - return invokeFunc(lastCallTime); - } - } - if (timerId === undefined) { - timerId = setTimeout(timerExpired, wait); - } - return result; - } - debounced.cancel = cancel; - debounced.flush = flush; - return debounced; - } - - /** - * Defers invoking the `func` until the current call stack has cleared. Any - * additional arguments are provided to `func` when it's invoked. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Function - * @param {Function} func The function to defer. - * @param {...*} [args] The arguments to invoke `func` with. - * @returns {number} Returns the timer id. - * @example - * - * _.defer(function(text) { - * console.log(text); - * }, 'deferred'); - * // => Logs 'deferred' after one millisecond. - */ - var defer = baseRest(function(func, args) { - return baseDelay(func, 1, args); - }); - - /** - * Invokes `func` after `wait` milliseconds. Any additional arguments are - * provided to `func` when it's invoked. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Function - * @param {Function} func The function to delay. - * @param {number} wait The number of milliseconds to delay invocation. - * @param {...*} [args] The arguments to invoke `func` with. - * @returns {number} Returns the timer id. - * @example - * - * _.delay(function(text) { - * console.log(text); - * }, 1000, 'later'); - * // => Logs 'later' after one second. - */ - var delay = baseRest(function(func, wait, args) { - return baseDelay(func, toNumber(wait) || 0, args); - }); - - /** - * Creates a function that invokes `func` with arguments reversed. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Function - * @param {Function} func The function to flip arguments for. - * @returns {Function} Returns the new flipped function. - * @example - * - * var flipped = _.flip(function() { - * return _.toArray(arguments); - * }); - * - * flipped('a', 'b', 'c', 'd'); - * // => ['d', 'c', 'b', 'a'] - */ - function flip(func) { - return createWrap(func, FLIP_FLAG); - } - - /** - * Creates a function that memoizes the result of `func`. If `resolver` is - * provided, it determines the cache key for storing the result based on the - * arguments provided to the memoized function. By default, the first argument - * provided to the memoized function is used as the map cache key. The `func` - * is invoked with the `this` binding of the memoized function. - * - * **Note:** The cache is exposed as the `cache` property on the memoized - * function. Its creation may be customized by replacing the `_.memoize.Cache` - * constructor with one whose instances implement the - * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) - * method interface of `delete`, `get`, `has`, and `set`. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Function - * @param {Function} func The function to have its output memoized. - * @param {Function} [resolver] The function to resolve the cache key. - * @returns {Function} Returns the new memoized function. - * @example - * - * var object = { 'a': 1, 'b': 2 }; - * var other = { 'c': 3, 'd': 4 }; - * - * var values = _.memoize(_.values); - * values(object); - * // => [1, 2] - * - * values(other); - * // => [3, 4] - * - * object.a = 2; - * values(object); - * // => [1, 2] - * - * // Modify the result cache. - * values.cache.set(object, ['a', 'b']); - * values(object); - * // => ['a', 'b'] - * - * // Replace `_.memoize.Cache`. - * _.memoize.Cache = WeakMap; - */ - function memoize(func, resolver) { - if (typeof func != 'function' || (resolver && typeof resolver != 'function')) { - throw new TypeError(FUNC_ERROR_TEXT); - } - var memoized = function() { - var args = arguments, - key = resolver ? resolver.apply(this, args) : args[0], - cache = memoized.cache; - - if (cache.has(key)) { - return cache.get(key); - } - var result = func.apply(this, args); - memoized.cache = cache.set(key, result) || cache; - return result; - }; - memoized.cache = new (memoize.Cache || MapCache); - return memoized; - } - - // Expose `MapCache`. - memoize.Cache = MapCache; - - /** - * Creates a function that negates the result of the predicate `func`. The - * `func` predicate is invoked with the `this` binding and arguments of the - * created function. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Function - * @param {Function} predicate The predicate to negate. - * @returns {Function} Returns the new negated function. - * @example - * - * function isEven(n) { - * return n % 2 == 0; - * } - * - * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven)); - * // => [1, 3, 5] - */ - function negate(predicate) { - if (typeof predicate != 'function') { - throw new TypeError(FUNC_ERROR_TEXT); - } - return function() { - var args = arguments; - switch (args.length) { - case 0: return !predicate.call(this); - case 1: return !predicate.call(this, args[0]); - case 2: return !predicate.call(this, args[0], args[1]); - case 3: return !predicate.call(this, args[0], args[1], args[2]); - } - return !predicate.apply(this, args); - }; - } - - /** - * Creates a function that is restricted to invoking `func` once. Repeat calls - * to the function return the value of the first invocation. The `func` is - * invoked with the `this` binding and arguments of the created function. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Function - * @param {Function} func The function to restrict. - * @returns {Function} Returns the new restricted function. - * @example - * - * var initialize = _.once(createApplication); - * initialize(); - * initialize(); - * // => `createApplication` is invoked once - */ - function once(func) { - return before(2, func); - } - - /** - * Creates a function that invokes `func` with its arguments transformed. - * - * @static - * @since 4.0.0 - * @memberOf _ - * @category Function - * @param {Function} func The function to wrap. - * @param {...(Function|Function[])} [transforms=[_.identity]] - * The argument transforms. - * @returns {Function} Returns the new function. - * @example - * - * function doubled(n) { - * return n * 2; - * } - * - * function square(n) { - * return n * n; - * } - * - * var func = _.overArgs(function(x, y) { - * return [x, y]; - * }, [square, doubled]); - * - * func(9, 3); - * // => [81, 6] - * - * func(10, 5); - * // => [100, 10] - */ - var overArgs = castRest(function(func, transforms) { - transforms = (transforms.length == 1 && isArray(transforms[0])) - ? arrayMap(transforms[0], baseUnary(getIteratee())) - : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee())); - - var funcsLength = transforms.length; - return baseRest(function(args) { - var index = -1, - length = nativeMin(args.length, funcsLength); - - while (++index < length) { - args[index] = transforms[index].call(this, args[index]); - } - return apply(func, this, args); - }); - }); - - /** - * Creates a function that invokes `func` with `partials` prepended to the - * arguments it receives. This method is like `_.bind` except it does **not** - * alter the `this` binding. - * - * The `_.partial.placeholder` value, which defaults to `_` in monolithic - * builds, may be used as a placeholder for partially applied arguments. - * - * **Note:** This method doesn't set the "length" property of partially - * applied functions. - * - * @static - * @memberOf _ - * @since 0.2.0 - * @category Function - * @param {Function} func The function to partially apply arguments to. - * @param {...*} [partials] The arguments to be partially applied. - * @returns {Function} Returns the new partially applied function. - * @example - * - * function greet(greeting, name) { - * return greeting + ' ' + name; - * } - * - * var sayHelloTo = _.partial(greet, 'hello'); - * sayHelloTo('fred'); - * // => 'hello fred' - * - * // Partially applied with placeholders. - * var greetFred = _.partial(greet, _, 'fred'); - * greetFred('hi'); - * // => 'hi fred' - */ - var partial = baseRest(function(func, partials) { - var holders = replaceHolders(partials, getHolder(partial)); - return createWrap(func, PARTIAL_FLAG, undefined, partials, holders); - }); - - /** - * This method is like `_.partial` except that partially applied arguments - * are appended to the arguments it receives. - * - * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic - * builds, may be used as a placeholder for partially applied arguments. - * - * **Note:** This method doesn't set the "length" property of partially - * applied functions. - * - * @static - * @memberOf _ - * @since 1.0.0 - * @category Function - * @param {Function} func The function to partially apply arguments to. - * @param {...*} [partials] The arguments to be partially applied. - * @returns {Function} Returns the new partially applied function. - * @example - * - * function greet(greeting, name) { - * return greeting + ' ' + name; - * } - * - * var greetFred = _.partialRight(greet, 'fred'); - * greetFred('hi'); - * // => 'hi fred' - * - * // Partially applied with placeholders. - * var sayHelloTo = _.partialRight(greet, 'hello', _); - * sayHelloTo('fred'); - * // => 'hello fred' - */ - var partialRight = baseRest(function(func, partials) { - var holders = replaceHolders(partials, getHolder(partialRight)); - return createWrap(func, PARTIAL_RIGHT_FLAG, undefined, partials, holders); - }); - - /** - * Creates a function that invokes `func` with arguments arranged according - * to the specified `indexes` where the argument value at the first index is - * provided as the first argument, the argument value at the second index is - * provided as the second argument, and so on. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Function - * @param {Function} func The function to rearrange arguments for. - * @param {...(number|number[])} indexes The arranged argument indexes. - * @returns {Function} Returns the new function. - * @example - * - * var rearged = _.rearg(function(a, b, c) { - * return [a, b, c]; - * }, [2, 0, 1]); - * - * rearged('b', 'c', 'a') - * // => ['a', 'b', 'c'] - */ - var rearg = flatRest(function(func, indexes) { - return createWrap(func, REARG_FLAG, undefined, undefined, undefined, indexes); - }); - - /** - * Creates a function that invokes `func` with the `this` binding of the - * created function and arguments from `start` and beyond provided as - * an array. - * - * **Note:** This method is based on the - * [rest parameter](https://mdn.io/rest_parameters). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Function - * @param {Function} func The function to apply a rest parameter to. - * @param {number} [start=func.length-1] The start position of the rest parameter. - * @returns {Function} Returns the new function. - * @example - * - * var say = _.rest(function(what, names) { - * return what + ' ' + _.initial(names).join(', ') + - * (_.size(names) > 1 ? ', & ' : '') + _.last(names); - * }); - * - * say('hello', 'fred', 'barney', 'pebbles'); - * // => 'hello fred, barney, & pebbles' - */ - function rest(func, start) { - if (typeof func != 'function') { - throw new TypeError(FUNC_ERROR_TEXT); - } - start = start === undefined ? start : toInteger(start); - return baseRest(func, start); - } - - /** - * Creates a function that invokes `func` with the `this` binding of the - * create function and an array of arguments much like - * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply). - * - * **Note:** This method is based on the - * [spread operator](https://mdn.io/spread_operator). - * - * @static - * @memberOf _ - * @since 3.2.0 - * @category Function - * @param {Function} func The function to spread arguments over. - * @param {number} [start=0] The start position of the spread. - * @returns {Function} Returns the new function. - * @example - * - * var say = _.spread(function(who, what) { - * return who + ' says ' + what; - * }); - * - * say(['fred', 'hello']); - * // => 'fred says hello' - * - * var numbers = Promise.all([ - * Promise.resolve(40), - * Promise.resolve(36) - * ]); - * - * numbers.then(_.spread(function(x, y) { - * return x + y; - * })); - * // => a Promise of 76 - */ - function spread(func, start) { - if (typeof func != 'function') { - throw new TypeError(FUNC_ERROR_TEXT); - } - start = start === undefined ? 0 : nativeMax(toInteger(start), 0); - return baseRest(function(args) { - var array = args[start], - otherArgs = castSlice(args, 0, start); - - if (array) { - arrayPush(otherArgs, array); - } - return apply(func, this, otherArgs); - }); - } - - /** - * Creates a throttled function that only invokes `func` at most once per - * every `wait` milliseconds. The throttled function comes with a `cancel` - * method to cancel delayed `func` invocations and a `flush` method to - * immediately invoke them. Provide `options` to indicate whether `func` - * should be invoked on the leading and/or trailing edge of the `wait` - * timeout. The `func` is invoked with the last arguments provided to the - * throttled function. Subsequent calls to the throttled function return the - * result of the last `func` invocation. - * - * **Note:** If `leading` and `trailing` options are `true`, `func` is - * invoked on the trailing edge of the timeout only if the throttled function - * is invoked more than once during the `wait` timeout. - * - * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred - * until to the next tick, similar to `setTimeout` with a timeout of `0`. - * - * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/) - * for details over the differences between `_.throttle` and `_.debounce`. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Function - * @param {Function} func The function to throttle. - * @param {number} [wait=0] The number of milliseconds to throttle invocations to. - * @param {Object} [options={}] The options object. - * @param {boolean} [options.leading=true] - * Specify invoking on the leading edge of the timeout. - * @param {boolean} [options.trailing=true] - * Specify invoking on the trailing edge of the timeout. - * @returns {Function} Returns the new throttled function. - * @example - * - * // Avoid excessively updating the position while scrolling. - * jQuery(window).on('scroll', _.throttle(updatePosition, 100)); - * - * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes. - * var throttled = _.throttle(renewToken, 300000, { 'trailing': false }); - * jQuery(element).on('click', throttled); - * - * // Cancel the trailing throttled invocation. - * jQuery(window).on('popstate', throttled.cancel); - */ - function throttle(func, wait, options) { - var leading = true, - trailing = true; - - if (typeof func != 'function') { - throw new TypeError(FUNC_ERROR_TEXT); - } - if (isObject(options)) { - leading = 'leading' in options ? !!options.leading : leading; - trailing = 'trailing' in options ? !!options.trailing : trailing; - } - return debounce(func, wait, { - 'leading': leading, - 'maxWait': wait, - 'trailing': trailing - }); - } - - /** - * Creates a function that accepts up to one argument, ignoring any - * additional arguments. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Function - * @param {Function} func The function to cap arguments for. - * @returns {Function} Returns the new capped function. - * @example - * - * _.map(['6', '8', '10'], _.unary(parseInt)); - * // => [6, 8, 10] - */ - function unary(func) { - return ary(func, 1); - } - - /** - * Creates a function that provides `value` to `wrapper` as its first - * argument. Any additional arguments provided to the function are appended - * to those provided to the `wrapper`. The wrapper is invoked with the `this` - * binding of the created function. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Function - * @param {*} value The value to wrap. - * @param {Function} [wrapper=identity] The wrapper function. - * @returns {Function} Returns the new function. - * @example - * - * var p = _.wrap(_.escape, function(func, text) { - * return '

' + func(text) + '

'; - * }); - * - * p('fred, barney, & pebbles'); - * // => '

fred, barney, & pebbles

' - */ - function wrap(value, wrapper) { - wrapper = wrapper == null ? identity : wrapper; - return partial(wrapper, value); - } - - /*------------------------------------------------------------------------*/ - - /** - * Casts `value` as an array if it's not one. - * - * @static - * @memberOf _ - * @since 4.4.0 - * @category Lang - * @param {*} value The value to inspect. - * @returns {Array} Returns the cast array. - * @example - * - * _.castArray(1); - * // => [1] - * - * _.castArray({ 'a': 1 }); - * // => [{ 'a': 1 }] - * - * _.castArray('abc'); - * // => ['abc'] - * - * _.castArray(null); - * // => [null] - * - * _.castArray(undefined); - * // => [undefined] - * - * _.castArray(); - * // => [] - * - * var array = [1, 2, 3]; - * console.log(_.castArray(array) === array); - * // => true - */ - function castArray() { - if (!arguments.length) { - return []; - } - var value = arguments[0]; - return isArray(value) ? value : [value]; - } - - /** - * Creates a shallow clone of `value`. - * - * **Note:** This method is loosely based on the - * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm) - * and supports cloning arrays, array buffers, booleans, date objects, maps, - * numbers, `Object` objects, regexes, sets, strings, symbols, and typed - * arrays. The own enumerable properties of `arguments` objects are cloned - * as plain objects. An empty object is returned for uncloneable values such - * as error objects, functions, DOM nodes, and WeakMaps. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to clone. - * @returns {*} Returns the cloned value. - * @see _.cloneDeep - * @example - * - * var objects = [{ 'a': 1 }, { 'b': 2 }]; - * - * var shallow = _.clone(objects); - * console.log(shallow[0] === objects[0]); - * // => true - */ - function clone(value) { - return baseClone(value, false, true); - } - - /** - * This method is like `_.clone` except that it accepts `customizer` which - * is invoked to produce the cloned value. If `customizer` returns `undefined`, - * cloning is handled by the method instead. The `customizer` is invoked with - * up to four arguments; (value [, index|key, object, stack]). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to clone. - * @param {Function} [customizer] The function to customize cloning. - * @returns {*} Returns the cloned value. - * @see _.cloneDeepWith - * @example - * - * function customizer(value) { - * if (_.isElement(value)) { - * return value.cloneNode(false); - * } - * } - * - * var el = _.cloneWith(document.body, customizer); - * - * console.log(el === document.body); - * // => false - * console.log(el.nodeName); - * // => 'BODY' - * console.log(el.childNodes.length); - * // => 0 - */ - function cloneWith(value, customizer) { - return baseClone(value, false, true, customizer); - } - - /** - * This method is like `_.clone` except that it recursively clones `value`. - * - * @static - * @memberOf _ - * @since 1.0.0 - * @category Lang - * @param {*} value The value to recursively clone. - * @returns {*} Returns the deep cloned value. - * @see _.clone - * @example - * - * var objects = [{ 'a': 1 }, { 'b': 2 }]; - * - * var deep = _.cloneDeep(objects); - * console.log(deep[0] === objects[0]); - * // => false - */ - function cloneDeep(value) { - return baseClone(value, true, true); - } - - /** - * This method is like `_.cloneWith` except that it recursively clones `value`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to recursively clone. - * @param {Function} [customizer] The function to customize cloning. - * @returns {*} Returns the deep cloned value. - * @see _.cloneWith - * @example - * - * function customizer(value) { - * if (_.isElement(value)) { - * return value.cloneNode(true); - * } - * } - * - * var el = _.cloneDeepWith(document.body, customizer); - * - * console.log(el === document.body); - * // => false - * console.log(el.nodeName); - * // => 'BODY' - * console.log(el.childNodes.length); - * // => 20 - */ - function cloneDeepWith(value, customizer) { - return baseClone(value, true, true, customizer); - } - - /** - * Checks if `object` conforms to `source` by invoking the predicate - * properties of `source` with the corresponding property values of `object`. - * - * **Note:** This method is equivalent to `_.conforms` when `source` is - * partially applied. - * - * @static - * @memberOf _ - * @since 4.14.0 - * @category Lang - * @param {Object} object The object to inspect. - * @param {Object} source The object of property predicates to conform to. - * @returns {boolean} Returns `true` if `object` conforms, else `false`. - * @example - * - * var object = { 'a': 1, 'b': 2 }; - * - * _.conformsTo(object, { 'b': function(n) { return n > 1; } }); - * // => true - * - * _.conformsTo(object, { 'b': function(n) { return n > 2; } }); - * // => false - */ - function conformsTo(object, source) { - return source == null || baseConformsTo(object, source, keys(source)); - } - - /** - * Performs a - * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * comparison between two values to determine if they are equivalent. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @returns {boolean} Returns `true` if the values are equivalent, else `false`. - * @example - * - * var object = { 'a': 1 }; - * var other = { 'a': 1 }; - * - * _.eq(object, object); - * // => true - * - * _.eq(object, other); - * // => false - * - * _.eq('a', 'a'); - * // => true - * - * _.eq('a', Object('a')); - * // => false - * - * _.eq(NaN, NaN); - * // => true - */ - function eq(value, other) { - return value === other || (value !== value && other !== other); - } - - /** - * Checks if `value` is greater than `other`. - * - * @static - * @memberOf _ - * @since 3.9.0 - * @category Lang - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @returns {boolean} Returns `true` if `value` is greater than `other`, - * else `false`. - * @see _.lt - * @example - * - * _.gt(3, 1); - * // => true - * - * _.gt(3, 3); - * // => false - * - * _.gt(1, 3); - * // => false - */ - var gt = createRelationalOperation(baseGt); - - /** - * Checks if `value` is greater than or equal to `other`. - * - * @static - * @memberOf _ - * @since 3.9.0 - * @category Lang - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @returns {boolean} Returns `true` if `value` is greater than or equal to - * `other`, else `false`. - * @see _.lte - * @example - * - * _.gte(3, 1); - * // => true - * - * _.gte(3, 3); - * // => true - * - * _.gte(1, 3); - * // => false - */ - var gte = createRelationalOperation(function(value, other) { - return value >= other; - }); - - /** - * Checks if `value` is likely an `arguments` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an `arguments` object, - * else `false`. - * @example - * - * _.isArguments(function() { return arguments; }()); - * // => true - * - * _.isArguments([1, 2, 3]); - * // => false - */ - var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { - return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && - !propertyIsEnumerable.call(value, 'callee'); - }; - - /** - * Checks if `value` is classified as an `Array` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an array, else `false`. - * @example - * - * _.isArray([1, 2, 3]); - * // => true - * - * _.isArray(document.body.children); - * // => false - * - * _.isArray('abc'); - * // => false - * - * _.isArray(_.noop); - * // => false - */ - var isArray = Array.isArray; - - /** - * Checks if `value` is classified as an `ArrayBuffer` object. - * - * @static - * @memberOf _ - * @since 4.3.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`. - * @example - * - * _.isArrayBuffer(new ArrayBuffer(2)); - * // => true - * - * _.isArrayBuffer(new Array(2)); - * // => false - */ - var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer; - - /** - * Checks if `value` is array-like. A value is considered array-like if it's - * not a function and has a `value.length` that's an integer greater than or - * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is array-like, else `false`. - * @example - * - * _.isArrayLike([1, 2, 3]); - * // => true - * - * _.isArrayLike(document.body.children); - * // => true - * - * _.isArrayLike('abc'); - * // => true - * - * _.isArrayLike(_.noop); - * // => false - */ - function isArrayLike(value) { - return value != null && isLength(value.length) && !isFunction(value); - } - - /** - * This method is like `_.isArrayLike` except that it also checks if `value` - * is an object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an array-like object, - * else `false`. - * @example - * - * _.isArrayLikeObject([1, 2, 3]); - * // => true - * - * _.isArrayLikeObject(document.body.children); - * // => true - * - * _.isArrayLikeObject('abc'); - * // => false - * - * _.isArrayLikeObject(_.noop); - * // => false - */ - function isArrayLikeObject(value) { - return isObjectLike(value) && isArrayLike(value); - } - - /** - * Checks if `value` is classified as a boolean primitive or object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a boolean, else `false`. - * @example - * - * _.isBoolean(false); - * // => true - * - * _.isBoolean(null); - * // => false - */ - function isBoolean(value) { - return value === true || value === false || - (isObjectLike(value) && objectToString.call(value) == boolTag); - } - - /** - * Checks if `value` is a buffer. - * - * @static - * @memberOf _ - * @since 4.3.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. - * @example - * - * _.isBuffer(new Buffer(2)); - * // => true - * - * _.isBuffer(new Uint8Array(2)); - * // => false - */ - var isBuffer = nativeIsBuffer || stubFalse; - - /** - * Checks if `value` is classified as a `Date` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a date object, else `false`. - * @example - * - * _.isDate(new Date); - * // => true - * - * _.isDate('Mon April 23 2012'); - * // => false - */ - var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate; - - /** - * Checks if `value` is likely a DOM element. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`. - * @example - * - * _.isElement(document.body); - * // => true - * - * _.isElement(''); - * // => false - */ - function isElement(value) { - return value != null && value.nodeType === 1 && isObjectLike(value) && !isPlainObject(value); - } - - /** - * Checks if `value` is an empty object, collection, map, or set. - * - * Objects are considered empty if they have no own enumerable string keyed - * properties. - * - * Array-like values such as `arguments` objects, arrays, buffers, strings, or - * jQuery-like collections are considered empty if they have a `length` of `0`. - * Similarly, maps and sets are considered empty if they have a `size` of `0`. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is empty, else `false`. - * @example - * - * _.isEmpty(null); - * // => true - * - * _.isEmpty(true); - * // => true - * - * _.isEmpty(1); - * // => true - * - * _.isEmpty([1, 2, 3]); - * // => false - * - * _.isEmpty({ 'a': 1 }); - * // => false - */ - function isEmpty(value) { - if (isArrayLike(value) && - (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' || - isBuffer(value) || isTypedArray(value) || isArguments(value))) { - return !value.length; - } - var tag = getTag(value); - if (tag == mapTag || tag == setTag) { - return !value.size; - } - if (isPrototype(value)) { - return !baseKeys(value).length; - } - for (var key in value) { - if (hasOwnProperty.call(value, key)) { - return false; - } - } - return true; - } - - /** - * Performs a deep comparison between two values to determine if they are - * equivalent. - * - * **Note:** This method supports comparing arrays, array buffers, booleans, - * date objects, error objects, maps, numbers, `Object` objects, regexes, - * sets, strings, symbols, and typed arrays. `Object` objects are compared - * by their own, not inherited, enumerable properties. Functions and DOM - * nodes are **not** supported. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @returns {boolean} Returns `true` if the values are equivalent, else `false`. - * @example - * - * var object = { 'a': 1 }; - * var other = { 'a': 1 }; - * - * _.isEqual(object, other); - * // => true - * - * object === other; - * // => false - */ - function isEqual(value, other) { - return baseIsEqual(value, other); - } - - /** - * This method is like `_.isEqual` except that it accepts `customizer` which - * is invoked to compare values. If `customizer` returns `undefined`, comparisons - * are handled by the method instead. The `customizer` is invoked with up to - * six arguments: (objValue, othValue [, index|key, object, other, stack]). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @param {Function} [customizer] The function to customize comparisons. - * @returns {boolean} Returns `true` if the values are equivalent, else `false`. - * @example - * - * function isGreeting(value) { - * return /^h(?:i|ello)$/.test(value); - * } - * - * function customizer(objValue, othValue) { - * if (isGreeting(objValue) && isGreeting(othValue)) { - * return true; - * } - * } - * - * var array = ['hello', 'goodbye']; - * var other = ['hi', 'goodbye']; - * - * _.isEqualWith(array, other, customizer); - * // => true - */ - function isEqualWith(value, other, customizer) { - customizer = typeof customizer == 'function' ? customizer : undefined; - var result = customizer ? customizer(value, other) : undefined; - return result === undefined ? baseIsEqual(value, other, customizer) : !!result; - } - - /** - * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`, - * `SyntaxError`, `TypeError`, or `URIError` object. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an error object, else `false`. - * @example - * - * _.isError(new Error); - * // => true - * - * _.isError(Error); - * // => false - */ - function isError(value) { - if (!isObjectLike(value)) { - return false; - } - return (objectToString.call(value) == errorTag) || - (typeof value.message == 'string' && typeof value.name == 'string'); - } - - /** - * Checks if `value` is a finite primitive number. - * - * **Note:** This method is based on - * [`Number.isFinite`](https://mdn.io/Number/isFinite). - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a finite number, else `false`. - * @example - * - * _.isFinite(3); - * // => true - * - * _.isFinite(Number.MIN_VALUE); - * // => true - * - * _.isFinite(Infinity); - * // => false - * - * _.isFinite('3'); - * // => false - */ - function isFinite(value) { - return typeof value == 'number' && nativeIsFinite(value); - } - - /** - * Checks if `value` is classified as a `Function` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a function, else `false`. - * @example - * - * _.isFunction(_); - * // => true - * - * _.isFunction(/abc/); - * // => false - */ - function isFunction(value) { - // The use of `Object#toString` avoids issues with the `typeof` operator - // in Safari 9 which returns 'object' for typed array and other constructors. - var tag = isObject(value) ? objectToString.call(value) : ''; - return tag == funcTag || tag == genTag || tag == proxyTag; - } - - /** - * Checks if `value` is an integer. - * - * **Note:** This method is based on - * [`Number.isInteger`](https://mdn.io/Number/isInteger). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an integer, else `false`. - * @example - * - * _.isInteger(3); - * // => true - * - * _.isInteger(Number.MIN_VALUE); - * // => false - * - * _.isInteger(Infinity); - * // => false - * - * _.isInteger('3'); - * // => false - */ - function isInteger(value) { - return typeof value == 'number' && value == toInteger(value); - } - - /** - * Checks if `value` is a valid array-like length. - * - * **Note:** This method is loosely based on - * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. - * @example - * - * _.isLength(3); - * // => true - * - * _.isLength(Number.MIN_VALUE); - * // => false - * - * _.isLength(Infinity); - * // => false - * - * _.isLength('3'); - * // => false - */ - function isLength(value) { - return typeof value == 'number' && - value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; - } - - /** - * Checks if `value` is the - * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) - * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an object, else `false`. - * @example - * - * _.isObject({}); - * // => true - * - * _.isObject([1, 2, 3]); - * // => true - * - * _.isObject(_.noop); - * // => true - * - * _.isObject(null); - * // => false - */ - function isObject(value) { - var type = typeof value; - return value != null && (type == 'object' || type == 'function'); - } - - /** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ - function isObjectLike(value) { - return value != null && typeof value == 'object'; - } - - /** - * Checks if `value` is classified as a `Map` object. - * - * @static - * @memberOf _ - * @since 4.3.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a map, else `false`. - * @example - * - * _.isMap(new Map); - * // => true - * - * _.isMap(new WeakMap); - * // => false - */ - var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; - - /** - * Performs a partial deep comparison between `object` and `source` to - * determine if `object` contains equivalent property values. - * - * **Note:** This method is equivalent to `_.matches` when `source` is - * partially applied. - * - * Partial comparisons will match empty array and empty object `source` - * values against any array or object value, respectively. See `_.isEqual` - * for a list of supported value comparisons. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Lang - * @param {Object} object The object to inspect. - * @param {Object} source The object of property values to match. - * @returns {boolean} Returns `true` if `object` is a match, else `false`. - * @example - * - * var object = { 'a': 1, 'b': 2 }; - * - * _.isMatch(object, { 'b': 2 }); - * // => true - * - * _.isMatch(object, { 'b': 1 }); - * // => false - */ - function isMatch(object, source) { - return object === source || baseIsMatch(object, source, getMatchData(source)); - } - - /** - * This method is like `_.isMatch` except that it accepts `customizer` which - * is invoked to compare values. If `customizer` returns `undefined`, comparisons - * are handled by the method instead. The `customizer` is invoked with five - * arguments: (objValue, srcValue, index|key, object, source). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {Object} object The object to inspect. - * @param {Object} source The object of property values to match. - * @param {Function} [customizer] The function to customize comparisons. - * @returns {boolean} Returns `true` if `object` is a match, else `false`. - * @example - * - * function isGreeting(value) { - * return /^h(?:i|ello)$/.test(value); - * } - * - * function customizer(objValue, srcValue) { - * if (isGreeting(objValue) && isGreeting(srcValue)) { - * return true; - * } - * } - * - * var object = { 'greeting': 'hello' }; - * var source = { 'greeting': 'hi' }; - * - * _.isMatchWith(object, source, customizer); - * // => true - */ - function isMatchWith(object, source, customizer) { - customizer = typeof customizer == 'function' ? customizer : undefined; - return baseIsMatch(object, source, getMatchData(source), customizer); - } - - /** - * Checks if `value` is `NaN`. - * - * **Note:** This method is based on - * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as - * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for - * `undefined` and other non-number values. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. - * @example - * - * _.isNaN(NaN); - * // => true - * - * _.isNaN(new Number(NaN)); - * // => true - * - * isNaN(undefined); - * // => true - * - * _.isNaN(undefined); - * // => false - */ - function isNaN(value) { - // An `NaN` primitive is the only value that is not equal to itself. - // Perform the `toStringTag` check first to avoid errors with some - // ActiveX objects in IE. - return isNumber(value) && value != +value; - } - - /** - * Checks if `value` is a pristine native function. - * - * **Note:** This method can't reliably detect native functions in the presence - * of the core-js package because core-js circumvents this kind of detection. - * Despite multiple requests, the core-js maintainer has made it clear: any - * attempt to fix the detection will be obstructed. As a result, we're left - * with little choice but to throw an error. Unfortunately, this also affects - * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill), - * which rely on core-js. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a native function, - * else `false`. - * @example - * - * _.isNative(Array.prototype.push); - * // => true - * - * _.isNative(_); - * // => false - */ - function isNative(value) { - if (isMaskable(value)) { - throw new Error(CORE_ERROR_TEXT); - } - return baseIsNative(value); - } - - /** - * Checks if `value` is `null`. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is `null`, else `false`. - * @example - * - * _.isNull(null); - * // => true - * - * _.isNull(void 0); - * // => false - */ - function isNull(value) { - return value === null; - } - - /** - * Checks if `value` is `null` or `undefined`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is nullish, else `false`. - * @example - * - * _.isNil(null); - * // => true - * - * _.isNil(void 0); - * // => true - * - * _.isNil(NaN); - * // => false - */ - function isNil(value) { - return value == null; - } - - /** - * Checks if `value` is classified as a `Number` primitive or object. - * - * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are - * classified as numbers, use the `_.isFinite` method. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a number, else `false`. - * @example - * - * _.isNumber(3); - * // => true - * - * _.isNumber(Number.MIN_VALUE); - * // => true - * - * _.isNumber(Infinity); - * // => true - * - * _.isNumber('3'); - * // => false - */ - function isNumber(value) { - return typeof value == 'number' || - (isObjectLike(value) && objectToString.call(value) == numberTag); - } - - /** - * Checks if `value` is a plain object, that is, an object created by the - * `Object` constructor or one with a `[[Prototype]]` of `null`. - * - * @static - * @memberOf _ - * @since 0.8.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. - * @example - * - * function Foo() { - * this.a = 1; - * } - * - * _.isPlainObject(new Foo); - * // => false - * - * _.isPlainObject([1, 2, 3]); - * // => false - * - * _.isPlainObject({ 'x': 0, 'y': 0 }); - * // => true - * - * _.isPlainObject(Object.create(null)); - * // => true - */ - function isPlainObject(value) { - if (!isObjectLike(value) || objectToString.call(value) != objectTag) { - return false; - } - var proto = getPrototype(value); - if (proto === null) { - return true; - } - var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; - return (typeof Ctor == 'function' && - Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString); - } - - /** - * Checks if `value` is classified as a `RegExp` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a regexp, else `false`. - * @example - * - * _.isRegExp(/abc/); - * // => true - * - * _.isRegExp('/abc/'); - * // => false - */ - var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp; - - /** - * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754 - * double precision number which isn't the result of a rounded unsafe integer. - * - * **Note:** This method is based on - * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`. - * @example - * - * _.isSafeInteger(3); - * // => true - * - * _.isSafeInteger(Number.MIN_VALUE); - * // => false - * - * _.isSafeInteger(Infinity); - * // => false - * - * _.isSafeInteger('3'); - * // => false - */ - function isSafeInteger(value) { - return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER; - } - - /** - * Checks if `value` is classified as a `Set` object. - * - * @static - * @memberOf _ - * @since 4.3.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a set, else `false`. - * @example - * - * _.isSet(new Set); - * // => true - * - * _.isSet(new WeakSet); - * // => false - */ - var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; - - /** - * Checks if `value` is classified as a `String` primitive or object. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a string, else `false`. - * @example - * - * _.isString('abc'); - * // => true - * - * _.isString(1); - * // => false - */ - function isString(value) { - return typeof value == 'string' || - (!isArray(value) && isObjectLike(value) && objectToString.call(value) == stringTag); - } - - /** - * Checks if `value` is classified as a `Symbol` primitive or object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. - * @example - * - * _.isSymbol(Symbol.iterator); - * // => true - * - * _.isSymbol('abc'); - * // => false - */ - function isSymbol(value) { - return typeof value == 'symbol' || - (isObjectLike(value) && objectToString.call(value) == symbolTag); - } - - /** - * Checks if `value` is classified as a typed array. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. - * @example - * - * _.isTypedArray(new Uint8Array); - * // => true - * - * _.isTypedArray([]); - * // => false - */ - var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; - - /** - * Checks if `value` is `undefined`. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`. - * @example - * - * _.isUndefined(void 0); - * // => true - * - * _.isUndefined(null); - * // => false - */ - function isUndefined(value) { - return value === undefined; - } - - /** - * Checks if `value` is classified as a `WeakMap` object. - * - * @static - * @memberOf _ - * @since 4.3.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a weak map, else `false`. - * @example - * - * _.isWeakMap(new WeakMap); - * // => true - * - * _.isWeakMap(new Map); - * // => false - */ - function isWeakMap(value) { - return isObjectLike(value) && getTag(value) == weakMapTag; - } - - /** - * Checks if `value` is classified as a `WeakSet` object. - * - * @static - * @memberOf _ - * @since 4.3.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a weak set, else `false`. - * @example - * - * _.isWeakSet(new WeakSet); - * // => true - * - * _.isWeakSet(new Set); - * // => false - */ - function isWeakSet(value) { - return isObjectLike(value) && objectToString.call(value) == weakSetTag; - } - - /** - * Checks if `value` is less than `other`. - * - * @static - * @memberOf _ - * @since 3.9.0 - * @category Lang - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @returns {boolean} Returns `true` if `value` is less than `other`, - * else `false`. - * @see _.gt - * @example - * - * _.lt(1, 3); - * // => true - * - * _.lt(3, 3); - * // => false - * - * _.lt(3, 1); - * // => false - */ - var lt = createRelationalOperation(baseLt); - - /** - * Checks if `value` is less than or equal to `other`. - * - * @static - * @memberOf _ - * @since 3.9.0 - * @category Lang - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @returns {boolean} Returns `true` if `value` is less than or equal to - * `other`, else `false`. - * @see _.gte - * @example - * - * _.lte(1, 3); - * // => true - * - * _.lte(3, 3); - * // => true - * - * _.lte(3, 1); - * // => false - */ - var lte = createRelationalOperation(function(value, other) { - return value <= other; - }); - - /** - * Converts `value` to an array. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Lang - * @param {*} value The value to convert. - * @returns {Array} Returns the converted array. - * @example - * - * _.toArray({ 'a': 1, 'b': 2 }); - * // => [1, 2] - * - * _.toArray('abc'); - * // => ['a', 'b', 'c'] - * - * _.toArray(1); - * // => [] - * - * _.toArray(null); - * // => [] - */ - function toArray(value) { - if (!value) { - return []; - } - if (isArrayLike(value)) { - return isString(value) ? stringToArray(value) : copyArray(value); - } - if (iteratorSymbol && value[iteratorSymbol]) { - return iteratorToArray(value[iteratorSymbol]()); - } - var tag = getTag(value), - func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values); - - return func(value); - } - - /** - * Converts `value` to a finite number. - * - * @static - * @memberOf _ - * @since 4.12.0 - * @category Lang - * @param {*} value The value to convert. - * @returns {number} Returns the converted number. - * @example - * - * _.toFinite(3.2); - * // => 3.2 - * - * _.toFinite(Number.MIN_VALUE); - * // => 5e-324 - * - * _.toFinite(Infinity); - * // => 1.7976931348623157e+308 - * - * _.toFinite('3.2'); - * // => 3.2 - */ - function toFinite(value) { - if (!value) { - return value === 0 ? value : 0; - } - value = toNumber(value); - if (value === INFINITY || value === -INFINITY) { - var sign = (value < 0 ? -1 : 1); - return sign * MAX_INTEGER; - } - return value === value ? value : 0; - } - - /** - * Converts `value` to an integer. - * - * **Note:** This method is loosely based on - * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to convert. - * @returns {number} Returns the converted integer. - * @example - * - * _.toInteger(3.2); - * // => 3 - * - * _.toInteger(Number.MIN_VALUE); - * // => 0 - * - * _.toInteger(Infinity); - * // => 1.7976931348623157e+308 - * - * _.toInteger('3.2'); - * // => 3 - */ - function toInteger(value) { - var result = toFinite(value), - remainder = result % 1; - - return result === result ? (remainder ? result - remainder : result) : 0; - } - - /** - * Converts `value` to an integer suitable for use as the length of an - * array-like object. - * - * **Note:** This method is based on - * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to convert. - * @returns {number} Returns the converted integer. - * @example - * - * _.toLength(3.2); - * // => 3 - * - * _.toLength(Number.MIN_VALUE); - * // => 0 - * - * _.toLength(Infinity); - * // => 4294967295 - * - * _.toLength('3.2'); - * // => 3 - */ - function toLength(value) { - return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0; - } - - /** - * Converts `value` to a number. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to process. - * @returns {number} Returns the number. - * @example - * - * _.toNumber(3.2); - * // => 3.2 - * - * _.toNumber(Number.MIN_VALUE); - * // => 5e-324 - * - * _.toNumber(Infinity); - * // => Infinity - * - * _.toNumber('3.2'); - * // => 3.2 - */ - function toNumber(value) { - if (typeof value == 'number') { - return value; - } - if (isSymbol(value)) { - return NAN; - } - if (isObject(value)) { - var other = typeof value.valueOf == 'function' ? value.valueOf() : value; - value = isObject(other) ? (other + '') : other; - } - if (typeof value != 'string') { - return value === 0 ? value : +value; - } - value = value.replace(reTrim, ''); - var isBinary = reIsBinary.test(value); - return (isBinary || reIsOctal.test(value)) - ? freeParseInt(value.slice(2), isBinary ? 2 : 8) - : (reIsBadHex.test(value) ? NAN : +value); - } - - /** - * Converts `value` to a plain object flattening inherited enumerable string - * keyed properties of `value` to own properties of the plain object. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Lang - * @param {*} value The value to convert. - * @returns {Object} Returns the converted plain object. - * @example - * - * function Foo() { - * this.b = 2; - * } - * - * Foo.prototype.c = 3; - * - * _.assign({ 'a': 1 }, new Foo); - * // => { 'a': 1, 'b': 2 } - * - * _.assign({ 'a': 1 }, _.toPlainObject(new Foo)); - * // => { 'a': 1, 'b': 2, 'c': 3 } - */ - function toPlainObject(value) { - return copyObject(value, keysIn(value)); - } - - /** - * Converts `value` to a safe integer. A safe integer can be compared and - * represented correctly. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to convert. - * @returns {number} Returns the converted integer. - * @example - * - * _.toSafeInteger(3.2); - * // => 3 - * - * _.toSafeInteger(Number.MIN_VALUE); - * // => 0 - * - * _.toSafeInteger(Infinity); - * // => 9007199254740991 - * - * _.toSafeInteger('3.2'); - * // => 3 - */ - function toSafeInteger(value) { - return baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER); - } - - /** - * Converts `value` to a string. An empty string is returned for `null` - * and `undefined` values. The sign of `-0` is preserved. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to convert. - * @returns {string} Returns the converted string. - * @example - * - * _.toString(null); - * // => '' - * - * _.toString(-0); - * // => '-0' - * - * _.toString([1, 2, 3]); - * // => '1,2,3' - */ - function toString(value) { - return value == null ? '' : baseToString(value); - } - - /*------------------------------------------------------------------------*/ - - /** - * Assigns own enumerable string keyed properties of source objects to the - * destination object. Source objects are applied from left to right. - * Subsequent sources overwrite property assignments of previous sources. - * - * **Note:** This method mutates `object` and is loosely based on - * [`Object.assign`](https://mdn.io/Object/assign). - * - * @static - * @memberOf _ - * @since 0.10.0 - * @category Object - * @param {Object} object The destination object. - * @param {...Object} [sources] The source objects. - * @returns {Object} Returns `object`. - * @see _.assignIn - * @example - * - * function Foo() { - * this.a = 1; - * } - * - * function Bar() { - * this.c = 3; - * } - * - * Foo.prototype.b = 2; - * Bar.prototype.d = 4; - * - * _.assign({ 'a': 0 }, new Foo, new Bar); - * // => { 'a': 1, 'c': 3 } - */ - var assign = createAssigner(function(object, source) { - if (isPrototype(source) || isArrayLike(source)) { - copyObject(source, keys(source), object); - return; - } - for (var key in source) { - if (hasOwnProperty.call(source, key)) { - assignValue(object, key, source[key]); - } - } - }); - - /** - * This method is like `_.assign` except that it iterates over own and - * inherited source properties. - * - * **Note:** This method mutates `object`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @alias extend - * @category Object - * @param {Object} object The destination object. - * @param {...Object} [sources] The source objects. - * @returns {Object} Returns `object`. - * @see _.assign - * @example - * - * function Foo() { - * this.a = 1; - * } - * - * function Bar() { - * this.c = 3; - * } - * - * Foo.prototype.b = 2; - * Bar.prototype.d = 4; - * - * _.assignIn({ 'a': 0 }, new Foo, new Bar); - * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 } - */ - var assignIn = createAssigner(function(object, source) { - copyObject(source, keysIn(source), object); - }); - - /** - * This method is like `_.assignIn` except that it accepts `customizer` - * which is invoked to produce the assigned values. If `customizer` returns - * `undefined`, assignment is handled by the method instead. The `customizer` - * is invoked with five arguments: (objValue, srcValue, key, object, source). - * - * **Note:** This method mutates `object`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @alias extendWith - * @category Object - * @param {Object} object The destination object. - * @param {...Object} sources The source objects. - * @param {Function} [customizer] The function to customize assigned values. - * @returns {Object} Returns `object`. - * @see _.assignWith - * @example - * - * function customizer(objValue, srcValue) { - * return _.isUndefined(objValue) ? srcValue : objValue; - * } - * - * var defaults = _.partialRight(_.assignInWith, customizer); - * - * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); - * // => { 'a': 1, 'b': 2 } - */ - var assignInWith = createAssigner(function(object, source, srcIndex, customizer) { - copyObject(source, keysIn(source), object, customizer); - }); - - /** - * This method is like `_.assign` except that it accepts `customizer` - * which is invoked to produce the assigned values. If `customizer` returns - * `undefined`, assignment is handled by the method instead. The `customizer` - * is invoked with five arguments: (objValue, srcValue, key, object, source). - * - * **Note:** This method mutates `object`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Object - * @param {Object} object The destination object. - * @param {...Object} sources The source objects. - * @param {Function} [customizer] The function to customize assigned values. - * @returns {Object} Returns `object`. - * @see _.assignInWith - * @example - * - * function customizer(objValue, srcValue) { - * return _.isUndefined(objValue) ? srcValue : objValue; - * } - * - * var defaults = _.partialRight(_.assignWith, customizer); - * - * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); - * // => { 'a': 1, 'b': 2 } - */ - var assignWith = createAssigner(function(object, source, srcIndex, customizer) { - copyObject(source, keys(source), object, customizer); - }); - - /** - * Creates an array of values corresponding to `paths` of `object`. - * - * @static - * @memberOf _ - * @since 1.0.0 - * @category Object - * @param {Object} object The object to iterate over. - * @param {...(string|string[])} [paths] The property paths of elements to pick. - * @returns {Array} Returns the picked values. - * @example - * - * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] }; - * - * _.at(object, ['a[0].b.c', 'a[1]']); - * // => [3, 4] - */ - var at = flatRest(baseAt); - - /** - * Creates an object that inherits from the `prototype` object. If a - * `properties` object is given, its own enumerable string keyed properties - * are assigned to the created object. - * - * @static - * @memberOf _ - * @since 2.3.0 - * @category Object - * @param {Object} prototype The object to inherit from. - * @param {Object} [properties] The properties to assign to the object. - * @returns {Object} Returns the new object. - * @example - * - * function Shape() { - * this.x = 0; - * this.y = 0; - * } - * - * function Circle() { - * Shape.call(this); - * } - * - * Circle.prototype = _.create(Shape.prototype, { - * 'constructor': Circle - * }); - * - * var circle = new Circle; - * circle instanceof Circle; - * // => true - * - * circle instanceof Shape; - * // => true - */ - function create(prototype, properties) { - var result = baseCreate(prototype); - return properties ? baseAssign(result, properties) : result; - } - - /** - * Assigns own and inherited enumerable string keyed properties of source - * objects to the destination object for all destination properties that - * resolve to `undefined`. Source objects are applied from left to right. - * Once a property is set, additional values of the same property are ignored. - * - * **Note:** This method mutates `object`. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Object - * @param {Object} object The destination object. - * @param {...Object} [sources] The source objects. - * @returns {Object} Returns `object`. - * @see _.defaultsDeep - * @example - * - * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); - * // => { 'a': 1, 'b': 2 } - */ - var defaults = baseRest(function(args) { - args.push(undefined, assignInDefaults); - return apply(assignInWith, undefined, args); - }); - - /** - * This method is like `_.defaults` except that it recursively assigns - * default properties. - * - * **Note:** This method mutates `object`. - * - * @static - * @memberOf _ - * @since 3.10.0 - * @category Object - * @param {Object} object The destination object. - * @param {...Object} [sources] The source objects. - * @returns {Object} Returns `object`. - * @see _.defaults - * @example - * - * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } }); - * // => { 'a': { 'b': 2, 'c': 3 } } - */ - var defaultsDeep = baseRest(function(args) { - args.push(undefined, mergeDefaults); - return apply(mergeWith, undefined, args); - }); - - /** - * This method is like `_.find` except that it returns the key of the first - * element `predicate` returns truthy for instead of the element itself. - * - * @static - * @memberOf _ - * @since 1.1.0 - * @category Object - * @param {Object} object The object to inspect. - * @param {Function} [predicate=_.identity] The function invoked per iteration. - * @returns {string|undefined} Returns the key of the matched element, - * else `undefined`. - * @example - * - * var users = { - * 'barney': { 'age': 36, 'active': true }, - * 'fred': { 'age': 40, 'active': false }, - * 'pebbles': { 'age': 1, 'active': true } - * }; - * - * _.findKey(users, function(o) { return o.age < 40; }); - * // => 'barney' (iteration order is not guaranteed) - * - * // The `_.matches` iteratee shorthand. - * _.findKey(users, { 'age': 1, 'active': true }); - * // => 'pebbles' - * - * // The `_.matchesProperty` iteratee shorthand. - * _.findKey(users, ['active', false]); - * // => 'fred' - * - * // The `_.property` iteratee shorthand. - * _.findKey(users, 'active'); - * // => 'barney' - */ - function findKey(object, predicate) { - return baseFindKey(object, getIteratee(predicate, 3), baseForOwn); - } - - /** - * This method is like `_.findKey` except that it iterates over elements of - * a collection in the opposite order. - * - * @static - * @memberOf _ - * @since 2.0.0 - * @category Object - * @param {Object} object The object to inspect. - * @param {Function} [predicate=_.identity] The function invoked per iteration. - * @returns {string|undefined} Returns the key of the matched element, - * else `undefined`. - * @example - * - * var users = { - * 'barney': { 'age': 36, 'active': true }, - * 'fred': { 'age': 40, 'active': false }, - * 'pebbles': { 'age': 1, 'active': true } - * }; - * - * _.findLastKey(users, function(o) { return o.age < 40; }); - * // => returns 'pebbles' assuming `_.findKey` returns 'barney' - * - * // The `_.matches` iteratee shorthand. - * _.findLastKey(users, { 'age': 36, 'active': true }); - * // => 'barney' - * - * // The `_.matchesProperty` iteratee shorthand. - * _.findLastKey(users, ['active', false]); - * // => 'fred' - * - * // The `_.property` iteratee shorthand. - * _.findLastKey(users, 'active'); - * // => 'pebbles' - */ - function findLastKey(object, predicate) { - return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight); - } - - /** - * Iterates over own and inherited enumerable string keyed properties of an - * object and invokes `iteratee` for each property. The iteratee is invoked - * with three arguments: (value, key, object). Iteratee functions may exit - * iteration early by explicitly returning `false`. - * - * @static - * @memberOf _ - * @since 0.3.0 - * @category Object - * @param {Object} object The object to iterate over. - * @param {Function} [iteratee=_.identity] The function invoked per iteration. - * @returns {Object} Returns `object`. - * @see _.forInRight - * @example - * - * function Foo() { - * this.a = 1; - * this.b = 2; - * } - * - * Foo.prototype.c = 3; - * - * _.forIn(new Foo, function(value, key) { - * console.log(key); - * }); - * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed). - */ - function forIn(object, iteratee) { - return object == null - ? object - : baseFor(object, getIteratee(iteratee, 3), keysIn); - } - - /** - * This method is like `_.forIn` except that it iterates over properties of - * `object` in the opposite order. - * - * @static - * @memberOf _ - * @since 2.0.0 - * @category Object - * @param {Object} object The object to iterate over. - * @param {Function} [iteratee=_.identity] The function invoked per iteration. - * @returns {Object} Returns `object`. - * @see _.forIn - * @example - * - * function Foo() { - * this.a = 1; - * this.b = 2; - * } - * - * Foo.prototype.c = 3; - * - * _.forInRight(new Foo, function(value, key) { - * console.log(key); - * }); - * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'. - */ - function forInRight(object, iteratee) { - return object == null - ? object - : baseForRight(object, getIteratee(iteratee, 3), keysIn); - } - - /** - * Iterates over own enumerable string keyed properties of an object and - * invokes `iteratee` for each property. The iteratee is invoked with three - * arguments: (value, key, object). Iteratee functions may exit iteration - * early by explicitly returning `false`. - * - * @static - * @memberOf _ - * @since 0.3.0 - * @category Object - * @param {Object} object The object to iterate over. - * @param {Function} [iteratee=_.identity] The function invoked per iteration. - * @returns {Object} Returns `object`. - * @see _.forOwnRight - * @example - * - * function Foo() { - * this.a = 1; - * this.b = 2; - * } - * - * Foo.prototype.c = 3; - * - * _.forOwn(new Foo, function(value, key) { - * console.log(key); - * }); - * // => Logs 'a' then 'b' (iteration order is not guaranteed). - */ - function forOwn(object, iteratee) { - return object && baseForOwn(object, getIteratee(iteratee, 3)); - } - - /** - * This method is like `_.forOwn` except that it iterates over properties of - * `object` in the opposite order. - * - * @static - * @memberOf _ - * @since 2.0.0 - * @category Object - * @param {Object} object The object to iterate over. - * @param {Function} [iteratee=_.identity] The function invoked per iteration. - * @returns {Object} Returns `object`. - * @see _.forOwn - * @example - * - * function Foo() { - * this.a = 1; - * this.b = 2; - * } - * - * Foo.prototype.c = 3; - * - * _.forOwnRight(new Foo, function(value, key) { - * console.log(key); - * }); - * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'. - */ - function forOwnRight(object, iteratee) { - return object && baseForOwnRight(object, getIteratee(iteratee, 3)); - } - - /** - * Creates an array of function property names from own enumerable properties - * of `object`. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Object - * @param {Object} object The object to inspect. - * @returns {Array} Returns the function names. - * @see _.functionsIn - * @example - * - * function Foo() { - * this.a = _.constant('a'); - * this.b = _.constant('b'); - * } - * - * Foo.prototype.c = _.constant('c'); - * - * _.functions(new Foo); - * // => ['a', 'b'] - */ - function functions(object) { - return object == null ? [] : baseFunctions(object, keys(object)); - } - - /** - * Creates an array of function property names from own and inherited - * enumerable properties of `object`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Object - * @param {Object} object The object to inspect. - * @returns {Array} Returns the function names. - * @see _.functions - * @example - * - * function Foo() { - * this.a = _.constant('a'); - * this.b = _.constant('b'); - * } - * - * Foo.prototype.c = _.constant('c'); - * - * _.functionsIn(new Foo); - * // => ['a', 'b', 'c'] - */ - function functionsIn(object) { - return object == null ? [] : baseFunctions(object, keysIn(object)); - } - - /** - * Gets the value at `path` of `object`. If the resolved value is - * `undefined`, the `defaultValue` is returned in its place. - * - * @static - * @memberOf _ - * @since 3.7.0 - * @category Object - * @param {Object} object The object to query. - * @param {Array|string} path The path of the property to get. - * @param {*} [defaultValue] The value returned for `undefined` resolved values. - * @returns {*} Returns the resolved value. - * @example - * - * var object = { 'a': [{ 'b': { 'c': 3 } }] }; - * - * _.get(object, 'a[0].b.c'); - * // => 3 - * - * _.get(object, ['a', '0', 'b', 'c']); - * // => 3 - * - * _.get(object, 'a.b.c', 'default'); - * // => 'default' - */ - function get(object, path, defaultValue) { - var result = object == null ? undefined : baseGet(object, path); - return result === undefined ? defaultValue : result; - } - - /** - * Checks if `path` is a direct property of `object`. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Object - * @param {Object} object The object to query. - * @param {Array|string} path The path to check. - * @returns {boolean} Returns `true` if `path` exists, else `false`. - * @example - * - * var object = { 'a': { 'b': 2 } }; - * var other = _.create({ 'a': _.create({ 'b': 2 }) }); - * - * _.has(object, 'a'); - * // => true - * - * _.has(object, 'a.b'); - * // => true - * - * _.has(object, ['a', 'b']); - * // => true - * - * _.has(other, 'a'); - * // => false - */ - function has(object, path) { - return object != null && hasPath(object, path, baseHas); - } - - /** - * Checks if `path` is a direct or inherited property of `object`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Object - * @param {Object} object The object to query. - * @param {Array|string} path The path to check. - * @returns {boolean} Returns `true` if `path` exists, else `false`. - * @example - * - * var object = _.create({ 'a': _.create({ 'b': 2 }) }); - * - * _.hasIn(object, 'a'); - * // => true - * - * _.hasIn(object, 'a.b'); - * // => true - * - * _.hasIn(object, ['a', 'b']); - * // => true - * - * _.hasIn(object, 'b'); - * // => false - */ - function hasIn(object, path) { - return object != null && hasPath(object, path, baseHasIn); - } - - /** - * Creates an object composed of the inverted keys and values of `object`. - * If `object` contains duplicate values, subsequent values overwrite - * property assignments of previous values. - * - * @static - * @memberOf _ - * @since 0.7.0 - * @category Object - * @param {Object} object The object to invert. - * @returns {Object} Returns the new inverted object. - * @example - * - * var object = { 'a': 1, 'b': 2, 'c': 1 }; - * - * _.invert(object); - * // => { '1': 'c', '2': 'b' } - */ - var invert = createInverter(function(result, value, key) { - result[value] = key; - }, constant(identity)); - - /** - * This method is like `_.invert` except that the inverted object is generated - * from the results of running each element of `object` thru `iteratee`. The - * corresponding inverted value of each inverted key is an array of keys - * responsible for generating the inverted value. The iteratee is invoked - * with one argument: (value). - * - * @static - * @memberOf _ - * @since 4.1.0 - * @category Object - * @param {Object} object The object to invert. - * @param {Function} [iteratee=_.identity] The iteratee invoked per element. - * @returns {Object} Returns the new inverted object. - * @example - * - * var object = { 'a': 1, 'b': 2, 'c': 1 }; - * - * _.invertBy(object); - * // => { '1': ['a', 'c'], '2': ['b'] } - * - * _.invertBy(object, function(value) { - * return 'group' + value; - * }); - * // => { 'group1': ['a', 'c'], 'group2': ['b'] } - */ - var invertBy = createInverter(function(result, value, key) { - if (hasOwnProperty.call(result, value)) { - result[value].push(key); - } else { - result[value] = [key]; - } - }, getIteratee); - - /** - * Invokes the method at `path` of `object`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Object - * @param {Object} object The object to query. - * @param {Array|string} path The path of the method to invoke. - * @param {...*} [args] The arguments to invoke the method with. - * @returns {*} Returns the result of the invoked method. - * @example - * - * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] }; - * - * _.invoke(object, 'a[0].b.c.slice', 1, 3); - * // => [2, 3] - */ - var invoke = baseRest(baseInvoke); - - /** - * Creates an array of the own enumerable property names of `object`. - * - * **Note:** Non-object values are coerced to objects. See the - * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) - * for more details. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Object - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names. - * @example - * - * function Foo() { - * this.a = 1; - * this.b = 2; - * } - * - * Foo.prototype.c = 3; - * - * _.keys(new Foo); - * // => ['a', 'b'] (iteration order is not guaranteed) - * - * _.keys('hi'); - * // => ['0', '1'] - */ - function keys(object) { - return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); - } - - /** - * Creates an array of the own and inherited enumerable property names of `object`. - * - * **Note:** Non-object values are coerced to objects. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Object - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names. - * @example - * - * function Foo() { - * this.a = 1; - * this.b = 2; - * } - * - * Foo.prototype.c = 3; - * - * _.keysIn(new Foo); - * // => ['a', 'b', 'c'] (iteration order is not guaranteed) - */ - function keysIn(object) { - return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); - } - - /** - * The opposite of `_.mapValues`; this method creates an object with the - * same values as `object` and keys generated by running each own enumerable - * string keyed property of `object` thru `iteratee`. The iteratee is invoked - * with three arguments: (value, key, object). - * - * @static - * @memberOf _ - * @since 3.8.0 - * @category Object - * @param {Object} object The object to iterate over. - * @param {Function} [iteratee=_.identity] The function invoked per iteration. - * @returns {Object} Returns the new mapped object. - * @see _.mapValues - * @example - * - * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) { - * return key + value; - * }); - * // => { 'a1': 1, 'b2': 2 } - */ - function mapKeys(object, iteratee) { - var result = {}; - iteratee = getIteratee(iteratee, 3); - - baseForOwn(object, function(value, key, object) { - baseAssignValue(result, iteratee(value, key, object), value); - }); - return result; - } - - /** - * Creates an object with the same keys as `object` and values generated - * by running each own enumerable string keyed property of `object` thru - * `iteratee`. The iteratee is invoked with three arguments: - * (value, key, object). - * - * @static - * @memberOf _ - * @since 2.4.0 - * @category Object - * @param {Object} object The object to iterate over. - * @param {Function} [iteratee=_.identity] The function invoked per iteration. - * @returns {Object} Returns the new mapped object. - * @see _.mapKeys - * @example - * - * var users = { - * 'fred': { 'user': 'fred', 'age': 40 }, - * 'pebbles': { 'user': 'pebbles', 'age': 1 } - * }; - * - * _.mapValues(users, function(o) { return o.age; }); - * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed) - * - * // The `_.property` iteratee shorthand. - * _.mapValues(users, 'age'); - * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed) - */ - function mapValues(object, iteratee) { - var result = {}; - iteratee = getIteratee(iteratee, 3); - - baseForOwn(object, function(value, key, object) { - baseAssignValue(result, key, iteratee(value, key, object)); - }); - return result; - } - - /** - * This method is like `_.assign` except that it recursively merges own and - * inherited enumerable string keyed properties of source objects into the - * destination object. Source properties that resolve to `undefined` are - * skipped if a destination value exists. Array and plain object properties - * are merged recursively. Other objects and value types are overridden by - * assignment. Source objects are applied from left to right. Subsequent - * sources overwrite property assignments of previous sources. - * - * **Note:** This method mutates `object`. - * - * @static - * @memberOf _ - * @since 0.5.0 - * @category Object - * @param {Object} object The destination object. - * @param {...Object} [sources] The source objects. - * @returns {Object} Returns `object`. - * @example - * - * var object = { - * 'a': [{ 'b': 2 }, { 'd': 4 }] - * }; - * - * var other = { - * 'a': [{ 'c': 3 }, { 'e': 5 }] - * }; - * - * _.merge(object, other); - * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] } - */ - var merge = createAssigner(function(object, source, srcIndex) { - baseMerge(object, source, srcIndex); - }); - - /** - * This method is like `_.merge` except that it accepts `customizer` which - * is invoked to produce the merged values of the destination and source - * properties. If `customizer` returns `undefined`, merging is handled by the - * method instead. The `customizer` is invoked with six arguments: - * (objValue, srcValue, key, object, source, stack). - * - * **Note:** This method mutates `object`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Object - * @param {Object} object The destination object. - * @param {...Object} sources The source objects. - * @param {Function} customizer The function to customize assigned values. - * @returns {Object} Returns `object`. - * @example - * - * function customizer(objValue, srcValue) { - * if (_.isArray(objValue)) { - * return objValue.concat(srcValue); - * } - * } - * - * var object = { 'a': [1], 'b': [2] }; - * var other = { 'a': [3], 'b': [4] }; - * - * _.mergeWith(object, other, customizer); - * // => { 'a': [1, 3], 'b': [2, 4] } - */ - var mergeWith = createAssigner(function(object, source, srcIndex, customizer) { - baseMerge(object, source, srcIndex, customizer); - }); - - /** - * The opposite of `_.pick`; this method creates an object composed of the - * own and inherited enumerable string keyed properties of `object` that are - * not omitted. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Object - * @param {Object} object The source object. - * @param {...(string|string[])} [props] The property identifiers to omit. - * @returns {Object} Returns the new object. - * @example - * - * var object = { 'a': 1, 'b': '2', 'c': 3 }; - * - * _.omit(object, ['a', 'c']); - * // => { 'b': '2' } - */ - var omit = flatRest(function(object, props) { - if (object == null) { - return {}; - } - props = arrayMap(props, toKey); - return basePick(object, baseDifference(getAllKeysIn(object), props)); - }); - - /** - * The opposite of `_.pickBy`; this method creates an object composed of - * the own and inherited enumerable string keyed properties of `object` that - * `predicate` doesn't return truthy for. The predicate is invoked with two - * arguments: (value, key). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Object - * @param {Object} object The source object. - * @param {Function} [predicate=_.identity] The function invoked per property. - * @returns {Object} Returns the new object. - * @example - * - * var object = { 'a': 1, 'b': '2', 'c': 3 }; - * - * _.omitBy(object, _.isNumber); - * // => { 'b': '2' } - */ - function omitBy(object, predicate) { - return pickBy(object, negate(getIteratee(predicate))); - } - - /** - * Creates an object composed of the picked `object` properties. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Object - * @param {Object} object The source object. - * @param {...(string|string[])} [props] The property identifiers to pick. - * @returns {Object} Returns the new object. - * @example - * - * var object = { 'a': 1, 'b': '2', 'c': 3 }; - * - * _.pick(object, ['a', 'c']); - * // => { 'a': 1, 'c': 3 } - */ - var pick = flatRest(function(object, props) { - return object == null ? {} : basePick(object, arrayMap(props, toKey)); - }); - - /** - * Creates an object composed of the `object` properties `predicate` returns - * truthy for. The predicate is invoked with two arguments: (value, key). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Object - * @param {Object} object The source object. - * @param {Function} [predicate=_.identity] The function invoked per property. - * @returns {Object} Returns the new object. - * @example - * - * var object = { 'a': 1, 'b': '2', 'c': 3 }; - * - * _.pickBy(object, _.isNumber); - * // => { 'a': 1, 'c': 3 } - */ - function pickBy(object, predicate) { - return object == null ? {} : basePickBy(object, getAllKeysIn(object), getIteratee(predicate)); - } - - /** - * This method is like `_.get` except that if the resolved value is a - * function it's invoked with the `this` binding of its parent object and - * its result is returned. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Object - * @param {Object} object The object to query. - * @param {Array|string} path The path of the property to resolve. - * @param {*} [defaultValue] The value returned for `undefined` resolved values. - * @returns {*} Returns the resolved value. - * @example - * - * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] }; - * - * _.result(object, 'a[0].b.c1'); - * // => 3 - * - * _.result(object, 'a[0].b.c2'); - * // => 4 - * - * _.result(object, 'a[0].b.c3', 'default'); - * // => 'default' - * - * _.result(object, 'a[0].b.c3', _.constant('default')); - * // => 'default' - */ - function result(object, path, defaultValue) { - path = isKey(path, object) ? [path] : castPath(path); - - var index = -1, - length = path.length; - - // Ensure the loop is entered when path is empty. - if (!length) { - object = undefined; - length = 1; - } - while (++index < length) { - var value = object == null ? undefined : object[toKey(path[index])]; - if (value === undefined) { - index = length; - value = defaultValue; - } - object = isFunction(value) ? value.call(object) : value; - } - return object; - } - - /** - * Sets the value at `path` of `object`. If a portion of `path` doesn't exist, - * it's created. Arrays are created for missing index properties while objects - * are created for all other missing properties. Use `_.setWith` to customize - * `path` creation. - * - * **Note:** This method mutates `object`. - * - * @static - * @memberOf _ - * @since 3.7.0 - * @category Object - * @param {Object} object The object to modify. - * @param {Array|string} path The path of the property to set. - * @param {*} value The value to set. - * @returns {Object} Returns `object`. - * @example - * - * var object = { 'a': [{ 'b': { 'c': 3 } }] }; - * - * _.set(object, 'a[0].b.c', 4); - * console.log(object.a[0].b.c); - * // => 4 - * - * _.set(object, ['x', '0', 'y', 'z'], 5); - * console.log(object.x[0].y.z); - * // => 5 - */ - function set(object, path, value) { - return object == null ? object : baseSet(object, path, value); - } - - /** - * This method is like `_.set` except that it accepts `customizer` which is - * invoked to produce the objects of `path`. If `customizer` returns `undefined` - * path creation is handled by the method instead. The `customizer` is invoked - * with three arguments: (nsValue, key, nsObject). - * - * **Note:** This method mutates `object`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Object - * @param {Object} object The object to modify. - * @param {Array|string} path The path of the property to set. - * @param {*} value The value to set. - * @param {Function} [customizer] The function to customize assigned values. - * @returns {Object} Returns `object`. - * @example - * - * var object = {}; - * - * _.setWith(object, '[0][1]', 'a', Object); - * // => { '0': { '1': 'a' } } - */ - function setWith(object, path, value, customizer) { - customizer = typeof customizer == 'function' ? customizer : undefined; - return object == null ? object : baseSet(object, path, value, customizer); - } - - /** - * Creates an array of own enumerable string keyed-value pairs for `object` - * which can be consumed by `_.fromPairs`. If `object` is a map or set, its - * entries are returned. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @alias entries - * @category Object - * @param {Object} object The object to query. - * @returns {Array} Returns the key-value pairs. - * @example - * - * function Foo() { - * this.a = 1; - * this.b = 2; - * } - * - * Foo.prototype.c = 3; - * - * _.toPairs(new Foo); - * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed) - */ - var toPairs = createToPairs(keys); - - /** - * Creates an array of own and inherited enumerable string keyed-value pairs - * for `object` which can be consumed by `_.fromPairs`. If `object` is a map - * or set, its entries are returned. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @alias entriesIn - * @category Object - * @param {Object} object The object to query. - * @returns {Array} Returns the key-value pairs. - * @example - * - * function Foo() { - * this.a = 1; - * this.b = 2; - * } - * - * Foo.prototype.c = 3; - * - * _.toPairsIn(new Foo); - * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed) - */ - var toPairsIn = createToPairs(keysIn); - - /** - * An alternative to `_.reduce`; this method transforms `object` to a new - * `accumulator` object which is the result of running each of its own - * enumerable string keyed properties thru `iteratee`, with each invocation - * potentially mutating the `accumulator` object. If `accumulator` is not - * provided, a new object with the same `[[Prototype]]` will be used. The - * iteratee is invoked with four arguments: (accumulator, value, key, object). - * Iteratee functions may exit iteration early by explicitly returning `false`. - * - * @static - * @memberOf _ - * @since 1.3.0 - * @category Object - * @param {Object} object The object to iterate over. - * @param {Function} [iteratee=_.identity] The function invoked per iteration. - * @param {*} [accumulator] The custom accumulator value. - * @returns {*} Returns the accumulated value. - * @example - * - * _.transform([2, 3, 4], function(result, n) { - * result.push(n *= n); - * return n % 2 == 0; - * }, []); - * // => [4, 9] - * - * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) { - * (result[value] || (result[value] = [])).push(key); - * }, {}); - * // => { '1': ['a', 'c'], '2': ['b'] } - */ - function transform(object, iteratee, accumulator) { - var isArr = isArray(object), - isArrLike = isArr || isBuffer(object) || isTypedArray(object); - - iteratee = getIteratee(iteratee, 4); - if (accumulator == null) { - var Ctor = object && object.constructor; - if (isArrLike) { - accumulator = isArr ? new Ctor : []; - } - else if (isObject(object)) { - accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {}; - } - else { - accumulator = {}; - } - } - (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) { - return iteratee(accumulator, value, index, object); - }); - return accumulator; - } - - /** - * Removes the property at `path` of `object`. - * - * **Note:** This method mutates `object`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Object - * @param {Object} object The object to modify. - * @param {Array|string} path The path of the property to unset. - * @returns {boolean} Returns `true` if the property is deleted, else `false`. - * @example - * - * var object = { 'a': [{ 'b': { 'c': 7 } }] }; - * _.unset(object, 'a[0].b.c'); - * // => true - * - * console.log(object); - * // => { 'a': [{ 'b': {} }] }; - * - * _.unset(object, ['a', '0', 'b', 'c']); - * // => true - * - * console.log(object); - * // => { 'a': [{ 'b': {} }] }; - */ - function unset(object, path) { - return object == null ? true : baseUnset(object, path); - } - - /** - * This method is like `_.set` except that accepts `updater` to produce the - * value to set. Use `_.updateWith` to customize `path` creation. The `updater` - * is invoked with one argument: (value). - * - * **Note:** This method mutates `object`. - * - * @static - * @memberOf _ - * @since 4.6.0 - * @category Object - * @param {Object} object The object to modify. - * @param {Array|string} path The path of the property to set. - * @param {Function} updater The function to produce the updated value. - * @returns {Object} Returns `object`. - * @example - * - * var object = { 'a': [{ 'b': { 'c': 3 } }] }; - * - * _.update(object, 'a[0].b.c', function(n) { return n * n; }); - * console.log(object.a[0].b.c); - * // => 9 - * - * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; }); - * console.log(object.x[0].y.z); - * // => 0 - */ - function update(object, path, updater) { - return object == null ? object : baseUpdate(object, path, castFunction(updater)); - } - - /** - * This method is like `_.update` except that it accepts `customizer` which is - * invoked to produce the objects of `path`. If `customizer` returns `undefined` - * path creation is handled by the method instead. The `customizer` is invoked - * with three arguments: (nsValue, key, nsObject). - * - * **Note:** This method mutates `object`. - * - * @static - * @memberOf _ - * @since 4.6.0 - * @category Object - * @param {Object} object The object to modify. - * @param {Array|string} path The path of the property to set. - * @param {Function} updater The function to produce the updated value. - * @param {Function} [customizer] The function to customize assigned values. - * @returns {Object} Returns `object`. - * @example - * - * var object = {}; - * - * _.updateWith(object, '[0][1]', _.constant('a'), Object); - * // => { '0': { '1': 'a' } } - */ - function updateWith(object, path, updater, customizer) { - customizer = typeof customizer == 'function' ? customizer : undefined; - return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer); - } - - /** - * Creates an array of the own enumerable string keyed property values of `object`. - * - * **Note:** Non-object values are coerced to objects. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Object - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property values. - * @example - * - * function Foo() { - * this.a = 1; - * this.b = 2; - * } - * - * Foo.prototype.c = 3; - * - * _.values(new Foo); - * // => [1, 2] (iteration order is not guaranteed) - * - * _.values('hi'); - * // => ['h', 'i'] - */ - function values(object) { - return object ? baseValues(object, keys(object)) : []; - } - - /** - * Creates an array of the own and inherited enumerable string keyed property - * values of `object`. - * - * **Note:** Non-object values are coerced to objects. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Object - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property values. - * @example - * - * function Foo() { - * this.a = 1; - * this.b = 2; - * } - * - * Foo.prototype.c = 3; - * - * _.valuesIn(new Foo); - * // => [1, 2, 3] (iteration order is not guaranteed) - */ - function valuesIn(object) { - return object == null ? [] : baseValues(object, keysIn(object)); - } - - /*------------------------------------------------------------------------*/ - - /** - * Clamps `number` within the inclusive `lower` and `upper` bounds. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Number - * @param {number} number The number to clamp. - * @param {number} [lower] The lower bound. - * @param {number} upper The upper bound. - * @returns {number} Returns the clamped number. - * @example - * - * _.clamp(-10, -5, 5); - * // => -5 - * - * _.clamp(10, -5, 5); - * // => 5 - */ - function clamp(number, lower, upper) { - if (upper === undefined) { - upper = lower; - lower = undefined; - } - if (upper !== undefined) { - upper = toNumber(upper); - upper = upper === upper ? upper : 0; - } - if (lower !== undefined) { - lower = toNumber(lower); - lower = lower === lower ? lower : 0; - } - return baseClamp(toNumber(number), lower, upper); - } - - /** - * Checks if `n` is between `start` and up to, but not including, `end`. If - * `end` is not specified, it's set to `start` with `start` then set to `0`. - * If `start` is greater than `end` the params are swapped to support - * negative ranges. - * - * @static - * @memberOf _ - * @since 3.3.0 - * @category Number - * @param {number} number The number to check. - * @param {number} [start=0] The start of the range. - * @param {number} end The end of the range. - * @returns {boolean} Returns `true` if `number` is in the range, else `false`. - * @see _.range, _.rangeRight - * @example - * - * _.inRange(3, 2, 4); - * // => true - * - * _.inRange(4, 8); - * // => true - * - * _.inRange(4, 2); - * // => false - * - * _.inRange(2, 2); - * // => false - * - * _.inRange(1.2, 2); - * // => true - * - * _.inRange(5.2, 4); - * // => false - * - * _.inRange(-3, -2, -6); - * // => true - */ - function inRange(number, start, end) { - start = toFinite(start); - if (end === undefined) { - end = start; - start = 0; - } else { - end = toFinite(end); - } - number = toNumber(number); - return baseInRange(number, start, end); - } - - /** - * Produces a random number between the inclusive `lower` and `upper` bounds. - * If only one argument is provided a number between `0` and the given number - * is returned. If `floating` is `true`, or either `lower` or `upper` are - * floats, a floating-point number is returned instead of an integer. - * - * **Note:** JavaScript follows the IEEE-754 standard for resolving - * floating-point values which can produce unexpected results. - * - * @static - * @memberOf _ - * @since 0.7.0 - * @category Number - * @param {number} [lower=0] The lower bound. - * @param {number} [upper=1] The upper bound. - * @param {boolean} [floating] Specify returning a floating-point number. - * @returns {number} Returns the random number. - * @example - * - * _.random(0, 5); - * // => an integer between 0 and 5 - * - * _.random(5); - * // => also an integer between 0 and 5 - * - * _.random(5, true); - * // => a floating-point number between 0 and 5 - * - * _.random(1.2, 5.2); - * // => a floating-point number between 1.2 and 5.2 - */ - function random(lower, upper, floating) { - if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) { - upper = floating = undefined; - } - if (floating === undefined) { - if (typeof upper == 'boolean') { - floating = upper; - upper = undefined; - } - else if (typeof lower == 'boolean') { - floating = lower; - lower = undefined; - } - } - if (lower === undefined && upper === undefined) { - lower = 0; - upper = 1; - } - else { - lower = toFinite(lower); - if (upper === undefined) { - upper = lower; - lower = 0; - } else { - upper = toFinite(upper); - } - } - if (lower > upper) { - var temp = lower; - lower = upper; - upper = temp; - } - if (floating || lower % 1 || upper % 1) { - var rand = nativeRandom(); - return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper); - } - return baseRandom(lower, upper); - } - - /*------------------------------------------------------------------------*/ - - /** - * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase). - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category String - * @param {string} [string=''] The string to convert. - * @returns {string} Returns the camel cased string. - * @example - * - * _.camelCase('Foo Bar'); - * // => 'fooBar' - * - * _.camelCase('--foo-bar--'); - * // => 'fooBar' - * - * _.camelCase('__FOO_BAR__'); - * // => 'fooBar' - */ - var camelCase = createCompounder(function(result, word, index) { - word = word.toLowerCase(); - return result + (index ? capitalize(word) : word); - }); - - /** - * Converts the first character of `string` to upper case and the remaining - * to lower case. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category String - * @param {string} [string=''] The string to capitalize. - * @returns {string} Returns the capitalized string. - * @example - * - * _.capitalize('FRED'); - * // => 'Fred' - */ - function capitalize(string) { - return upperFirst(toString(string).toLowerCase()); - } - - /** - * Deburrs `string` by converting - * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table) - * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A) - * letters to basic Latin letters and removing - * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks). - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category String - * @param {string} [string=''] The string to deburr. - * @returns {string} Returns the deburred string. - * @example - * - * _.deburr('déjà vu'); - * // => 'deja vu' - */ - function deburr(string) { - string = toString(string); - return string && string.replace(reLatin, deburrLetter).replace(reComboMark, ''); - } - - /** - * Checks if `string` ends with the given target string. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category String - * @param {string} [string=''] The string to inspect. - * @param {string} [target] The string to search for. - * @param {number} [position=string.length] The position to search up to. - * @returns {boolean} Returns `true` if `string` ends with `target`, - * else `false`. - * @example - * - * _.endsWith('abc', 'c'); - * // => true - * - * _.endsWith('abc', 'b'); - * // => false - * - * _.endsWith('abc', 'b', 2); - * // => true - */ - function endsWith(string, target, position) { - string = toString(string); - target = baseToString(target); - - var length = string.length; - position = position === undefined - ? length - : baseClamp(toInteger(position), 0, length); - - var end = position; - position -= target.length; - return position >= 0 && string.slice(position, end) == target; - } - - /** - * Converts the characters "&", "<", ">", '"', and "'" in `string` to their - * corresponding HTML entities. - * - * **Note:** No other characters are escaped. To escape additional - * characters use a third-party library like [_he_](https://mths.be/he). - * - * Though the ">" character is escaped for symmetry, characters like - * ">" and "/" don't need escaping in HTML and have no special meaning - * unless they're part of a tag or unquoted attribute value. See - * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands) - * (under "semi-related fun fact") for more details. - * - * When working with HTML you should always - * [quote attribute values](http://wonko.com/post/html-escaping) to reduce - * XSS vectors. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category String - * @param {string} [string=''] The string to escape. - * @returns {string} Returns the escaped string. - * @example - * - * _.escape('fred, barney, & pebbles'); - * // => 'fred, barney, & pebbles' - */ - function escape(string) { - string = toString(string); - return (string && reHasUnescapedHtml.test(string)) - ? string.replace(reUnescapedHtml, escapeHtmlChar) - : string; - } - - /** - * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+", - * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category String - * @param {string} [string=''] The string to escape. - * @returns {string} Returns the escaped string. - * @example - * - * _.escapeRegExp('[lodash](https://lodash.com/)'); - * // => '\[lodash\]\(https://lodash\.com/\)' - */ - function escapeRegExp(string) { - string = toString(string); - return (string && reHasRegExpChar.test(string)) - ? string.replace(reRegExpChar, '\\$&') - : string; - } - - /** - * Converts `string` to - * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles). - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category String - * @param {string} [string=''] The string to convert. - * @returns {string} Returns the kebab cased string. - * @example - * - * _.kebabCase('Foo Bar'); - * // => 'foo-bar' - * - * _.kebabCase('fooBar'); - * // => 'foo-bar' - * - * _.kebabCase('__FOO_BAR__'); - * // => 'foo-bar' - */ - var kebabCase = createCompounder(function(result, word, index) { - return result + (index ? '-' : '') + word.toLowerCase(); - }); - - /** - * Converts `string`, as space separated words, to lower case. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category String - * @param {string} [string=''] The string to convert. - * @returns {string} Returns the lower cased string. - * @example - * - * _.lowerCase('--Foo-Bar--'); - * // => 'foo bar' - * - * _.lowerCase('fooBar'); - * // => 'foo bar' - * - * _.lowerCase('__FOO_BAR__'); - * // => 'foo bar' - */ - var lowerCase = createCompounder(function(result, word, index) { - return result + (index ? ' ' : '') + word.toLowerCase(); - }); - - /** - * Converts the first character of `string` to lower case. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category String - * @param {string} [string=''] The string to convert. - * @returns {string} Returns the converted string. - * @example - * - * _.lowerFirst('Fred'); - * // => 'fred' - * - * _.lowerFirst('FRED'); - * // => 'fRED' - */ - var lowerFirst = createCaseFirst('toLowerCase'); - - /** - * Pads `string` on the left and right sides if it's shorter than `length`. - * Padding characters are truncated if they can't be evenly divided by `length`. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category String - * @param {string} [string=''] The string to pad. - * @param {number} [length=0] The padding length. - * @param {string} [chars=' '] The string used as padding. - * @returns {string} Returns the padded string. - * @example - * - * _.pad('abc', 8); - * // => ' abc ' - * - * _.pad('abc', 8, '_-'); - * // => '_-abc_-_' - * - * _.pad('abc', 3); - * // => 'abc' - */ - function pad(string, length, chars) { - string = toString(string); - length = toInteger(length); - - var strLength = length ? stringSize(string) : 0; - if (!length || strLength >= length) { - return string; - } - var mid = (length - strLength) / 2; - return ( - createPadding(nativeFloor(mid), chars) + - string + - createPadding(nativeCeil(mid), chars) - ); - } - - /** - * Pads `string` on the right side if it's shorter than `length`. Padding - * characters are truncated if they exceed `length`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category String - * @param {string} [string=''] The string to pad. - * @param {number} [length=0] The padding length. - * @param {string} [chars=' '] The string used as padding. - * @returns {string} Returns the padded string. - * @example - * - * _.padEnd('abc', 6); - * // => 'abc ' - * - * _.padEnd('abc', 6, '_-'); - * // => 'abc_-_' - * - * _.padEnd('abc', 3); - * // => 'abc' - */ - function padEnd(string, length, chars) { - string = toString(string); - length = toInteger(length); - - var strLength = length ? stringSize(string) : 0; - return (length && strLength < length) - ? (string + createPadding(length - strLength, chars)) - : string; - } - - /** - * Pads `string` on the left side if it's shorter than `length`. Padding - * characters are truncated if they exceed `length`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category String - * @param {string} [string=''] The string to pad. - * @param {number} [length=0] The padding length. - * @param {string} [chars=' '] The string used as padding. - * @returns {string} Returns the padded string. - * @example - * - * _.padStart('abc', 6); - * // => ' abc' - * - * _.padStart('abc', 6, '_-'); - * // => '_-_abc' - * - * _.padStart('abc', 3); - * // => 'abc' - */ - function padStart(string, length, chars) { - string = toString(string); - length = toInteger(length); - - var strLength = length ? stringSize(string) : 0; - return (length && strLength < length) - ? (createPadding(length - strLength, chars) + string) - : string; - } - - /** - * Converts `string` to an integer of the specified radix. If `radix` is - * `undefined` or `0`, a `radix` of `10` is used unless `value` is a - * hexadecimal, in which case a `radix` of `16` is used. - * - * **Note:** This method aligns with the - * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`. - * - * @static - * @memberOf _ - * @since 1.1.0 - * @category String - * @param {string} string The string to convert. - * @param {number} [radix=10] The radix to interpret `value` by. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. - * @returns {number} Returns the converted integer. - * @example - * - * _.parseInt('08'); - * // => 8 - * - * _.map(['6', '08', '10'], _.parseInt); - * // => [6, 8, 10] - */ - function parseInt(string, radix, guard) { - if (guard || radix == null) { - radix = 0; - } else if (radix) { - radix = +radix; - } - return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0); - } - - /** - * Repeats the given string `n` times. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category String - * @param {string} [string=''] The string to repeat. - * @param {number} [n=1] The number of times to repeat the string. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. - * @returns {string} Returns the repeated string. - * @example - * - * _.repeat('*', 3); - * // => '***' - * - * _.repeat('abc', 2); - * // => 'abcabc' - * - * _.repeat('abc', 0); - * // => '' - */ - function repeat(string, n, guard) { - if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) { - n = 1; - } else { - n = toInteger(n); - } - return baseRepeat(toString(string), n); - } - - /** - * Replaces matches for `pattern` in `string` with `replacement`. - * - * **Note:** This method is based on - * [`String#replace`](https://mdn.io/String/replace). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category String - * @param {string} [string=''] The string to modify. - * @param {RegExp|string} pattern The pattern to replace. - * @param {Function|string} replacement The match replacement. - * @returns {string} Returns the modified string. - * @example - * - * _.replace('Hi Fred', 'Fred', 'Barney'); - * // => 'Hi Barney' - */ - function replace() { - var args = arguments, - string = toString(args[0]); - - return args.length < 3 ? string : string.replace(args[1], args[2]); - } - - /** - * Converts `string` to - * [snake case](https://en.wikipedia.org/wiki/Snake_case). - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category String - * @param {string} [string=''] The string to convert. - * @returns {string} Returns the snake cased string. - * @example - * - * _.snakeCase('Foo Bar'); - * // => 'foo_bar' - * - * _.snakeCase('fooBar'); - * // => 'foo_bar' - * - * _.snakeCase('--FOO-BAR--'); - * // => 'foo_bar' - */ - var snakeCase = createCompounder(function(result, word, index) { - return result + (index ? '_' : '') + word.toLowerCase(); - }); - - /** - * Splits `string` by `separator`. - * - * **Note:** This method is based on - * [`String#split`](https://mdn.io/String/split). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category String - * @param {string} [string=''] The string to split. - * @param {RegExp|string} separator The separator pattern to split by. - * @param {number} [limit] The length to truncate results to. - * @returns {Array} Returns the string segments. - * @example - * - * _.split('a-b-c', '-', 2); - * // => ['a', 'b'] - */ - function split(string, separator, limit) { - if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) { - separator = limit = undefined; - } - limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0; - if (!limit) { - return []; - } - string = toString(string); - if (string && ( - typeof separator == 'string' || - (separator != null && !isRegExp(separator)) - )) { - separator = baseToString(separator); - if (!separator && hasUnicode(string)) { - return castSlice(stringToArray(string), 0, limit); - } - } - return string.split(separator, limit); - } - - /** - * Converts `string` to - * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage). - * - * @static - * @memberOf _ - * @since 3.1.0 - * @category String - * @param {string} [string=''] The string to convert. - * @returns {string} Returns the start cased string. - * @example - * - * _.startCase('--foo-bar--'); - * // => 'Foo Bar' - * - * _.startCase('fooBar'); - * // => 'Foo Bar' - * - * _.startCase('__FOO_BAR__'); - * // => 'FOO BAR' - */ - var startCase = createCompounder(function(result, word, index) { - return result + (index ? ' ' : '') + upperFirst(word); - }); - - /** - * Checks if `string` starts with the given target string. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category String - * @param {string} [string=''] The string to inspect. - * @param {string} [target] The string to search for. - * @param {number} [position=0] The position to search from. - * @returns {boolean} Returns `true` if `string` starts with `target`, - * else `false`. - * @example - * - * _.startsWith('abc', 'a'); - * // => true - * - * _.startsWith('abc', 'b'); - * // => false - * - * _.startsWith('abc', 'b', 1); - * // => true - */ - function startsWith(string, target, position) { - string = toString(string); - position = baseClamp(toInteger(position), 0, string.length); - target = baseToString(target); - return string.slice(position, position + target.length) == target; - } - - /** - * Creates a compiled template function that can interpolate data properties - * in "interpolate" delimiters, HTML-escape interpolated data properties in - * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data - * properties may be accessed as free variables in the template. If a setting - * object is given, it takes precedence over `_.templateSettings` values. - * - * **Note:** In the development build `_.template` utilizes - * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl) - * for easier debugging. - * - * For more information on precompiling templates see - * [lodash's custom builds documentation](https://lodash.com/custom-builds). - * - * For more information on Chrome extension sandboxes see - * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval). - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category String - * @param {string} [string=''] The template string. - * @param {Object} [options={}] The options object. - * @param {RegExp} [options.escape=_.templateSettings.escape] - * The HTML "escape" delimiter. - * @param {RegExp} [options.evaluate=_.templateSettings.evaluate] - * The "evaluate" delimiter. - * @param {Object} [options.imports=_.templateSettings.imports] - * An object to import into the template as free variables. - * @param {RegExp} [options.interpolate=_.templateSettings.interpolate] - * The "interpolate" delimiter. - * @param {string} [options.sourceURL='lodash.templateSources[n]'] - * The sourceURL of the compiled template. - * @param {string} [options.variable='obj'] - * The data object variable name. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. - * @returns {Function} Returns the compiled template function. - * @example - * - * // Use the "interpolate" delimiter to create a compiled template. - * var compiled = _.template('hello <%= user %>!'); - * compiled({ 'user': 'fred' }); - * // => 'hello fred!' - * - * // Use the HTML "escape" delimiter to escape data property values. - * var compiled = _.template('<%- value %>'); - * compiled({ 'value': '